From e6930f8726a3245a45ab52f3ec048717027c1eab Mon Sep 17 00:00:00 2001 From: naumovdmitrii Date: Tue, 22 Oct 2024 18:38:07 +0300 Subject: [PATCH 01/14] generate full sdk Signed-off-by: naumovdmitrii --- .../arkui/src/generated/Application.sts | 65 ++ .../src/generated/ArkAbilityComponent.ts | 82 +++ .../ArkAbilityComponentInterfaces.ts | 8 + .../src/generated/ArkActionSheetInterfaces.ts | 1 + .../src/generated/ArkAlertDialogInterfaces.ts | 5 + .../arkui/src/generated/ArkAlphabetIndexer.ts | 314 ++++++++ .../generated/ArkAlphabetIndexerInterfaces.ts | 168 +++++ .../arkui/src/generated/ArkAnimator.ts | 190 +++++ .../src/generated/ArkAnimatorInterfaces.ts | 28 + .../ArkAttributeModifierMaterialized.ts | 110 +++ arkoala-arkts/arkui/src/generated/ArkBadge.ts | 74 ++ .../arkui/src/generated/ArkBadgeInterfaces.ts | 195 +++++ .../arkui/src/generated/ArkCalendar.ts | 183 +++++ .../ArkCalendarControllerMaterialized.ts | 81 +++ .../src/generated/ArkCalendarInterfaces.ts | 107 +++ .../arkui/src/generated/ArkCheckbox.ts | 134 ++++ .../src/generated/ArkCheckboxInterfaces.ts | 30 + .../arkui/src/generated/ArkCheckboxgroup.ts | 123 ++++ .../generated/ArkCheckboxgroupInterfaces.ts | 185 +++++ .../ArkChildrenMainSizeMaterialized.ts | 109 +++ .../arkui/src/generated/ArkCircle.ts | 65 ++ .../src/generated/ArkCircleInterfaces.ts | 9 + ...ClientAuthenticationHandlerMaterialized.ts | 94 +++ .../arkui/src/generated/ArkColumnSplit.ts | 81 +++ .../src/generated/ArkColumnSplitInterfaces.ts | 13 + .../generated/ArkCommonTsEtsApiInterfaces.ts | 1 + .../arkui/src/generated/ArkComponent3d.ts | 131 ++++ .../src/generated/ArkComponent3dInterfaces.ts | 57 ++ .../ArkConsoleMessageMaterialized.ts | 90 +++ .../arkui/src/generated/ArkContainerSpan.ts | 72 ++ .../generated/ArkContainerSpanInterfaces.ts | 9 + .../src/generated/ArkContentSlotInterfaces.ts | 1 + .../src/generated/ArkContextMenuInterfaces.ts | 1 + .../ArkControllerHandlerMaterialized.ts | 71 ++ .../arkui/src/generated/ArkCounter.ts | 99 +++ .../src/generated/ArkCounterInterfaces.ts | 10 + .../ArkCustomDialogControllerInterfaces.ts | 1 + .../generated/ArkCustomSpanMaterialized.ts | 91 +++ .../arkui/src/generated/ArkDataPanel.ts | 121 ++++ .../src/generated/ArkDataPanelInterfaces.ts | 162 +++++ .../ArkDataResubmissionHandlerMaterialized.ts | 71 ++ .../arkui/src/generated/ArkDatePicker.ts | 121 ++++ .../src/generated/ArkDatePickerInterfaces.ts | 22 + .../src/generated/ArkDigitIndicatorBuilder.ts | 66 ++ .../arkui/src/generated/ArkDivider.ts | 100 +++ .../src/generated/ArkDividerInterfaces.ts | 12 + .../generated/ArkDrawModifierMaterialized.ts | 97 +++ .../ArkEditMenuOptionsMaterialized.ts | 90 +++ .../arkui/src/generated/ArkEffectComponent.ts | 61 ++ .../generated/ArkEffectComponentInterfaces.ts | 5 + .../arkui/src/generated/ArkEllipse.ts | 66 ++ .../src/generated/ArkEllipseInterfaces.ts | 6 + .../generated/ArkEventResultMaterialized.ts | 66 ++ .../ArkFileSelectorParamMaterialized.ts | 88 +++ .../ArkFileSelectorResultMaterialized.ts | 74 ++ arkoala-arkts/arkui/src/generated/ArkFlex.ts | 78 ++ .../arkui/src/generated/ArkFlexInterfaces.ts | 22 + .../arkui/src/generated/ArkFlowItem.ts | 61 ++ .../src/generated/ArkFlowItemInterfaces.ts | 5 + .../arkui/src/generated/ArkFocusInterfaces.ts | 62 ++ .../arkui/src/generated/ArkFolderStack.ts | 113 +++ .../src/generated/ArkFolderStackInterfaces.ts | 27 + .../src/generated/ArkForEachInterfaces.ts | 1 + .../arkui/src/generated/ArkFormLink.ts | 62 ++ .../src/generated/ArkFormLinkInterfaces.ts | 13 + .../ArkFullScreenExitHandlerMaterialized.ts | 65 ++ arkoala-arkts/arkui/src/generated/ArkGauge.ts | 157 ++++ .../arkui/src/generated/ArkGaugeInterfaces.ts | 41 ++ arkoala-arkts/arkui/src/generated/ArkGrid.ts | 378 ++++++++++ .../arkui/src/generated/ArkGridCol.ts | 92 +++ .../src/generated/ArkGridColInterfaces.ts | 21 + .../arkui/src/generated/ArkGridInterfaces.ts | 231 ++++++ .../arkui/src/generated/ArkGridItem.ts | 138 ++++ .../src/generated/ArkGridItemInterfaces.ts | 98 +++ .../arkui/src/generated/ArkGridRow.ts | 87 +++ .../src/generated/ArkGridRowInterfaces.ts | 224 ++++++ .../ArkHttpAuthHandlerMaterialized.ts | 81 +++ .../arkui/src/generated/ArkHyperlink.ts | 78 ++ .../src/generated/ArkHyperlinkInterfaces.ts | 9 + .../ArkImageAnalyzerControllerMaterialized.ts | 67 ++ .../arkui/src/generated/ArkImageAnimator.ts | 183 +++++ .../generated/ArkImageAnimatorInterfaces.ts | 30 + .../generated/ArkImageBitmapMaterialized.ts | 90 +++ .../src/generated/ArkImageCommonInterfaces.ts | 77 ++ .../arkui/src/generated/ArkImageSpan.ts | 122 ++++ .../src/generated/ArkImageSpanInterfaces.ts | 28 + .../src/generated/ArkIndex-fullInterfaces.ts | 1 + .../src/generated/ArkInspectorInterfaces.ts | 1 + .../ArkIsolatedComponentInterfaces.ts | 1 + .../generated/ArkJsGeolocationMaterialized.ts | 68 ++ .../src/generated/ArkJsResultMaterialized.ts | 78 ++ .../generated/ArkLayoutManagerMaterialized.ts | 100 +++ .../src/generated/ArkLazyForEachInterfaces.ts | 1 + arkoala-arkts/arkui/src/generated/ArkLine.ts | 84 +++ .../arkui/src/generated/ArkLineInterfaces.ts | 8 + ...rkLinearIndicatorControllerMaterialized.ts | 101 +++ .../arkui/src/generated/ArkLinearindicator.ts | 100 +++ .../generated/ArkLinearindicatorInterfaces.ts | 24 + .../arkui/src/generated/ArkListItem.ts | 135 ++++ .../arkui/src/generated/ArkListItemGroup.ts | 87 +++ .../generated/ArkListItemGroupInterfaces.ts | 98 +++ .../src/generated/ArkListItemInterfaces.ts | 371 ++++++++++ .../arkui/src/generated/ArkLoadingProgress.ts | 93 +++ .../generated/ArkLoadingProgressInterfaces.ts | 18 + .../arkui/src/generated/ArkLocationButton.ts | 85 +++ .../generated/ArkLocationButtonInterfaces.ts | 358 ++++++++++ .../arkui/src/generated/ArkMarquee.ts | 147 ++++ .../src/generated/ArkMarqueeInterfaces.ts | 24 + .../src/generated/ArkMediaCachedImage.ts | 66 ++ .../ArkMediaCachedImageInterfaces.ts | 13 + arkoala-arkts/arkui/src/generated/ArkMenu.ts | 127 ++++ .../arkui/src/generated/ArkMenuInterfaces.ts | 69 ++ .../arkui/src/generated/ArkMenuItem.ts | 133 ++++ .../arkui/src/generated/ArkMenuItemGroup.ts | 68 ++ .../generated/ArkMenuItemGroupInterfaces.ts | 12 + .../src/generated/ArkMenuItemInterfaces.ts | 25 + .../ArkMutableStyledStringMaterialized.ts | 164 +++++ .../arkui/src/generated/ArkNavRouter.ts | 92 +++ .../src/generated/ArkNavRouterInterfaces.ts | 98 +++ .../arkui/src/generated/ArkNavigator.ts | 110 +++ .../src/generated/ArkNavigatorInterfaces.ts | 140 ++++ .../arkui/src/generated/ArkNodeContainer.ts | 63 ++ .../generated/ArkNodeContainerInterfaces.ts | 6 + .../generated/ArkPageTransitionInterfaces.ts | 1 + .../ArkPanGestureOptionsMaterialized.ts | 129 ++++ arkoala-arkts/arkui/src/generated/ArkPanel.ts | 174 +++++ .../arkui/src/generated/ArkPanelInterfaces.ts | 337 +++++++++ .../arkui/src/generated/ArkPasteButton.ts | 85 +++ .../src/generated/ArkPasteButtonInterfaces.ts | 171 +++++ arkoala-arkts/arkui/src/generated/ArkPath.ts | 75 ++ .../src/generated/ArkPath2DMaterialized.ts | 87 +++ .../arkui/src/generated/ArkPathInterfaces.ts | 7 + .../arkui/src/generated/ArkPatternLock.ts | 192 +++++ .../ArkPatternLockControllerMaterialized.ts | 73 ++ .../src/generated/ArkPatternLockInterfaces.ts | 116 +++ .../ArkPermissionRequestMaterialized.ts | 94 +++ .../arkui/src/generated/ArkPluginComponent.ts | 82 +++ .../generated/ArkPluginComponentInterfaces.ts | 12 + .../arkui/src/generated/ArkPolygon.ts | 75 ++ .../src/generated/ArkPolygonInterfaces.ts | 7 + .../arkui/src/generated/ArkPolyline.ts | 75 ++ .../src/generated/ArkPolylineInterfaces.ts | 7 + .../src/generated/ArkProgressInterfaces.ts | 1 + .../generated/ArkProgressMaskMaterialized.ts | 133 ++++ .../arkui/src/generated/ArkQrcode.ts | 106 +++ .../src/generated/ArkQrcodeInterfaces.ts | 25 + arkoala-arkts/arkui/src/generated/ArkRadio.ts | 107 +++ .../arkui/src/generated/ArkRadioInterfaces.ts | 108 +++ .../arkui/src/generated/ArkRating.ts | 113 +++ .../src/generated/ArkRatingInterfaces.ts | 30 + .../arkui/src/generated/ArkRefresh.ts | 120 ++++ .../src/generated/ArkRefreshInterfaces.ts | 198 +++++ .../src/generated/ArkRelativeContainer.ts | 91 +++ .../ArkRelativeContainerInterfaces.ts | 161 +++++ .../arkui/src/generated/ArkRemoteWindow.ts | 62 ++ .../generated/ArkRemoteWindowInterfaces.ts | 18 + .../src/generated/ArkRepeatInterfaces.ts | 1 + .../arkui/src/generated/ArkRichEditor.ts | 359 ++++++++++ ...ArkRichEditorBaseControllerMaterialized.ts | 153 ++++ .../ArkRichEditorControllerMaterialized.ts | 326 +++++++++ .../src/generated/ArkRichEditorInterfaces.ts | 483 +++++++++++++ ...ditorStyledStringControllerMaterialized.ts | 104 +++ .../arkui/src/generated/ArkRichText.ts | 81 +++ .../src/generated/ArkRichTextInterfaces.ts | 7 + .../arkui/src/generated/ArkRootScene.ts | 62 ++ .../src/generated/ArkRootSceneInterfaces.ts | 7 + arkoala-arkts/arkui/src/generated/ArkRow.ts | 103 +++ .../arkui/src/generated/ArkRowInterfaces.ts | 14 + .../arkui/src/generated/ArkRowSplit.ts | 70 ++ .../src/generated/ArkRowSplitInterfaces.ts | 6 + .../arkui/src/generated/ArkSaveButton.ts | 85 +++ .../src/generated/ArkSaveButtonInterfaces.ts | 362 ++++++++++ .../arkui/src/generated/ArkScreen.ts | 62 ++ .../ArkScreenCaptureHandlerMaterialized.ts | 83 +++ .../src/generated/ArkScreenInterfaces.ts | 5 + .../arkui/src/generated/ArkScrollBar.ts | 74 ++ .../src/generated/ArkScrollBarInterfaces.ts | 115 +++ .../arkui/src/generated/ArkSearch.ts | 453 ++++++++++++ .../ArkSearchControllerMaterialized.ts | 98 +++ .../src/generated/ArkSearchInterfaces.ts | 280 ++++++++ .../src/generated/ArkSecurityComponent.ts | 262 +++++++ .../arkui/src/generated/ArkSlider.ts | 268 +++++++ arkoala-arkts/arkui/src/generated/ArkSpan.ts | 211 ++++++ .../ArkSslErrorHandlerMaterialized.ts | 71 ++ arkoala-arkts/arkui/src/generated/ArkStack.ts | 85 +++ .../arkui/src/generated/ArkStackInterfaces.ts | 12 + .../generated/ArkStateManagementInterfaces.ts | 1 + .../arkui/src/generated/ArkStepper.ts | 112 +++ .../src/generated/ArkStepperInterfaces.ts | 11 + .../arkui/src/generated/ArkStepperItem.ts | 91 +++ .../src/generated/ArkStepperItemInterfaces.ts | 159 +++++ .../ArkStyledStringControllerMaterialized.ts | 79 ++ ...wiperContentTransitionProxyMaterialized.ts | 146 ++++ .../arkui/src/generated/ArkSymbolSpan.ts | 125 ++++ .../src/generated/ArkSymbolSpanInterfaces.ts | 29 + ...rkTabContentTransitionProxyMaterialized.ts | 106 +++ .../ArkTabsControllerMaterialized.ts | 91 +++ .../arkui/src/generated/ArkTextArea.ts | 555 ++++++++++++++ .../ArkTextAreaControllerMaterialized.ts | 98 +++ .../src/generated/ArkTextAreaInterfaces.ts | 445 ++++++++++++ .../ArkTextBaseControllerMaterialized.ts | 98 +++ .../arkui/src/generated/ArkTextClock.ts | 172 +++++ .../ArkTextClockControllerMaterialized.ts | 71 ++ .../src/generated/ArkTextClockInterfaces.ts | 34 + .../src/generated/ArkTextCommonInterfaces.ts | 274 +++++++ ...rkTextContentControllerBaseMaterialized.ts | 81 +++ .../ArkTextEditControllerExMaterialized.ts | 100 +++ .../ArkTextInputControllerMaterialized.ts | 98 +++ .../arkui/src/generated/ArkTextTimer.ts | 153 ++++ .../ArkTextTimerControllerMaterialized.ts | 77 ++ .../src/generated/ArkTextTimerInterfaces.ts | 33 + .../arkui/src/generated/ArkTimePicker.ts | 140 ++++ .../src/generated/ArkTimePickerInterfaces.ts | 83 +++ .../arkui/src/generated/ArkToggle.ts | 113 +++ .../src/generated/ArkToggleInterfaces.ts | 194 +++++ arkoala-arkts/arkui/src/generated/ArkVideo.ts | 222 ++++++ .../ArkVideoControllerMaterialized.ts | 120 ++++ .../arkui/src/generated/ArkVideoInterfaces.ts | 344 +++++++++ .../arkui/src/generated/ArkWaterFlow.ts | 200 ++++++ .../src/generated/ArkWaterFlowInterfaces.ts | 84 +++ .../ArkWaterFlowSectionsMaterialized.ts | 138 ++++ .../ArkWebContextMenuParamMaterialized.ts | 144 ++++ .../ArkWebContextMenuResultMaterialized.ts | 95 +++ .../generated/ArkWebControllerMaterialized.ts | 274 +++++++ .../src/generated/ArkWebCookieMaterialized.ts | 71 ++ .../ArkWebKeyboardControllerMaterialized.ts | 93 +++ .../ArkWebResourceErrorMaterialized.ts | 73 ++ .../ArkWebResourceRequestMaterialized.ts | 102 +++ .../arkui/src/generated/ArkWindowScene.ts | 73 ++ .../src/generated/ArkWindowSceneInterfaces.ts | 7 + .../src/generated/ArkWithThemeInterfaces.ts | 1 + .../ArkXComponentControllerMaterialized.ts | 165 +++++ .../arkui/src/generated/ArkXcomponent.ts | 117 +++ .../src/generated/ArkXcomponentInterfaces.ts | 27 + arkoala-arkts/arkui/src/generated/common.ts | 2 + arkoala-arkts/arkui/src/generated/main.ts | 674 ++++++++++++++++++ .../peers/ArkAbilityComponentPeer.ts | 66 ++ .../generated/peers/ArkAlphabetIndexerPeer.ts | 423 +++++++++++ .../src/generated/peers/ArkAnimatorPeer.ts | 129 ++++ .../arkui/src/generated/peers/ArkBadgePeer.ts | 65 ++ .../src/generated/peers/ArkCalendarPeer.ts | 147 ++++ .../src/generated/peers/ArkCheckboxPeer.ts | 151 ++++ .../generated/peers/ArkCheckboxgroupPeer.ts | 142 ++++ .../src/generated/peers/ArkCirclePeer.ts | 64 ++ .../src/generated/peers/ArkColumnSplitPeer.ts | 76 ++ .../src/generated/peers/ArkComponent3dPeer.ts | 163 +++++ .../generated/peers/ArkContainerSpanPeer.ts | 61 ++ .../src/generated/peers/ArkCounterPeer.ts | 70 ++ .../src/generated/peers/ArkDataPanelPeer.ts | 158 ++++ .../src/generated/peers/ArkDatePickerPeer.ts | 98 +++ .../src/generated/peers/ArkDividerPeer.ts | 110 +++ .../generated/peers/ArkEffectComponentPeer.ts | 53 ++ .../src/generated/peers/ArkEllipsePeer.ts | 106 +++ .../arkui/src/generated/peers/ArkFlexPeer.ts | 75 ++ .../src/generated/peers/ArkFlowItemPeer.ts | 53 ++ .../src/generated/peers/ArkFolderStackPeer.ts | 86 +++ .../src/generated/peers/ArkFormLinkPeer.ts | 56 ++ .../arkui/src/generated/peers/ArkGaugePeer.ts | 217 ++++++ .../src/generated/peers/ArkGridColPeer.ts | 118 +++ .../src/generated/peers/ArkGridItemPeer.ts | 96 +++ .../arkui/src/generated/peers/ArkGridPeer.ts | 289 ++++++++ .../src/generated/peers/ArkGridRowPeer.ts | 75 ++ .../src/generated/peers/ArkHyperlinkPeer.ts | 118 +++ .../generated/peers/ArkImageAnimatorPeer.ts | 117 +++ .../src/generated/peers/ArkImageSpanPeer.ts | 124 ++++ .../arkui/src/generated/peers/ArkLinePeer.ts | 130 ++++ .../generated/peers/ArkLinearindicatorPeer.ts | 122 ++++ .../generated/peers/ArkListItemGroupPeer.ts | 92 +++ .../src/generated/peers/ArkListItemPeer.ts | 122 ++++ .../generated/peers/ArkLoadingProgressPeer.ts | 97 +++ .../generated/peers/ArkLocationButtonPeer.ts | 65 ++ .../src/generated/peers/ArkMarqueePeer.ts | 155 ++++ .../peers/ArkMediaCachedImagePeer.ts | 92 +++ .../generated/peers/ArkMenuItemGroupPeer.ts | 67 ++ .../src/generated/peers/ArkMenuItemPeer.ts | 200 ++++++ .../arkui/src/generated/peers/ArkMenuPeer.ts | 191 +++++ .../src/generated/peers/ArkNavRouterPeer.ts | 67 ++ .../src/generated/peers/ArkNavigatorPeer.ts | 98 +++ .../generated/peers/ArkNodeContainerPeer.ts | 57 ++ .../arkui/src/generated/peers/ArkPanelPeer.ts | 184 +++++ .../src/generated/peers/ArkPasteButtonPeer.ts | 65 ++ .../arkui/src/generated/peers/ArkPathPeer.ts | 120 ++++ .../src/generated/peers/ArkPatternLockPeer.ts | 281 ++++++++ .../generated/peers/ArkPluginComponentPeer.ts | 68 ++ .../src/generated/peers/ArkPolygonPeer.ts | 118 +++ .../src/generated/peers/ArkPolylinePeer.ts | 118 +++ .../src/generated/peers/ArkQrcodePeer.ts | 144 ++++ .../arkui/src/generated/peers/ArkRadioPeer.ts | 91 +++ .../src/generated/peers/ArkRatingPeer.ts | 92 +++ .../src/generated/peers/ArkRefreshPeer.ts | 94 +++ .../peers/ArkRelativeContainerPeer.ts | 91 +++ .../generated/peers/ArkRemoteWindowPeer.ts | 56 ++ .../src/generated/peers/ArkRichEditorPeer.ts | 318 +++++++++ .../src/generated/peers/ArkRichTextPeer.ts | 61 ++ .../src/generated/peers/ArkRootScenePeer.ts | 56 ++ .../arkui/src/generated/peers/ArkRowPeer.ts | 96 +++ .../src/generated/peers/ArkRowSplitPeer.ts | 57 ++ .../src/generated/peers/ArkSaveButtonPeer.ts | 65 ++ .../src/generated/peers/ArkScreenPeer.ts | 53 ++ .../src/generated/peers/ArkScrollBarPeer.ts | 74 ++ .../src/generated/peers/ArkSearchPeer.ts | 545 ++++++++++++++ .../peers/ArkSecurityComponentPeer.ts | 377 ++++++++++ .../src/generated/peers/ArkSliderPeer.ts | 336 +++++++++ .../arkui/src/generated/peers/ArkSpanPeer.ts | 263 +++++++ .../arkui/src/generated/peers/ArkStackPeer.ts | 77 ++ .../src/generated/peers/ArkStepperItemPeer.ts | 76 ++ .../src/generated/peers/ArkStepperPeer.ts | 94 +++ .../src/generated/peers/ArkSymbolSpanPeer.ts | 162 +++++ .../src/generated/peers/ArkTextAreaPeer.ts | 559 +++++++++++++++ .../src/generated/peers/ArkTextClockPeer.ts | 208 ++++++ .../src/generated/peers/ArkTextTimerPeer.ts | 188 +++++ .../src/generated/peers/ArkTimePickerPeer.ts | 110 +++ .../src/generated/peers/ArkTogglePeer.ts | 135 ++++ .../arkui/src/generated/peers/ArkVideoPeer.ts | 133 ++++ .../src/generated/peers/ArkWaterFlowPeer.ts | 154 ++++ .../src/generated/peers/ArkWindowScenePeer.ts | 60 ++ .../src/generated/peers/ArkXcomponentPeer.ts | 134 ++++ .../arkui/src/generated/test_utils.ts | 36 + 318 files changed, 35405 insertions(+) create mode 100644 arkoala-arkts/arkui/src/generated/Application.sts create mode 100644 arkoala-arkts/arkui/src/generated/ArkAbilityComponent.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkAbilityComponentInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkActionSheetInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkAlertDialogInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkAlphabetIndexer.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkAlphabetIndexerInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkAnimator.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkAnimatorInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkAttributeModifierMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkBadge.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkBadgeInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkCalendar.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkCalendarControllerMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkCalendarInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkCheckbox.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkCheckboxInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkCheckboxgroup.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkCheckboxgroupInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkChildrenMainSizeMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkCircle.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkCircleInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkClientAuthenticationHandlerMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkColumnSplit.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkColumnSplitInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkCommonTsEtsApiInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkComponent3d.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkComponent3dInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkConsoleMessageMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkContainerSpan.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkContainerSpanInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkContentSlotInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkContextMenuInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkControllerHandlerMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkCounter.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkCounterInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkCustomDialogControllerInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkCustomSpanMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkDataPanel.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkDataPanelInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkDataResubmissionHandlerMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkDatePicker.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkDatePickerInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkDigitIndicatorBuilder.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkDivider.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkDividerInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkDrawModifierMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkEditMenuOptionsMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkEffectComponent.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkEffectComponentInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkEllipse.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkEllipseInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkEventResultMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkFileSelectorParamMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkFileSelectorResultMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkFlex.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkFlexInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkFlowItem.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkFlowItemInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkFocusInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkFolderStack.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkFolderStackInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkForEachInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkFormLink.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkFormLinkInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkFullScreenExitHandlerMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkGauge.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkGaugeInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkGrid.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkGridCol.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkGridColInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkGridInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkGridItem.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkGridItemInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkGridRow.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkGridRowInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkHttpAuthHandlerMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkHyperlink.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkHyperlinkInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkImageAnalyzerControllerMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkImageAnimator.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkImageAnimatorInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkImageBitmapMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkImageCommonInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkImageSpan.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkImageSpanInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkIndex-fullInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkInspectorInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkIsolatedComponentInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkJsGeolocationMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkJsResultMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkLayoutManagerMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkLazyForEachInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkLine.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkLineInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkLinearIndicatorControllerMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkLinearindicator.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkLinearindicatorInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkListItem.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkListItemGroup.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkListItemGroupInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkListItemInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkLoadingProgress.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkLoadingProgressInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkLocationButton.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkLocationButtonInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkMarquee.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkMarqueeInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkMediaCachedImage.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkMediaCachedImageInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkMenu.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkMenuInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkMenuItem.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkMenuItemGroup.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkMenuItemGroupInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkMenuItemInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkMutableStyledStringMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkNavRouter.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkNavRouterInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkNavigator.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkNavigatorInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkNodeContainer.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkNodeContainerInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkPageTransitionInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkPanGestureOptionsMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkPanel.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkPanelInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkPasteButton.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkPasteButtonInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkPath.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkPath2DMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkPathInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkPatternLock.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkPatternLockControllerMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkPatternLockInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkPermissionRequestMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkPluginComponent.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkPluginComponentInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkPolygon.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkPolygonInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkPolyline.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkPolylineInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkProgressInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkProgressMaskMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkQrcode.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkQrcodeInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkRadio.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkRadioInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkRating.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkRatingInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkRefresh.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkRefreshInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkRelativeContainer.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkRelativeContainerInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkRemoteWindow.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkRemoteWindowInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkRepeatInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkRichEditor.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkRichEditorBaseControllerMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkRichEditorControllerMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkRichEditorInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkRichEditorStyledStringControllerMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkRichText.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkRichTextInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkRootScene.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkRootSceneInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkRow.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkRowInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkRowSplit.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkRowSplitInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkSaveButton.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkSaveButtonInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkScreen.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkScreenCaptureHandlerMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkScreenInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkScrollBar.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkScrollBarInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkSearch.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkSearchControllerMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkSearchInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkSecurityComponent.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkSlider.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkSpan.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkSslErrorHandlerMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkStack.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkStackInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkStateManagementInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkStepper.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkStepperInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkStepperItem.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkStepperItemInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkStyledStringControllerMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkSwiperContentTransitionProxyMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkSymbolSpan.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkSymbolSpanInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkTabContentTransitionProxyMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkTabsControllerMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkTextArea.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkTextAreaControllerMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkTextAreaInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkTextBaseControllerMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkTextClock.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkTextClockControllerMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkTextClockInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkTextCommonInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkTextContentControllerBaseMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkTextEditControllerExMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkTextInputControllerMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkTextTimer.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkTextTimerControllerMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkTextTimerInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkTimePicker.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkTimePickerInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkToggle.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkToggleInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkVideo.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkVideoControllerMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkVideoInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkWaterFlow.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkWaterFlowInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkWaterFlowSectionsMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkWebContextMenuParamMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkWebContextMenuResultMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkWebControllerMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkWebCookieMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkWebKeyboardControllerMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkWebResourceErrorMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkWebResourceRequestMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkWindowScene.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkWindowSceneInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkWithThemeInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkXComponentControllerMaterialized.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkXcomponent.ts create mode 100644 arkoala-arkts/arkui/src/generated/ArkXcomponentInterfaces.ts create mode 100644 arkoala-arkts/arkui/src/generated/common.ts create mode 100644 arkoala-arkts/arkui/src/generated/main.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkAbilityComponentPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkAlphabetIndexerPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkAnimatorPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkBadgePeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkCalendarPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkCheckboxPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkCheckboxgroupPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkCirclePeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkColumnSplitPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkComponent3dPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkContainerSpanPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkCounterPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkDataPanelPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkDatePickerPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkDividerPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkEffectComponentPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkEllipsePeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkFlexPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkFlowItemPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkFolderStackPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkFormLinkPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkGaugePeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkGridColPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkGridItemPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkGridPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkGridRowPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkHyperlinkPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkImageAnimatorPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkImageSpanPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkLinePeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkLinearindicatorPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkListItemGroupPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkListItemPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkLoadingProgressPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkLocationButtonPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkMarqueePeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkMediaCachedImagePeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkMenuItemGroupPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkMenuItemPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkMenuPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkNavRouterPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkNavigatorPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkNodeContainerPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkPanelPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkPasteButtonPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkPathPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkPatternLockPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkPluginComponentPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkPolygonPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkPolylinePeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkQrcodePeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkRadioPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkRatingPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkRefreshPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkRelativeContainerPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkRemoteWindowPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkRichEditorPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkRichTextPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkRootScenePeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkRowPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkRowSplitPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkSaveButtonPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkScreenPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkScrollBarPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkSearchPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkSecurityComponentPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkSliderPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkSpanPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkStackPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkStepperItemPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkStepperPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkSymbolSpanPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkTextAreaPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkTextClockPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkTextTimerPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkTimePickerPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkTogglePeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkVideoPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkWaterFlowPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkWindowScenePeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkXcomponentPeer.ts create mode 100644 arkoala-arkts/arkui/src/generated/test_utils.ts diff --git a/arkoala-arkts/arkui/src/generated/Application.sts b/arkoala-arkts/arkui/src/generated/Application.sts new file mode 100644 index 000000000..741037593 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/Application.sts @@ -0,0 +1,65 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { nativeModule } from "#components" +import { SerializerBase } from "@arkoala/arkui/peers/SerializerBase" +import { createSerializer } from "@arkoala/arkui/peers/Serializer" +import { wrapCallback } from "./CallbackRegistry" + +export class Application { + constructor() { + } + + private start(): Application { + return this + } + + private checkEvents(what: int) { + console.log("ARKTS: checkEvents " + what); + } + + private updateState() { + console.log("ARKTS: updateState") + } + + private render() { + console.log("ARKTS: render") + } + + enter(arg0: int, arg1: int) { + this.loopIteration(arg0, arg1) + } + + loopIteration(arg0: int, arg1: int) { + this.checkEvents(arg0) + this.updateState() + this.render() + } + + static startApplication(): Application { + return new Application().start() + } +} + +export function main() { + const app = Application.startApplication() + try { + for (let i = 0; i < 10; i++) { + app.loopIteration(i, 1) + } + } catch (e: Error) { + console.log(e.stack) + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkAbilityComponent.ts b/arkoala-arkts/arkui/src/generated/ArkAbilityComponent.ts new file mode 100644 index 000000000..4cb0d78f7 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkAbilityComponent.ts @@ -0,0 +1,82 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkAbilityComponentPeer } from "./peers/ArkAbilityComponentPeer" +import { UseEventsProperties } from "./use_properties" +import { AbilityComponentAttribute, AbilityComponentInterface } from "./ArkAbilityComponentInterfaces" +import { IMPORT_default_FROM_api_ohos_app_ability_Want, LITERAL_WantIMPORTdefaultFROMapiohosappabilityWant } from "./SyntheticDeclarations" +/** @memo:stable */ +export class ArkAbilityComponentComponent extends ArkCommonMethodComponent { + protected peer?: ArkAbilityComponentPeer + /** @memo */ + setAbilityComponentOptions(value: LITERAL_WantIMPORTdefaultFROMapiohosappabilityWant): this { + if (this.checkPriority("setAbilityComponentOptions")) { + const value_casted = value as (LITERAL_WantIMPORTdefaultFROMapiohosappabilityWant) + this.peer?.setAbilityComponentOptionsAttribute(value_casted) + return this + } + return this + } + /** @memo */ + onConnect(callback: (() => void)): this { + if (this.checkPriority("onConnect")) { + const callback_casted = callback as ((() => void)) + this.peer?.onConnectAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onDisconnect(callback: (() => void)): this { + if (this.checkPriority("onDisconnect")) { + const callback_casted = callback as ((() => void)) + this.peer?.onDisconnectAttribute(callback_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkAbilityComponent( + /** @memo */ + style: ((attributes: ArkAbilityComponentComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + value: LITERAL_WantIMPORTdefaultFROMapiohosappabilityWant +) { + const receiver = remember(() => { + return new ArkAbilityComponentComponent() + }) + NodeAttach((): ArkAbilityComponentPeer => ArkAbilityComponentPeer.create(ArkUINodeType.AbilityComponent, receiver), (_: ArkAbilityComponentPeer) => { + receiver.setAbilityComponentOptions(value) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkAbilityComponentInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkAbilityComponentInterfaces.ts new file mode 100644 index 000000000..680397463 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkAbilityComponentInterfaces.ts @@ -0,0 +1,8 @@ +import { IMPORT_default_FROM_api_ohos_app_ability_Want, LITERAL_WantIMPORTdefaultFROMapiohosappabilityWant } from "./SyntheticDeclarations" +import { KInt } from "@koalaui/interop" +export interface AbilityComponentAttribute { + onConnect(callback: (() => void)): AbilityComponentAttribute; + onDisconnect(callback: (() => void)): AbilityComponentAttribute; +} +export interface AbilityComponentInterface { +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkActionSheetInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkActionSheetInterfaces.ts new file mode 100644 index 000000000..5f3e82364 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkActionSheetInterfaces.ts @@ -0,0 +1 @@ +import { KInt } from "@koalaui/interop" \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkAlertDialogInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkAlertDialogInterfaces.ts new file mode 100644 index 000000000..7abe2b643 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkAlertDialogInterfaces.ts @@ -0,0 +1,5 @@ +import { WordBreak } from "./ArkEnumsInterfaces" +import { KInt } from "@koalaui/interop" +export interface TextStyle { + wordBreak?: WordBreak +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkAlphabetIndexer.ts b/arkoala-arkts/arkui/src/generated/ArkAlphabetIndexer.ts new file mode 100644 index 000000000..3e1ba0eb3 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkAlphabetIndexer.ts @@ -0,0 +1,314 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkAlphabetIndexerPeer } from "./peers/ArkAlphabetIndexerPeer" +import { UseEventsProperties } from "./use_properties" +import { AlphabetIndexerAttribute, IndexerAlign, OnAlphabetIndexerSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerPopupSelectCallback, AlphabetIndexerOptions, AlphabetIndexerInterface } from "./ArkAlphabetIndexerInterfaces" +import { ResourceColor, Resource, Font, Length, Position } from "./ArkUnitsInterfaces" +import { Color } from "./ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource } from "./SyntheticDeclarations" +import { BlurStyle } from "./ArkCommonInterfaces" +/** @memo:stable */ +export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { + protected peer?: ArkAlphabetIndexerPeer + /** @memo */ + setAlphabetIndexerOptions(options: AlphabetIndexerOptions): this { + if (this.checkPriority("setAlphabetIndexerOptions")) { + const options_casted = options as (AlphabetIndexerOptions) + this.peer?.setAlphabetIndexerOptionsAttribute(options_casted) + return this + } + return this + } + /** @memo */ + onSelected(callback: ((index: number) => void)): this { + if (this.checkPriority("onSelected")) { + const callback_casted = callback as (((index: number) => void)) + this.peer?.onSelectedAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + color(value: ResourceColor): this { + if (this.checkPriority("color")) { + const value_casted = value as (ResourceColor) + this.peer?.colorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + selectedColor(value: ResourceColor): this { + if (this.checkPriority("selectedColor")) { + const value_casted = value as (ResourceColor) + this.peer?.selectedColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + popupColor(value: ResourceColor): this { + if (this.checkPriority("popupColor")) { + const value_casted = value as (ResourceColor) + this.peer?.popupColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + selectedBackgroundColor(value: ResourceColor): this { + if (this.checkPriority("selectedBackgroundColor")) { + const value_casted = value as (ResourceColor) + this.peer?.selectedBackgroundColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + popupBackground(value: ResourceColor): this { + if (this.checkPriority("popupBackground")) { + const value_casted = value as (ResourceColor) + this.peer?.popupBackgroundAttribute(value_casted) + return this + } + return this + } + /** @memo */ + popupSelectedColor(value: ResourceColor): this { + if (this.checkPriority("popupSelectedColor")) { + const value_casted = value as (ResourceColor) + this.peer?.popupSelectedColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + popupUnselectedColor(value: ResourceColor): this { + if (this.checkPriority("popupUnselectedColor")) { + const value_casted = value as (ResourceColor) + this.peer?.popupUnselectedColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + popupItemBackgroundColor(value: ResourceColor): this { + if (this.checkPriority("popupItemBackgroundColor")) { + const value_casted = value as (ResourceColor) + this.peer?.popupItemBackgroundColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + usingPopup(value: boolean): this { + if (this.checkPriority("usingPopup")) { + const value_casted = value as (boolean) + this.peer?.usingPopupAttribute(value_casted) + return this + } + return this + } + /** @memo */ + selectedFont(value: Font): this { + if (this.checkPriority("selectedFont")) { + const value_casted = value as (Font) + this.peer?.selectedFontAttribute(value_casted) + return this + } + return this + } + /** @memo */ + popupFont(value: Font): this { + if (this.checkPriority("popupFont")) { + const value_casted = value as (Font) + this.peer?.popupFontAttribute(value_casted) + return this + } + return this + } + /** @memo */ + popupItemFont(value: Font): this { + if (this.checkPriority("popupItemFont")) { + const value_casted = value as (Font) + this.peer?.popupItemFontAttribute(value_casted) + return this + } + return this + } + /** @memo */ + itemSize(value: string | number): this { + if (this.checkPriority("itemSize")) { + const value_casted = value as (string | number) + this.peer?.itemSizeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + font(value: Font): this { + if (this.checkPriority("font")) { + const value_casted = value as (Font) + this.peer?.fontAttribute(value_casted) + return this + } + return this + } + /** @memo */ + alignStyle(value: IndexerAlign, offset?: Length): this { + if (this.checkPriority("alignStyle")) { + const value_casted = value as (IndexerAlign) + if ((offset) == (undefined)) { + throw new Error("Arg 'offset' is null"); + } + const offset_casted = offset as (Length) + this.peer?.alignStyleAttribute(value_casted, offset_casted) + return this + } + return this + } + /** @memo */ + onSelect(callback: OnAlphabetIndexerSelectCallback): this { + if (this.checkPriority("onSelect")) { + const callback_casted = callback as (OnAlphabetIndexerSelectCallback) + this.peer?.onSelectAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onRequestPopupData(callback: OnAlphabetIndexerRequestPopupDataCallback): this { + if (this.checkPriority("onRequestPopupData")) { + const callback_casted = callback as (OnAlphabetIndexerRequestPopupDataCallback) + this.peer?.onRequestPopupDataAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onPopupSelect(callback: OnAlphabetIndexerPopupSelectCallback): this { + if (this.checkPriority("onPopupSelect")) { + const callback_casted = callback as (OnAlphabetIndexerPopupSelectCallback) + this.peer?.onPopupSelectAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + selected(index: number): this { + if (this.checkPriority("selected")) { + const index_casted = index as (number) + this.peer?.selectedAttribute(index_casted) + return this + } + return this + } + /** @memo */ + popupPosition(value: Position): this { + if (this.checkPriority("popupPosition")) { + const value_casted = value as (Position) + this.peer?.popupPositionAttribute(value_casted) + return this + } + return this + } + /** @memo */ + autoCollapse(value: boolean): this { + if (this.checkPriority("autoCollapse")) { + const value_casted = value as (boolean) + this.peer?.autoCollapseAttribute(value_casted) + return this + } + return this + } + /** @memo */ + popupItemBorderRadius(value: number): this { + if (this.checkPriority("popupItemBorderRadius")) { + const value_casted = value as (number) + this.peer?.popupItemBorderRadiusAttribute(value_casted) + return this + } + return this + } + /** @memo */ + itemBorderRadius(value: number): this { + if (this.checkPriority("itemBorderRadius")) { + const value_casted = value as (number) + this.peer?.itemBorderRadiusAttribute(value_casted) + return this + } + return this + } + /** @memo */ + popupBackgroundBlurStyle(value: BlurStyle): this { + if (this.checkPriority("popupBackgroundBlurStyle")) { + const value_casted = value as (BlurStyle) + this.peer?.popupBackgroundBlurStyleAttribute(value_casted) + return this + } + return this + } + /** @memo */ + popupTitleBackground(value: ResourceColor): this { + if (this.checkPriority("popupTitleBackground")) { + const value_casted = value as (ResourceColor) + this.peer?.popupTitleBackgroundAttribute(value_casted) + return this + } + return this + } + /** @memo */ + enableHapticFeedback(value: boolean): this { + if (this.checkPriority("enableHapticFeedback")) { + const value_casted = value as (boolean) + this.peer?.enableHapticFeedbackAttribute(value_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkAlphabetIndexer( + /** @memo */ + style: ((attributes: ArkAlphabetIndexerComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + options: AlphabetIndexerOptions +) { + const receiver = remember(() => { + return new ArkAlphabetIndexerComponent() + }) + NodeAttach((): ArkAlphabetIndexerPeer => ArkAlphabetIndexerPeer.create(ArkUINodeType.AlphabetIndexer, receiver), (_: ArkAlphabetIndexerPeer) => { + receiver.setAlphabetIndexerOptions(options) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkAlphabetIndexerInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkAlphabetIndexerInterfaces.ts new file mode 100644 index 000000000..d57a87d8a --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkAlphabetIndexerInterfaces.ts @@ -0,0 +1,168 @@ +import { ResourceColor, Resource, Font, Length, Position } from "./ArkUnitsInterfaces" +import { Color } from "./ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource } from "./SyntheticDeclarations" +import { BlurStyle } from "./ArkCommonInterfaces" +import { KInt } from "@koalaui/interop" +/* + * Copyright (c) 2021-2023 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +/** + * @file + * @kit ArkUI + */ +/** + * indexer align property. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * indexer align property. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * indexer align property. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class IndexerAlign { + /** + * A dialog box is displayed on the right of the index bar. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * A dialog box is displayed on the right of the index bar. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * A dialog box is displayed on the right of the index bar. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Left: IndexerAlign = new IndexerAlign(0) + /** + * A dialog box is displayed on the left of the index bar. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * A dialog box is displayed on the left of the index bar. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * A dialog box is displayed on the left of the index bar. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Right: IndexerAlign = new IndexerAlign(1) + /** + * A dialog box is displayed on the start of the index bar. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly START: IndexerAlign = new IndexerAlign(2) + /** + * A dialog box is displayed on the end of the index bar. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly END: IndexerAlign = new IndexerAlign(3) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): IndexerAlign { + if ((arg0) == (IndexerAlign.Left.value)) { + return IndexerAlign.Left + } + if ((arg0) == (IndexerAlign.Right.value)) { + return IndexerAlign.Right + } + if ((arg0) == (IndexerAlign.START.value)) { + return IndexerAlign.START + } + if ((arg0) == (IndexerAlign.END.value)) { + return IndexerAlign.END + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +export interface AlphabetIndexerAttribute { + onSelected(callback: ((index: number) => void)): AlphabetIndexerAttribute; + color(value: ResourceColor): AlphabetIndexerAttribute; + selectedColor(value: ResourceColor): AlphabetIndexerAttribute; + popupColor(value: ResourceColor): AlphabetIndexerAttribute; + selectedBackgroundColor(value: ResourceColor): AlphabetIndexerAttribute; + popupBackground(value: ResourceColor): AlphabetIndexerAttribute; + popupSelectedColor(value: ResourceColor): AlphabetIndexerAttribute; + popupUnselectedColor(value: ResourceColor): AlphabetIndexerAttribute; + popupItemBackgroundColor(value: ResourceColor): AlphabetIndexerAttribute; + usingPopup(value: boolean): AlphabetIndexerAttribute; + selectedFont(value: Font): AlphabetIndexerAttribute; + popupFont(value: Font): AlphabetIndexerAttribute; + popupItemFont(value: Font): AlphabetIndexerAttribute; + itemSize(value: string | number): AlphabetIndexerAttribute; + font(value: Font): AlphabetIndexerAttribute; + alignStyle(value: IndexerAlign,offset: Length): AlphabetIndexerAttribute; + onSelect(callback: OnAlphabetIndexerSelectCallback): AlphabetIndexerAttribute; + onRequestPopupData(callback: OnAlphabetIndexerRequestPopupDataCallback): AlphabetIndexerAttribute; + onPopupSelect(callback: OnAlphabetIndexerPopupSelectCallback): AlphabetIndexerAttribute; + selected(index: number): AlphabetIndexerAttribute; + popupPosition(value: Position): AlphabetIndexerAttribute; + autoCollapse(value: boolean): AlphabetIndexerAttribute; + popupItemBorderRadius(value: number): AlphabetIndexerAttribute; + itemBorderRadius(value: number): AlphabetIndexerAttribute; + popupBackgroundBlurStyle(value: BlurStyle): AlphabetIndexerAttribute; + popupTitleBackground(value: ResourceColor): AlphabetIndexerAttribute; + enableHapticFeedback(value: boolean): AlphabetIndexerAttribute; +} +export interface AlphabetIndexerInterface { +} +export declare type OnAlphabetIndexerSelectCallback = ((index: number) => void) +export declare type OnAlphabetIndexerRequestPopupDataCallback = ((index: number) => Array) +export declare type OnAlphabetIndexerPopupSelectCallback = ((index: number) => void) +export interface AlphabetIndexerOptions { + arrayValue: Array + selected: number +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkAnimator.ts b/arkoala-arkts/arkui/src/generated/ArkAnimator.ts new file mode 100644 index 000000000..05588b6be --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkAnimator.ts @@ -0,0 +1,190 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkAnimatorPeer } from "./peers/ArkAnimatorPeer" +import { UseEventsProperties } from "./use_properties" +import { AnimationStatus, Curve, FillMode, PlayMode } from "./ArkEnumsInterfaces" +import { AnimatorAttribute, SpringMotion, FrictionMotion, ScrollMotion, AnimatorInterface, SpringProp } from "./ArkAnimatorInterfaces" +/** @memo:stable */ +export class ArkAnimatorComponent extends ArkCommonMethodComponent { + protected peer?: ArkAnimatorPeer + /** @memo */ + setAnimatorOptions(value: string): this { + if (this.checkPriority("setAnimatorOptions")) { + const value_casted = value as (string) + this.peer?.setAnimatorOptionsAttribute(value_casted) + return this + } + return this + } + /** @memo */ + state(value: AnimationStatus): this { + if (this.checkPriority("state")) { + const value_casted = value as (AnimationStatus) + this.peer?.stateAttribute(value_casted) + return this + } + return this + } + /** @memo */ + duration(value: number): this { + if (this.checkPriority("duration")) { + const value_casted = value as (number) + this.peer?.durationAttribute(value_casted) + return this + } + return this + } + /** @memo */ + curve(value: Curve): this { + if (this.checkPriority("curve")) { + const value_casted = value as (Curve) + this.peer?.curveAttribute(value_casted) + return this + } + return this + } + /** @memo */ + delay(value: number): this { + if (this.checkPriority("delay")) { + const value_casted = value as (number) + this.peer?.delayAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fillMode(value: FillMode): this { + if (this.checkPriority("fillMode")) { + const value_casted = value as (FillMode) + this.peer?.fillModeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + iterations(value: number): this { + if (this.checkPriority("iterations")) { + const value_casted = value as (number) + this.peer?.iterationsAttribute(value_casted) + return this + } + return this + } + /** @memo */ + playMode(value: PlayMode): this { + if (this.checkPriority("playMode")) { + const value_casted = value as (PlayMode) + this.peer?.playModeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + motion(value: SpringMotion | FrictionMotion | ScrollMotion): this { + if (this.checkPriority("motion")) { + const value_casted = value as (SpringMotion | FrictionMotion | ScrollMotion) + this.peer?.motionAttribute(value_casted) + return this + } + return this + } + /** @memo */ + onStart(event: (() => void)): this { + if (this.checkPriority("onStart")) { + const event_casted = event as ((() => void)) + this.peer?.onStartAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onPause(event: (() => void)): this { + if (this.checkPriority("onPause")) { + const event_casted = event as ((() => void)) + this.peer?.onPauseAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onRepeat(event: (() => void)): this { + if (this.checkPriority("onRepeat")) { + const event_casted = event as ((() => void)) + this.peer?.onRepeatAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onCancel(event: (() => void)): this { + if (this.checkPriority("onCancel")) { + const event_casted = event as ((() => void)) + this.peer?.onCancelAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onFinish(event: (() => void)): this { + if (this.checkPriority("onFinish")) { + const event_casted = event as ((() => void)) + this.peer?.onFinishAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onFrame(event: ((value: number) => void)): this { + if (this.checkPriority("onFrame")) { + const event_casted = event as (((value: number) => void)) + this.peer?.onFrameAttribute(event_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkAnimator( + /** @memo */ + style: ((attributes: ArkAnimatorComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + value: string +) { + const receiver = remember(() => { + return new ArkAnimatorComponent() + }) + NodeAttach((): ArkAnimatorPeer => ArkAnimatorPeer.create(ArkUINodeType.Animator, receiver), (_: ArkAnimatorPeer) => { + receiver.setAnimatorOptions(value) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkAnimatorInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkAnimatorInterfaces.ts new file mode 100644 index 000000000..a50f9fee6 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkAnimatorInterfaces.ts @@ -0,0 +1,28 @@ +import { AnimationStatus, Curve, FillMode, PlayMode } from "./ArkEnumsInterfaces" +import { KInt } from "@koalaui/interop" +export interface AnimatorAttribute { + state(value: AnimationStatus): AnimatorAttribute; + duration(value: number): AnimatorAttribute; + curve(value: Curve): AnimatorAttribute; + delay(value: number): AnimatorAttribute; + fillMode(value: FillMode): AnimatorAttribute; + iterations(value: number): AnimatorAttribute; + playMode(value: PlayMode): AnimatorAttribute; + motion(value: SpringMotion | FrictionMotion | ScrollMotion): AnimatorAttribute; + onStart(event: (() => void)): AnimatorAttribute; + onPause(event: (() => void)): AnimatorAttribute; + onRepeat(event: (() => void)): AnimatorAttribute; + onCancel(event: (() => void)): AnimatorAttribute; + onFinish(event: (() => void)): AnimatorAttribute; + onFrame(event: ((value: number) => void)): AnimatorAttribute; +} +export interface AnimatorInterface { +} +export declare class SpringMotion { +} +export declare class SpringProp { +} +export declare class FrictionMotion { +} +export declare class ScrollMotion { +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkAttributeModifierMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkAttributeModifierMaterialized.ts new file mode 100644 index 000000000..e306288f9 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkAttributeModifierMaterialized.ts @@ -0,0 +1,110 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { INTERFACE_AttributeModifier } from "./SyntheticDeclarations" +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class AttributeModifier implements INTERFACE_AttributeModifier { + peer?: Finalizable + static ctor(): KPointer { + const retval = NativeModule._AttributeModifier_ctor() + return retval + } + constructor() { + const ctorPtr = AttributeModifier.ctor() + this.peer = new Finalizable(ctorPtr, AttributeModifier.getFinalizer()) + } + static getFinalizer(): KPointer { + return NativeModule._AttributeModifier_getFinalizer() + } + applyNormalAttribute(instance: T): void { + const instance_casted = instance as (T) + this.applyNormalAttribute_serialize(instance_casted) + } + applyPressedAttribute(instance: T): void { + const instance_casted = instance as (T) + this.applyPressedAttribute_serialize(instance_casted) + } + applyFocusedAttribute(instance: T): void { + const instance_casted = instance as (T) + this.applyFocusedAttribute_serialize(instance_casted) + } + applyDisabledAttribute(instance: T): void { + const instance_casted = instance as (T) + this.applyDisabledAttribute_serialize(instance_casted) + } + applySelectedAttribute(instance: T): void { + const instance_casted = instance as (T) + this.applySelectedAttribute_serialize(instance_casted) + } + private applyNormalAttribute_serialize(instance: T): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeCustomObject("T", (instance as Object)) + NativeModule._AttributeModifier_applyNormalAttribute(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private applyPressedAttribute_serialize(instance: T): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeCustomObject("T", (instance as Object)) + NativeModule._AttributeModifier_applyPressedAttribute(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private applyFocusedAttribute_serialize(instance: T): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeCustomObject("T", (instance as Object)) + NativeModule._AttributeModifier_applyFocusedAttribute(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private applyDisabledAttribute_serialize(instance: T): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeCustomObject("T", (instance as Object)) + NativeModule._AttributeModifier_applyDisabledAttribute(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private applySelectedAttribute_serialize(instance: T): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeCustomObject("T", (instance as Object)) + NativeModule._AttributeModifier_applySelectedAttribute(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkBadge.ts b/arkoala-arkts/arkui/src/generated/ArkBadge.ts new file mode 100644 index 000000000..892413603 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkBadge.ts @@ -0,0 +1,74 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkBadgePeer } from "./peers/ArkBadgePeer" +import { BadgeAttribute, BadgeParamWithNumber, BadgeParamWithString, BadgeInterface, BadgeParam, BadgePosition, BadgeStyle } from "./ArkBadgeInterfaces" +import { Position, ResourceColor, Resource, Length } from "./ArkUnitsInterfaces" +import { Color, FontWeight } from "./ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource } from "./SyntheticDeclarations" +/** @memo:stable */ +export class ArkBadgeComponent extends ArkCommonMethodComponent { + protected peer?: ArkBadgePeer + /** @memo */ + setBadgeOptions(value: BadgeParamWithNumber | BadgeParamWithString): this { + if (this.checkPriority("setBadgeOptions")) { + const value_type = runtimeType(value) + if ((TypeChecker.isBadgeParamWithNumber(value, true, true, false, false))) { + const value_casted = value as (BadgeParamWithNumber) + this.peer?.setBadgeOptions0Attribute(value_casted) + return this + } + if ((TypeChecker.isBadgeParamWithString(value, true, true, false))) { + const value_casted = value as (BadgeParamWithString) + this.peer?.setBadgeOptions1Attribute(value_casted) + return this + } + throw new Error("Can not select appropriate overload") + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkBadge( + /** @memo */ + style: ((attributes: ArkBadgeComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + value: BadgeParamWithNumber | BadgeParamWithString +) { + const receiver = remember(() => { + return new ArkBadgeComponent() + }) + NodeAttach((): ArkBadgePeer => ArkBadgePeer.create(ArkUINodeType.Badge, receiver), (_: ArkBadgePeer) => { + receiver.setBadgeOptions(value) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkBadgeInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkBadgeInterfaces.ts new file mode 100644 index 000000000..c545cbe9c --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkBadgeInterfaces.ts @@ -0,0 +1,195 @@ +import { Position, ResourceColor, Resource, Length } from "./ArkUnitsInterfaces" +import { Color, FontWeight } from "./ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource } from "./SyntheticDeclarations" +import { KInt } from "@koalaui/interop" +/* + * Copyright (c) 2021-2023 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +/** + * @file + * @kit ArkUI + */ +/** + * Defines the badge position property. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Defines the badge position property. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Defines the badge position property. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Defines the badge position property. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ +export class BadgePosition { + /** + * The dot is displayed vertically centered on the right. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * The dot is displayed vertically centered on the right. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * The dot is displayed vertically centered on the right. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * The dot is displayed vertically centered on the right. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly RightTop: BadgePosition = new BadgePosition(0) + /** + * Dots are displayed in the upper right corner. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Dots are displayed in the upper right corner. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Dots are displayed in the upper right corner. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Dots are displayed in the upper right corner. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Right: BadgePosition = new BadgePosition(1) + /** + * The dot is displayed in the left vertical center. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * The dot is displayed in the left vertical center. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * The dot is displayed in the left vertical center. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * The dot is displayed in the left vertical center. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Left: BadgePosition = new BadgePosition(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): BadgePosition { + if ((arg0) == (BadgePosition.RightTop.value)) { + return BadgePosition.RightTop + } + if ((arg0) == (BadgePosition.Right.value)) { + return BadgePosition.Right + } + if ((arg0) == (BadgePosition.Left.value)) { + return BadgePosition.Left + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +export interface BadgeAttribute { +} +export interface BadgeInterface { +} +export interface BadgeParamWithNumber { + position?: BadgePosition | Position + style: BadgeStyle + count: number + maxCount?: number +} +export interface BadgeParam { + position?: BadgePosition | Position + style: BadgeStyle +} +export interface BadgeStyle { + color?: ResourceColor + fontSize?: number | string + badgeSize?: number | string + badgeColor?: ResourceColor + borderColor?: ResourceColor + borderWidth?: Length + fontWeight?: number | FontWeight | string +} +export interface BadgeParamWithString { + position?: BadgePosition | Position + style: BadgeStyle + value: string +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkCalendar.ts b/arkoala-arkts/arkui/src/generated/ArkCalendar.ts new file mode 100644 index 000000000..3630e6b90 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkCalendar.ts @@ -0,0 +1,183 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCalendarPeer } from "./peers/ArkCalendarPeer" +import { UseEventsProperties } from "./use_properties" +import { CalendarAttribute, CurrentDayStyle, NonCurrentDayStyle, TodayStyle, WeekStyle, WorkStateStyle, CalendarSelectedDate, CalendarRequestedData, MonthData, CalendarInterface, CalendarDay } from "./ArkCalendarInterfaces" +import { Axis, Color } from "./ArkEnumsInterfaces" +import { LITERAL_YearNumberMonthNumberDayNumber, LITERAL_DateLITERALYearNumberMonthNumberDayNumberCurrentDataMonthDataPreDataMonthDataNextDataMonthDataControllerCalendarController, IMPORT_Resource_FROM_api_global_resource } from "./SyntheticDeclarations" +import { CalendarController } from "./ArkCalendarControllerMaterialized" +import { ResourceColor, Resource } from "./ArkUnitsInterfaces" +/** @memo:stable */ +export class ArkCalendarComponent extends ComponentBase { + protected peer?: ArkCalendarPeer + /** @memo */ + setCalendarOptions(value: LITERAL_DateLITERALYearNumberMonthNumberDayNumberCurrentDataMonthDataPreDataMonthDataNextDataMonthDataControllerCalendarController): this { + if (this.checkPriority("setCalendarOptions")) { + const value_casted = value as (LITERAL_DateLITERALYearNumberMonthNumberDayNumberCurrentDataMonthDataPreDataMonthDataNextDataMonthDataControllerCalendarController) + this.peer?.setCalendarOptionsAttribute(value_casted) + return this + } + return this + } + /** @memo */ + showLunar(value: boolean): this { + if (this.checkPriority("showLunar")) { + const value_casted = value as (boolean) + this.peer?.showLunarAttribute(value_casted) + return this + } + return this + } + /** @memo */ + showHoliday(value: boolean): this { + if (this.checkPriority("showHoliday")) { + const value_casted = value as (boolean) + this.peer?.showHolidayAttribute(value_casted) + return this + } + return this + } + /** @memo */ + needSlide(value: boolean): this { + if (this.checkPriority("needSlide")) { + const value_casted = value as (boolean) + this.peer?.needSlideAttribute(value_casted) + return this + } + return this + } + /** @memo */ + startOfWeek(value: number): this { + if (this.checkPriority("startOfWeek")) { + const value_casted = value as (number) + this.peer?.startOfWeekAttribute(value_casted) + return this + } + return this + } + /** @memo */ + offDays(value: number): this { + if (this.checkPriority("offDays")) { + const value_casted = value as (number) + this.peer?.offDaysAttribute(value_casted) + return this + } + return this + } + /** @memo */ + direction(value: Axis): this { + if (this.checkPriority("direction")) { + const value_casted = value as (Axis) + this.peer?.directionAttribute(value_casted) + return this + } + return this + } + /** @memo */ + currentDayStyle(value: CurrentDayStyle): this { + if (this.checkPriority("currentDayStyle")) { + const value_casted = value as (CurrentDayStyle) + this.peer?.currentDayStyleAttribute(value_casted) + return this + } + return this + } + /** @memo */ + nonCurrentDayStyle(value: NonCurrentDayStyle): this { + if (this.checkPriority("nonCurrentDayStyle")) { + const value_casted = value as (NonCurrentDayStyle) + this.peer?.nonCurrentDayStyleAttribute(value_casted) + return this + } + return this + } + /** @memo */ + todayStyle(value: TodayStyle): this { + if (this.checkPriority("todayStyle")) { + const value_casted = value as (TodayStyle) + this.peer?.todayStyleAttribute(value_casted) + return this + } + return this + } + /** @memo */ + weekStyle(value: WeekStyle): this { + if (this.checkPriority("weekStyle")) { + const value_casted = value as (WeekStyle) + this.peer?.weekStyleAttribute(value_casted) + return this + } + return this + } + /** @memo */ + workStateStyle(value: WorkStateStyle): this { + if (this.checkPriority("workStateStyle")) { + const value_casted = value as (WorkStateStyle) + this.peer?.workStateStyleAttribute(value_casted) + return this + } + return this + } + /** @memo */ + onSelectChange(event: ((event: CalendarSelectedDate) => void)): this { + if (this.checkPriority("onSelectChange")) { + const event_casted = event as (((event: CalendarSelectedDate) => void)) + this.peer?.onSelectChangeAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onRequestData(event: ((event: CalendarRequestedData) => void)): this { + if (this.checkPriority("onRequestData")) { + const event_casted = event as (((event: CalendarRequestedData) => void)) + this.peer?.onRequestDataAttribute(event_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkCalendar( + /** @memo */ + style: ((attributes: ArkCalendarComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + value: LITERAL_DateLITERALYearNumberMonthNumberDayNumberCurrentDataMonthDataPreDataMonthDataNextDataMonthDataControllerCalendarController +) { + const receiver = remember(() => { + return new ArkCalendarComponent() + }) + NodeAttach((): ArkCalendarPeer => ArkCalendarPeer.create(ArkUINodeType.Calendar, receiver), (_: ArkCalendarPeer) => { + receiver.setCalendarOptions(value) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkCalendarControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkCalendarControllerMaterialized.ts new file mode 100644 index 000000000..c913c2bfe --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkCalendarControllerMaterialized.ts @@ -0,0 +1,81 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { LITERAL_YearNumberMonthNumberDayNumber } from "./SyntheticDeclarations" +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class CalendarController { + peer?: Finalizable + static ctor(): KPointer { + const retval = NativeModule._CalendarController_ctor() + return retval + } + constructor() { + const ctorPtr = CalendarController.ctor() + this.peer = new Finalizable(ctorPtr, CalendarController.getFinalizer()) + } + static getFinalizer(): KPointer { + return NativeModule._CalendarController_getFinalizer() + } + backToToday(): void { + this.backToToday_serialize() + } + goTo(value: LITERAL_YearNumberMonthNumberDayNumber): void { + const value_casted = value as (LITERAL_YearNumberMonthNumberDayNumber) + this.goTo_serialize(value_casted) + } + private backToToday_serialize(): void { + NativeModule._CalendarController_backToToday(this.peer!.ptr); + } + private goTo_serialize(value: LITERAL_YearNumberMonthNumberDayNumber): void { + const thisSerializer = SerializerBase.hold(createSerializer) + const value_year = value.year + thisSerializer.writeNumber(value_year) + const value_month = value.month + thisSerializer.writeNumber(value_month) + const value_day = value.day + thisSerializer.writeNumber(value_day) + NativeModule._CalendarController_goTo(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkCalendarInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkCalendarInterfaces.ts new file mode 100644 index 000000000..e93a507c4 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkCalendarInterfaces.ts @@ -0,0 +1,107 @@ +import { Axis, Color } from "./ArkEnumsInterfaces" +import { LITERAL_YearNumberMonthNumberDayNumber, LITERAL_DateLITERALYearNumberMonthNumberDayNumberCurrentDataMonthDataPreDataMonthDataNextDataMonthDataControllerCalendarController, IMPORT_Resource_FROM_api_global_resource } from "./SyntheticDeclarations" +import { CalendarController } from "./ArkCalendarControllerMaterialized" +import { ResourceColor, Resource } from "./ArkUnitsInterfaces" +import { KInt } from "@koalaui/interop" +export interface CalendarAttribute { + showLunar(value: boolean): CalendarAttribute; + showHoliday(value: boolean): CalendarAttribute; + needSlide(value: boolean): CalendarAttribute; + startOfWeek(value: number): CalendarAttribute; + offDays(value: number): CalendarAttribute; + direction(value: Axis): CalendarAttribute; + currentDayStyle(value: CurrentDayStyle): CalendarAttribute; + nonCurrentDayStyle(value: NonCurrentDayStyle): CalendarAttribute; + todayStyle(value: TodayStyle): CalendarAttribute; + weekStyle(value: WeekStyle): CalendarAttribute; + workStateStyle(value: WorkStateStyle): CalendarAttribute; + onSelectChange(event: ((event: CalendarSelectedDate) => void)): CalendarAttribute; + onRequestData(event: ((event: CalendarRequestedData) => void)): CalendarAttribute; +} +export interface CalendarInterface { +} +export interface CurrentDayStyle { + dayColor?: ResourceColor + lunarColor?: ResourceColor + markLunarColor?: ResourceColor + dayFontSize?: number + lunarDayFontSize?: number + dayHeight?: number + dayWidth?: number + gregorianCalendarHeight?: number + dayYAxisOffset?: number + lunarDayYAxisOffset?: number + underscoreXAxisOffset?: number + underscoreYAxisOffset?: number + scheduleMarkerXAxisOffset?: number + scheduleMarkerYAxisOffset?: number + colSpace?: number + dailyFiveRowSpace?: number + dailySixRowSpace?: number + lunarHeight?: number + underscoreWidth?: number + underscoreLength?: number + scheduleMarkerRadius?: number + boundaryRowOffset?: number + boundaryColOffset?: number +} +export interface NonCurrentDayStyle { + nonCurrentMonthDayColor?: ResourceColor + nonCurrentMonthLunarColor?: ResourceColor + nonCurrentMonthWorkDayMarkColor?: ResourceColor + nonCurrentMonthOffDayMarkColor?: ResourceColor +} +export interface TodayStyle { + focusedDayColor?: ResourceColor + focusedLunarColor?: ResourceColor + focusedAreaBackgroundColor?: ResourceColor + focusedAreaRadius?: number +} +export interface WeekStyle { + weekColor?: ResourceColor + weekendDayColor?: ResourceColor + weekendLunarColor?: ResourceColor + weekFontSize?: number + weekHeight?: number + weekWidth?: number + weekAndDayRowSpace?: number +} +export interface WorkStateStyle { + workDayMarkColor?: ResourceColor + offDayMarkColor?: ResourceColor + workDayMarkSize?: number + offDayMarkSize?: number + workStateWidth?: number + workStateHorizontalMovingDistance?: number + workStateVerticalMovingDistance?: number +} +export interface CalendarSelectedDate { + year: number + month: number + day: number +} +export interface CalendarRequestedData { + year: number + month: number + currentYear: number + currentMonth: number + monthState: number +} +export interface MonthData { + year: number + month: number + data: CalendarDay[] +} +export interface CalendarDay { + index: number + lunarMonth: string + lunarDay: string + dayMark: string + dayMarkValue: string + year: number + month: number + day: number + isFirstOfLunar: boolean + hasSchedule: boolean + markLunarDay: boolean +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkCheckbox.ts b/arkoala-arkts/arkui/src/generated/ArkCheckbox.ts new file mode 100644 index 000000000..79ed3b48a --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkCheckbox.ts @@ -0,0 +1,134 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkCheckboxPeer } from "./peers/ArkCheckboxPeer" +import { UseEventsProperties } from "./use_properties" +import { CheckboxAttribute, OnCheckboxChangeCallback, CheckBoxConfiguration, CheckboxOptions, CheckboxInterface } from "./ArkCheckboxInterfaces" +import { ResourceColor, Resource, MarkStyle } from "./ArkUnitsInterfaces" +import { Color, CheckBoxShape } from "./ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource } from "./SyntheticDeclarations" +import { ContentModifier } from "./ConflictedDeclarations" +import { CommonConfiguration, Callback, CustomBuilder } from "./ArkCommonInterfaces" +/** @memo:stable */ +export class ArkCheckboxComponent extends ArkCommonMethodComponent { + protected peer?: ArkCheckboxPeer + /** @memo */ + setCheckboxOptions(options?: CheckboxOptions): this { + if (this.checkPriority("setCheckboxOptions")) { + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (CheckboxOptions) + this.peer?.setCheckboxOptionsAttribute(options_casted) + return this + } + return this + } + /** @memo */ + select(value: boolean): this { + if (this.checkPriority("select")) { + const value_casted = value as (boolean) + this.peer?.selectAttribute(value_casted) + return this + } + return this + } + /** @memo */ + selectedColor(value: ResourceColor): this { + if (this.checkPriority("selectedColor")) { + const value_casted = value as (ResourceColor) + this.peer?.selectedColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + shape(value: CheckBoxShape): this { + if (this.checkPriority("shape")) { + const value_casted = value as (CheckBoxShape) + this.peer?.shapeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + unselectedColor(value: ResourceColor): this { + if (this.checkPriority("unselectedColor")) { + const value_casted = value as (ResourceColor) + this.peer?.unselectedColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + mark(value: MarkStyle): this { + if (this.checkPriority("mark")) { + const value_casted = value as (MarkStyle) + this.peer?.markAttribute(value_casted) + return this + } + return this + } + /** @memo */ + onChange(callback: OnCheckboxChangeCallback): this { + if (this.checkPriority("onChange")) { + const callback_casted = callback as (OnCheckboxChangeCallback) + this.peer?.onChangeAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + contentModifier(modifier: ContentModifier): this { + if (this.checkPriority("contentModifier")) { + const modifier_casted = modifier as (ContentModifier) + this.peer?.contentModifierAttribute(modifier_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkCheckbox( + /** @memo */ + style: ((attributes: ArkCheckboxComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + options?: CheckboxOptions +) { + const receiver = remember(() => { + return new ArkCheckboxComponent() + }) + NodeAttach((): ArkCheckboxPeer => ArkCheckboxPeer.create(ArkUINodeType.Checkbox, receiver), (_: ArkCheckboxPeer) => { + receiver.setCheckboxOptions(options) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkCheckboxInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkCheckboxInterfaces.ts new file mode 100644 index 000000000..0ba080ea4 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkCheckboxInterfaces.ts @@ -0,0 +1,30 @@ +import { ResourceColor, Resource, MarkStyle } from "./ArkUnitsInterfaces" +import { Color, CheckBoxShape } from "./ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource } from "./SyntheticDeclarations" +import { ContentModifier } from "./ConflictedDeclarations" +import { CommonConfiguration, Callback, CustomBuilder } from "./ArkCommonInterfaces" +import { KInt } from "@koalaui/interop" +export interface CheckboxAttribute { + select(value: boolean): CheckboxAttribute; + selectedColor(value: ResourceColor): CheckboxAttribute; + shape(value: CheckBoxShape): CheckboxAttribute; + unselectedColor(value: ResourceColor): CheckboxAttribute; + mark(value: MarkStyle): CheckboxAttribute; + onChange(callback: OnCheckboxChangeCallback): CheckboxAttribute; + contentModifier(modifier: ContentModifier): CheckboxAttribute; +} +export interface CheckboxInterface { +} +export declare type OnCheckboxChangeCallback = ((value: boolean) => void) +export interface CheckBoxConfiguration { + enabled: boolean + contentModifier: ContentModifier + name: string + selected: boolean + triggerChange: Callback +} +export interface CheckboxOptions { + name?: string + group?: string + indicatorBuilder?: CustomBuilder +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkCheckboxgroup.ts b/arkoala-arkts/arkui/src/generated/ArkCheckboxgroup.ts new file mode 100644 index 000000000..caf0f31fb --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkCheckboxgroup.ts @@ -0,0 +1,123 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkCheckboxGroupPeer } from "./peers/ArkCheckboxgroupPeer" +import { UseEventsProperties } from "./use_properties" +import { CheckboxGroupAttribute, OnCheckboxGroupChangeCallback, CheckboxGroupResult, CheckboxGroupOptions, CheckboxGroupInterface, SelectStatus } from "./ArkCheckboxgroupInterfaces" +import { ResourceColor, Resource, MarkStyle } from "./ArkUnitsInterfaces" +import { Color, CheckBoxShape } from "./ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource } from "./SyntheticDeclarations" +/** @memo:stable */ +export class ArkCheckboxGroupComponent extends ArkCommonMethodComponent { + protected peer?: ArkCheckboxGroupPeer + /** @memo */ + setCheckboxGroupOptions(options?: CheckboxGroupOptions): this { + if (this.checkPriority("setCheckboxGroupOptions")) { + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (CheckboxGroupOptions) + this.peer?.setCheckboxGroupOptionsAttribute(options_casted) + return this + } + return this + } + /** @memo */ + selectAll(value: boolean): this { + if (this.checkPriority("selectAll")) { + const value_casted = value as (boolean) + this.peer?.selectAllAttribute(value_casted) + return this + } + return this + } + /** @memo */ + selectedColor(value: ResourceColor): this { + if (this.checkPriority("selectedColor")) { + const value_casted = value as (ResourceColor) + this.peer?.selectedColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + unselectedColor(value: ResourceColor): this { + if (this.checkPriority("unselectedColor")) { + const value_casted = value as (ResourceColor) + this.peer?.unselectedColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + mark(value: MarkStyle): this { + if (this.checkPriority("mark")) { + const value_casted = value as (MarkStyle) + this.peer?.markAttribute(value_casted) + return this + } + return this + } + /** @memo */ + onChange(callback: OnCheckboxGroupChangeCallback): this { + if (this.checkPriority("onChange")) { + const callback_casted = callback as (OnCheckboxGroupChangeCallback) + this.peer?.onChangeAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + checkboxShape(value: CheckBoxShape): this { + if (this.checkPriority("checkboxShape")) { + const value_casted = value as (CheckBoxShape) + this.peer?.checkboxShapeAttribute(value_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkCheckboxGroup( + /** @memo */ + style: ((attributes: ArkCheckboxGroupComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + options?: CheckboxGroupOptions +) { + const receiver = remember(() => { + return new ArkCheckboxGroupComponent() + }) + NodeAttach((): ArkCheckboxGroupPeer => ArkCheckboxGroupPeer.create(ArkUINodeType.CheckboxGroup, receiver), (_: ArkCheckboxGroupPeer) => { + receiver.setCheckboxGroupOptions(options) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkCheckboxgroupInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkCheckboxgroupInterfaces.ts new file mode 100644 index 000000000..d984485c0 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkCheckboxgroupInterfaces.ts @@ -0,0 +1,185 @@ +import { ResourceColor, Resource, MarkStyle } from "./ArkUnitsInterfaces" +import { Color, CheckBoxShape } from "./ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource } from "./SyntheticDeclarations" +import { KInt } from "@koalaui/interop" +/* + * Copyright (c) 2021-2023 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +/** + * @file + * @kit ArkUI + */ +/** + * CheckboxGroup SelectStatus + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * CheckboxGroup SelectStatus + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * CheckboxGroup SelectStatus + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * CheckboxGroup SelectStatus + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ +export class SelectStatus { + /** + * All checkboxes are selected. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * All checkboxes are selected. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * All checkboxes are selected. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * All checkboxes are selected. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly All: SelectStatus = new SelectStatus(0) + /** + * Part of the checkbox is selected. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * Part of the checkbox is selected. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Part of the checkbox is selected. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Part of the checkbox is selected. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Part: SelectStatus = new SelectStatus(1) + /** + * None of the checkbox is selected. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * None of the checkbox is selected. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * None of the checkbox is selected. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * None of the checkbox is selected. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly None: SelectStatus = new SelectStatus(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): SelectStatus { + if ((arg0) == (SelectStatus.All.value)) { + return SelectStatus.All + } + if ((arg0) == (SelectStatus.Part.value)) { + return SelectStatus.Part + } + if ((arg0) == (SelectStatus.None.value)) { + return SelectStatus.None + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +export interface CheckboxGroupAttribute { + selectAll(value: boolean): CheckboxGroupAttribute; + selectedColor(value: ResourceColor): CheckboxGroupAttribute; + unselectedColor(value: ResourceColor): CheckboxGroupAttribute; + mark(value: MarkStyle): CheckboxGroupAttribute; + onChange(callback: OnCheckboxGroupChangeCallback): CheckboxGroupAttribute; + checkboxShape(value: CheckBoxShape): CheckboxGroupAttribute; +} +export interface CheckboxGroupInterface { +} +export declare type OnCheckboxGroupChangeCallback = ((value: CheckboxGroupResult) => void) +export interface CheckboxGroupResult { + name: Array + status: SelectStatus +} +export interface CheckboxGroupOptions { + group?: string +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkChildrenMainSizeMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkChildrenMainSizeMaterialized.ts new file mode 100644 index 000000000..bdcd83b2c --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkChildrenMainSizeMaterialized.ts @@ -0,0 +1,109 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class ChildrenMainSize { + peer?: Finalizable + static ctor(childDefaultSize: number): KPointer { + const retval = NativeModule._ChildrenMainSize_ctor(childDefaultSize) + return retval + } + constructor(childDefaultSize?: number) { + if (((childDefaultSize) !== (undefined))) { + const ctorPtr = ChildrenMainSize.ctor(childDefaultSize) + this.peer = new Finalizable(ctorPtr, ChildrenMainSize.getFinalizer()) + } + } + static getFinalizer(): KPointer { + return NativeModule._ChildrenMainSize_getFinalizer() + } + splice(start: number, deleteCount?: number, childrenSize?: Array): void { + const start_casted = start as (number) + if ((deleteCount) == (undefined)) { + throw new Error("Arg 'deleteCount' is null"); + } + const deleteCount_casted = deleteCount as (number) + if ((childrenSize) == (undefined)) { + throw new Error("Arg 'childrenSize' is null"); + } + const childrenSize_casted = childrenSize as (Array) + this.splice_serialize(start_casted, deleteCount_casted, childrenSize_casted) + } + update(index: number, childSize: number): void { + const index_casted = index as (number) + const childSize_casted = childSize as (number) + this.update_serialize(index_casted, childSize_casted) + } + private splice_serialize(start: number, deleteCount?: number, childrenSize?: Array): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let deleteCount_type = RuntimeType.UNDEFINED + if (deleteCount != undefined) { + deleteCount_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(deleteCount_type as int32) + if ((RuntimeType.UNDEFINED) != (deleteCount_type)) { + const deleteCount_value = deleteCount! + thisSerializer.writeNumber(deleteCount_value) + } + let childrenSize_type = RuntimeType.UNDEFINED + if (childrenSize != undefined) { + childrenSize_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(childrenSize_type as int32) + if ((RuntimeType.UNDEFINED) != (childrenSize_type)) { + const childrenSize_value = childrenSize! + thisSerializer.writeInt8(runtimeType(childrenSize_value) as int32) + thisSerializer.writeInt32(childrenSize_value.length as int32) + for (let i = 0; i < childrenSize_value.length; i++) { + const childrenSize_value_element = childrenSize_value[i] + thisSerializer.writeNumber(childrenSize_value_element) + } + } + NativeModule._ChildrenMainSize_splice(this.peer!.ptr, start, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private update_serialize(index: number, childSize: number): void { + NativeModule._ChildrenMainSize_update(this.peer!.ptr, index, childSize); + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkCircle.ts b/arkoala-arkts/arkui/src/generated/ArkCircle.ts new file mode 100644 index 000000000..f2904099f --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkCircle.ts @@ -0,0 +1,65 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonShapeMethodComponent } from "./ArkCommon" +import { ArkCirclePeer } from "./peers/ArkCirclePeer" +import { CircleAttribute, CircleOptions, CircleInterface } from "./ArkCircleInterfaces" +/** @memo:stable */ +export class ArkCircleComponent extends ArkCommonShapeMethodComponent { + protected peer?: ArkCirclePeer + /** @memo */ + setCircleOptions(value?: CircleOptions): this { + if (this.checkPriority("setCircleOptions")) { + if ((value) == (undefined)) { + throw new Error("Arg 'value' is null"); + } + const value_casted = value as (CircleOptions) + this.peer?.setCircleOptionsAttribute(value_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkCircle( + /** @memo */ + style: ((attributes: ArkCircleComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + value?: CircleOptions +) { + const receiver = remember(() => { + return new ArkCircleComponent() + }) + NodeAttach((): ArkCirclePeer => ArkCirclePeer.create(ArkUINodeType.Circle, receiver), (_: ArkCirclePeer) => { + receiver.setCircleOptions(value) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkCircleInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkCircleInterfaces.ts new file mode 100644 index 000000000..f561240cc --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkCircleInterfaces.ts @@ -0,0 +1,9 @@ +import { KInt } from "@koalaui/interop" +export interface CircleAttribute { +} +export interface CircleInterface { +} +export interface CircleOptions { + width?: string | number + height?: string | number +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkClientAuthenticationHandlerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkClientAuthenticationHandlerMaterialized.ts new file mode 100644 index 000000000..17b02ccc5 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkClientAuthenticationHandlerMaterialized.ts @@ -0,0 +1,94 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class ClientAuthenticationHandler { + peer?: Finalizable + static ctor(): KPointer { + const retval = NativeModule._ClientAuthenticationHandler_ctor() + return retval + } + constructor() { + const ctorPtr = ClientAuthenticationHandler.ctor() + this.peer = new Finalizable(ctorPtr, ClientAuthenticationHandler.getFinalizer()) + } + static getFinalizer(): KPointer { + return NativeModule._ClientAuthenticationHandler_getFinalizer() + } + confirm(priKeyFile: string | string, certChainFile?: string): void { + const priKeyFile_type = runtimeType(priKeyFile) + const certChainFile_type = runtimeType(certChainFile) + if ((((RuntimeType.STRING == priKeyFile_type))) && (((RuntimeType.STRING == certChainFile_type)))) { + const priKeyFile_casted = priKeyFile as (string) + if ((certChainFile) == (undefined)) { + throw new Error("Arg 'certChainFile' is null"); + } + const certChainFile_casted = certChainFile as (string) + this.confirm0_serialize(priKeyFile_casted, certChainFile_casted) + } + if ((((RuntimeType.STRING == priKeyFile_type))) && (((RuntimeType.UNDEFINED == certChainFile_type)))) { + const priKeyFile_casted = priKeyFile as (string) + this.confirm1_serialize(priKeyFile_casted) + } + throw new Error("Can not select appropriate overload") + } + cancel(): void { + this.cancel_serialize() + } + ignore(): void { + this.ignore_serialize() + } + private confirm0_serialize(priKeyFile: string, certChainFile: string): void { + NativeModule._ClientAuthenticationHandler_confirm0(this.peer!.ptr, priKeyFile, certChainFile); + } + private confirm1_serialize(authUri: string): void { + NativeModule._ClientAuthenticationHandler_confirm1(this.peer!.ptr, authUri); + } + private cancel_serialize(): void { + NativeModule._ClientAuthenticationHandler_cancel(this.peer!.ptr); + } + private ignore_serialize(): void { + NativeModule._ClientAuthenticationHandler_ignore(this.peer!.ptr); + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkColumnSplit.ts b/arkoala-arkts/arkui/src/generated/ArkColumnSplit.ts new file mode 100644 index 000000000..ce16b1c55 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkColumnSplit.ts @@ -0,0 +1,81 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkColumnSplitPeer } from "./peers/ArkColumnSplitPeer" +import { ColumnSplitAttribute, ColumnSplitDividerStyle, ColumnSplitInterface } from "./ArkColumnSplitInterfaces" +import { Dimension, PX, VP, FP, LPX, Percentage, Resource } from "./ArkUnitsInterfaces" +import { TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, IMPORT_Resource_FROM_api_global_resource } from "./SyntheticDeclarations" +/** @memo:stable */ +export class ArkColumnSplitComponent extends ArkCommonMethodComponent { + protected peer?: ArkColumnSplitPeer + /** @memo */ + setColumnSplitOptions(): this { + if (this.checkPriority("setColumnSplitOptions")) { + this.peer?.setColumnSplitOptionsAttribute() + return this + } + return this + } + /** @memo */ + resizeable(value: boolean): this { + if (this.checkPriority("resizeable")) { + const value_casted = value as (boolean) + this.peer?.resizeableAttribute(value_casted) + return this + } + return this + } + /** @memo */ + divider(value: ColumnSplitDividerStyle | null): this { + if (this.checkPriority("divider")) { + const value_casted = value as (ColumnSplitDividerStyle | null) + this.peer?.dividerAttribute(value_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkColumnSplit( + /** @memo */ + style: ((attributes: ArkColumnSplitComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + +) { + const receiver = remember(() => { + return new ArkColumnSplitComponent() + }) + NodeAttach((): ArkColumnSplitPeer => ArkColumnSplitPeer.create(ArkUINodeType.ColumnSplit, receiver), (_: ArkColumnSplitPeer) => { + receiver.setColumnSplitOptions() + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkColumnSplitInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkColumnSplitInterfaces.ts new file mode 100644 index 000000000..de665891a --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkColumnSplitInterfaces.ts @@ -0,0 +1,13 @@ +import { Dimension, PX, VP, FP, LPX, Percentage, Resource } from "./ArkUnitsInterfaces" +import { TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, IMPORT_Resource_FROM_api_global_resource } from "./SyntheticDeclarations" +import { KInt } from "@koalaui/interop" +export interface ColumnSplitAttribute { + resizeable(value: boolean): ColumnSplitAttribute; + divider(value: ColumnSplitDividerStyle | null): ColumnSplitAttribute; +} +export interface ColumnSplitInterface { +} +export interface ColumnSplitDividerStyle { + startMargin?: Dimension + endMargin?: Dimension +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkCommonTsEtsApiInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkCommonTsEtsApiInterfaces.ts new file mode 100644 index 000000000..5f3e82364 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkCommonTsEtsApiInterfaces.ts @@ -0,0 +1 @@ +import { KInt } from "@koalaui/interop" \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkComponent3d.ts b/arkoala-arkts/arkui/src/generated/ArkComponent3d.ts new file mode 100644 index 000000000..3f8b0315c --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkComponent3d.ts @@ -0,0 +1,131 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkComponent3DPeer } from "./peers/ArkComponent3dPeer" +import { ResourceStr, Resource, Dimension, PX, VP, FP, LPX, Percentage } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, IMPORT_Scene_FROM_api_ohos_graphics_scene } from "./SyntheticDeclarations" +import { Component3DAttribute, SceneOptions, Component3DInterface, Scene, ModelType } from "./ArkComponent3dInterfaces" +/** @memo:stable */ +export class ArkComponent3DComponent extends ArkCommonMethodComponent { + protected peer?: ArkComponent3DPeer + /** @memo */ + setComponent3DOptions(sceneOptions?: SceneOptions): this { + if (this.checkPriority("setComponent3DOptions")) { + if ((sceneOptions) == (undefined)) { + throw new Error("Arg 'sceneOptions' is null"); + } + const sceneOptions_casted = sceneOptions as (SceneOptions) + this.peer?.setComponent3DOptionsAttribute(sceneOptions_casted) + return this + } + return this + } + /** @memo */ + environment(uri: ResourceStr): this { + if (this.checkPriority("environment")) { + const uri_casted = uri as (ResourceStr) + this.peer?.environmentAttribute(uri_casted) + return this + } + return this + } + /** @memo */ + customRender(uri: ResourceStr, selfRenderUpdate: boolean): this { + if (this.checkPriority("customRender")) { + const uri_casted = uri as (ResourceStr) + const selfRenderUpdate_casted = selfRenderUpdate as (boolean) + this.peer?.customRenderAttribute(uri_casted, selfRenderUpdate_casted) + return this + } + return this + } + /** @memo */ + shader(uri: ResourceStr): this { + if (this.checkPriority("shader")) { + const uri_casted = uri as (ResourceStr) + this.peer?.shaderAttribute(uri_casted) + return this + } + return this + } + /** @memo */ + shaderImageTexture(uri: ResourceStr): this { + if (this.checkPriority("shaderImageTexture")) { + const uri_casted = uri as (ResourceStr) + this.peer?.shaderImageTextureAttribute(uri_casted) + return this + } + return this + } + /** @memo */ + shaderInputBuffer(buffer: Array): this { + if (this.checkPriority("shaderInputBuffer")) { + const buffer_casted = buffer as (Array) + this.peer?.shaderInputBufferAttribute(buffer_casted) + return this + } + return this + } + /** @memo */ + renderWidth(value: Dimension): this { + if (this.checkPriority("renderWidth")) { + const value_casted = value as (Dimension) + this.peer?.renderWidthAttribute(value_casted) + return this + } + return this + } + /** @memo */ + renderHeight(value: Dimension): this { + if (this.checkPriority("renderHeight")) { + const value_casted = value as (Dimension) + this.peer?.renderHeightAttribute(value_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkComponent3D( + /** @memo */ + style: ((attributes: ArkComponent3DComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + sceneOptions?: SceneOptions +) { + const receiver = remember(() => { + return new ArkComponent3DComponent() + }) + NodeAttach((): ArkComponent3DPeer => ArkComponent3DPeer.create(ArkUINodeType.Component3D, receiver), (_: ArkComponent3DPeer) => { + receiver.setComponent3DOptions(sceneOptions) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkComponent3dInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkComponent3dInterfaces.ts new file mode 100644 index 000000000..ff000a9ea --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkComponent3dInterfaces.ts @@ -0,0 +1,57 @@ +import { ResourceStr, Resource, Dimension, PX, VP, FP, LPX, Percentage } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, IMPORT_Scene_FROM_api_ohos_graphics_scene } from "./SyntheticDeclarations" +import { KInt } from "@koalaui/interop" +/** + * The enum of model type + * @enum { number } + * @syscap SystemCapability.ArkUi.Graphics3D + * @atomicservice + * @since 12 + */ +export class ModelType { + /** + * Render to texture, gpu would compose this texture to screen. + * + * @syscap SystemCapability.ArkUi.Graphics3D + * @atomicservice + * @since 12 + */ + static readonly TEXTURE: ModelType = new ModelType(0) + /** + * Render to surface, special hardware would compose this surface to screen. + * + * @syscap SystemCapability.ArkUi.Graphics3D + * @atomicservice + * @since 12 + */ + static readonly SURFACE: ModelType = new ModelType(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): ModelType { + if ((arg0) == (ModelType.TEXTURE.value)) { + return ModelType.TEXTURE + } + if ((arg0) == (ModelType.SURFACE.value)) { + return ModelType.SURFACE + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +export interface Component3DAttribute { + environment(uri: ResourceStr): Component3DAttribute; + customRender(uri: ResourceStr,selfRenderUpdate: boolean): Component3DAttribute; + shader(uri: ResourceStr): Component3DAttribute; + shaderImageTexture(uri: ResourceStr): Component3DAttribute; + shaderInputBuffer(buffer: Array): Component3DAttribute; + renderWidth(value: Dimension): Component3DAttribute; + renderHeight(value: Dimension): Component3DAttribute; +} +export interface Component3DInterface { +} +export interface SceneOptions { + scene?: ResourceStr | Scene + modelType?: ModelType +} +export declare type Scene = IMPORT_Scene_FROM_api_ohos_graphics_scene \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkConsoleMessageMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkConsoleMessageMaterialized.ts new file mode 100644 index 000000000..b5f755b6e --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkConsoleMessageMaterialized.ts @@ -0,0 +1,90 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { MessageLevel } from "./ArkWebInterfaces" +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class ConsoleMessage { + peer?: Finalizable + static ctor(message: string, sourceId: string, lineNumber: number, messageLevel: MessageLevel): KPointer { + const retval = NativeModule._ConsoleMessage_ctor(message, sourceId, lineNumber, (messageLevel.value as int32)) + return retval + } + constructor(message?: string, sourceId?: string, lineNumber?: number, messageLevel?: MessageLevel) { + if (((message) !== (undefined)) && ((sourceId) !== (undefined)) && ((lineNumber) !== (undefined)) && ((messageLevel) !== (undefined))) { + const ctorPtr = ConsoleMessage.ctor(message, sourceId, lineNumber, messageLevel) + this.peer = new Finalizable(ctorPtr, ConsoleMessage.getFinalizer()) + } + } + static getFinalizer(): KPointer { + return NativeModule._ConsoleMessage_getFinalizer() + } + getMessage(): string { + return this.getMessage_serialize() + } + getSourceId(): string { + return this.getSourceId_serialize() + } + getLineNumber(): number { + return this.getLineNumber_serialize() + } + getMessageLevel(): MessageLevel { + return this.getMessageLevel_serialize() + } + private getMessage_serialize(): string { + const retval = NativeModule._ConsoleMessage_getMessage(this.peer!.ptr) + return retval + } + private getSourceId_serialize(): string { + const retval = NativeModule._ConsoleMessage_getSourceId(this.peer!.ptr) + return retval + } + private getLineNumber_serialize(): number { + const retval = NativeModule._ConsoleMessage_getLineNumber(this.peer!.ptr) + return retval + } + private getMessageLevel_serialize(): MessageLevel { + const retval = NativeModule._ConsoleMessage_getMessageLevel(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkContainerSpan.ts b/arkoala-arkts/arkui/src/generated/ArkContainerSpan.ts new file mode 100644 index 000000000..17de1fcb7 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkContainerSpan.ts @@ -0,0 +1,72 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkContainerSpanPeer } from "./peers/ArkContainerSpanPeer" +import { TextBackgroundStyle } from "./ArkSpanInterfaces" +import { ContainerSpanAttribute, ContainerSpanInterface } from "./ArkContainerSpanInterfaces" +import { AttributeModifier } from "./ArkAttributeModifierMaterialized" +/** @memo:stable */ +export class ArkContainerSpanComponent extends ComponentBase { + protected peer?: ArkContainerSpanPeer + /** @memo */ + setContainerSpanOptions(): this { + if (this.checkPriority("setContainerSpanOptions")) { + this.peer?.setContainerSpanOptionsAttribute() + return this + } + return this + } + /** @memo */ + textBackgroundStyle(style: TextBackgroundStyle): this { + if (this.checkPriority("textBackgroundStyle")) { + const style_casted = style as (TextBackgroundStyle) + this.peer?.textBackgroundStyleAttribute(style_casted) + return this + } + return this + } + attributeModifier(modifier: AttributeModifier): this { throw new Error("not implemented") } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkContainerSpan( + /** @memo */ + style: ((attributes: ArkContainerSpanComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + +) { + const receiver = remember(() => { + return new ArkContainerSpanComponent() + }) + NodeAttach((): ArkContainerSpanPeer => ArkContainerSpanPeer.create(ArkUINodeType.ContainerSpan, receiver), (_: ArkContainerSpanPeer) => { + receiver.setContainerSpanOptions() + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkContainerSpanInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkContainerSpanInterfaces.ts new file mode 100644 index 000000000..ed4c061df --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkContainerSpanInterfaces.ts @@ -0,0 +1,9 @@ +import { TextBackgroundStyle } from "./ArkSpanInterfaces" +import { AttributeModifier } from "./ArkAttributeModifierMaterialized" +import { KInt } from "@koalaui/interop" +export interface ContainerSpanAttribute { + textBackgroundStyle(style: TextBackgroundStyle): ContainerSpanAttribute; + attributeModifier(modifier: AttributeModifier): ContainerSpanAttribute; +} +export interface ContainerSpanInterface { +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkContentSlotInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkContentSlotInterfaces.ts new file mode 100644 index 000000000..5f3e82364 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkContentSlotInterfaces.ts @@ -0,0 +1 @@ +import { KInt } from "@koalaui/interop" \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkContextMenuInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkContextMenuInterfaces.ts new file mode 100644 index 000000000..5f3e82364 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkContextMenuInterfaces.ts @@ -0,0 +1 @@ +import { KInt } from "@koalaui/interop" \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkControllerHandlerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkControllerHandlerMaterialized.ts new file mode 100644 index 000000000..95d8b4f5a --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkControllerHandlerMaterialized.ts @@ -0,0 +1,71 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { WebviewController } from "./ArkWebInterfaces" +import { IMPORT_default_WebviewController_FROM_api_ohos_web_webview } from "./SyntheticDeclarations" +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class ControllerHandler { + peer?: Finalizable + static ctor(): KPointer { + const retval = NativeModule._ControllerHandler_ctor() + return retval + } + constructor() { + const ctorPtr = ControllerHandler.ctor() + this.peer = new Finalizable(ctorPtr, ControllerHandler.getFinalizer()) + } + static getFinalizer(): KPointer { + return NativeModule._ControllerHandler_getFinalizer() + } + setWebController(controller: WebviewController): void { + const controller_casted = controller as (WebviewController) + this.setWebController_serialize(controller_casted) + } + private setWebController_serialize(controller: WebviewController): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeCustomObject("WebviewController", controller) + NativeModule._ControllerHandler_setWebController(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkCounter.ts b/arkoala-arkts/arkui/src/generated/ArkCounter.ts new file mode 100644 index 000000000..a57f8bd51 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkCounter.ts @@ -0,0 +1,99 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkCounterPeer } from "./peers/ArkCounterPeer" +import { UseEventsProperties } from "./use_properties" +import { VoidCallback } from "./ArkUnitsInterfaces" +import { CounterAttribute, CounterInterface } from "./ArkCounterInterfaces" +/** @memo:stable */ +export class ArkCounterComponent extends ArkCommonMethodComponent { + protected peer?: ArkCounterPeer + /** @memo */ + setCounterOptions(): this { + if (this.checkPriority("setCounterOptions")) { + this.peer?.setCounterOptionsAttribute() + return this + } + return this + } + /** @memo */ + onInc(event: VoidCallback): this { + if (this.checkPriority("onInc")) { + const event_casted = event as (VoidCallback) + this.peer?.onIncAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onDec(event: VoidCallback): this { + if (this.checkPriority("onDec")) { + const event_casted = event as (VoidCallback) + this.peer?.onDecAttribute(event_casted) + return this + } + return this + } + /** @memo */ + enableDec(value: boolean): this { + if (this.checkPriority("enableDec")) { + const value_casted = value as (boolean) + this.peer?.enableDecAttribute(value_casted) + return this + } + return this + } + /** @memo */ + enableInc(value: boolean): this { + if (this.checkPriority("enableInc")) { + const value_casted = value as (boolean) + this.peer?.enableIncAttribute(value_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkCounter( + /** @memo */ + style: ((attributes: ArkCounterComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + +) { + const receiver = remember(() => { + return new ArkCounterComponent() + }) + NodeAttach((): ArkCounterPeer => ArkCounterPeer.create(ArkUINodeType.Counter, receiver), (_: ArkCounterPeer) => { + receiver.setCounterOptions() + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkCounterInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkCounterInterfaces.ts new file mode 100644 index 000000000..11be73d78 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkCounterInterfaces.ts @@ -0,0 +1,10 @@ +import { VoidCallback } from "./ArkUnitsInterfaces" +import { KInt } from "@koalaui/interop" +export interface CounterAttribute { + onInc(event: VoidCallback): CounterAttribute; + onDec(event: VoidCallback): CounterAttribute; + enableDec(value: boolean): CounterAttribute; + enableInc(value: boolean): CounterAttribute; +} +export interface CounterInterface { +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkCustomDialogControllerInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkCustomDialogControllerInterfaces.ts new file mode 100644 index 000000000..5f3e82364 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkCustomDialogControllerInterfaces.ts @@ -0,0 +1 @@ +import { KInt } from "@koalaui/interop" \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkCustomSpanMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkCustomSpanMaterialized.ts new file mode 100644 index 000000000..082263f0f --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkCustomSpanMaterialized.ts @@ -0,0 +1,91 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo } from "./ArkStyledStringInterfaces" +import { DrawContext } from "./ArkCommonInterfaces" +import { IMPORT_DrawContext_FROM_api_arkui_Graphics } from "./SyntheticDeclarations" +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class CustomSpan { + peer?: Finalizable + static ctor(): KPointer { + const retval = NativeModule._CustomSpan_ctor() + return retval + } + constructor() { + const ctorPtr = CustomSpan.ctor() + this.peer = new Finalizable(ctorPtr, CustomSpan.getFinalizer()) + } + static getFinalizer(): KPointer { + return NativeModule._CustomSpan_getFinalizer() + } + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + const measureInfo_casted = measureInfo as (CustomSpanMeasureInfo) + return this.onMeasure_serialize(measureInfo_casted) + } + onDraw(context: DrawContext, drawInfo: CustomSpanDrawInfo): void { + const context_casted = context as (DrawContext) + const drawInfo_casted = drawInfo as (CustomSpanDrawInfo) + this.onDraw_serialize(context_casted, drawInfo_casted) + } + invalidate(): void { + this.invalidate_serialize() + } + private onMeasure_serialize(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeCustomSpanMeasureInfo(measureInfo) + const retval = NativeModule._CustomSpan_onMeasure(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release(); + throw new Error("Object deserialization is not implemented.") + } + private onDraw_serialize(context: DrawContext, drawInfo: CustomSpanDrawInfo): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeCustomObject("DrawContext", context) + thisSerializer.writeCustomSpanDrawInfo(drawInfo) + NativeModule._CustomSpan_onDraw(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private invalidate_serialize(): void { + NativeModule._CustomSpan_invalidate(this.peer!.ptr); + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkDataPanel.ts b/arkoala-arkts/arkui/src/generated/ArkDataPanel.ts new file mode 100644 index 000000000..af9a75e9b --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkDataPanel.ts @@ -0,0 +1,121 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkDataPanelPeer } from "./peers/ArkDataPanelPeer" +import { DataPanelAttribute, DataPanelShadowOptions, DataPanelConfiguration, DataPanelOptions, DataPanelInterface, DataPanelType } from "./ArkDataPanelInterfaces" +import { ResourceColor, Resource, Length } from "./ArkUnitsInterfaces" +import { Color } from "./ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource } from "./SyntheticDeclarations" +import { LinearGradient, ContentModifier } from "./ConflictedDeclarations" +import { MultiShadowOptions, CommonConfiguration } from "./ArkCommonInterfaces" +/** @memo:stable */ +export class ArkDataPanelComponent extends ArkCommonMethodComponent { + protected peer?: ArkDataPanelPeer + /** @memo */ + setDataPanelOptions(options: DataPanelOptions): this { + if (this.checkPriority("setDataPanelOptions")) { + const options_casted = options as (DataPanelOptions) + this.peer?.setDataPanelOptionsAttribute(options_casted) + return this + } + return this + } + /** @memo */ + closeEffect(value: boolean): this { + if (this.checkPriority("closeEffect")) { + const value_casted = value as (boolean) + this.peer?.closeEffectAttribute(value_casted) + return this + } + return this + } + /** @memo */ + valueColors(value: Array): this { + if (this.checkPriority("valueColors")) { + const value_casted = value as (Array) + this.peer?.valueColorsAttribute(value_casted) + return this + } + return this + } + /** @memo */ + trackBackgroundColor(value: ResourceColor): this { + if (this.checkPriority("trackBackgroundColor")) { + const value_casted = value as (ResourceColor) + this.peer?.trackBackgroundColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + strokeWidth(value: Length): this { + if (this.checkPriority("strokeWidth")) { + const value_casted = value as (Length) + this.peer?.strokeWidthAttribute(value_casted) + return this + } + return this + } + /** @memo */ + trackShadow(value: DataPanelShadowOptions): this { + if (this.checkPriority("trackShadow")) { + const value_casted = value as (DataPanelShadowOptions) + this.peer?.trackShadowAttribute(value_casted) + return this + } + return this + } + /** @memo */ + contentModifier(modifier: ContentModifier): this { + if (this.checkPriority("contentModifier")) { + const modifier_casted = modifier as (ContentModifier) + this.peer?.contentModifierAttribute(modifier_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkDataPanel( + /** @memo */ + style: ((attributes: ArkDataPanelComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + options: DataPanelOptions +) { + const receiver = remember(() => { + return new ArkDataPanelComponent() + }) + NodeAttach((): ArkDataPanelPeer => ArkDataPanelPeer.create(ArkUINodeType.DataPanel, receiver), (_: ArkDataPanelPeer) => { + receiver.setDataPanelOptions(options) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkDataPanelInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkDataPanelInterfaces.ts new file mode 100644 index 000000000..52d0a1c43 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkDataPanelInterfaces.ts @@ -0,0 +1,162 @@ +import { ResourceColor, Resource, Length } from "./ArkUnitsInterfaces" +import { Color } from "./ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource } from "./SyntheticDeclarations" +import { LinearGradient, ContentModifier } from "./ConflictedDeclarations" +import { MultiShadowOptions, CommonConfiguration } from "./ArkCommonInterfaces" +import { KInt } from "@koalaui/interop" +/* + * Copyright (c) 2021-2023 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +/** + * @file + * @kit ArkUI + */ +/** + * DataPanelType enum + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * DataPanelType enum + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * DataPanelType enum + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * DataPanelType enum + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ +export class DataPanelType { + /** + * Line Type + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * Line Type + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Line Type + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Line Type + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Line: DataPanelType = new DataPanelType(0) + /** + * Line Rainbow + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * Line Rainbow + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Line Rainbow + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Line Rainbow + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Circle: DataPanelType = new DataPanelType(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): DataPanelType { + if ((arg0) == (DataPanelType.Line.value)) { + return DataPanelType.Line + } + if ((arg0) == (DataPanelType.Circle.value)) { + return DataPanelType.Circle + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +export interface DataPanelAttribute { + closeEffect(value: boolean): DataPanelAttribute; + valueColors(value: Array): DataPanelAttribute; + trackBackgroundColor(value: ResourceColor): DataPanelAttribute; + strokeWidth(value: Length): DataPanelAttribute; + trackShadow(value: DataPanelShadowOptions): DataPanelAttribute; + contentModifier(modifier: ContentModifier): DataPanelAttribute; +} +export interface DataPanelInterface { +} +export interface DataPanelShadowOptions { + radius?: number | Resource + offsetX?: number | Resource + offsetY?: number | Resource + colors?: Array +} +export interface DataPanelConfiguration { + enabled: boolean + contentModifier: ContentModifier + values: number[] + maxValue: number +} +export interface DataPanelOptions { + values: number[] + max?: number + type?: DataPanelType +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkDataResubmissionHandlerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkDataResubmissionHandlerMaterialized.ts new file mode 100644 index 000000000..d35e92c10 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkDataResubmissionHandlerMaterialized.ts @@ -0,0 +1,71 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class DataResubmissionHandler { + peer?: Finalizable + static ctor(): KPointer { + const retval = NativeModule._DataResubmissionHandler_ctor() + return retval + } + constructor() { + const ctorPtr = DataResubmissionHandler.ctor() + this.peer = new Finalizable(ctorPtr, DataResubmissionHandler.getFinalizer()) + } + static getFinalizer(): KPointer { + return NativeModule._DataResubmissionHandler_getFinalizer() + } + resend(): void { + this.resend_serialize() + } + cancel(): void { + this.cancel_serialize() + } + private resend_serialize(): void { + NativeModule._DataResubmissionHandler_resend(this.peer!.ptr); + } + private cancel_serialize(): void { + NativeModule._DataResubmissionHandler_cancel(this.peer!.ptr); + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkDatePicker.ts b/arkoala-arkts/arkui/src/generated/ArkDatePicker.ts new file mode 100644 index 000000000..ed615415d --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkDatePicker.ts @@ -0,0 +1,121 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkDatePickerPeer } from "./peers/ArkDatePickerPeer" +import { UseEventsProperties } from "./use_properties" +import { DatePickerAttribute, DatePickerResult, DatePickerOptions, DatePickerInterface } from "./ArkDatePickerInterfaces" +import { PickerTextStyle, Callback } from "./ArkCommonInterfaces" +/** @memo:stable */ +export class ArkDatePickerComponent extends ArkCommonMethodComponent { + protected peer?: ArkDatePickerPeer + /** @memo */ + setDatePickerOptions(options?: DatePickerOptions): this { + if (this.checkPriority("setDatePickerOptions")) { + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (DatePickerOptions) + this.peer?.setDatePickerOptionsAttribute(options_casted) + return this + } + return this + } + /** @memo */ + lunar(value: boolean): this { + if (this.checkPriority("lunar")) { + const value_casted = value as (boolean) + this.peer?.lunarAttribute(value_casted) + return this + } + return this + } + /** @memo */ + disappearTextStyle(value: PickerTextStyle): this { + if (this.checkPriority("disappearTextStyle")) { + const value_casted = value as (PickerTextStyle) + this.peer?.disappearTextStyleAttribute(value_casted) + return this + } + return this + } + /** @memo */ + textStyle(value: PickerTextStyle): this { + if (this.checkPriority("textStyle")) { + const value_casted = value as (PickerTextStyle) + this.peer?.textStyleAttribute(value_casted) + return this + } + return this + } + /** @memo */ + selectedTextStyle(value: PickerTextStyle): this { + if (this.checkPriority("selectedTextStyle")) { + const value_casted = value as (PickerTextStyle) + this.peer?.selectedTextStyleAttribute(value_casted) + return this + } + return this + } + /** @memo */ + onChange(callback: ((value: DatePickerResult) => void)): this { + if (this.checkPriority("onChange")) { + const callback_casted = callback as (((value: DatePickerResult) => void)) + this.peer?.onChangeAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onDateChange(callback: Callback): this { + if (this.checkPriority("onDateChange")) { + const callback_casted = callback as (Callback) + this.peer?.onDateChangeAttribute(callback_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkDatePicker( + /** @memo */ + style: ((attributes: ArkDatePickerComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + options?: DatePickerOptions +) { + const receiver = remember(() => { + return new ArkDatePickerComponent() + }) + NodeAttach((): ArkDatePickerPeer => ArkDatePickerPeer.create(ArkUINodeType.DatePicker, receiver), (_: ArkDatePickerPeer) => { + receiver.setDatePickerOptions(options) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkDatePickerInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkDatePickerInterfaces.ts new file mode 100644 index 000000000..7c6bdbcec --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkDatePickerInterfaces.ts @@ -0,0 +1,22 @@ +import { PickerTextStyle, Callback } from "./ArkCommonInterfaces" +import { KInt } from "@koalaui/interop" +export interface DatePickerAttribute { + lunar(value: boolean): DatePickerAttribute; + disappearTextStyle(value: PickerTextStyle): DatePickerAttribute; + textStyle(value: PickerTextStyle): DatePickerAttribute; + selectedTextStyle(value: PickerTextStyle): DatePickerAttribute; + onChange(callback: ((value: DatePickerResult) => void)): DatePickerAttribute; + onDateChange(callback: Callback): DatePickerAttribute; +} +export interface DatePickerInterface { +} +export interface DatePickerResult { + year?: number + month?: number + day?: number +} +export interface DatePickerOptions { + start?: Date + end?: Date + selected?: Date +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkDigitIndicatorBuilder.ts b/arkoala-arkts/arkui/src/generated/ArkDigitIndicatorBuilder.ts new file mode 100644 index 000000000..f98d3e8c3 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkDigitIndicatorBuilder.ts @@ -0,0 +1,66 @@ +import { Indicator } from "./ArkIndicatorBuilder" +import { Length, Resource, LengthMetrics, ResourceColor, Font } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, IMPORT_LengthMetrics_FROM_api_arkui_Graphics } from "./SyntheticDeclarations" +import { DotIndicator } from "./ArkDotIndicatorBuilder" +import { Color } from "./ArkEnumsInterfaces" +export class DigitIndicator extends Indicator { + _left?: Length + _top?: Length + _right?: Length + _bottom?: Length + _start?: LengthMetrics + _end?: LengthMetrics + _fontColor?: ResourceColor + _selectedFontColor?: ResourceColor + _digitFont?: Font + _selectedDigitFont?: Font + constructor() { + super(); + } + static dot(): DotIndicator { + return new DotIndicator() + } + static digit(): DigitIndicator { + return new DigitIndicator() + } + left(value: Length): this { + this._left = value + return this + } + top(value: Length): this { + this._top = value + return this + } + right(value: Length): this { + this._right = value + return this + } + bottom(value: Length): this { + this._bottom = value + return this + } + start(value: LengthMetrics): this { + this._start = value + return this + } + end(value: LengthMetrics): this { + this._end = value + return this + } + fontColor(value: ResourceColor): this { + this._fontColor = value + return this + } + selectedFontColor(value: ResourceColor): this { + this._selectedFontColor = value + return this + } + digitFont(value: Font): this { + this._digitFont = value + return this + } + selectedDigitFont(value: Font): this { + this._selectedDigitFont = value + return this + } +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkDivider.ts b/arkoala-arkts/arkui/src/generated/ArkDivider.ts new file mode 100644 index 000000000..8b3c00be8 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkDivider.ts @@ -0,0 +1,100 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkDividerPeer } from "./peers/ArkDividerPeer" +import { DividerAttribute, DividerInterface } from "./ArkDividerInterfaces" +import { ResourceColor, Resource } from "./ArkUnitsInterfaces" +import { Color, LineCapStyle } from "./ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource } from "./SyntheticDeclarations" +/** @memo:stable */ +export class ArkDividerComponent extends ArkCommonMethodComponent { + protected peer?: ArkDividerPeer + /** @memo */ + setDividerOptions(): this { + if (this.checkPriority("setDividerOptions")) { + this.peer?.setDividerOptionsAttribute() + return this + } + return this + } + /** @memo */ + vertical(value: boolean): this { + if (this.checkPriority("vertical")) { + const value_casted = value as (boolean) + this.peer?.verticalAttribute(value_casted) + return this + } + return this + } + /** @memo */ + color(value: ResourceColor): this { + if (this.checkPriority("color")) { + const value_casted = value as (ResourceColor) + this.peer?.colorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + strokeWidth(value: number | string): this { + if (this.checkPriority("strokeWidth")) { + const value_casted = value as (number | string) + this.peer?.strokeWidthAttribute(value_casted) + return this + } + return this + } + /** @memo */ + lineCap(value: LineCapStyle): this { + if (this.checkPriority("lineCap")) { + const value_casted = value as (LineCapStyle) + this.peer?.lineCapAttribute(value_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkDivider( + /** @memo */ + style: ((attributes: ArkDividerComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + +) { + const receiver = remember(() => { + return new ArkDividerComponent() + }) + NodeAttach((): ArkDividerPeer => ArkDividerPeer.create(ArkUINodeType.Divider, receiver), (_: ArkDividerPeer) => { + receiver.setDividerOptions() + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkDividerInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkDividerInterfaces.ts new file mode 100644 index 000000000..4b0d1afc5 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkDividerInterfaces.ts @@ -0,0 +1,12 @@ +import { ResourceColor, Resource } from "./ArkUnitsInterfaces" +import { Color, LineCapStyle } from "./ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource } from "./SyntheticDeclarations" +import { KInt } from "@koalaui/interop" +export interface DividerAttribute { + vertical(value: boolean): DividerAttribute; + color(value: ResourceColor): DividerAttribute; + strokeWidth(value: number | string): DividerAttribute; + lineCap(value: LineCapStyle): DividerAttribute; +} +export interface DividerInterface { +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkDrawModifierMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkDrawModifierMaterialized.ts new file mode 100644 index 000000000..b93200acb --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkDrawModifierMaterialized.ts @@ -0,0 +1,97 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { DrawContext } from "./ArkCommonInterfaces" +import { IMPORT_DrawContext_FROM_api_arkui_Graphics } from "./SyntheticDeclarations" +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class DrawModifier { + peer?: Finalizable + static ctor(): KPointer { + const retval = NativeModule._DrawModifier_ctor() + return retval + } + constructor() { + const ctorPtr = DrawModifier.ctor() + this.peer = new Finalizable(ctorPtr, DrawModifier.getFinalizer()) + } + static getFinalizer(): KPointer { + return NativeModule._DrawModifier_getFinalizer() + } + drawBehind(drawContext: DrawContext): void { + const drawContext_casted = drawContext as (DrawContext) + this.drawBehind_serialize(drawContext_casted) + } + drawContent(drawContext: DrawContext): void { + const drawContext_casted = drawContext as (DrawContext) + this.drawContent_serialize(drawContext_casted) + } + drawFront(drawContext: DrawContext): void { + const drawContext_casted = drawContext as (DrawContext) + this.drawFront_serialize(drawContext_casted) + } + invalidate(): void { + this.invalidate_serialize() + } + private drawBehind_serialize(drawContext: DrawContext): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeCustomObject("DrawContext", drawContext) + NativeModule._DrawModifier_drawBehind(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private drawContent_serialize(drawContext: DrawContext): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeCustomObject("DrawContext", drawContext) + NativeModule._DrawModifier_drawContent(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private drawFront_serialize(drawContext: DrawContext): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeCustomObject("DrawContext", drawContext) + NativeModule._DrawModifier_drawFront(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private invalidate_serialize(): void { + NativeModule._DrawModifier_invalidate(this.peer!.ptr); + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkEditMenuOptionsMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkEditMenuOptionsMaterialized.ts new file mode 100644 index 000000000..7620ce9d5 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkEditMenuOptionsMaterialized.ts @@ -0,0 +1,90 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { TextMenuItem, TextRange } from "./ArkTextCommonInterfaces" +import { INTERFACE_EditMenuOptions } from "./SyntheticDeclarations" +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class EditMenuOptions implements INTERFACE_EditMenuOptions { + peer?: Finalizable + static ctor(): KPointer { + const retval = NativeModule._EditMenuOptions_ctor() + return retval + } + constructor() { + const ctorPtr = EditMenuOptions.ctor() + this.peer = new Finalizable(ctorPtr, EditMenuOptions.getFinalizer()) + } + static getFinalizer(): KPointer { + return NativeModule._EditMenuOptions_getFinalizer() + } + onCreateMenu(menuItems: Array): Array { + const menuItems_casted = menuItems as (Array) + return this.onCreateMenu_serialize(menuItems_casted) + } + onMenuItemClick(menuItem: TextMenuItem, range: TextRange): boolean { + const menuItem_casted = menuItem as (TextMenuItem) + const range_casted = range as (TextRange) + return this.onMenuItemClick_serialize(menuItem_casted, range_casted) + } + private onCreateMenu_serialize(menuItems: Array): Array { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeInt8(runtimeType(menuItems) as int32) + thisSerializer.writeInt32(menuItems.length as int32) + for (let i = 0; i < menuItems.length; i++) { + const menuItems_element = menuItems[i] + thisSerializer.writeTextMenuItem(menuItems_element) + } + const retval = NativeModule._EditMenuOptions_onCreateMenu(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release(); + throw new Error("Object deserialization is not implemented.") + } + private onMenuItemClick_serialize(menuItem: TextMenuItem, range: TextRange): boolean { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeTextMenuItem(menuItem) + thisSerializer.writeTextRange(range) + const retval = NativeModule._EditMenuOptions_onMenuItemClick(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release(); + return retval + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkEffectComponent.ts b/arkoala-arkts/arkui/src/generated/ArkEffectComponent.ts new file mode 100644 index 000000000..00622483e --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkEffectComponent.ts @@ -0,0 +1,61 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkEffectComponentPeer } from "./peers/ArkEffectComponentPeer" +import { EffectComponentAttribute, EffectComponentInterface } from "./ArkEffectComponentInterfaces" +/** @memo:stable */ +export class ArkEffectComponentComponent extends ArkCommonMethodComponent { + protected peer?: ArkEffectComponentPeer + /** @memo */ + setEffectComponentOptions(): this { + if (this.checkPriority("setEffectComponentOptions")) { + this.peer?.setEffectComponentOptionsAttribute() + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkEffectComponent( + /** @memo */ + style: ((attributes: ArkEffectComponentComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + +) { + const receiver = remember(() => { + return new ArkEffectComponentComponent() + }) + NodeAttach((): ArkEffectComponentPeer => ArkEffectComponentPeer.create(ArkUINodeType.EffectComponent, receiver), (_: ArkEffectComponentPeer) => { + receiver.setEffectComponentOptions() + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkEffectComponentInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkEffectComponentInterfaces.ts new file mode 100644 index 000000000..53c089261 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkEffectComponentInterfaces.ts @@ -0,0 +1,5 @@ +import { KInt } from "@koalaui/interop" +export interface EffectComponentAttribute { +} +export interface EffectComponentInterface { +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkEllipse.ts b/arkoala-arkts/arkui/src/generated/ArkEllipse.ts new file mode 100644 index 000000000..06caea5a2 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkEllipse.ts @@ -0,0 +1,66 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonShapeMethodComponent } from "./ArkCommon" +import { ArkEllipsePeer } from "./peers/ArkEllipsePeer" +import { EllipseAttribute, EllipseInterface } from "./ArkEllipseInterfaces" +import { LITERAL_WidthStringnumberHeightStringnumber } from "./SyntheticDeclarations" +/** @memo:stable */ +export class ArkEllipseComponent extends ArkCommonShapeMethodComponent { + protected peer?: ArkEllipsePeer + /** @memo */ + setEllipseOptions(value?: LITERAL_WidthStringnumberHeightStringnumber): this { + if (this.checkPriority("setEllipseOptions")) { + if ((value) == (undefined)) { + throw new Error("Arg 'value' is null"); + } + const value_casted = value as (LITERAL_WidthStringnumberHeightStringnumber) + this.peer?.setEllipseOptionsAttribute(value_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkEllipse( + /** @memo */ + style: ((attributes: ArkEllipseComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + value?: LITERAL_WidthStringnumberHeightStringnumber +) { + const receiver = remember(() => { + return new ArkEllipseComponent() + }) + NodeAttach((): ArkEllipsePeer => ArkEllipsePeer.create(ArkUINodeType.Ellipse, receiver), (_: ArkEllipsePeer) => { + receiver.setEllipseOptions(value) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkEllipseInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkEllipseInterfaces.ts new file mode 100644 index 000000000..a2f1355ee --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkEllipseInterfaces.ts @@ -0,0 +1,6 @@ +import { LITERAL_WidthStringnumberHeightStringnumber } from "./SyntheticDeclarations" +import { KInt } from "@koalaui/interop" +export interface EllipseAttribute { +} +export interface EllipseInterface { +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkEventResultMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkEventResultMaterialized.ts new file mode 100644 index 000000000..10740062f --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkEventResultMaterialized.ts @@ -0,0 +1,66 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class EventResult { + peer?: Finalizable + static ctor(): KPointer { + const retval = NativeModule._EventResult_ctor() + return retval + } + constructor() { + const ctorPtr = EventResult.ctor() + this.peer = new Finalizable(ctorPtr, EventResult.getFinalizer()) + } + static getFinalizer(): KPointer { + return NativeModule._EventResult_getFinalizer() + } + setGestureEventResult(result: boolean): void { + const result_casted = result as (boolean) + this.setGestureEventResult_serialize(result_casted) + } + private setGestureEventResult_serialize(result: boolean): void { + NativeModule._EventResult_setGestureEventResult(this.peer!.ptr, result ? 1 : 0); + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkFileSelectorParamMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkFileSelectorParamMaterialized.ts new file mode 100644 index 000000000..4c1868675 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkFileSelectorParamMaterialized.ts @@ -0,0 +1,88 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { FileSelectorMode } from "./ArkWebInterfaces" +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class FileSelectorParam { + peer?: Finalizable + static ctor(): KPointer { + const retval = NativeModule._FileSelectorParam_ctor() + return retval + } + constructor() { + const ctorPtr = FileSelectorParam.ctor() + this.peer = new Finalizable(ctorPtr, FileSelectorParam.getFinalizer()) + } + static getFinalizer(): KPointer { + return NativeModule._FileSelectorParam_getFinalizer() + } + getTitle(): string { + return this.getTitle_serialize() + } + getMode(): FileSelectorMode { + return this.getMode_serialize() + } + getAcceptType(): Array { + return this.getAcceptType_serialize() + } + isCapture(): boolean { + return this.isCapture_serialize() + } + private getTitle_serialize(): string { + const retval = NativeModule._FileSelectorParam_getTitle(this.peer!.ptr) + return retval + } + private getMode_serialize(): FileSelectorMode { + const retval = NativeModule._FileSelectorParam_getMode(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private getAcceptType_serialize(): Array { + const retval = NativeModule._FileSelectorParam_getAcceptType(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private isCapture_serialize(): boolean { + const retval = NativeModule._FileSelectorParam_isCapture(this.peer!.ptr) + return retval + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkFileSelectorResultMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkFileSelectorResultMaterialized.ts new file mode 100644 index 000000000..8a854e675 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkFileSelectorResultMaterialized.ts @@ -0,0 +1,74 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class FileSelectorResult { + peer?: Finalizable + static ctor(): KPointer { + const retval = NativeModule._FileSelectorResult_ctor() + return retval + } + constructor() { + const ctorPtr = FileSelectorResult.ctor() + this.peer = new Finalizable(ctorPtr, FileSelectorResult.getFinalizer()) + } + static getFinalizer(): KPointer { + return NativeModule._FileSelectorResult_getFinalizer() + } + handleFileList(fileList: Array): void { + const fileList_casted = fileList as (Array) + this.handleFileList_serialize(fileList_casted) + } + private handleFileList_serialize(fileList: Array): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeInt8(runtimeType(fileList) as int32) + thisSerializer.writeInt32(fileList.length as int32) + for (let i = 0; i < fileList.length; i++) { + const fileList_element = fileList[i] + thisSerializer.writeString(fileList_element) + } + NativeModule._FileSelectorResult_handleFileList(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkFlex.ts b/arkoala-arkts/arkui/src/generated/ArkFlex.ts new file mode 100644 index 000000000..31f312d06 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkFlex.ts @@ -0,0 +1,78 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkFlexPeer } from "./peers/ArkFlexPeer" +import { PointLightStyle } from "./ArkCommonInterfaces" +import { FlexAttribute, FlexOptions, FlexInterface, FlexSpaceOptions } from "./ArkFlexInterfaces" +import { FlexDirection, FlexWrap, FlexAlign, ItemAlign } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkUnitsInterfaces" +import { IMPORT_LengthMetrics_FROM_api_arkui_Graphics } from "./SyntheticDeclarations" +/** @memo:stable */ +export class ArkFlexComponent extends ArkCommonMethodComponent { + protected peer?: ArkFlexPeer + /** @memo */ + setFlexOptions(value?: FlexOptions): this { + if (this.checkPriority("setFlexOptions")) { + if ((value) == (undefined)) { + throw new Error("Arg 'value' is null"); + } + const value_casted = value as (FlexOptions) + this.peer?.setFlexOptionsAttribute(value_casted) + return this + } + return this + } + /** @memo */ + pointLight(value: PointLightStyle): this { + if (this.checkPriority("pointLight")) { + const value_casted = value as (PointLightStyle) + this.peer?.pointLightAttribute(value_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkFlex( + /** @memo */ + style: ((attributes: ArkFlexComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + value?: FlexOptions +) { + const receiver = remember(() => { + return new ArkFlexComponent() + }) + NodeAttach((): ArkFlexPeer => ArkFlexPeer.create(ArkUINodeType.Flex, receiver), (_: ArkFlexPeer) => { + receiver.setFlexOptions(value) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkFlexInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkFlexInterfaces.ts new file mode 100644 index 000000000..d826ae4d6 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkFlexInterfaces.ts @@ -0,0 +1,22 @@ +import { PointLightStyle } from "./ArkCommonInterfaces" +import { FlexDirection, FlexWrap, FlexAlign, ItemAlign } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkUnitsInterfaces" +import { IMPORT_LengthMetrics_FROM_api_arkui_Graphics } from "./SyntheticDeclarations" +import { KInt } from "@koalaui/interop" +export interface FlexAttribute { + pointLight(value: PointLightStyle): FlexAttribute; +} +export interface FlexInterface { +} +export interface FlexOptions { + direction?: FlexDirection + wrap?: FlexWrap + justifyContent?: FlexAlign + alignItems?: ItemAlign + alignContent?: FlexAlign + space?: FlexSpaceOptions +} +export interface FlexSpaceOptions { + main?: LengthMetrics + cross?: LengthMetrics +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkFlowItem.ts b/arkoala-arkts/arkui/src/generated/ArkFlowItem.ts new file mode 100644 index 000000000..1194f078b --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkFlowItem.ts @@ -0,0 +1,61 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkFlowItemPeer } from "./peers/ArkFlowItemPeer" +import { FlowItemAttribute, FlowItemInterface } from "./ArkFlowItemInterfaces" +/** @memo:stable */ +export class ArkFlowItemComponent extends ArkCommonMethodComponent { + protected peer?: ArkFlowItemPeer + /** @memo */ + setFlowItemOptions(): this { + if (this.checkPriority("setFlowItemOptions")) { + this.peer?.setFlowItemOptionsAttribute() + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkFlowItem( + /** @memo */ + style: ((attributes: ArkFlowItemComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + +) { + const receiver = remember(() => { + return new ArkFlowItemComponent() + }) + NodeAttach((): ArkFlowItemPeer => ArkFlowItemPeer.create(ArkUINodeType.FlowItem, receiver), (_: ArkFlowItemPeer) => { + receiver.setFlowItemOptions() + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkFlowItemInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkFlowItemInterfaces.ts new file mode 100644 index 000000000..267bd4066 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkFlowItemInterfaces.ts @@ -0,0 +1,5 @@ +import { KInt } from "@koalaui/interop" +export interface FlowItemAttribute { +} +export interface FlowItemInterface { +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkFocusInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkFocusInterfaces.ts new file mode 100644 index 000000000..86814c621 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkFocusInterfaces.ts @@ -0,0 +1,62 @@ +import { LengthMetrics, ColorMetrics } from "./ArkUnitsInterfaces" +import { IMPORT_LengthMetrics_FROM_api_arkui_Graphics, IMPORT_ColorMetrics_FROM_api_arkui_Graphics } from "./SyntheticDeclarations" +import { KInt } from "@koalaui/interop" +/** + * Focus Priority + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ +export class FocusPriority { + /** + * Default priority. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly AUTO: FocusPriority = new FocusPriority(0) + /** + * Prior priority. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly PRIOR: FocusPriority = new FocusPriority(2000) + /** + * Previous focus priority. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly PREVIOUS: FocusPriority = new FocusPriority(3000) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): FocusPriority { + if ((arg0) == (FocusPriority.AUTO.value)) { + return FocusPriority.AUTO + } + if ((arg0) == (FocusPriority.PRIOR.value)) { + return FocusPriority.PRIOR + } + if ((arg0) == (FocusPriority.PREVIOUS.value)) { + return FocusPriority.PREVIOUS + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +export interface FocusBoxStyle { + margin?: LengthMetrics + strokeColor?: ColorMetrics + strokeWidth?: LengthMetrics +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkFolderStack.ts b/arkoala-arkts/arkui/src/generated/ArkFolderStack.ts new file mode 100644 index 000000000..cdcbdae86 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkFolderStack.ts @@ -0,0 +1,113 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkFolderStackPeer } from "./peers/ArkFolderStackPeer" +import { UseEventsProperties } from "./use_properties" +import { Alignment, FoldStatus, AppRotation } from "./ArkEnumsInterfaces" +import { FolderStackAttribute, OnFoldStatusChangeCallback, OnFoldStatusChangeInfo, OnHoverStatusChangeCallback, HoverEventParam, FolderStackOptions, FolderStackInterface, WindowStatusType } from "./ArkFolderStackInterfaces" +import { IMPORT_default_WindowStatusType_FROM_api_ohos_window } from "./SyntheticDeclarations" +/** @memo:stable */ +export class ArkFolderStackComponent extends ArkCommonMethodComponent { + protected peer?: ArkFolderStackPeer + /** @memo */ + setFolderStackOptions(options?: FolderStackOptions): this { + if (this.checkPriority("setFolderStackOptions")) { + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (FolderStackOptions) + this.peer?.setFolderStackOptionsAttribute(options_casted) + return this + } + return this + } + /** @memo */ + alignContent(value: Alignment): this { + if (this.checkPriority("alignContent")) { + const value_casted = value as (Alignment) + this.peer?.alignContentAttribute(value_casted) + return this + } + return this + } + /** @memo */ + onFolderStateChange(callback: OnFoldStatusChangeCallback): this { + if (this.checkPriority("onFolderStateChange")) { + const callback_casted = callback as (OnFoldStatusChangeCallback) + this.peer?.onFolderStateChangeAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onHoverStatusChange(handler: OnHoverStatusChangeCallback): this { + if (this.checkPriority("onHoverStatusChange")) { + const handler_casted = handler as (OnHoverStatusChangeCallback) + this.peer?.onHoverStatusChangeAttribute(handler_casted) + return this + } + return this + } + /** @memo */ + enableAnimation(value: boolean): this { + if (this.checkPriority("enableAnimation")) { + const value_casted = value as (boolean) + this.peer?.enableAnimationAttribute(value_casted) + return this + } + return this + } + /** @memo */ + autoHalfFold(value: boolean): this { + if (this.checkPriority("autoHalfFold")) { + const value_casted = value as (boolean) + this.peer?.autoHalfFoldAttribute(value_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkFolderStack( + /** @memo */ + style: ((attributes: ArkFolderStackComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + options?: FolderStackOptions +) { + const receiver = remember(() => { + return new ArkFolderStackComponent() + }) + NodeAttach((): ArkFolderStackPeer => ArkFolderStackPeer.create(ArkUINodeType.FolderStack, receiver), (_: ArkFolderStackPeer) => { + receiver.setFolderStackOptions(options) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkFolderStackInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkFolderStackInterfaces.ts new file mode 100644 index 000000000..fcc5c247a --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkFolderStackInterfaces.ts @@ -0,0 +1,27 @@ +import { Alignment, FoldStatus, AppRotation } from "./ArkEnumsInterfaces" +import { IMPORT_default_WindowStatusType_FROM_api_ohos_window } from "./SyntheticDeclarations" +import { KInt } from "@koalaui/interop" +export interface FolderStackAttribute { + alignContent(value: Alignment): FolderStackAttribute; + onFolderStateChange(callback: OnFoldStatusChangeCallback): FolderStackAttribute; + onHoverStatusChange(handler: OnHoverStatusChangeCallback): FolderStackAttribute; + enableAnimation(value: boolean): FolderStackAttribute; + autoHalfFold(value: boolean): FolderStackAttribute; +} +export interface FolderStackInterface { +} +export declare type OnFoldStatusChangeCallback = ((event: OnFoldStatusChangeInfo) => void) +export interface OnFoldStatusChangeInfo { + foldStatus: FoldStatus +} +export declare type OnHoverStatusChangeCallback = ((param: HoverEventParam) => void) +export interface HoverEventParam { + foldStatus: FoldStatus + isHoverMode: boolean + appRotation: AppRotation + windowStatusType: WindowStatusType +} +export declare type WindowStatusType = IMPORT_default_WindowStatusType_FROM_api_ohos_window +export interface FolderStackOptions { + upperItems?: Array +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkForEachInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkForEachInterfaces.ts new file mode 100644 index 000000000..5f3e82364 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkForEachInterfaces.ts @@ -0,0 +1 @@ +import { KInt } from "@koalaui/interop" \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkFormLink.ts b/arkoala-arkts/arkui/src/generated/ArkFormLink.ts new file mode 100644 index 000000000..663da03c4 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkFormLink.ts @@ -0,0 +1,62 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkFormLinkPeer } from "./peers/ArkFormLinkPeer" +import { FormLinkAttribute, FormLinkOptions, FormLinkInterface } from "./ArkFormLinkInterfaces" +/** @memo:stable */ +export class ArkFormLinkComponent extends ArkCommonMethodComponent { + protected peer?: ArkFormLinkPeer + /** @memo */ + setFormLinkOptions(options: FormLinkOptions): this { + if (this.checkPriority("setFormLinkOptions")) { + const options_casted = options as (FormLinkOptions) + this.peer?.setFormLinkOptionsAttribute(options_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkFormLink( + /** @memo */ + style: ((attributes: ArkFormLinkComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + options: FormLinkOptions +) { + const receiver = remember(() => { + return new ArkFormLinkComponent() + }) + NodeAttach((): ArkFormLinkPeer => ArkFormLinkPeer.create(ArkUINodeType.FormLink, receiver), (_: ArkFormLinkPeer) => { + receiver.setFormLinkOptions(options) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkFormLinkInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkFormLinkInterfaces.ts new file mode 100644 index 000000000..8381808fc --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkFormLinkInterfaces.ts @@ -0,0 +1,13 @@ +import { KInt } from "@koalaui/interop" +export interface FormLinkAttribute { +} +export interface FormLinkInterface { +} +export interface FormLinkOptions { + action: string + moduleName?: string + bundleName?: string + abilityName?: string + uri?: string + params?: Object +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkFullScreenExitHandlerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkFullScreenExitHandlerMaterialized.ts new file mode 100644 index 000000000..28b52b059 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkFullScreenExitHandlerMaterialized.ts @@ -0,0 +1,65 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class FullScreenExitHandler { + peer?: Finalizable + static ctor(): KPointer { + const retval = NativeModule._FullScreenExitHandler_ctor() + return retval + } + constructor() { + const ctorPtr = FullScreenExitHandler.ctor() + this.peer = new Finalizable(ctorPtr, FullScreenExitHandler.getFinalizer()) + } + static getFinalizer(): KPointer { + return NativeModule._FullScreenExitHandler_getFinalizer() + } + exitFullScreen(): void { + this.exitFullScreen_serialize() + } + private exitFullScreen_serialize(): void { + NativeModule._FullScreenExitHandler_exitFullScreen(this.peer!.ptr); + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkGauge.ts b/arkoala-arkts/arkui/src/generated/ArkGauge.ts new file mode 100644 index 000000000..37bb9340a --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkGauge.ts @@ -0,0 +1,157 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkGaugePeer } from "./peers/ArkGaugePeer" +import { GaugeAttribute, GaugeShadowOptions, GaugeIndicatorOptions, GaugeConfiguration, GaugeOptions, GaugeInterface } from "./ArkGaugeInterfaces" +import { ResourceColor, Resource, Length, ResourceStr, Dimension, PX, VP, FP, LPX, Percentage } from "./ArkUnitsInterfaces" +import { Color } from "./ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, UNION_ResourceColorLinearGradient, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage } from "./SyntheticDeclarations" +import { LinearGradient, ContentModifier } from "./ConflictedDeclarations" +import { CustomBuilder, Optional, MultiShadowOptions, CommonConfiguration } from "./ArkCommonInterfaces" +/** @memo:stable */ +export class ArkGaugeComponent extends ArkCommonMethodComponent { + protected peer?: ArkGaugePeer + /** @memo */ + setGaugeOptions(options: GaugeOptions): this { + if (this.checkPriority("setGaugeOptions")) { + const options_casted = options as (GaugeOptions) + this.peer?.setGaugeOptionsAttribute(options_casted) + return this + } + return this + } + /** @memo */ + value(value: number): this { + if (this.checkPriority("value")) { + const value_casted = value as (number) + this.peer?.valueAttribute(value_casted) + return this + } + return this + } + /** @memo */ + startAngle(angle: number): this { + if (this.checkPriority("startAngle")) { + const angle_casted = angle as (number) + this.peer?.startAngleAttribute(angle_casted) + return this + } + return this + } + /** @memo */ + endAngle(angle: number): this { + if (this.checkPriority("endAngle")) { + const angle_casted = angle as (number) + this.peer?.endAngleAttribute(angle_casted) + return this + } + return this + } + /** @memo */ + colors(colors: ResourceColor | LinearGradient | Array<[UNION_ResourceColorLinearGradient, number]>): this { + if (this.checkPriority("colors")) { + const colors_casted = colors as (ResourceColor | LinearGradient | Array<[UNION_ResourceColorLinearGradient, number]>) + this.peer?.colorsAttribute(colors_casted) + return this + } + return this + } + /** @memo */ + strokeWidth(length: Length): this { + if (this.checkPriority("strokeWidth")) { + const length_casted = length as (Length) + this.peer?.strokeWidthAttribute(length_casted) + return this + } + return this + } + /** @memo */ + description(value: CustomBuilder): this { + if (this.checkPriority("description")) { + const value_casted = value as (CustomBuilder) + this.peer?.descriptionAttribute(value_casted) + return this + } + return this + } + /** @memo */ + trackShadow(value: GaugeShadowOptions): this { + if (this.checkPriority("trackShadow")) { + const value_casted = value as (GaugeShadowOptions) + this.peer?.trackShadowAttribute(value_casted) + return this + } + return this + } + /** @memo */ + indicator(value: GaugeIndicatorOptions): this { + if (this.checkPriority("indicator")) { + const value_casted = value as (GaugeIndicatorOptions) + this.peer?.indicatorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + privacySensitive(isPrivacySensitiveMode: boolean | undefined): this { + if (this.checkPriority("privacySensitive")) { + const isPrivacySensitiveMode_casted = isPrivacySensitiveMode as (boolean | undefined) + this.peer?.privacySensitiveAttribute(isPrivacySensitiveMode_casted) + return this + } + return this + } + /** @memo */ + contentModifier(modifier: ContentModifier): this { + if (this.checkPriority("contentModifier")) { + const modifier_casted = modifier as (ContentModifier) + this.peer?.contentModifierAttribute(modifier_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkGauge( + /** @memo */ + style: ((attributes: ArkGaugeComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + options: GaugeOptions +) { + const receiver = remember(() => { + return new ArkGaugeComponent() + }) + NodeAttach((): ArkGaugePeer => ArkGaugePeer.create(ArkUINodeType.Gauge, receiver), (_: ArkGaugePeer) => { + receiver.setGaugeOptions(options) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkGaugeInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkGaugeInterfaces.ts new file mode 100644 index 000000000..c132b0f23 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkGaugeInterfaces.ts @@ -0,0 +1,41 @@ +import { ResourceColor, Resource, Length, ResourceStr, Dimension, PX, VP, FP, LPX, Percentage } from "./ArkUnitsInterfaces" +import { Color } from "./ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, UNION_ResourceColorLinearGradient, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage } from "./SyntheticDeclarations" +import { LinearGradient, ContentModifier } from "./ConflictedDeclarations" +import { CustomBuilder, Optional, MultiShadowOptions, CommonConfiguration } from "./ArkCommonInterfaces" +import { KInt } from "@koalaui/interop" +export interface GaugeAttribute { + value(value: number): GaugeAttribute; + startAngle(angle: number): GaugeAttribute; + endAngle(angle: number): GaugeAttribute; + colors(colors: ResourceColor | LinearGradient | Array<[UNION_ResourceColorLinearGradient, number]>): GaugeAttribute; + strokeWidth(length: Length): GaugeAttribute; + description(value: CustomBuilder): GaugeAttribute; + trackShadow(value: GaugeShadowOptions): GaugeAttribute; + indicator(value: GaugeIndicatorOptions): GaugeAttribute; + privacySensitive(isPrivacySensitiveMode: boolean | undefined): GaugeAttribute; + contentModifier(modifier: ContentModifier): GaugeAttribute; +} +export interface GaugeInterface { +} +export interface GaugeShadowOptions { + radius?: number | Resource + offsetX?: number | Resource + offsetY?: number | Resource +} +export interface GaugeIndicatorOptions { + icon?: ResourceStr + space?: Dimension +} +export interface GaugeConfiguration { + enabled: boolean + contentModifier: ContentModifier + value: number + min: number + max: number +} +export interface GaugeOptions { + value: number + min?: number + max?: number +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkGrid.ts b/arkoala-arkts/arkui/src/generated/ArkGrid.ts new file mode 100644 index 000000000..91661da78 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkGrid.ts @@ -0,0 +1,378 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkScrollableCommonMethodComponent } from "./ArkCommon" +import { ArkGridPeer } from "./peers/ArkGridPeer" +import { UseEventsProperties } from "./use_properties" +import { BarState, Color, EdgeEffect, ScrollSource } from "./ArkEnumsInterfaces" +import { EdgeEffectOptions, Optional, FadingEdgeOptions, NestedScrollOptions, ScrollResult, OnScrollCallback, ItemDragInfo } from "./ArkCommonInterfaces" +import { Resource, Length } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, LITERAL_OffsetRemainNumber } from "./SyntheticDeclarations" +import { ScrollState } from "./ArkListInterfaces" +import { OnWillScrollCallback } from "./ConflictedDeclarations" +import { GridAttribute, ComputedBarAttribute, GridDirection, GridItemAlignment, GridLayoutOptions, GridInterface } from "./ArkGridInterfaces" +import { Scroller } from "./ArkScrollerMaterialized" +/** @memo:stable */ +export class ArkGridComponent extends ArkScrollableCommonMethodComponent { + protected peer?: ArkGridPeer + /** @memo */ + setGridOptions(scroller?: Scroller, layoutOptions?: GridLayoutOptions): this { + if (this.checkPriority("setGridOptions")) { + if ((scroller) == (undefined)) { + throw new Error("Arg 'scroller' is null"); + } + const scroller_casted = scroller as (Scroller) + if ((layoutOptions) == (undefined)) { + throw new Error("Arg 'layoutOptions' is null"); + } + const layoutOptions_casted = layoutOptions as (GridLayoutOptions) + this.peer?.setGridOptionsAttribute(scroller_casted, layoutOptions_casted) + return this + } + return this + } + /** @memo */ + columnsTemplate(value: string): this { + if (this.checkPriority("columnsTemplate")) { + const value_casted = value as (string) + this.peer?.columnsTemplateAttribute(value_casted) + return this + } + return this + } + /** @memo */ + rowsTemplate(value: string): this { + if (this.checkPriority("rowsTemplate")) { + const value_casted = value as (string) + this.peer?.rowsTemplateAttribute(value_casted) + return this + } + return this + } + /** @memo */ + columnsGap(value: Length): this { + if (this.checkPriority("columnsGap")) { + const value_casted = value as (Length) + this.peer?.columnsGapAttribute(value_casted) + return this + } + return this + } + /** @memo */ + rowsGap(value: Length): this { + if (this.checkPriority("rowsGap")) { + const value_casted = value as (Length) + this.peer?.rowsGapAttribute(value_casted) + return this + } + return this + } + /** @memo */ + scrollBarWidth(value: number | string): this { + if (this.checkPriority("scrollBarWidth")) { + const value_casted = value as (number | string) + this.peer?.scrollBarWidthAttribute(value_casted) + return this + } + return this + } + /** @memo */ + scrollBarColor(value: Color | number | string): this { + if (this.checkPriority("scrollBarColor")) { + const value_casted = value as (Color | number | string) + this.peer?.scrollBarColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + scrollBar(value: BarState): this { + if (this.checkPriority("scrollBar")) { + const value_casted = value as (BarState) + this.peer?.scrollBarAttribute(value_casted) + return this + } + return this + } + /** @memo */ + onScrollBarUpdate(event: ((index: number, offset: number) => ComputedBarAttribute)): this { + if (this.checkPriority("onScrollBarUpdate")) { + const event_casted = event as (((index: number, offset: number) => ComputedBarAttribute)) + this.peer?.onScrollBarUpdateAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onScrollIndex(event: ((first: number, last: number) => void)): this { + if (this.checkPriority("onScrollIndex")) { + const event_casted = event as (((first: number, last: number) => void)) + this.peer?.onScrollIndexAttribute(event_casted) + return this + } + return this + } + /** @memo */ + cachedCount(value: number): this { + if (this.checkPriority("cachedCount")) { + const value_casted = value as (number) + this.peer?.cachedCountAttribute(value_casted) + return this + } + return this + } + /** @memo */ + editMode(value: boolean): this { + if (this.checkPriority("editMode")) { + const value_casted = value as (boolean) + this.peer?.editModeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + multiSelectable(value: boolean): this { + if (this.checkPriority("multiSelectable")) { + const value_casted = value as (boolean) + this.peer?.multiSelectableAttribute(value_casted) + return this + } + return this + } + /** @memo */ + maxCount(value: number): this { + if (this.checkPriority("maxCount")) { + const value_casted = value as (number) + this.peer?.maxCountAttribute(value_casted) + return this + } + return this + } + /** @memo */ + minCount(value: number): this { + if (this.checkPriority("minCount")) { + const value_casted = value as (number) + this.peer?.minCountAttribute(value_casted) + return this + } + return this + } + /** @memo */ + cellLength(value: number): this { + if (this.checkPriority("cellLength")) { + const value_casted = value as (number) + this.peer?.cellLengthAttribute(value_casted) + return this + } + return this + } + /** @memo */ + layoutDirection(value: GridDirection): this { + if (this.checkPriority("layoutDirection")) { + const value_casted = value as (GridDirection) + this.peer?.layoutDirectionAttribute(value_casted) + return this + } + return this + } + /** @memo */ + supportAnimation(value: boolean): this { + if (this.checkPriority("supportAnimation")) { + const value_casted = value as (boolean) + this.peer?.supportAnimationAttribute(value_casted) + return this + } + return this + } + /** @memo */ + onItemDragStart(event: ((event: ItemDragInfo, itemIndex: number) => ((() => Object)))): this { + if (this.checkPriority("onItemDragStart")) { + const event_casted = event as (((event: ItemDragInfo, itemIndex: number) => ((() => Object)))) + this.peer?.onItemDragStartAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onItemDragEnter(event: ((event: ItemDragInfo) => void)): this { + if (this.checkPriority("onItemDragEnter")) { + const event_casted = event as (((event: ItemDragInfo) => void)) + this.peer?.onItemDragEnterAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onItemDragMove(event: ((event: ItemDragInfo, itemIndex: number, insertIndex: number) => void)): this { + if (this.checkPriority("onItemDragMove")) { + const event_casted = event as (((event: ItemDragInfo, itemIndex: number, insertIndex: number) => void)) + this.peer?.onItemDragMoveAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onItemDragLeave(event: ((event: ItemDragInfo, itemIndex: number) => void)): this { + if (this.checkPriority("onItemDragLeave")) { + const event_casted = event as (((event: ItemDragInfo, itemIndex: number) => void)) + this.peer?.onItemDragLeaveAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onItemDrop(event: ((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => void)): this { + if (this.checkPriority("onItemDrop")) { + const event_casted = event as (((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => void)) + this.peer?.onItemDropAttribute(event_casted) + return this + } + return this + } + /** @memo */ + edgeEffect(value: EdgeEffect, options?: EdgeEffectOptions): this { + if (this.checkPriority("edgeEffect")) { + const value_casted = value as (EdgeEffect) + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (EdgeEffectOptions) + this.peer?.edgeEffectAttribute(value_casted, options_casted) + return this + } + return this + } + /** @memo */ + nestedScroll(value: NestedScrollOptions): this { + if (this.checkPriority("nestedScroll")) { + const value_casted = value as (NestedScrollOptions) + this.peer?.nestedScrollAttribute(value_casted) + return this + } + return this + } + /** @memo */ + enableScrollInteraction(value: boolean): this { + if (this.checkPriority("enableScrollInteraction")) { + const value_casted = value as (boolean) + this.peer?.enableScrollInteractionAttribute(value_casted) + return this + } + return this + } + /** @memo */ + friction(value: number | Resource): this { + if (this.checkPriority("friction")) { + const value_casted = value as (number | Resource) + this.peer?.frictionAttribute(value_casted) + return this + } + return this + } + /** @memo */ + alignItems(alignment: GridItemAlignment | undefined): this { + if (this.checkPriority("alignItems")) { + const alignment_casted = alignment as (GridItemAlignment | undefined) + this.peer?.alignItemsAttribute(alignment_casted) + return this + } + return this + } + /** @memo */ + onScroll(event: ((scrollOffset: number, scrollState: ScrollState) => void)): this { + if (this.checkPriority("onScroll")) { + const event_casted = event as (((scrollOffset: number, scrollState: ScrollState) => void)) + this.peer?.onScrollAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onReachStart(event: (() => void)): this { + if (this.checkPriority("onReachStart")) { + const event_casted = event as ((() => void)) + this.peer?.onReachStartAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onReachEnd(event: (() => void)): this { + if (this.checkPriority("onReachEnd")) { + const event_casted = event as ((() => void)) + this.peer?.onReachEndAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onScrollStart(event: (() => void)): this { + if (this.checkPriority("onScrollStart")) { + const event_casted = event as ((() => void)) + this.peer?.onScrollStartAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onScrollStop(event: (() => void)): this { + if (this.checkPriority("onScrollStop")) { + const event_casted = event as ((() => void)) + this.peer?.onScrollStopAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onScrollFrameBegin(event: ((offset: number, state: ScrollState) => LITERAL_OffsetRemainNumber)): this { + if (this.checkPriority("onScrollFrameBegin")) { + const event_casted = event as (((offset: number, state: ScrollState) => LITERAL_OffsetRemainNumber)) + this.peer?.onScrollFrameBeginAttribute(event_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkGrid( + /** @memo */ + style: ((attributes: ArkGridComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + scroller?: Scroller, layoutOptions?: GridLayoutOptions +) { + const receiver = remember(() => { + return new ArkGridComponent() + }) + NodeAttach((): ArkGridPeer => ArkGridPeer.create(ArkUINodeType.Grid, receiver), (_: ArkGridPeer) => { + receiver.setGridOptions(scroller,layoutOptions) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkGridCol.ts b/arkoala-arkts/arkui/src/generated/ArkGridCol.ts new file mode 100644 index 000000000..f7d3ecd71 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkGridCol.ts @@ -0,0 +1,92 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkGridColPeer } from "./peers/ArkGridColPeer" +import { GridColColumnOption, GridColAttribute, GridColOptions, GridColInterface } from "./ArkGridColInterfaces" +/** @memo:stable */ +export class ArkGridColComponent extends ArkCommonMethodComponent { + protected peer?: ArkGridColPeer + /** @memo */ + setGridColOptions(option?: GridColOptions): this { + if (this.checkPriority("setGridColOptions")) { + if ((option) == (undefined)) { + throw new Error("Arg 'option' is null"); + } + const option_casted = option as (GridColOptions) + this.peer?.setGridColOptionsAttribute(option_casted) + return this + } + return this + } + /** @memo */ + span(value: number | GridColColumnOption): this { + if (this.checkPriority("span")) { + const value_casted = value as (number | GridColColumnOption) + this.peer?.spanAttribute(value_casted) + return this + } + return this + } + /** @memo */ + gridColOffset(value: number | GridColColumnOption): this { + if (this.checkPriority("gridColOffset")) { + const value_casted = value as (number | GridColColumnOption) + this.peer?.gridColOffsetAttribute(value_casted) + return this + } + return this + } + /** @memo */ + order(value: number | GridColColumnOption): this { + if (this.checkPriority("order")) { + const value_casted = value as (number | GridColColumnOption) + this.peer?.orderAttribute(value_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkGridCol( + /** @memo */ + style: ((attributes: ArkGridColComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + option?: GridColOptions +) { + const receiver = remember(() => { + return new ArkGridColComponent() + }) + NodeAttach((): ArkGridColPeer => ArkGridColPeer.create(ArkUINodeType.GridCol, receiver), (_: ArkGridColPeer) => { + receiver.setGridColOptions(option) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkGridColInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkGridColInterfaces.ts new file mode 100644 index 000000000..6946fdb0e --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkGridColInterfaces.ts @@ -0,0 +1,21 @@ +import { KInt } from "@koalaui/interop" +export interface GridColAttribute { + span(value: number | GridColColumnOption): GridColAttribute; + gridColOffset(value: number | GridColColumnOption): GridColAttribute; + order(value: number | GridColColumnOption): GridColAttribute; +} +export interface GridColInterface { +} +export interface GridColColumnOption { + xs?: number + sm?: number + md?: number + lg?: number + xl?: number + xxl?: number +} +export interface GridColOptions { + span?: number | GridColColumnOption + offset?: number | GridColColumnOption + order?: number | GridColColumnOption +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkGridInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkGridInterfaces.ts new file mode 100644 index 000000000..877ff5c58 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkGridInterfaces.ts @@ -0,0 +1,231 @@ +import { BarState, Color, EdgeEffect, ScrollSource } from "./ArkEnumsInterfaces" +import { EdgeEffectOptions, Optional, FadingEdgeOptions, NestedScrollOptions, ScrollResult, OnScrollCallback, ItemDragInfo } from "./ArkCommonInterfaces" +import { Resource, Length } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, LITERAL_OffsetRemainNumber } from "./SyntheticDeclarations" +import { ScrollState } from "./ArkListInterfaces" +import { OnWillScrollCallback } from "./ConflictedDeclarations" +import { Scroller } from "./ArkScrollerMaterialized" +import { KInt } from "@koalaui/interop" +/** + * The enum of property layoutDirection + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * The enum of property layoutDirection + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * The enum of property layoutDirection + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class GridDirection { + /** + * The row direction. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * The row direction. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * The row direction. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Row: GridDirection = new GridDirection(0) + /** + * The column direction. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * The column direction. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * The column direction. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Column: GridDirection = new GridDirection(1) + /** + * The row reverse direction. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * The row reverse direction. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * The row reverse direction. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly RowReverse: GridDirection = new GridDirection(2) + /** + * The column reverse direction. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * The column reverse direction. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * The column reverse direction. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly ColumnReverse: GridDirection = new GridDirection(3) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): GridDirection { + if ((arg0) == (GridDirection.Row.value)) { + return GridDirection.Row + } + if ((arg0) == (GridDirection.Column.value)) { + return GridDirection.Column + } + if ((arg0) == (GridDirection.RowReverse.value)) { + return GridDirection.RowReverse + } + if ((arg0) == (GridDirection.ColumnReverse.value)) { + return GridDirection.ColumnReverse + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Declare grid item alignment status + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ +export class GridItemAlignment { + /** + * Use the default alignment of the Grid. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly DEFAULT: GridItemAlignment = new GridItemAlignment(0) + /** + * The height of the tallest grid item in the current line + * will be used as the height for the other items in the same line + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly STRETCH: GridItemAlignment = new GridItemAlignment(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): GridItemAlignment { + if ((arg0) == (GridItemAlignment.DEFAULT.value)) { + return GridItemAlignment.DEFAULT + } + if ((arg0) == (GridItemAlignment.STRETCH.value)) { + return GridItemAlignment.STRETCH + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +export interface GridAttribute { + columnsTemplate(value: string): GridAttribute; + rowsTemplate(value: string): GridAttribute; + columnsGap(value: Length): GridAttribute; + rowsGap(value: Length): GridAttribute; + scrollBarWidth(value: number | string): GridAttribute; + scrollBarColor(value: Color | number | string): GridAttribute; + scrollBar(value: BarState): GridAttribute; + onScrollBarUpdate(event: ((index: number, offset: number) => ComputedBarAttribute)): GridAttribute; + onScrollIndex(event: ((first: number, last: number) => void)): GridAttribute; + cachedCount(value: number): GridAttribute; + editMode(value: boolean): GridAttribute; + multiSelectable(value: boolean): GridAttribute; + maxCount(value: number): GridAttribute; + minCount(value: number): GridAttribute; + cellLength(value: number): GridAttribute; + layoutDirection(value: GridDirection): GridAttribute; + supportAnimation(value: boolean): GridAttribute; + onItemDragStart(event: ((event: ItemDragInfo, itemIndex: number) => ((() => Object)))): GridAttribute; + onItemDragEnter(event: ((event: ItemDragInfo) => void)): GridAttribute; + onItemDragMove(event: ((event: ItemDragInfo, itemIndex: number, insertIndex: number) => void)): GridAttribute; + onItemDragLeave(event: ((event: ItemDragInfo, itemIndex: number) => void)): GridAttribute; + onItemDrop(event: ((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => void)): GridAttribute; + edgeEffect(value: EdgeEffect,options: EdgeEffectOptions): GridAttribute; + nestedScroll(value: NestedScrollOptions): GridAttribute; + enableScrollInteraction(value: boolean): GridAttribute; + friction(value: number | Resource): GridAttribute; + alignItems(alignment: GridItemAlignment | undefined): GridAttribute; + onScroll(event: ((scrollOffset: number, scrollState: ScrollState) => void)): GridAttribute; + onReachStart(event: (() => void)): GridAttribute; + onReachEnd(event: (() => void)): GridAttribute; + onScrollStart(event: (() => void)): GridAttribute; + onScrollStop(event: (() => void)): GridAttribute; + onScrollFrameBegin(event: ((offset: number, state: ScrollState) => LITERAL_OffsetRemainNumber)): GridAttribute; +} +export interface GridInterface { +} +export interface ComputedBarAttribute { + totalOffset: number + totalLength: number +} +export interface GridLayoutOptions { + regularSize: [number, number] + irregularIndexes?: number[] + onGetIrregularSizeByIndex?: ((index: number) => [number, number]) + onGetRectByIndex?: ((index: number) => [number, number, number, number]) +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkGridItem.ts b/arkoala-arkts/arkui/src/generated/ArkGridItem.ts new file mode 100644 index 000000000..74affa9a4 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkGridItem.ts @@ -0,0 +1,138 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkGridItemPeer } from "./peers/ArkGridItemPeer" +import { UseEventsProperties } from "./use_properties" +import { GridItemAttribute, GridItemOptions, GridItemInterface, GridItemStyle } from "./ArkGridItemInterfaces" +/** @memo:stable */ +export class ArkGridItemComponent extends ArkCommonMethodComponent { + protected peer?: ArkGridItemPeer + /** @memo */ + setGridItemOptions(value?: GridItemOptions): this { + if (this.checkPriority("setGridItemOptions")) { + if ((value) == (undefined)) { + throw new Error("Arg 'value' is null"); + } + const value_casted = value as (GridItemOptions) + this.peer?.setGridItemOptionsAttribute(value_casted) + return this + } + return this + } + /** @memo */ + rowStart(value: number): this { + if (this.checkPriority("rowStart")) { + const value_casted = value as (number) + this.peer?.rowStartAttribute(value_casted) + return this + } + return this + } + /** @memo */ + rowEnd(value: number): this { + if (this.checkPriority("rowEnd")) { + const value_casted = value as (number) + this.peer?.rowEndAttribute(value_casted) + return this + } + return this + } + /** @memo */ + columnStart(value: number): this { + if (this.checkPriority("columnStart")) { + const value_casted = value as (number) + this.peer?.columnStartAttribute(value_casted) + return this + } + return this + } + /** @memo */ + columnEnd(value: number): this { + if (this.checkPriority("columnEnd")) { + const value_casted = value as (number) + this.peer?.columnEndAttribute(value_casted) + return this + } + return this + } + /** @memo */ + forceRebuild(value: boolean): this { + if (this.checkPriority("forceRebuild")) { + const value_casted = value as (boolean) + this.peer?.forceRebuildAttribute(value_casted) + return this + } + return this + } + /** @memo */ + selectable(value: boolean): this { + if (this.checkPriority("selectable")) { + const value_casted = value as (boolean) + this.peer?.selectableAttribute(value_casted) + return this + } + return this + } + /** @memo */ + selected(value: boolean): this { + if (this.checkPriority("selected")) { + const value_casted = value as (boolean) + this.peer?.selectedAttribute(value_casted) + return this + } + return this + } + /** @memo */ + onSelect(event: ((isSelected: boolean) => void)): this { + if (this.checkPriority("onSelect")) { + const event_casted = event as (((isSelected: boolean) => void)) + this.peer?.onSelectAttribute(event_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkGridItem( + /** @memo */ + style: ((attributes: ArkGridItemComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + value?: GridItemOptions +) { + const receiver = remember(() => { + return new ArkGridItemComponent() + }) + NodeAttach((): ArkGridItemPeer => ArkGridItemPeer.create(ArkUINodeType.GridItem, receiver), (_: ArkGridItemPeer) => { + receiver.setGridItemOptions(value) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkGridItemInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkGridItemInterfaces.ts new file mode 100644 index 000000000..93d2ae97a --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkGridItemInterfaces.ts @@ -0,0 +1,98 @@ +import { KInt } from "@koalaui/interop" +/* + * Copyright (c) 2021-2023 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +/** + * @file + * @kit ArkUI + */ +/** + * Defines the grid item style. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * Defines the grid item style. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ +export class GridItemStyle { + /** + * Show none style. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * Show none style. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly NONE: GridItemStyle = new GridItemStyle(0) + /** + * Show plain style. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * Show plain style. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly PLAIN: GridItemStyle = new GridItemStyle(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): GridItemStyle { + if ((arg0) == (GridItemStyle.NONE.value)) { + return GridItemStyle.NONE + } + if ((arg0) == (GridItemStyle.PLAIN.value)) { + return GridItemStyle.PLAIN + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +export interface GridItemAttribute { + rowStart(value: number): GridItemAttribute; + rowEnd(value: number): GridItemAttribute; + columnStart(value: number): GridItemAttribute; + columnEnd(value: number): GridItemAttribute; + forceRebuild(value: boolean): GridItemAttribute; + selectable(value: boolean): GridItemAttribute; + selected(value: boolean): GridItemAttribute; + onSelect(event: ((isSelected: boolean) => void)): GridItemAttribute; +} +export interface GridItemInterface { +} +export interface GridItemOptions { + style?: GridItemStyle +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkGridRow.ts b/arkoala-arkts/arkui/src/generated/ArkGridRow.ts new file mode 100644 index 000000000..1261b7b93 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkGridRow.ts @@ -0,0 +1,87 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkGridRowPeer } from "./peers/ArkGridRowPeer" +import { UseEventsProperties } from "./use_properties" +import { GridRowAttribute, GridRowOptions, GridRowInterface, GutterOption, GridRowColumnOption, BreakPoints, GridRowDirection, GridRowSizeOption, BreakpointsReference } from "./ArkGridRowInterfaces" +import { ItemAlign } from "./ArkEnumsInterfaces" +import { Length, Resource } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource } from "./SyntheticDeclarations" +/** @memo:stable */ +export class ArkGridRowComponent extends ArkCommonMethodComponent { + protected peer?: ArkGridRowPeer + /** @memo */ + setGridRowOptions(option?: GridRowOptions): this { + if (this.checkPriority("setGridRowOptions")) { + if ((option) == (undefined)) { + throw new Error("Arg 'option' is null"); + } + const option_casted = option as (GridRowOptions) + this.peer?.setGridRowOptionsAttribute(option_casted) + return this + } + return this + } + /** @memo */ + onBreakpointChange(callback: ((breakpoints: string) => void)): this { + if (this.checkPriority("onBreakpointChange")) { + const callback_casted = callback as (((breakpoints: string) => void)) + this.peer?.onBreakpointChangeAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + alignItems(value: ItemAlign): this { + if (this.checkPriority("alignItems")) { + const value_casted = value as (ItemAlign) + this.peer?.alignItemsAttribute(value_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkGridRow( + /** @memo */ + style: ((attributes: ArkGridRowComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + option?: GridRowOptions +) { + const receiver = remember(() => { + return new ArkGridRowComponent() + }) + NodeAttach((): ArkGridRowPeer => ArkGridRowPeer.create(ArkUINodeType.GridRow, receiver), (_: ArkGridRowPeer) => { + receiver.setGridRowOptions(option) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkGridRowInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkGridRowInterfaces.ts new file mode 100644 index 000000000..bea9ce938 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkGridRowInterfaces.ts @@ -0,0 +1,224 @@ +import { ItemAlign } from "./ArkEnumsInterfaces" +import { Length, Resource } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource } from "./SyntheticDeclarations" +import { KInt } from "@koalaui/interop" +/** + * Defines the breakpoint reference of grid-container component. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Defines the breakpoint reference of grid-container component. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Defines the breakpoint reference of grid-container component. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ +export class BreakpointsReference { + /** + * Respond to breakpoint changes according to window width + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Respond to breakpoint changes according to window width + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Respond to breakpoint changes according to window width + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly WindowSize: BreakpointsReference = new BreakpointsReference(0) + /** + * Respond to breakpoint changes according to component width + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Respond to breakpoint changes according to component width + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Respond to breakpoint changes according to component width + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly ComponentSize: BreakpointsReference = new BreakpointsReference(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): BreakpointsReference { + if ((arg0) == (BreakpointsReference.WindowSize.value)) { + return BreakpointsReference.WindowSize + } + if ((arg0) == (BreakpointsReference.ComponentSize.value)) { + return BreakpointsReference.ComponentSize + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Defines the direction of grid-container component. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Defines the direction of grid-container component. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Defines the direction of grid-container component. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ +export class GridRowDirection { + /** + * The elements in the grid component are arranged in rows + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * The elements in the grid component are arranged in rows + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * The elements in the grid component are arranged in rows + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Row: GridRowDirection = new GridRowDirection(0) + /** + * The elements in the grid component are arranged in reverse order of rows + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * The elements in the grid component are arranged in reverse order of rows + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * The elements in the grid component are arranged in reverse order of rows + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly RowReverse: GridRowDirection = new GridRowDirection(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): GridRowDirection { + if ((arg0) == (GridRowDirection.Row.value)) { + return GridRowDirection.Row + } + if ((arg0) == (GridRowDirection.RowReverse.value)) { + return GridRowDirection.RowReverse + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +export interface GridRowAttribute { + onBreakpointChange(callback: ((breakpoints: string) => void)): GridRowAttribute; + alignItems(value: ItemAlign): GridRowAttribute; +} +export interface GridRowInterface { +} +export interface GridRowOptions { + gutter?: Length | GutterOption + columns?: number | GridRowColumnOption + breakpoints?: BreakPoints + direction?: GridRowDirection +} +export interface GutterOption { + x?: Length | GridRowSizeOption + y?: Length | GridRowSizeOption +} +export interface GridRowSizeOption { + xs?: Length + sm?: Length + md?: Length + lg?: Length + xl?: Length + xxl?: Length +} +export interface GridRowColumnOption { + xs?: number + sm?: number + md?: number + lg?: number + xl?: number + xxl?: number +} +export interface BreakPoints { + value?: Array + reference?: BreakpointsReference +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkHttpAuthHandlerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkHttpAuthHandlerMaterialized.ts new file mode 100644 index 000000000..6e5a0524d --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkHttpAuthHandlerMaterialized.ts @@ -0,0 +1,81 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class HttpAuthHandler { + peer?: Finalizable + static ctor(): KPointer { + const retval = NativeModule._HttpAuthHandler_ctor() + return retval + } + constructor() { + const ctorPtr = HttpAuthHandler.ctor() + this.peer = new Finalizable(ctorPtr, HttpAuthHandler.getFinalizer()) + } + static getFinalizer(): KPointer { + return NativeModule._HttpAuthHandler_getFinalizer() + } + confirm(userName: string, password: string): boolean { + const userName_casted = userName as (string) + const password_casted = password as (string) + return this.confirm_serialize(userName_casted, password_casted) + } + cancel(): void { + this.cancel_serialize() + } + isHttpAuthInfoSaved(): boolean { + return this.isHttpAuthInfoSaved_serialize() + } + private confirm_serialize(userName: string, password: string): boolean { + const retval = NativeModule._HttpAuthHandler_confirm(this.peer!.ptr, userName, password) + return retval + } + private cancel_serialize(): void { + NativeModule._HttpAuthHandler_cancel(this.peer!.ptr); + } + private isHttpAuthInfoSaved_serialize(): boolean { + const retval = NativeModule._HttpAuthHandler_isHttpAuthInfoSaved(this.peer!.ptr) + return retval + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkHyperlink.ts b/arkoala-arkts/arkui/src/generated/ArkHyperlink.ts new file mode 100644 index 000000000..b5ee3fb3f --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkHyperlink.ts @@ -0,0 +1,78 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkHyperlinkPeer } from "./peers/ArkHyperlinkPeer" +import { Color } from "./ArkEnumsInterfaces" +import { Resource } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource } from "./SyntheticDeclarations" +import { HyperlinkAttribute, HyperlinkInterface } from "./ArkHyperlinkInterfaces" +/** @memo:stable */ +export class ArkHyperlinkComponent extends ArkCommonMethodComponent { + protected peer?: ArkHyperlinkPeer + /** @memo */ + setHyperlinkOptions(address: string | Resource, content?: string | Resource): this { + if (this.checkPriority("setHyperlinkOptions")) { + const address_casted = address as (string | Resource) + if ((content) == (undefined)) { + throw new Error("Arg 'content' is null"); + } + const content_casted = content as (string | Resource) + this.peer?.setHyperlinkOptionsAttribute(address_casted, content_casted) + return this + } + return this + } + /** @memo */ + color(value: Color | number | string | Resource): this { + if (this.checkPriority("color")) { + const value_casted = value as (Color | number | string | Resource) + this.peer?.colorAttribute(value_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkHyperlink( + /** @memo */ + style: ((attributes: ArkHyperlinkComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + address: string | Resource, content?: string | Resource +) { + const receiver = remember(() => { + return new ArkHyperlinkComponent() + }) + NodeAttach((): ArkHyperlinkPeer => ArkHyperlinkPeer.create(ArkUINodeType.Hyperlink, receiver), (_: ArkHyperlinkPeer) => { + receiver.setHyperlinkOptions(address,content) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkHyperlinkInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkHyperlinkInterfaces.ts new file mode 100644 index 000000000..35b9baee5 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkHyperlinkInterfaces.ts @@ -0,0 +1,9 @@ +import { Color } from "./ArkEnumsInterfaces" +import { Resource } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource } from "./SyntheticDeclarations" +import { KInt } from "@koalaui/interop" +export interface HyperlinkAttribute { + color(value: Color | number | string | Resource): HyperlinkAttribute; +} +export interface HyperlinkInterface { +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkImageAnalyzerControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkImageAnalyzerControllerMaterialized.ts new file mode 100644 index 000000000..37c1de29b --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkImageAnalyzerControllerMaterialized.ts @@ -0,0 +1,67 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { ImageAnalyzerType } from "./ArkImageCommonInterfaces" +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class ImageAnalyzerController { + peer?: Finalizable + static ctor(): KPointer { + const retval = NativeModule._ImageAnalyzerController_ctor() + return retval + } + constructor() { + const ctorPtr = ImageAnalyzerController.ctor() + this.peer = new Finalizable(ctorPtr, ImageAnalyzerController.getFinalizer()) + } + static getFinalizer(): KPointer { + return NativeModule._ImageAnalyzerController_getFinalizer() + } + getImageAnalyzerSupportTypes(): ImageAnalyzerType[] { + return this.getImageAnalyzerSupportTypes_serialize() + } + private getImageAnalyzerSupportTypes_serialize(): ImageAnalyzerType[] { + const retval = NativeModule._ImageAnalyzerController_getImageAnalyzerSupportTypes(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkImageAnimator.ts b/arkoala-arkts/arkui/src/generated/ArkImageAnimator.ts new file mode 100644 index 000000000..598d8315f --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkImageAnimator.ts @@ -0,0 +1,183 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkImageAnimatorPeer } from "./peers/ArkImageAnimatorPeer" +import { UseEventsProperties } from "./use_properties" +import { ImageFrameInfo, ImageAnimatorAttribute, ImageAnimatorInterface } from "./ArkImageAnimatorInterfaces" +import { AnimationStatus, FillMode } from "./ArkEnumsInterfaces" +import { Resource } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image } from "./SyntheticDeclarations" +import { PixelMap } from "./ArkCommonInterfaces" +/** @memo:stable */ +export class ArkImageAnimatorComponent extends ArkCommonMethodComponent { + protected peer?: ArkImageAnimatorPeer + /** @memo */ + setImageAnimatorOptions(): this { + if (this.checkPriority("setImageAnimatorOptions")) { + this.peer?.setImageAnimatorOptionsAttribute() + return this + } + return this + } + /** @memo */ + images(value: Array): this { + if (this.checkPriority("images")) { + const value_casted = value as (Array) + this.peer?.imagesAttribute(value_casted) + return this + } + return this + } + /** @memo */ + state(value: AnimationStatus): this { + if (this.checkPriority("state")) { + const value_casted = value as (AnimationStatus) + this.peer?.stateAttribute(value_casted) + return this + } + return this + } + /** @memo */ + duration(value: number): this { + if (this.checkPriority("duration")) { + const value_casted = value as (number) + this.peer?.durationAttribute(value_casted) + return this + } + return this + } + /** @memo */ + reverse(value: boolean): this { + if (this.checkPriority("reverse")) { + const value_casted = value as (boolean) + this.peer?.reverseAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fixedSize(value: boolean): this { + if (this.checkPriority("fixedSize")) { + const value_casted = value as (boolean) + this.peer?.fixedSizeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + preDecode(value: number): this { + if (this.checkPriority("preDecode")) { + const value_casted = value as (number) + this.peer?.preDecodeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fillMode(value: FillMode): this { + if (this.checkPriority("fillMode")) { + const value_casted = value as (FillMode) + this.peer?.fillModeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + iterations(value: number): this { + if (this.checkPriority("iterations")) { + const value_casted = value as (number) + this.peer?.iterationsAttribute(value_casted) + return this + } + return this + } + /** @memo */ + onStart(event: (() => void)): this { + if (this.checkPriority("onStart")) { + const event_casted = event as ((() => void)) + this.peer?.onStartAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onPause(event: (() => void)): this { + if (this.checkPriority("onPause")) { + const event_casted = event as ((() => void)) + this.peer?.onPauseAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onRepeat(event: (() => void)): this { + if (this.checkPriority("onRepeat")) { + const event_casted = event as ((() => void)) + this.peer?.onRepeatAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onCancel(event: (() => void)): this { + if (this.checkPriority("onCancel")) { + const event_casted = event as ((() => void)) + this.peer?.onCancelAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onFinish(event: (() => void)): this { + if (this.checkPriority("onFinish")) { + const event_casted = event as ((() => void)) + this.peer?.onFinishAttribute(event_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkImageAnimator( + /** @memo */ + style: ((attributes: ArkImageAnimatorComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + +) { + const receiver = remember(() => { + return new ArkImageAnimatorComponent() + }) + NodeAttach((): ArkImageAnimatorPeer => ArkImageAnimatorPeer.create(ArkUINodeType.ImageAnimator, receiver), (_: ArkImageAnimatorPeer) => { + receiver.setImageAnimatorOptions() + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkImageAnimatorInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkImageAnimatorInterfaces.ts new file mode 100644 index 000000000..acf7232fb --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkImageAnimatorInterfaces.ts @@ -0,0 +1,30 @@ +import { AnimationStatus, FillMode } from "./ArkEnumsInterfaces" +import { Resource } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image } from "./SyntheticDeclarations" +import { PixelMap } from "./ArkCommonInterfaces" +import { KInt } from "@koalaui/interop" +export interface ImageAnimatorAttribute { + images(value: Array): ImageAnimatorAttribute; + state(value: AnimationStatus): ImageAnimatorAttribute; + duration(value: number): ImageAnimatorAttribute; + reverse(value: boolean): ImageAnimatorAttribute; + fixedSize(value: boolean): ImageAnimatorAttribute; + preDecode(value: number): ImageAnimatorAttribute; + fillMode(value: FillMode): ImageAnimatorAttribute; + iterations(value: number): ImageAnimatorAttribute; + onStart(event: (() => void)): ImageAnimatorAttribute; + onPause(event: (() => void)): ImageAnimatorAttribute; + onRepeat(event: (() => void)): ImageAnimatorAttribute; + onCancel(event: (() => void)): ImageAnimatorAttribute; + onFinish(event: (() => void)): ImageAnimatorAttribute; +} +export interface ImageAnimatorInterface { +} +export interface ImageFrameInfo { + src: string | Resource | PixelMap + width?: number | string + height?: number | string + top?: number | string + left?: number | string + duration?: number +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkImageBitmapMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkImageBitmapMaterialized.ts new file mode 100644 index 000000000..fb99758d0 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkImageBitmapMaterialized.ts @@ -0,0 +1,90 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { LengthMetricsUnit } from "./ArkUnitsInterfaces" +import { IMPORT_LengthMetricsUnit_FROM_api_arkui_Graphics, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image } from "./SyntheticDeclarations" +import { PixelMap } from "./ArkCommonInterfaces" +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class ImageBitmap { + peer?: Finalizable + get height(): number { + return this.getHeight() + } + get width(): number { + return this.getWidth() + } + static ctor(src: string): KPointer { + const retval = NativeModule._ImageBitmap_ctor(src) + return retval + } + constructor(src?: string) { + if (((src) !== (undefined))) { + const ctorPtr = ImageBitmap.ctor(src) + this.peer = new Finalizable(ctorPtr, ImageBitmap.getFinalizer()) + } + } + static getFinalizer(): KPointer { + return NativeModule._ImageBitmap_getFinalizer() + } + close(): void { + this.close_serialize() + } + private getHeight(): number { + return this.getHeight_serialize() + } + private getWidth(): number { + return this.getWidth_serialize() + } + private close_serialize(): void { + NativeModule._ImageBitmap_close(this.peer!.ptr); + } + private getHeight_serialize(): number { + const retval = NativeModule._ImageBitmap_getHeight(this.peer!.ptr) + return retval + } + private getWidth_serialize(): number { + const retval = NativeModule._ImageBitmap_getWidth(this.peer!.ptr) + return retval + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkImageCommonInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkImageCommonInterfaces.ts new file mode 100644 index 000000000..0b1e8a095 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkImageCommonInterfaces.ts @@ -0,0 +1,77 @@ +import { ImageAnalyzerController } from "./ArkImageAnalyzerControllerMaterialized" +import { KInt } from "@koalaui/interop" +/* + * Copyright (c) 2021-2023 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +/** + * @file + * @kit ArkUI + */ +/** + * Defines the image analyze type. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ +export class ImageAnalyzerType { + /** + * Image analyze type subject. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly SUBJECT: ImageAnalyzerType = new ImageAnalyzerType(0) + /** + * Image analyze type text. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly TEXT: ImageAnalyzerType = new ImageAnalyzerType(1) + /** + * Image analyze type object lookup. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly OBJECT_LOOKUP: ImageAnalyzerType = new ImageAnalyzerType(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): ImageAnalyzerType { + if ((arg0) == (ImageAnalyzerType.SUBJECT.value)) { + return ImageAnalyzerType.SUBJECT + } + if ((arg0) == (ImageAnalyzerType.TEXT.value)) { + return ImageAnalyzerType.TEXT + } + if ((arg0) == (ImageAnalyzerType.OBJECT_LOOKUP.value)) { + return ImageAnalyzerType.OBJECT_LOOKUP + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +export interface ImageAnalyzerConfig { + types: ImageAnalyzerType[] +} +export interface ImageAIOptions { + types?: ImageAnalyzerType[] + aiController?: ImageAnalyzerController +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkImageSpan.ts b/arkoala-arkts/arkui/src/generated/ArkImageSpan.ts new file mode 100644 index 000000000..8a6311ab6 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkImageSpan.ts @@ -0,0 +1,122 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkBaseSpanComponent } from "./ArkSpan" +import { ArkImageSpanPeer } from "./peers/ArkImageSpanPeer" +import { UseEventsProperties } from "./use_properties" +import { ImageSpanAlignment, ImageFit } from "./ArkEnumsInterfaces" +import { ImageSpanAttribute, ImageCompleteCallback, ImageLoadResult, ImageSpanInterface } from "./ArkImageSpanInterfaces" +import { ColorFilter, ResourceStr, Resource } from "./ArkUnitsInterfaces" +import { DrawingColorFilter, ImageErrorCallback, ImageError } from "./ArkImageInterfaces" +import { IMPORT_default_ColorFilter_FROM_api_ohos_graphics_drawing, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image, IMPORT_Resource_FROM_api_global_resource } from "./SyntheticDeclarations" +import { PixelMap } from "./ArkCommonInterfaces" +/** @memo:stable */ +export class ArkImageSpanComponent extends ArkBaseSpanComponent { + protected peer?: ArkImageSpanPeer + /** @memo */ + setImageSpanOptions(value: ResourceStr | PixelMap): this { + if (this.checkPriority("setImageSpanOptions")) { + const value_casted = value as (ResourceStr | PixelMap) + this.peer?.setImageSpanOptionsAttribute(value_casted) + return this + } + return this + } + /** @memo */ + verticalAlign(value: ImageSpanAlignment): this { + if (this.checkPriority("verticalAlign")) { + const value_casted = value as (ImageSpanAlignment) + this.peer?.verticalAlignAttribute(value_casted) + return this + } + return this + } + /** @memo */ + colorFilter(filter: ColorFilter | DrawingColorFilter): this { + if (this.checkPriority("colorFilter")) { + const filter_casted = filter as (ColorFilter | DrawingColorFilter) + this.peer?.colorFilterAttribute(filter_casted) + return this + } + return this + } + /** @memo */ + objectFit(value: ImageFit): this { + if (this.checkPriority("objectFit")) { + const value_casted = value as (ImageFit) + this.peer?.objectFitAttribute(value_casted) + return this + } + return this + } + /** @memo */ + onComplete(callback: ImageCompleteCallback): this { + if (this.checkPriority("onComplete")) { + const callback_casted = callback as (ImageCompleteCallback) + this.peer?.onCompleteAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onError(callback: ImageErrorCallback): this { + if (this.checkPriority("onError")) { + const callback_casted = callback as (ImageErrorCallback) + this.peer?.onErrorAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + alt(value: PixelMap): this { + if (this.checkPriority("alt")) { + const value_casted = value as (PixelMap) + this.peer?.altAttribute(value_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkImageSpan( + /** @memo */ + style: ((attributes: ArkImageSpanComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + value: ResourceStr | PixelMap +) { + const receiver = remember(() => { + return new ArkImageSpanComponent() + }) + NodeAttach((): ArkImageSpanPeer => ArkImageSpanPeer.create(ArkUINodeType.ImageSpan, receiver), (_: ArkImageSpanPeer) => { + receiver.setImageSpanOptions(value) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkImageSpanInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkImageSpanInterfaces.ts new file mode 100644 index 000000000..b882b75bd --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkImageSpanInterfaces.ts @@ -0,0 +1,28 @@ +import { ImageSpanAlignment, ImageFit } from "./ArkEnumsInterfaces" +import { ColorFilter, ResourceStr, Resource } from "./ArkUnitsInterfaces" +import { DrawingColorFilter, ImageErrorCallback, ImageError } from "./ArkImageInterfaces" +import { IMPORT_default_ColorFilter_FROM_api_ohos_graphics_drawing, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image, IMPORT_Resource_FROM_api_global_resource } from "./SyntheticDeclarations" +import { PixelMap } from "./ArkCommonInterfaces" +import { KInt } from "@koalaui/interop" +export interface ImageSpanAttribute { + verticalAlign(value: ImageSpanAlignment): ImageSpanAttribute; + colorFilter(filter: ColorFilter | DrawingColorFilter): ImageSpanAttribute; + objectFit(value: ImageFit): ImageSpanAttribute; + onComplete(callback: ImageCompleteCallback): ImageSpanAttribute; + onError(callback: ImageErrorCallback): ImageSpanAttribute; + alt(value: PixelMap): ImageSpanAttribute; +} +export interface ImageSpanInterface { +} +export declare type ImageCompleteCallback = ((result: ImageLoadResult) => void) +export interface ImageLoadResult { + width: number + height: number + componentWidth: number + componentHeight: number + loadingStatus: number + contentWidth: number + contentHeight: number + contentOffsetX: number + contentOffsetY: number +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkIndex-fullInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkIndex-fullInterfaces.ts new file mode 100644 index 000000000..5f3e82364 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkIndex-fullInterfaces.ts @@ -0,0 +1 @@ +import { KInt } from "@koalaui/interop" \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkInspectorInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkInspectorInterfaces.ts new file mode 100644 index 000000000..5f3e82364 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkInspectorInterfaces.ts @@ -0,0 +1 @@ +import { KInt } from "@koalaui/interop" \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkIsolatedComponentInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkIsolatedComponentInterfaces.ts new file mode 100644 index 000000000..5f3e82364 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkIsolatedComponentInterfaces.ts @@ -0,0 +1 @@ +import { KInt } from "@koalaui/interop" \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkJsGeolocationMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkJsGeolocationMaterialized.ts new file mode 100644 index 000000000..e3763b558 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkJsGeolocationMaterialized.ts @@ -0,0 +1,68 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class JsGeolocation { + peer?: Finalizable + static ctor(): KPointer { + const retval = NativeModule._JsGeolocation_ctor() + return retval + } + constructor() { + const ctorPtr = JsGeolocation.ctor() + this.peer = new Finalizable(ctorPtr, JsGeolocation.getFinalizer()) + } + static getFinalizer(): KPointer { + return NativeModule._JsGeolocation_getFinalizer() + } + invoke(origin: string, allow: boolean, retain: boolean): void { + const origin_casted = origin as (string) + const allow_casted = allow as (boolean) + const retain_casted = retain as (boolean) + this.invoke_serialize(origin_casted, allow_casted, retain_casted) + } + private invoke_serialize(origin: string, allow: boolean, retain: boolean): void { + NativeModule._JsGeolocation_invoke(this.peer!.ptr, origin, allow ? 1 : 0, retain ? 1 : 0); + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkJsResultMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkJsResultMaterialized.ts new file mode 100644 index 000000000..d3d8514b9 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkJsResultMaterialized.ts @@ -0,0 +1,78 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class JsResult { + peer?: Finalizable + static ctor(): KPointer { + const retval = NativeModule._JsResult_ctor() + return retval + } + constructor() { + const ctorPtr = JsResult.ctor() + this.peer = new Finalizable(ctorPtr, JsResult.getFinalizer()) + } + static getFinalizer(): KPointer { + return NativeModule._JsResult_getFinalizer() + } + handleCancel(): void { + this.handleCancel_serialize() + } + handleConfirm(): void { + this.handleConfirm_serialize() + } + handlePromptConfirm(result: string): void { + const result_casted = result as (string) + this.handlePromptConfirm_serialize(result_casted) + } + private handleCancel_serialize(): void { + NativeModule._JsResult_handleCancel(this.peer!.ptr); + } + private handleConfirm_serialize(): void { + NativeModule._JsResult_handleConfirm(this.peer!.ptr); + } + private handlePromptConfirm_serialize(result: string): void { + NativeModule._JsResult_handlePromptConfirm(this.peer!.ptr, result); + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkLayoutManagerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkLayoutManagerMaterialized.ts new file mode 100644 index 000000000..cdba58fd7 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkLayoutManagerMaterialized.ts @@ -0,0 +1,100 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { PositionWithAffinity, LineMetrics, TextRange, RectWidthStyle, RectHeightStyle, TextBox } from "./ArkTextCommonInterfaces" +import { IMPORT_default_LineMetrics_FROM_api_ohos_graphics_text, IMPORT_default_RectWidthStyle_FROM_api_ohos_graphics_text, IMPORT_default_RectHeightStyle_FROM_api_ohos_graphics_text, IMPORT_default_TextBox_FROM_api_ohos_graphics_text, INTERFACE_LayoutManager } from "./SyntheticDeclarations" +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class LayoutManager implements INTERFACE_LayoutManager { + peer?: Finalizable + static ctor(): KPointer { + const retval = NativeModule._LayoutManager_ctor() + return retval + } + constructor() { + const ctorPtr = LayoutManager.ctor() + this.peer = new Finalizable(ctorPtr, LayoutManager.getFinalizer()) + } + static getFinalizer(): KPointer { + return NativeModule._LayoutManager_getFinalizer() + } + getLineCount(): number { + return this.getLineCount_serialize() + } + getGlyphPositionAtCoordinate(x: number, y: number): PositionWithAffinity { + const x_casted = x as (number) + const y_casted = y as (number) + return this.getGlyphPositionAtCoordinate_serialize(x_casted, y_casted) + } + getLineMetrics(lineNumber: number): LineMetrics { + const lineNumber_casted = lineNumber as (number) + return this.getLineMetrics_serialize(lineNumber_casted) + } + getRectsForRange(range: TextRange, widthStyle: RectWidthStyle, heightStyle: RectHeightStyle): Array { + const range_casted = range as (TextRange) + const widthStyle_casted = widthStyle as (RectWidthStyle) + const heightStyle_casted = heightStyle as (RectHeightStyle) + return this.getRectsForRange_serialize(range_casted, widthStyle_casted, heightStyle_casted) + } + private getLineCount_serialize(): number { + const retval = NativeModule._LayoutManager_getLineCount(this.peer!.ptr) + return retval + } + private getGlyphPositionAtCoordinate_serialize(x: number, y: number): PositionWithAffinity { + const retval = NativeModule._LayoutManager_getGlyphPositionAtCoordinate(this.peer!.ptr, x, y) + throw new Error("Object deserialization is not implemented.") + } + private getLineMetrics_serialize(lineNumber: number): LineMetrics { + const retval = NativeModule._LayoutManager_getLineMetrics(this.peer!.ptr, lineNumber) + throw new Error("Object deserialization is not implemented.") + } + private getRectsForRange_serialize(range: TextRange, widthStyle: RectWidthStyle, heightStyle: RectHeightStyle): Array { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeTextRange(range) + thisSerializer.writeCustomObject("RectWidthStyle", widthStyle) + thisSerializer.writeCustomObject("RectHeightStyle", heightStyle) + const retval = NativeModule._LayoutManager_getRectsForRange(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release(); + throw new Error("Object deserialization is not implemented.") + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkLazyForEachInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkLazyForEachInterfaces.ts new file mode 100644 index 000000000..5f3e82364 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkLazyForEachInterfaces.ts @@ -0,0 +1 @@ +import { KInt } from "@koalaui/interop" \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkLine.ts b/arkoala-arkts/arkui/src/generated/ArkLine.ts new file mode 100644 index 000000000..45dd17a8a --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkLine.ts @@ -0,0 +1,84 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonShapeMethodComponent } from "./ArkCommon" +import { ArkLinePeer } from "./peers/ArkLinePeer" +import { LineAttribute, LineInterface } from "./ArkLineInterfaces" +import { LITERAL_WidthStringnumberHeightStringnumber } from "./SyntheticDeclarations" +/** @memo:stable */ +export class ArkLineComponent extends ArkCommonShapeMethodComponent { + protected peer?: ArkLinePeer + /** @memo */ + setLineOptions(value?: LITERAL_WidthStringnumberHeightStringnumber): this { + if (this.checkPriority("setLineOptions")) { + if ((value) == (undefined)) { + throw new Error("Arg 'value' is null"); + } + const value_casted = value as (LITERAL_WidthStringnumberHeightStringnumber) + this.peer?.setLineOptionsAttribute(value_casted) + return this + } + return this + } + /** @memo */ + startPoint(value: Array): this { + if (this.checkPriority("startPoint")) { + const value_casted = value as (Array) + this.peer?.startPointAttribute(value_casted) + return this + } + return this + } + /** @memo */ + endPoint(value: Array): this { + if (this.checkPriority("endPoint")) { + const value_casted = value as (Array) + this.peer?.endPointAttribute(value_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkLine( + /** @memo */ + style: ((attributes: ArkLineComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + value?: LITERAL_WidthStringnumberHeightStringnumber +) { + const receiver = remember(() => { + return new ArkLineComponent() + }) + NodeAttach((): ArkLinePeer => ArkLinePeer.create(ArkUINodeType.Line, receiver), (_: ArkLinePeer) => { + receiver.setLineOptions(value) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkLineInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkLineInterfaces.ts new file mode 100644 index 000000000..3a0b24c87 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkLineInterfaces.ts @@ -0,0 +1,8 @@ +import { LITERAL_WidthStringnumberHeightStringnumber } from "./SyntheticDeclarations" +import { KInt } from "@koalaui/interop" +export interface LineAttribute { + startPoint(value: Array): LineAttribute; + endPoint(value: Array): LineAttribute; +} +export interface LineInterface { +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkLinearIndicatorControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkLinearIndicatorControllerMaterialized.ts new file mode 100644 index 000000000..a6817c1e2 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkLinearIndicatorControllerMaterialized.ts @@ -0,0 +1,101 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { LinearIndicatorStartOptions } from "./ArkLinearindicatorInterfaces" +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class LinearIndicatorController { + peer?: Finalizable + static ctor(): KPointer { + const retval = NativeModule._LinearIndicatorController_ctor() + return retval + } + constructor() { + const ctorPtr = LinearIndicatorController.ctor() + this.peer = new Finalizable(ctorPtr, LinearIndicatorController.getFinalizer()) + } + static getFinalizer(): KPointer { + return NativeModule._LinearIndicatorController_getFinalizer() + } + setProgress(index: number, progress: number): void { + const index_casted = index as (number) + const progress_casted = progress as (number) + this.setProgress_serialize(index_casted, progress_casted) + } + start(options?: LinearIndicatorStartOptions): void { + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (LinearIndicatorStartOptions) + this.start_serialize(options_casted) + } + pause(): void { + this.pause_serialize() + } + stop(): void { + this.stop_serialize() + } + private setProgress_serialize(index: number, progress: number): void { + NativeModule._LinearIndicatorController_setProgress(this.peer!.ptr, index, progress); + } + private start_serialize(options?: LinearIndicatorStartOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeLinearIndicatorStartOptions(options_value) + } + NativeModule._LinearIndicatorController_start(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private pause_serialize(): void { + NativeModule._LinearIndicatorController_pause(this.peer!.ptr); + } + private stop_serialize(): void { + NativeModule._LinearIndicatorController_stop(this.peer!.ptr); + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkLinearindicator.ts b/arkoala-arkts/arkui/src/generated/ArkLinearindicator.ts new file mode 100644 index 000000000..d504e2e6c --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkLinearindicator.ts @@ -0,0 +1,100 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkLinearIndicatorPeer } from "./peers/ArkLinearindicatorPeer" +import { LinearIndicatorStyle, LinearIndicatorAttribute, OnLinearIndicatorChangeCallback, LinearIndicatorInterface, LinearIndicatorStartOptions } from "./ArkLinearindicatorInterfaces" +import { Optional } from "./ArkCommonInterfaces" +import { LinearIndicatorController } from "./ArkLinearIndicatorControllerMaterialized" +import { LengthMetrics, ColorMetrics } from "./ArkUnitsInterfaces" +import { IMPORT_LengthMetrics_FROM_api_arkui_Graphics, IMPORT_ColorMetrics_FROM_api_arkui_Graphics } from "./SyntheticDeclarations" +/** @memo:stable */ +export class ArkLinearIndicatorComponent extends ArkCommonMethodComponent { + protected peer?: ArkLinearIndicatorPeer + /** @memo */ + setLinearIndicatorOptions(count?: number, controller?: LinearIndicatorController): this { + if (this.checkPriority("setLinearIndicatorOptions")) { + if ((count) == (undefined)) { + throw new Error("Arg 'count' is null"); + } + const count_casted = count as (number) + if ((controller) == (undefined)) { + throw new Error("Arg 'controller' is null"); + } + const controller_casted = controller as (LinearIndicatorController) + this.peer?.setLinearIndicatorOptionsAttribute(count_casted, controller_casted) + return this + } + return this + } + /** @memo */ + indicatorStyle(style: LinearIndicatorStyle | undefined): this { + if (this.checkPriority("indicatorStyle")) { + const style_casted = style as (LinearIndicatorStyle | undefined) + this.peer?.indicatorStyleAttribute(style_casted) + return this + } + return this + } + /** @memo */ + indicatorLoop(loop: boolean | undefined): this { + if (this.checkPriority("indicatorLoop")) { + const loop_casted = loop as (boolean | undefined) + this.peer?.indicatorLoopAttribute(loop_casted) + return this + } + return this + } + /** @memo */ + onChange(callback: OnLinearIndicatorChangeCallback | undefined): this { + if (this.checkPriority("onChange")) { + const callback_casted = callback as (OnLinearIndicatorChangeCallback | undefined) + this.peer?.onChangeAttribute(callback_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkLinearIndicator( + /** @memo */ + style: ((attributes: ArkLinearIndicatorComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + count?: number, controller?: LinearIndicatorController +) { + const receiver = remember(() => { + return new ArkLinearIndicatorComponent() + }) + NodeAttach((): ArkLinearIndicatorPeer => ArkLinearIndicatorPeer.create(ArkUINodeType.LinearIndicator, receiver), (_: ArkLinearIndicatorPeer) => { + receiver.setLinearIndicatorOptions(count,controller) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkLinearindicatorInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkLinearindicatorInterfaces.ts new file mode 100644 index 000000000..12279fa8f --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkLinearindicatorInterfaces.ts @@ -0,0 +1,24 @@ +import { Optional } from "./ArkCommonInterfaces" +import { LinearIndicatorController } from "./ArkLinearIndicatorControllerMaterialized" +import { LengthMetrics, ColorMetrics } from "./ArkUnitsInterfaces" +import { IMPORT_LengthMetrics_FROM_api_arkui_Graphics, IMPORT_ColorMetrics_FROM_api_arkui_Graphics } from "./SyntheticDeclarations" +import { KInt } from "@koalaui/interop" +export interface LinearIndicatorAttribute { + indicatorStyle(style: LinearIndicatorStyle | undefined): LinearIndicatorAttribute; + indicatorLoop(loop: boolean | undefined): LinearIndicatorAttribute; + onChange(callback: OnLinearIndicatorChangeCallback | undefined): LinearIndicatorAttribute; +} +export interface LinearIndicatorInterface { +} +export interface LinearIndicatorStyle { + space?: LengthMetrics + strokeWidth?: LengthMetrics + strokeRadius?: LengthMetrics + trackBackgroundColor?: ColorMetrics + trackColor?: ColorMetrics +} +export declare type OnLinearIndicatorChangeCallback = ((index: number, progress: number) => void) +export interface LinearIndicatorStartOptions { + interval?: number + duration?: number +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkListItem.ts b/arkoala-arkts/arkui/src/generated/ArkListItem.ts new file mode 100644 index 000000000..dd467eee2 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkListItem.ts @@ -0,0 +1,135 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkListItemPeer } from "./peers/ArkListItemPeer" +import { UseEventsProperties } from "./use_properties" +import { Sticky, ListItemAttribute, EditMode, SwipeActionOptions, ListItemOptions, ListItemInterface, SwipeActionItem, SwipeEdgeEffect, SwipeActionState, ListItemStyle } from "./ArkListItemInterfaces" +import { CustomBuilder } from "./ArkCommonInterfaces" +import { Length, Resource } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource } from "./SyntheticDeclarations" +/** @memo:stable */ +export class ArkListItemComponent extends ArkCommonMethodComponent { + protected peer?: ArkListItemPeer + /** @memo */ + setListItemOptions(value?: ListItemOptions | string): this { + if (this.checkPriority("setListItemOptions")) { + const value_type = runtimeType(value) + if ((((RuntimeType.OBJECT == value_type)) || ((RuntimeType.UNDEFINED == value_type)))) { + if ((value) == (undefined)) { + throw new Error("Arg 'value' is null"); + } + const value_casted = value as (ListItemOptions) + this.peer?.setListItemOptions0Attribute(value_casted) + return this + } + if ((((RuntimeType.STRING == value_type)) || ((RuntimeType.UNDEFINED == value_type)))) { + if ((value) == (undefined)) { + throw new Error("Arg 'value' is null"); + } + const value_casted = value as (string) + this.peer?.setListItemOptions1Attribute(value_casted) + return this + } + throw new Error("Can not select appropriate overload") + } + return this + } + /** @memo */ + sticky(value: Sticky): this { + if (this.checkPriority("sticky")) { + const value_casted = value as (Sticky) + this.peer?.stickyAttribute(value_casted) + return this + } + return this + } + /** @memo */ + editable(value: boolean | EditMode): this { + if (this.checkPriority("editable")) { + const value_casted = value as (boolean | EditMode) + this.peer?.editableAttribute(value_casted) + return this + } + return this + } + /** @memo */ + selectable(value: boolean): this { + if (this.checkPriority("selectable")) { + const value_casted = value as (boolean) + this.peer?.selectableAttribute(value_casted) + return this + } + return this + } + /** @memo */ + selected(value: boolean): this { + if (this.checkPriority("selected")) { + const value_casted = value as (boolean) + this.peer?.selectedAttribute(value_casted) + return this + } + return this + } + /** @memo */ + swipeAction(value: SwipeActionOptions): this { + if (this.checkPriority("swipeAction")) { + const value_casted = value as (SwipeActionOptions) + this.peer?.swipeActionAttribute(value_casted) + return this + } + return this + } + /** @memo */ + onSelect(event: ((isSelected: boolean) => void)): this { + if (this.checkPriority("onSelect")) { + const event_casted = event as (((isSelected: boolean) => void)) + this.peer?.onSelectAttribute(event_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkListItem( + /** @memo */ + style: ((attributes: ArkListItemComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + value?: ListItemOptions | string +) { + const receiver = remember(() => { + return new ArkListItemComponent() + }) + NodeAttach((): ArkListItemPeer => ArkListItemPeer.create(ArkUINodeType.ListItem, receiver), (_: ArkListItemPeer) => { + receiver.setListItemOptions(value) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkListItemGroup.ts b/arkoala-arkts/arkui/src/generated/ArkListItemGroup.ts new file mode 100644 index 000000000..4adf5ab9f --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkListItemGroup.ts @@ -0,0 +1,87 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkListItemGroupPeer } from "./peers/ArkListItemGroupPeer" +import { ListDividerOptions } from "./ArkListInterfaces" +import { ListItemGroupAttribute, ListItemGroupOptions, ListItemGroupInterface, ListItemGroupStyle } from "./ArkListItemGroupInterfaces" +import { ChildrenMainSize } from "./ArkChildrenMainSizeMaterialized" +import { CustomBuilder, ComponentContent } from "./ArkCommonInterfaces" +import { IMPORT_ComponentContent_T_FROM_api_arkui_ComponentContent } from "./SyntheticDeclarations" +/** @memo:stable */ +export class ArkListItemGroupComponent extends ArkCommonMethodComponent { + protected peer?: ArkListItemGroupPeer + /** @memo */ + setListItemGroupOptions(options?: ListItemGroupOptions): this { + if (this.checkPriority("setListItemGroupOptions")) { + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (ListItemGroupOptions) + this.peer?.setListItemGroupOptionsAttribute(options_casted) + return this + } + return this + } + /** @memo */ + divider(value: ListDividerOptions | null): this { + if (this.checkPriority("divider")) { + const value_casted = value as (ListDividerOptions | null) + this.peer?.dividerAttribute(value_casted) + return this + } + return this + } + /** @memo */ + childrenMainSize(value: ChildrenMainSize): this { + if (this.checkPriority("childrenMainSize")) { + const value_casted = value as (ChildrenMainSize) + this.peer?.childrenMainSizeAttribute(value_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkListItemGroup( + /** @memo */ + style: ((attributes: ArkListItemGroupComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + options?: ListItemGroupOptions +) { + const receiver = remember(() => { + return new ArkListItemGroupComponent() + }) + NodeAttach((): ArkListItemGroupPeer => ArkListItemGroupPeer.create(ArkUINodeType.ListItemGroup, receiver), (_: ArkListItemGroupPeer) => { + receiver.setListItemGroupOptions(options) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkListItemGroupInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkListItemGroupInterfaces.ts new file mode 100644 index 000000000..5af4400f8 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkListItemGroupInterfaces.ts @@ -0,0 +1,98 @@ +import { ListDividerOptions } from "./ArkListInterfaces" +import { ChildrenMainSize } from "./ArkChildrenMainSizeMaterialized" +import { CustomBuilder, ComponentContent } from "./ArkCommonInterfaces" +import { IMPORT_ComponentContent_T_FROM_api_arkui_ComponentContent } from "./SyntheticDeclarations" +import { KInt } from "@koalaui/interop" +/* + * Copyright (c) 2022-2023 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +/** + * @file + * @kit ArkUI + */ +/** + * Defines the list item group style. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Defines the list item group style. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class ListItemGroupStyle { + /** + * Show custom style. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Show custom style. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly NONE: ListItemGroupStyle = new ListItemGroupStyle(0) + /** + * Show default style. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Show default style. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly CARD: ListItemGroupStyle = new ListItemGroupStyle(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): ListItemGroupStyle { + if ((arg0) == (ListItemGroupStyle.NONE.value)) { + return ListItemGroupStyle.NONE + } + if ((arg0) == (ListItemGroupStyle.CARD.value)) { + return ListItemGroupStyle.CARD + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +export interface ListItemGroupAttribute { + divider(value: ListDividerOptions | null): ListItemGroupAttribute; + childrenMainSize(value: ChildrenMainSize): ListItemGroupAttribute; +} +export interface ListItemGroupInterface { +} +export interface ListItemGroupOptions { + header?: CustomBuilder + headerComponent?: ComponentContent + footer?: CustomBuilder + footerComponent?: ComponentContent + space?: number | string + style?: ListItemGroupStyle +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkListItemInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkListItemInterfaces.ts new file mode 100644 index 000000000..c91a29e44 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkListItemInterfaces.ts @@ -0,0 +1,371 @@ +import { CustomBuilder } from "./ArkCommonInterfaces" +import { Length, Resource } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource } from "./SyntheticDeclarations" +import { KInt } from "@koalaui/interop" +/* + * Copyright (c) 2021-2023 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +/** + * @file + * @kit ArkUI + */ +/** + * Declare item ceiling attribute. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + * @deprecated since 9 + * @useinstead list/StickyStyle + */ +export class Sticky { + /** + * No sticky. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + * @deprecated since 9 + */ + static readonly None: Sticky = new Sticky(0) + /** + * Normal mode + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + * @deprecated since 9 + */ + static readonly Normal: Sticky = new Sticky(1) + /** + * Set opacity. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + * @deprecated since 9 + */ + static readonly Opacity: Sticky = new Sticky(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): Sticky { + if ((arg0) == (Sticky.None.value)) { + return Sticky.None + } + if ((arg0) == (Sticky.Normal.value)) { + return Sticky.Normal + } + if ((arg0) == (Sticky.Opacity.value)) { + return Sticky.Opacity + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Declare whether the ListItem element is editable. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + * @deprecated since 9 + */ +export class EditMode { + /** + * Unrestricted operations. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + * @deprecated since 9 + */ + static readonly None: EditMode = new EditMode(0) + /** + * Deletable. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + * @deprecated since 9 + */ + static readonly Deletable: EditMode = new EditMode(1) + /** + * Movable. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + * @deprecated since 9 + */ + static readonly Movable: EditMode = new EditMode(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): EditMode { + if ((arg0) == (EditMode.None.value)) { + return EditMode.None + } + if ((arg0) == (EditMode.Deletable.value)) { + return EditMode.Deletable + } + if ((arg0) == (EditMode.Movable.value)) { + return EditMode.Movable + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Declare enum SwipeActionState. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * Declare enum SwipeActionState. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ +export class SwipeActionState { + /** + * Collapsed type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 11 + */ +/** + * Collapsed type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly COLLAPSED: SwipeActionState = new SwipeActionState(0) + /** + * EXPANDED type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 11 + */ +/** + * EXPANDED type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly EXPANDED: SwipeActionState = new SwipeActionState(1) + /** + * Action type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 11 + */ +/** + * Action type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly ACTIONING: SwipeActionState = new SwipeActionState(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): SwipeActionState { + if ((arg0) == (SwipeActionState.COLLAPSED.value)) { + return SwipeActionState.COLLAPSED + } + if ((arg0) == (SwipeActionState.EXPANDED.value)) { + return SwipeActionState.EXPANDED + } + if ((arg0) == (SwipeActionState.ACTIONING.value)) { + return SwipeActionState.ACTIONING + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Sliding effect + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 9 + */ +/** + * Sliding effect + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Sliding effect + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class SwipeEdgeEffect { + /** + * Elastic physical action, sliding to the edge can continue to slide for a distance based on the initial speed or touch event, and spring back when released. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 9 + */ +/** + * Elastic physical action, sliding to the edge can continue to slide for a distance based on the initial speed or touch event, and spring back when released. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Elastic physical action, sliding to the edge can continue to slide for a distance based on the initial speed or touch event, and spring back when released. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Spring: SwipeEdgeEffect = new SwipeEdgeEffect(0) + /** + * Sliding to the edge has no effect. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 9 + */ +/** + * Sliding to the edge has no effect. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Sliding to the edge has no effect. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly None: SwipeEdgeEffect = new SwipeEdgeEffect(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): SwipeEdgeEffect { + if ((arg0) == (SwipeEdgeEffect.Spring.value)) { + return SwipeEdgeEffect.Spring + } + if ((arg0) == (SwipeEdgeEffect.None.value)) { + return SwipeEdgeEffect.None + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Defines the list item style. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Defines the list item style. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class ListItemStyle { + /** + * Show custom style. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Show custom style. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly NONE: ListItemStyle = new ListItemStyle(0) + /** + * Show default style. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Show default style. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly CARD: ListItemStyle = new ListItemStyle(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): ListItemStyle { + if ((arg0) == (ListItemStyle.NONE.value)) { + return ListItemStyle.NONE + } + if ((arg0) == (ListItemStyle.CARD.value)) { + return ListItemStyle.CARD + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +export interface ListItemAttribute { + sticky(value: Sticky): ListItemAttribute; + editable(value: boolean | EditMode): ListItemAttribute; + selectable(value: boolean): ListItemAttribute; + selected(value: boolean): ListItemAttribute; + swipeAction(value: SwipeActionOptions): ListItemAttribute; + onSelect(event: ((isSelected: boolean) => void)): ListItemAttribute; +} +export interface ListItemInterface { +} +export interface SwipeActionOptions { + start?: CustomBuilder | SwipeActionItem + end?: CustomBuilder | SwipeActionItem + edgeEffect?: SwipeEdgeEffect + onOffsetChange?: ((offset: number) => void) +} +export interface SwipeActionItem { + builder?: CustomBuilder + actionAreaDistance?: Length + onAction?: (() => void) + onEnterActionArea?: (() => void) + onExitActionArea?: (() => void) + onStateChange?: ((state: SwipeActionState) => void) +} +export interface ListItemOptions { + style?: ListItemStyle +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkLoadingProgress.ts b/arkoala-arkts/arkui/src/generated/ArkLoadingProgress.ts new file mode 100644 index 000000000..51bb44103 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkLoadingProgress.ts @@ -0,0 +1,93 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkLoadingProgressPeer } from "./peers/ArkLoadingProgressPeer" +import { ResourceColor, Resource } from "./ArkUnitsInterfaces" +import { Color } from "./ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource } from "./SyntheticDeclarations" +import { LoadingProgressAttribute, LoadingProgressConfiguration, LoadingProgressInterface } from "./ArkLoadingProgressInterfaces" +import { ContentModifier } from "./ConflictedDeclarations" +import { CommonConfiguration } from "./ArkCommonInterfaces" +/** @memo:stable */ +export class ArkLoadingProgressComponent extends ArkCommonMethodComponent { + protected peer?: ArkLoadingProgressPeer + /** @memo */ + setLoadingProgressOptions(): this { + if (this.checkPriority("setLoadingProgressOptions")) { + this.peer?.setLoadingProgressOptionsAttribute() + return this + } + return this + } + /** @memo */ + color(value: ResourceColor): this { + if (this.checkPriority("color")) { + const value_casted = value as (ResourceColor) + this.peer?.colorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + enableLoading(value: boolean): this { + if (this.checkPriority("enableLoading")) { + const value_casted = value as (boolean) + this.peer?.enableLoadingAttribute(value_casted) + return this + } + return this + } + /** @memo */ + contentModifier(modifier: ContentModifier): this { + if (this.checkPriority("contentModifier")) { + const modifier_casted = modifier as (ContentModifier) + this.peer?.contentModifierAttribute(modifier_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkLoadingProgress( + /** @memo */ + style: ((attributes: ArkLoadingProgressComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + +) { + const receiver = remember(() => { + return new ArkLoadingProgressComponent() + }) + NodeAttach((): ArkLoadingProgressPeer => ArkLoadingProgressPeer.create(ArkUINodeType.LoadingProgress, receiver), (_: ArkLoadingProgressPeer) => { + receiver.setLoadingProgressOptions() + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkLoadingProgressInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkLoadingProgressInterfaces.ts new file mode 100644 index 000000000..e2c65c4ab --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkLoadingProgressInterfaces.ts @@ -0,0 +1,18 @@ +import { ResourceColor, Resource } from "./ArkUnitsInterfaces" +import { Color } from "./ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource } from "./SyntheticDeclarations" +import { ContentModifier } from "./ConflictedDeclarations" +import { CommonConfiguration } from "./ArkCommonInterfaces" +import { KInt } from "@koalaui/interop" +export interface LoadingProgressAttribute { + color(value: ResourceColor): LoadingProgressAttribute; + enableLoading(value: boolean): LoadingProgressAttribute; + contentModifier(modifier: ContentModifier): LoadingProgressAttribute; +} +export interface LoadingProgressInterface { +} +export interface LoadingProgressConfiguration { + enabled: boolean + contentModifier: ContentModifier + enableLoading: boolean +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkLocationButton.ts b/arkoala-arkts/arkui/src/generated/ArkLocationButton.ts new file mode 100644 index 000000000..7cb0d96f1 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkLocationButton.ts @@ -0,0 +1,85 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkSecurityComponentMethodComponent } from "./ArkSecurityComponent" +import { ArkLocationButtonPeer } from "./peers/ArkLocationButtonPeer" +import { UseEventsProperties } from "./use_properties" +import { ClickEvent } from "./ArkCommonInterfaces" +import { LocationButtonOnClickResult, LocationButtonAttribute, LocationButtonOptions, LocationButtonInterface, LocationIconStyle, LocationDescription } from "./ArkLocationButtonInterfaces" +import { ButtonType } from "./ArkButtonInterfaces" +/** @memo:stable */ +export class ArkLocationButtonComponent extends ArkSecurityComponentMethodComponent { + protected peer?: ArkLocationButtonPeer + /** @memo */ + setLocationButtonOptions(options?: LocationButtonOptions): this { + if (this.checkPriority("setLocationButtonOptions")) { + const options_type = runtimeType(options) + if ((((RuntimeType.OBJECT == options_type)))) { + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (LocationButtonOptions) + this.peer?.setLocationButtonOptions1Attribute(options_casted) + return this + } + if ((((RuntimeType.UNDEFINED == options_type)))) { + this.peer?.setLocationButtonOptions0Attribute() + return this + } + throw new Error("Can not select appropriate overload") + } + return this + } + /** @memo */ + onClick(event: ((event: ClickEvent, result: LocationButtonOnClickResult) => void)): this { + if (this.checkPriority("onClick")) { + const event_casted = event as (((event: ClickEvent, result: LocationButtonOnClickResult) => void)) + this.peer?.onClickAttribute(event_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkLocationButton( + /** @memo */ + style: ((attributes: ArkLocationButtonComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + options?: LocationButtonOptions +) { + const receiver = remember(() => { + return new ArkLocationButtonComponent() + }) + NodeAttach((): ArkLocationButtonPeer => ArkLocationButtonPeer.create(ArkUINodeType.LocationButton, receiver), (_: ArkLocationButtonPeer) => { + receiver.setLocationButtonOptions(options) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkLocationButtonInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkLocationButtonInterfaces.ts new file mode 100644 index 000000000..1cfa691e4 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkLocationButtonInterfaces.ts @@ -0,0 +1,358 @@ +import { ClickEvent } from "./ArkCommonInterfaces" +import { ButtonType } from "./ArkButtonInterfaces" +import { KInt } from "@koalaui/interop" +/** + * Enumerates the click event results of the location button. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Enumerates the click event results of the location button. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ +export class LocationButtonOnClickResult { + /** + * Success. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Success. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ + static readonly SUCCESS: LocationButtonOnClickResult = new LocationButtonOnClickResult(0) + /** + * Failure because the application is not temporarily authorized for accessing location data. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Failure because the application is not temporarily authorized for accessing location data. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ + static readonly TEMPORARY_AUTHORIZATION_FAILED: LocationButtonOnClickResult = new LocationButtonOnClickResult(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): LocationButtonOnClickResult { + if ((arg0) == (LocationButtonOnClickResult.SUCCESS.value)) { + return LocationButtonOnClickResult.SUCCESS + } + if ((arg0) == (LocationButtonOnClickResult.TEMPORARY_AUTHORIZATION_FAILED.value)) { + return LocationButtonOnClickResult.TEMPORARY_AUTHORIZATION_FAILED + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/* + * Copyright (c) 2023 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +/** + * @file + * @kit ArkUI + */ +/** + * Enumerates the icon styles. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Enumerates the icon styles. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ +export class LocationIconStyle { + /** + * Icon filled with the specified color. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Icon filled with the specified color. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ + static readonly FULL_FILLED: LocationIconStyle = new LocationIconStyle(0) + /** + * Icon rendered as lines. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Icon rendered as lines. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ + static readonly LINES: LocationIconStyle = new LocationIconStyle(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): LocationIconStyle { + if ((arg0) == (LocationIconStyle.FULL_FILLED.value)) { + return LocationIconStyle.FULL_FILLED + } + if ((arg0) == (LocationIconStyle.LINES.value)) { + return LocationIconStyle.LINES + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Enumerates the text that can be displayed on the location button. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Enumerates the text that can be displayed on the location button. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ +export class LocationDescription { + /** + * Current Location + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Current Location + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ + static readonly CURRENT_LOCATION: LocationDescription = new LocationDescription(0) + /** + * Add Location + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Add Location + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ + static readonly ADD_LOCATION: LocationDescription = new LocationDescription(1) + /** + * Select Location + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Select Location + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ + static readonly SELECT_LOCATION: LocationDescription = new LocationDescription(2) + /** + * Share Location + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Share Location + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ + static readonly SHARE_LOCATION: LocationDescription = new LocationDescription(3) + /** + * Send Location + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Send Location + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ + static readonly SEND_LOCATION: LocationDescription = new LocationDescription(4) + /** + * Locating + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Locating + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ + static readonly LOCATING: LocationDescription = new LocationDescription(5) + /** + * Location + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Location + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ + static readonly LOCATION: LocationDescription = new LocationDescription(6) + /** + * Send Current Location + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Send Current Location + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ + static readonly SEND_CURRENT_LOCATION: LocationDescription = new LocationDescription(7) + /** + * Relocation + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Relocation + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ + static readonly RELOCATION: LocationDescription = new LocationDescription(8) + /** + * Punch In + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Punch In + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ + static readonly PUNCH_IN: LocationDescription = new LocationDescription(9) + /** + * Current Position + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Current Position + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ + static readonly CURRENT_POSITION: LocationDescription = new LocationDescription(10) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): LocationDescription { + if ((arg0) == (LocationDescription.CURRENT_LOCATION.value)) { + return LocationDescription.CURRENT_LOCATION + } + if ((arg0) == (LocationDescription.ADD_LOCATION.value)) { + return LocationDescription.ADD_LOCATION + } + if ((arg0) == (LocationDescription.SELECT_LOCATION.value)) { + return LocationDescription.SELECT_LOCATION + } + if ((arg0) == (LocationDescription.SHARE_LOCATION.value)) { + return LocationDescription.SHARE_LOCATION + } + if ((arg0) == (LocationDescription.SEND_LOCATION.value)) { + return LocationDescription.SEND_LOCATION + } + if ((arg0) == (LocationDescription.LOCATING.value)) { + return LocationDescription.LOCATING + } + if ((arg0) == (LocationDescription.LOCATION.value)) { + return LocationDescription.LOCATION + } + if ((arg0) == (LocationDescription.SEND_CURRENT_LOCATION.value)) { + return LocationDescription.SEND_CURRENT_LOCATION + } + if ((arg0) == (LocationDescription.RELOCATION.value)) { + return LocationDescription.RELOCATION + } + if ((arg0) == (LocationDescription.PUNCH_IN.value)) { + return LocationDescription.PUNCH_IN + } + if ((arg0) == (LocationDescription.CURRENT_POSITION.value)) { + return LocationDescription.CURRENT_POSITION + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +export interface LocationButtonAttribute { + onClick(event: ((event: ClickEvent, result: LocationButtonOnClickResult) => void)): LocationButtonAttribute; +} +export interface LocationButtonInterface { +} +export interface LocationButtonOptions { + icon?: LocationIconStyle + text?: LocationDescription + buttonType?: ButtonType +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkMarquee.ts b/arkoala-arkts/arkui/src/generated/ArkMarquee.ts new file mode 100644 index 000000000..a2cb8a93a --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkMarquee.ts @@ -0,0 +1,147 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkMarqueePeer } from "./peers/ArkMarqueePeer" +import { UseEventsProperties } from "./use_properties" +import { ResourceColor, Resource, Length } from "./ArkUnitsInterfaces" +import { Color, FontWeight, MarqueeUpdateStrategy } from "./ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource } from "./SyntheticDeclarations" +import { MarqueeAttribute, MarqueeOptions, MarqueeInterface } from "./ArkMarqueeInterfaces" +/** @memo:stable */ +export class ArkMarqueeComponent extends ArkCommonMethodComponent { + protected peer?: ArkMarqueePeer + /** @memo */ + setMarqueeOptions(options: MarqueeOptions): this { + if (this.checkPriority("setMarqueeOptions")) { + const options_casted = options as (MarqueeOptions) + this.peer?.setMarqueeOptionsAttribute(options_casted) + return this + } + return this + } + /** @memo */ + fontColor(value: ResourceColor): this { + if (this.checkPriority("fontColor")) { + const value_casted = value as (ResourceColor) + this.peer?.fontColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fontSize(value: Length): this { + if (this.checkPriority("fontSize")) { + const value_casted = value as (Length) + this.peer?.fontSizeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + allowScale(value: boolean): this { + if (this.checkPriority("allowScale")) { + const value_casted = value as (boolean) + this.peer?.allowScaleAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fontWeight(value: number | FontWeight | string): this { + if (this.checkPriority("fontWeight")) { + const value_casted = value as (number | FontWeight | string) + this.peer?.fontWeightAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fontFamily(value: string | Resource): this { + if (this.checkPriority("fontFamily")) { + const value_casted = value as (string | Resource) + this.peer?.fontFamilyAttribute(value_casted) + return this + } + return this + } + /** @memo */ + marqueeUpdateStrategy(value: MarqueeUpdateStrategy): this { + if (this.checkPriority("marqueeUpdateStrategy")) { + const value_casted = value as (MarqueeUpdateStrategy) + this.peer?.marqueeUpdateStrategyAttribute(value_casted) + return this + } + return this + } + /** @memo */ + onStart(event: (() => void)): this { + if (this.checkPriority("onStart")) { + const event_casted = event as ((() => void)) + this.peer?.onStartAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onBounce(event: (() => void)): this { + if (this.checkPriority("onBounce")) { + const event_casted = event as ((() => void)) + this.peer?.onBounceAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onFinish(event: (() => void)): this { + if (this.checkPriority("onFinish")) { + const event_casted = event as ((() => void)) + this.peer?.onFinishAttribute(event_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkMarquee( + /** @memo */ + style: ((attributes: ArkMarqueeComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + options: MarqueeOptions +) { + const receiver = remember(() => { + return new ArkMarqueeComponent() + }) + NodeAttach((): ArkMarqueePeer => ArkMarqueePeer.create(ArkUINodeType.Marquee, receiver), (_: ArkMarqueePeer) => { + receiver.setMarqueeOptions(options) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkMarqueeInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkMarqueeInterfaces.ts new file mode 100644 index 000000000..9cfcd2d4d --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkMarqueeInterfaces.ts @@ -0,0 +1,24 @@ +import { ResourceColor, Resource, Length } from "./ArkUnitsInterfaces" +import { Color, FontWeight, MarqueeUpdateStrategy } from "./ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource } from "./SyntheticDeclarations" +import { KInt } from "@koalaui/interop" +export interface MarqueeAttribute { + fontColor(value: ResourceColor): MarqueeAttribute; + fontSize(value: Length): MarqueeAttribute; + allowScale(value: boolean): MarqueeAttribute; + fontWeight(value: number | FontWeight | string): MarqueeAttribute; + fontFamily(value: string | Resource): MarqueeAttribute; + marqueeUpdateStrategy(value: MarqueeUpdateStrategy): MarqueeAttribute; + onStart(event: (() => void)): MarqueeAttribute; + onBounce(event: (() => void)): MarqueeAttribute; + onFinish(event: (() => void)): MarqueeAttribute; +} +export interface MarqueeInterface { +} +export interface MarqueeOptions { + start: boolean + step?: number + loop?: number + fromStart?: boolean + src: string +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkMediaCachedImage.ts b/arkoala-arkts/arkui/src/generated/ArkMediaCachedImage.ts new file mode 100644 index 000000000..5b5f5c444 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkMediaCachedImage.ts @@ -0,0 +1,66 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkImageComponent } from "./ArkImage" +import { ArkMediaCachedImagePeer } from "./peers/ArkMediaCachedImagePeer" +import { MediaCachedImageAttribute, ASTCResource, MediaCachedImageInterface } from "./ArkMediaCachedImageInterfaces" +import { PixelMap } from "./ArkCommonInterfaces" +import { IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image, IMPORT_Resource_FROM_api_global_resource, IMPORT_DrawableDescriptor_FROM_api_ohos_arkui_drawableDescriptor } from "./SyntheticDeclarations" +import { ResourceStr, Resource } from "./ArkUnitsInterfaces" +import { DrawableDescriptor } from "./ArkImageInterfaces" +/** @memo:stable */ +export class ArkMediaCachedImageComponent extends ArkImageComponent { + protected peer?: ArkMediaCachedImagePeer + /** @memo */ + setMediaCachedImageOptions(src: PixelMap | ResourceStr | DrawableDescriptor | ASTCResource): this { + if (this.checkPriority("setMediaCachedImageOptions")) { + const src_casted = src as (PixelMap | ResourceStr | DrawableDescriptor | ASTCResource) + this.peer?.setMediaCachedImageOptionsAttribute(src_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkMediaCachedImage( + /** @memo */ + style: ((attributes: ArkMediaCachedImageComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + src: PixelMap | ResourceStr | DrawableDescriptor | ASTCResource +) { + const receiver = remember(() => { + return new ArkMediaCachedImageComponent() + }) + NodeAttach((): ArkMediaCachedImagePeer => ArkMediaCachedImagePeer.create(ArkUINodeType.MediaCachedImage, receiver), (_: ArkMediaCachedImagePeer) => { + receiver.setMediaCachedImageOptions(src) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkMediaCachedImageInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkMediaCachedImageInterfaces.ts new file mode 100644 index 000000000..c04121b45 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkMediaCachedImageInterfaces.ts @@ -0,0 +1,13 @@ +import { PixelMap } from "./ArkCommonInterfaces" +import { IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image, IMPORT_Resource_FROM_api_global_resource, IMPORT_DrawableDescriptor_FROM_api_ohos_arkui_drawableDescriptor } from "./SyntheticDeclarations" +import { ResourceStr, Resource } from "./ArkUnitsInterfaces" +import { DrawableDescriptor } from "./ArkImageInterfaces" +import { KInt } from "@koalaui/interop" +export interface MediaCachedImageAttribute { +} +export interface MediaCachedImageInterface { +} +export interface ASTCResource { + sources: Array + column: number +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkMenu.ts b/arkoala-arkts/arkui/src/generated/ArkMenu.ts new file mode 100644 index 000000000..6f81dcbc1 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkMenu.ts @@ -0,0 +1,127 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkMenuPeer } from "./peers/ArkMenuPeer" +import { Length, Resource, Font, ResourceColor, Dimension, PX, VP, FP, LPX, Percentage, BorderRadiuses, DividerStyleOptions } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, LITERAL_TopLeftLengthTopRightLengthBottomLeftLengthBottomRightLength } from "./SyntheticDeclarations" +import { MenuAttribute, SubMenuExpandingMode, MenuInterface } from "./ArkMenuInterfaces" +import { Color } from "./ArkEnumsInterfaces" +/** @memo:stable */ +export class ArkMenuComponent extends ArkCommonMethodComponent { + protected peer?: ArkMenuPeer + /** @memo */ + setMenuOptions(): this { + if (this.checkPriority("setMenuOptions")) { + this.peer?.setMenuOptionsAttribute() + return this + } + return this + } + /** @memo */ + fontSize(value: Length): this { + if (this.checkPriority("fontSize")) { + const value_casted = value as (Length) + this.peer?.fontSizeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + font(value: Font): this { + if (this.checkPriority("font")) { + const value_casted = value as (Font) + this.peer?.fontAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fontColor(value: ResourceColor): this { + if (this.checkPriority("fontColor")) { + const value_casted = value as (ResourceColor) + this.peer?.fontColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + radius(value: Dimension | BorderRadiuses): this { + if (this.checkPriority("radius")) { + const value_casted = value as (Dimension | BorderRadiuses) + this.peer?.radiusAttribute(value_casted) + return this + } + return this + } + /** @memo */ + menuItemDivider(options: DividerStyleOptions | undefined): this { + if (this.checkPriority("menuItemDivider")) { + const options_casted = options as (DividerStyleOptions | undefined) + this.peer?.menuItemDividerAttribute(options_casted) + return this + } + return this + } + /** @memo */ + menuItemGroupDivider(options: DividerStyleOptions | undefined): this { + if (this.checkPriority("menuItemGroupDivider")) { + const options_casted = options as (DividerStyleOptions | undefined) + this.peer?.menuItemGroupDividerAttribute(options_casted) + return this + } + return this + } + /** @memo */ + subMenuExpandingMode(mode: SubMenuExpandingMode): this { + if (this.checkPriority("subMenuExpandingMode")) { + const mode_casted = mode as (SubMenuExpandingMode) + this.peer?.subMenuExpandingModeAttribute(mode_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkMenu( + /** @memo */ + style: ((attributes: ArkMenuComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + +) { + const receiver = remember(() => { + return new ArkMenuComponent() + }) + NodeAttach((): ArkMenuPeer => ArkMenuPeer.create(ArkUINodeType.Menu, receiver), (_: ArkMenuPeer) => { + receiver.setMenuOptions() + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkMenuInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkMenuInterfaces.ts new file mode 100644 index 000000000..5873a722a --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkMenuInterfaces.ts @@ -0,0 +1,69 @@ +import { Length, Resource, Font, ResourceColor, Dimension, PX, VP, FP, LPX, Percentage, BorderRadiuses, DividerStyleOptions } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, LITERAL_TopLeftLengthTopRightLengthBottomLeftLengthBottomRightLength } from "./SyntheticDeclarations" +import { Color } from "./ArkEnumsInterfaces" +import { KInt } from "@koalaui/interop" +/** + * Declare SubMenuExpandingMode + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ +export class SubMenuExpandingMode { + /** + * Sub-menu will expand besides main menu + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly SIDE_EXPAND: SubMenuExpandingMode = new SubMenuExpandingMode(0) + /** + * Sub-menu will expand embedded in main menu + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly EMBEDDED_EXPAND: SubMenuExpandingMode = new SubMenuExpandingMode(1) + /** + * Sub-menu will expand over main menu + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly STACK_EXPAND: SubMenuExpandingMode = new SubMenuExpandingMode(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): SubMenuExpandingMode { + if ((arg0) == (SubMenuExpandingMode.SIDE_EXPAND.value)) { + return SubMenuExpandingMode.SIDE_EXPAND + } + if ((arg0) == (SubMenuExpandingMode.EMBEDDED_EXPAND.value)) { + return SubMenuExpandingMode.EMBEDDED_EXPAND + } + if ((arg0) == (SubMenuExpandingMode.STACK_EXPAND.value)) { + return SubMenuExpandingMode.STACK_EXPAND + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +export interface MenuAttribute { + fontSize(value: Length): MenuAttribute; + font(value: Font): MenuAttribute; + fontColor(value: ResourceColor): MenuAttribute; + radius(value: Dimension | BorderRadiuses): MenuAttribute; + menuItemDivider(options: DividerStyleOptions | undefined): MenuAttribute; + menuItemGroupDivider(options: DividerStyleOptions | undefined): MenuAttribute; + subMenuExpandingMode(mode: SubMenuExpandingMode): MenuAttribute; +} +export interface MenuInterface { +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkMenuItem.ts b/arkoala-arkts/arkui/src/generated/ArkMenuItem.ts new file mode 100644 index 000000000..180f94ba1 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkMenuItem.ts @@ -0,0 +1,133 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkMenuItemPeer } from "./peers/ArkMenuItemPeer" +import { UseEventsProperties } from "./use_properties" +import { MenuItemAttribute, MenuItemOptions, MenuItemInterface } from "./ArkMenuItemInterfaces" +import { ResourceStr, Resource, Font, ResourceColor } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, IMPORT_SymbolGlyphModifier_FROM_api_arkui_SymbolGlyphModifier } from "./SyntheticDeclarations" +import { SymbolGlyphModifier, CustomBuilder } from "./ArkCommonInterfaces" +import { Color } from "./ArkEnumsInterfaces" +/** @memo:stable */ +export class ArkMenuItemComponent extends ArkCommonMethodComponent { + protected peer?: ArkMenuItemPeer + /** @memo */ + setMenuItemOptions(value?: MenuItemOptions | CustomBuilder): this { + if (this.checkPriority("setMenuItemOptions")) { + if ((value) == (undefined)) { + throw new Error("Arg 'value' is null"); + } + const value_casted = value as (MenuItemOptions | CustomBuilder) + this.peer?.setMenuItemOptionsAttribute(value_casted) + return this + } + return this + } + /** @memo */ + selected(value: boolean): this { + if (this.checkPriority("selected")) { + const value_casted = value as (boolean) + this.peer?.selectedAttribute(value_casted) + return this + } + return this + } + /** @memo */ + selectIcon(value: boolean | ResourceStr | SymbolGlyphModifier): this { + if (this.checkPriority("selectIcon")) { + const value_casted = value as (boolean | ResourceStr | SymbolGlyphModifier) + this.peer?.selectIconAttribute(value_casted) + return this + } + return this + } + /** @memo */ + onChange(callback: ((selected: boolean) => void)): this { + if (this.checkPriority("onChange")) { + const callback_casted = callback as (((selected: boolean) => void)) + this.peer?.onChangeAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + contentFont(value: Font): this { + if (this.checkPriority("contentFont")) { + const value_casted = value as (Font) + this.peer?.contentFontAttribute(value_casted) + return this + } + return this + } + /** @memo */ + contentFontColor(value: ResourceColor): this { + if (this.checkPriority("contentFontColor")) { + const value_casted = value as (ResourceColor) + this.peer?.contentFontColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + labelFont(value: Font): this { + if (this.checkPriority("labelFont")) { + const value_casted = value as (Font) + this.peer?.labelFontAttribute(value_casted) + return this + } + return this + } + /** @memo */ + labelFontColor(value: ResourceColor): this { + if (this.checkPriority("labelFontColor")) { + const value_casted = value as (ResourceColor) + this.peer?.labelFontColorAttribute(value_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkMenuItem( + /** @memo */ + style: ((attributes: ArkMenuItemComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + value?: MenuItemOptions | CustomBuilder +) { + const receiver = remember(() => { + return new ArkMenuItemComponent() + }) + NodeAttach((): ArkMenuItemPeer => ArkMenuItemPeer.create(ArkUINodeType.MenuItem, receiver), (_: ArkMenuItemPeer) => { + receiver.setMenuItemOptions(value) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkMenuItemGroup.ts b/arkoala-arkts/arkui/src/generated/ArkMenuItemGroup.ts new file mode 100644 index 000000000..36ba2d4b1 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkMenuItemGroup.ts @@ -0,0 +1,68 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkMenuItemGroupPeer } from "./peers/ArkMenuItemGroupPeer" +import { MenuItemGroupAttribute, MenuItemGroupOptions, MenuItemGroupInterface } from "./ArkMenuItemGroupInterfaces" +import { ResourceStr, Resource } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource } from "./SyntheticDeclarations" +import { CustomBuilder } from "./ArkCommonInterfaces" +/** @memo:stable */ +export class ArkMenuItemGroupComponent extends ArkCommonMethodComponent { + protected peer?: ArkMenuItemGroupPeer + /** @memo */ + setMenuItemGroupOptions(value?: MenuItemGroupOptions): this { + if (this.checkPriority("setMenuItemGroupOptions")) { + if ((value) == (undefined)) { + throw new Error("Arg 'value' is null"); + } + const value_casted = value as (MenuItemGroupOptions) + this.peer?.setMenuItemGroupOptionsAttribute(value_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkMenuItemGroup( + /** @memo */ + style: ((attributes: ArkMenuItemGroupComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + value?: MenuItemGroupOptions +) { + const receiver = remember(() => { + return new ArkMenuItemGroupComponent() + }) + NodeAttach((): ArkMenuItemGroupPeer => ArkMenuItemGroupPeer.create(ArkUINodeType.MenuItemGroup, receiver), (_: ArkMenuItemGroupPeer) => { + receiver.setMenuItemGroupOptions(value) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkMenuItemGroupInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkMenuItemGroupInterfaces.ts new file mode 100644 index 000000000..07ab9d5f4 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkMenuItemGroupInterfaces.ts @@ -0,0 +1,12 @@ +import { ResourceStr, Resource } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource } from "./SyntheticDeclarations" +import { CustomBuilder } from "./ArkCommonInterfaces" +import { KInt } from "@koalaui/interop" +export interface MenuItemGroupAttribute { +} +export interface MenuItemGroupInterface { +} +export interface MenuItemGroupOptions { + header?: ResourceStr | CustomBuilder + footer?: ResourceStr | CustomBuilder +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkMenuItemInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkMenuItemInterfaces.ts new file mode 100644 index 000000000..5b369386f --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkMenuItemInterfaces.ts @@ -0,0 +1,25 @@ +import { ResourceStr, Resource, Font, ResourceColor } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, IMPORT_SymbolGlyphModifier_FROM_api_arkui_SymbolGlyphModifier } from "./SyntheticDeclarations" +import { SymbolGlyphModifier, CustomBuilder } from "./ArkCommonInterfaces" +import { Color } from "./ArkEnumsInterfaces" +import { KInt } from "@koalaui/interop" +export interface MenuItemAttribute { + selected(value: boolean): MenuItemAttribute; + selectIcon(value: boolean | ResourceStr | SymbolGlyphModifier): MenuItemAttribute; + onChange(callback: ((selected: boolean) => void)): MenuItemAttribute; + contentFont(value: Font): MenuItemAttribute; + contentFontColor(value: ResourceColor): MenuItemAttribute; + labelFont(value: Font): MenuItemAttribute; + labelFontColor(value: ResourceColor): MenuItemAttribute; +} +export interface MenuItemInterface { +} +export interface MenuItemOptions { + startIcon?: ResourceStr + symbolStartIcon?: SymbolGlyphModifier + content?: ResourceStr + endIcon?: ResourceStr + symbolEndIcon?: SymbolGlyphModifier + labelInfo?: ResourceStr + builder?: CustomBuilder +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkMutableStyledStringMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkMutableStyledStringMaterialized.ts new file mode 100644 index 000000000..a31ec1894 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkMutableStyledStringMaterialized.ts @@ -0,0 +1,164 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { StyledString } from "./ArkStyledStringMaterialized" +import { ImageAttachment, StyleOptions, StyledStringKey, SpanStyle } from "./ArkStyledStringInterfaces" +import { CustomSpan } from "./ArkCustomSpanMaterialized" +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class MutableStyledString extends StyledString { + peer?: Finalizable + static ctor(): KPointer { + const retval = NativeModule._MutableStyledString_ctor() + return retval + } + constructor() { + super(); + const ctorPtr = MutableStyledString.ctor() + this.peer = new Finalizable(ctorPtr, MutableStyledString.getFinalizer()) + } + static getFinalizer(): KPointer { + return NativeModule._MutableStyledString_getFinalizer() + } + replaceString(start: number, length: number, other: string): void { + const start_casted = start as (number) + const length_casted = length as (number) + const other_casted = other as (string) + this.replaceString_serialize(start_casted, length_casted, other_casted) + } + insertString(start: number, other: string): void { + const start_casted = start as (number) + const other_casted = other as (string) + this.insertString_serialize(start_casted, other_casted) + } + removeString(start: number, length: number): void { + const start_casted = start as (number) + const length_casted = length as (number) + this.removeString_serialize(start_casted, length_casted) + } + replaceStyle(spanStyle: SpanStyle): void { + const spanStyle_casted = spanStyle as (SpanStyle) + this.replaceStyle_serialize(spanStyle_casted) + } + setStyle(spanStyle: SpanStyle): void { + const spanStyle_casted = spanStyle as (SpanStyle) + this.setStyle_serialize(spanStyle_casted) + } + removeStyle(start: number, length: number, styledKey: StyledStringKey): void { + const start_casted = start as (number) + const length_casted = length as (number) + const styledKey_casted = styledKey as (StyledStringKey) + this.removeStyle_serialize(start_casted, length_casted, styledKey_casted) + } + removeStyles(start: number, length: number): void { + const start_casted = start as (number) + const length_casted = length as (number) + this.removeStyles_serialize(start_casted, length_casted) + } + clearStyles(): void { + this.clearStyles_serialize() + } + replaceStyledString(start: number, length: number, other: StyledString): void { + const start_casted = start as (number) + const length_casted = length as (number) + const other_casted = other as (StyledString) + this.replaceStyledString_serialize(start_casted, length_casted, other_casted) + } + insertStyledString(start: number, other: StyledString): void { + const start_casted = start as (number) + const other_casted = other as (StyledString) + this.insertStyledString_serialize(start_casted, other_casted) + } + appendStyledString(other: StyledString): void { + const other_casted = other as (StyledString) + this.appendStyledString_serialize(other_casted) + } + private replaceString_serialize(start: number, length: number, other: string): void { + NativeModule._MutableStyledString_replaceString(this.peer!.ptr, start, length, other); + } + private insertString_serialize(start: number, other: string): void { + NativeModule._MutableStyledString_insertString(this.peer!.ptr, start, other); + } + private removeString_serialize(start: number, length: number): void { + NativeModule._MutableStyledString_removeString(this.peer!.ptr, start, length); + } + private replaceStyle_serialize(spanStyle: SpanStyle): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeSpanStyle(spanStyle) + NativeModule._MutableStyledString_replaceStyle(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private setStyle_serialize(spanStyle: SpanStyle): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeSpanStyle(spanStyle) + NativeModule._MutableStyledString_setStyle(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private removeStyle_serialize(start: number, length: number, styledKey: StyledStringKey): void { + NativeModule._MutableStyledString_removeStyle(this.peer!.ptr, start, length, (styledKey.value as int32)); + } + private removeStyles_serialize(start: number, length: number): void { + NativeModule._MutableStyledString_removeStyles(this.peer!.ptr, start, length); + } + private clearStyles_serialize(): void { + NativeModule._MutableStyledString_clearStyles(this.peer!.ptr); + } + private replaceStyledString_serialize(start: number, length: number, other: StyledString): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeMaterialized(other) + NativeModule._MutableStyledString_replaceStyledString(this.peer!.ptr, start, length, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private insertStyledString_serialize(start: number, other: StyledString): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeMaterialized(other) + NativeModule._MutableStyledString_insertStyledString(this.peer!.ptr, start, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private appendStyledString_serialize(other: StyledString): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeMaterialized(other) + NativeModule._MutableStyledString_appendStyledString(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkNavRouter.ts b/arkoala-arkts/arkui/src/generated/ArkNavRouter.ts new file mode 100644 index 000000000..a016ba478 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkNavRouter.ts @@ -0,0 +1,92 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkNavRouterPeer } from "./peers/ArkNavRouterPeer" +import { UseEventsProperties } from "./use_properties" +import { NavRouterAttribute, NavRouteMode, RouteInfo, NavRouterInterface } from "./ArkNavRouterInterfaces" +/** @memo:stable */ +export class ArkNavRouterComponent extends ArkCommonMethodComponent { + protected peer?: ArkNavRouterPeer + /** @memo */ + setNavRouterOptions(value?: RouteInfo): this { + if (this.checkPriority("setNavRouterOptions")) { + const value_type = runtimeType(value) + if ((((RuntimeType.OBJECT == value_type)))) { + if ((value) == (undefined)) { + throw new Error("Arg 'value' is null"); + } + const value_casted = value as (RouteInfo) + this.peer?.setNavRouterOptions1Attribute(value_casted) + return this + } + if ((((RuntimeType.UNDEFINED == value_type)))) { + this.peer?.setNavRouterOptions0Attribute() + return this + } + throw new Error("Can not select appropriate overload") + } + return this + } + /** @memo */ + onStateChange(callback: ((isActivated: boolean) => void)): this { + if (this.checkPriority("onStateChange")) { + const callback_casted = callback as (((isActivated: boolean) => void)) + this.peer?.onStateChangeAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + mode(mode: NavRouteMode): this { + if (this.checkPriority("mode")) { + const mode_casted = mode as (NavRouteMode) + this.peer?.modeAttribute(mode_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkNavRouter( + /** @memo */ + style: ((attributes: ArkNavRouterComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + value?: RouteInfo +) { + const receiver = remember(() => { + return new ArkNavRouterComponent() + }) + NodeAttach((): ArkNavRouterPeer => ArkNavRouterPeer.create(ArkUINodeType.NavRouter, receiver), (_: ArkNavRouterPeer) => { + receiver.setNavRouterOptions(value) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkNavRouterInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkNavRouterInterfaces.ts new file mode 100644 index 000000000..c8c6a995c --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkNavRouterInterfaces.ts @@ -0,0 +1,98 @@ +import { KInt } from "@koalaui/interop" +/** + * Define the route mode. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Define the route mode. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + * @deprecated since 13 + */ +export class NavRouteMode { + /** + * Create a new page to replace the current. The old page is destroyed but kept in the stack for recreating. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Create a new page to replace the current. The old page is destroyed but kept in the stack for recreating. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + * @deprecated since 13 + */ + static readonly PUSH_WITH_RECREATE: NavRouteMode = new NavRouteMode(0) + /** + * Create a new page to cover the current. The old page is remained and kept in the stack. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Create a new page to cover the current. The old page is remained and kept in the stack. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + * @deprecated since 13 + */ + static readonly PUSH: NavRouteMode = new NavRouteMode(1) + /** + * Create a new page to replace the current. The old page is destroyed and removed out of the stack. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Create a new page to replace the current. The old page is destroyed and removed out of the stack. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + * @deprecated since 13 + */ + static readonly REPLACE: NavRouteMode = new NavRouteMode(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): NavRouteMode { + if ((arg0) == (NavRouteMode.PUSH_WITH_RECREATE.value)) { + return NavRouteMode.PUSH_WITH_RECREATE + } + if ((arg0) == (NavRouteMode.PUSH.value)) { + return NavRouteMode.PUSH + } + if ((arg0) == (NavRouteMode.REPLACE.value)) { + return NavRouteMode.REPLACE + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +export interface NavRouterAttribute { + onStateChange(callback: ((isActivated: boolean) => void)): NavRouterAttribute; + mode(mode: NavRouteMode): NavRouterAttribute; +} +export interface NavRouterInterface { +} +export interface RouteInfo { + name: string + param?: Object +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkNavigator.ts b/arkoala-arkts/arkui/src/generated/ArkNavigator.ts new file mode 100644 index 000000000..1cd46e35f --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkNavigator.ts @@ -0,0 +1,110 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkNavigatorPeer } from "./peers/ArkNavigatorPeer" +import { NavigatorAttribute, NavigationType, NavigatorInterface } from "./ArkNavigatorInterfaces" +import { LITERAL_TargetStringTypeNavigationType } from "./SyntheticDeclarations" +/** @memo:stable */ +export class ArkNavigatorComponent extends ArkCommonMethodComponent { + protected peer?: ArkNavigatorPeer + /** @memo */ + setNavigatorOptions(value?: LITERAL_TargetStringTypeNavigationType): this { + if (this.checkPriority("setNavigatorOptions")) { + const value_type = runtimeType(value) + if ((((RuntimeType.OBJECT == value_type)) || ((RuntimeType.UNDEFINED == value_type)))) { + if ((value) == (undefined)) { + throw new Error("Arg 'value' is null"); + } + const value_casted = value as (LITERAL_TargetStringTypeNavigationType) + this.peer?.setNavigatorOptions0Attribute(value_casted) + return this + } + if ((((RuntimeType.UNDEFINED == value_type)))) { + this.peer?.setNavigatorOptions1Attribute() + return this + } + throw new Error("Can not select appropriate overload") + } + return this + } + /** @memo */ + active(value: boolean): this { + if (this.checkPriority("active")) { + const value_casted = value as (boolean) + this.peer?.activeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + type(value: NavigationType): this { + if (this.checkPriority("type")) { + const value_casted = value as (NavigationType) + this.peer?.typeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + target(value: string): this { + if (this.checkPriority("target")) { + const value_casted = value as (string) + this.peer?.targetAttribute(value_casted) + return this + } + return this + } + /** @memo */ + params(value: Object): this { + if (this.checkPriority("params")) { + const value_casted = value as (Object) + this.peer?.paramsAttribute(value_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkNavigator( + /** @memo */ + style: ((attributes: ArkNavigatorComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + value?: LITERAL_TargetStringTypeNavigationType +) { + const receiver = remember(() => { + return new ArkNavigatorComponent() + }) + NodeAttach((): ArkNavigatorPeer => ArkNavigatorPeer.create(ArkUINodeType.Navigator, receiver), (_: ArkNavigatorPeer) => { + receiver.setNavigatorOptions(value) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkNavigatorInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkNavigatorInterfaces.ts new file mode 100644 index 000000000..3d541b9c0 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkNavigatorInterfaces.ts @@ -0,0 +1,140 @@ +import { LITERAL_TargetStringTypeNavigationType } from "./SyntheticDeclarations" +import { KInt } from "@koalaui/interop" +/* + * Copyright (c) 2021-2023 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +/** + * @file + * @kit ArkUI + */ +/** + * Route jump. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Route jump. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Route jump. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + * @deprecated since 13 + */ +export class NavigationType { + /** + * Jump to the next page. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Jump to the next page. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Jump to the next page. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + * @deprecated since 13 + */ + static readonly Push: NavigationType = new NavigationType(0) + /** + * Return to the previous page. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Return to the previous page. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Return to the previous page. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + * @deprecated since 13 + */ + static readonly Back: NavigationType = new NavigationType(1) + /** + * Replace page. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Replace page. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Replace page. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + * @deprecated since 13 + */ + static readonly Replace: NavigationType = new NavigationType(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): NavigationType { + if ((arg0) == (NavigationType.Push.value)) { + return NavigationType.Push + } + if ((arg0) == (NavigationType.Back.value)) { + return NavigationType.Back + } + if ((arg0) == (NavigationType.Replace.value)) { + return NavigationType.Replace + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +export interface NavigatorAttribute { + active(value: boolean): NavigatorAttribute; + type(value: NavigationType): NavigatorAttribute; + target(value: string): NavigatorAttribute; + params(value: Object): NavigatorAttribute; +} +export interface NavigatorInterface { +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkNodeContainer.ts b/arkoala-arkts/arkui/src/generated/ArkNodeContainer.ts new file mode 100644 index 000000000..c193d6652 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkNodeContainer.ts @@ -0,0 +1,63 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkNodeContainerPeer } from "./peers/ArkNodeContainerPeer" +import { NodeContainerAttribute, NodeContainerInterface } from "./ArkNodeContainerInterfaces" +import { IMPORT_NodeController_FROM_api_ohos_arkui_node } from "./SyntheticDeclarations" +/** @memo:stable */ +export class ArkNodeContainerComponent extends ArkCommonMethodComponent { + protected peer?: ArkNodeContainerPeer + /** @memo */ + setNodeContainerOptions(controller: IMPORT_NodeController_FROM_api_ohos_arkui_node): this { + if (this.checkPriority("setNodeContainerOptions")) { + const controller_casted = controller as (IMPORT_NodeController_FROM_api_ohos_arkui_node) + this.peer?.setNodeContainerOptionsAttribute(controller_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkNodeContainer( + /** @memo */ + style: ((attributes: ArkNodeContainerComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + controller: IMPORT_NodeController_FROM_api_ohos_arkui_node +) { + const receiver = remember(() => { + return new ArkNodeContainerComponent() + }) + NodeAttach((): ArkNodeContainerPeer => ArkNodeContainerPeer.create(ArkUINodeType.NodeContainer, receiver), (_: ArkNodeContainerPeer) => { + receiver.setNodeContainerOptions(controller) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkNodeContainerInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkNodeContainerInterfaces.ts new file mode 100644 index 000000000..a5e35a68f --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkNodeContainerInterfaces.ts @@ -0,0 +1,6 @@ +import { IMPORT_NodeController_FROM_api_ohos_arkui_node } from "./SyntheticDeclarations" +import { KInt } from "@koalaui/interop" +export interface NodeContainerAttribute { +} +export interface NodeContainerInterface { +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkPageTransitionInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkPageTransitionInterfaces.ts new file mode 100644 index 000000000..5f3e82364 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkPageTransitionInterfaces.ts @@ -0,0 +1 @@ +import { KInt } from "@koalaui/interop" \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkPanGestureOptionsMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkPanGestureOptionsMaterialized.ts new file mode 100644 index 000000000..834130b99 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkPanGestureOptionsMaterialized.ts @@ -0,0 +1,129 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { PanDirection } from "./ArkGestureInterfaces" +import { LITERAL_FingersNumberDirectionPanDirectionDistanceNumber } from "./SyntheticDeclarations" +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class PanGestureOptions { + peer?: Finalizable + static ctor(value?: LITERAL_FingersNumberDirectionPanDirectionDistanceNumber): KPointer { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + if (value != undefined) { + value_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_type as int32) + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value! + const value_value_fingers = value_value.fingers + let value_value_fingers_type = RuntimeType.UNDEFINED + if (value_value_fingers != undefined) { + value_value_fingers_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_value_fingers_type as int32) + if ((RuntimeType.UNDEFINED) != (value_value_fingers_type)) { + const value_value_fingers_value = value_value_fingers! + thisSerializer.writeNumber(value_value_fingers_value) + } + const value_value_direction = value_value.direction + let value_value_direction_type = RuntimeType.UNDEFINED + if (value_value_direction != undefined) { + value_value_direction_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_value_direction_type as int32) + if ((RuntimeType.UNDEFINED) != (value_value_direction_type)) { + const value_value_direction_value = value_value_direction! + thisSerializer.writeInt32((value_value_direction_value.value as int32)) + } + const value_value_distance = value_value.distance + let value_value_distance_type = RuntimeType.UNDEFINED + if (value_value_distance != undefined) { + value_value_distance_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_value_distance_type as int32) + if ((RuntimeType.UNDEFINED) != (value_value_distance_type)) { + const value_value_distance_value = value_value_distance! + thisSerializer.writeNumber(value_value_distance_value) + } + } + const retval = NativeModule._PanGestureOptions_ctor(thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release(); + return retval + } + constructor(value?: LITERAL_FingersNumberDirectionPanDirectionDistanceNumber) { + const ctorPtr = PanGestureOptions.ctor(value) + this.peer = new Finalizable(ctorPtr, PanGestureOptions.getFinalizer()) + } + static getFinalizer(): KPointer { + return NativeModule._PanGestureOptions_getFinalizer() + } + setDirection(value: PanDirection): void { + const value_casted = value as (PanDirection) + this.setDirection_serialize(value_casted) + } + setDistance(value: number): void { + const value_casted = value as (number) + this.setDistance_serialize(value_casted) + } + setFingers(value: number): void { + const value_casted = value as (number) + this.setFingers_serialize(value_casted) + } + getDirection(): PanDirection { + return this.getDirection_serialize() + } + private setDirection_serialize(value: PanDirection): void { + NativeModule._PanGestureOptions_setDirection(this.peer!.ptr, (value.value as int32)); + } + private setDistance_serialize(value: number): void { + NativeModule._PanGestureOptions_setDistance(this.peer!.ptr, value); + } + private setFingers_serialize(value: number): void { + NativeModule._PanGestureOptions_setFingers(this.peer!.ptr, value); + } + private getDirection_serialize(): PanDirection { + const retval = NativeModule._PanGestureOptions_getDirection(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkPanel.ts b/arkoala-arkts/arkui/src/generated/ArkPanel.ts new file mode 100644 index 000000000..5656b8b02 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkPanel.ts @@ -0,0 +1,174 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkPanelPeer } from "./peers/ArkPanelPeer" +import { UseEventsProperties } from "./use_properties" +import { PanelMode, PanelAttribute, PanelType, PanelHeight, PanelInterface } from "./ArkPanelInterfaces" +import { Dimension, PX, VP, FP, LPX, Percentage, Resource, ResourceColor } from "./ArkUnitsInterfaces" +import { TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, IMPORT_Resource_FROM_api_global_resource } from "./SyntheticDeclarations" +import { Color } from "./ArkEnumsInterfaces" +/** @memo:stable */ +export class ArkPanelComponent extends ArkCommonMethodComponent { + protected peer?: ArkPanelPeer + /** @memo */ + setPanelOptions(show: boolean): this { + if (this.checkPriority("setPanelOptions")) { + const show_casted = show as (boolean) + this.peer?.setPanelOptionsAttribute(show_casted) + return this + } + return this + } + /** @memo */ + mode(value: PanelMode): this { + if (this.checkPriority("mode")) { + const value_casted = value as (PanelMode) + this.peer?.modeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + type(value: PanelType): this { + if (this.checkPriority("type")) { + const value_casted = value as (PanelType) + this.peer?.typeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + dragBar(value: boolean): this { + if (this.checkPriority("dragBar")) { + const value_casted = value as (boolean) + this.peer?.dragBarAttribute(value_casted) + return this + } + return this + } + /** @memo */ + customHeight(value: Dimension | PanelHeight): this { + if (this.checkPriority("customHeight")) { + const value_casted = value as (Dimension | PanelHeight) + this.peer?.customHeightAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fullHeight(value: number | string): this { + if (this.checkPriority("fullHeight")) { + const value_casted = value as (number | string) + this.peer?.fullHeightAttribute(value_casted) + return this + } + return this + } + /** @memo */ + halfHeight(value: number | string): this { + if (this.checkPriority("halfHeight")) { + const value_casted = value as (number | string) + this.peer?.halfHeightAttribute(value_casted) + return this + } + return this + } + /** @memo */ + miniHeight(value: number | string): this { + if (this.checkPriority("miniHeight")) { + const value_casted = value as (number | string) + this.peer?.miniHeightAttribute(value_casted) + return this + } + return this + } + /** @memo */ + show(value: boolean): this { + if (this.checkPriority("show")) { + const value_casted = value as (boolean) + this.peer?.showAttribute(value_casted) + return this + } + return this + } + /** @memo */ + backgroundMask(color: ResourceColor): this { + if (this.checkPriority("backgroundMask")) { + const color_casted = color as (ResourceColor) + this.peer?.backgroundMaskAttribute(color_casted) + return this + } + return this + } + /** @memo */ + showCloseIcon(value: boolean): this { + if (this.checkPriority("showCloseIcon")) { + const value_casted = value as (boolean) + this.peer?.showCloseIconAttribute(value_casted) + return this + } + return this + } + /** @memo */ + onChange(event: ((width: number, height: number, mode: PanelMode) => void)): this { + if (this.checkPriority("onChange")) { + const event_casted = event as (((width: number, height: number, mode: PanelMode) => void)) + this.peer?.onChangeAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onHeightChange(callback: ((value: number) => void)): this { + if (this.checkPriority("onHeightChange")) { + const callback_casted = callback as (((value: number) => void)) + this.peer?.onHeightChangeAttribute(callback_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkPanel( + /** @memo */ + style: ((attributes: ArkPanelComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + show: boolean +) { + const receiver = remember(() => { + return new ArkPanelComponent() + }) + NodeAttach((): ArkPanelPeer => ArkPanelPeer.create(ArkUINodeType.Panel, receiver), (_: ArkPanelPeer) => { + receiver.setPanelOptions(show) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkPanelInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkPanelInterfaces.ts new file mode 100644 index 000000000..340a86f56 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkPanelInterfaces.ts @@ -0,0 +1,337 @@ +import { Dimension, PX, VP, FP, LPX, Percentage, Resource, ResourceColor } from "./ArkUnitsInterfaces" +import { TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, IMPORT_Resource_FROM_api_global_resource } from "./SyntheticDeclarations" +import { Color } from "./ArkEnumsInterfaces" +import { KInt } from "@koalaui/interop" +/* + * Copyright (c) 2021-2023 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +/** + * @file + * @kit ArkUI + */ +/** + * Sets the initial state of the slidable panel. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Sets the initial state of the slidable panel. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Sets the initial state of the slidable panel. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + * @deprecated since 12 + */ +export class PanelMode { + /** + * Minimum state. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Minimum state. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Minimum state. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + * @deprecated since 12 + */ + static readonly Mini: PanelMode = new PanelMode(0) + /** + * SHalf-screen-like status + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * SHalf-screen-like status + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * SHalf-screen-like status + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + * @deprecated since 12 + */ + static readonly Half: PanelMode = new PanelMode(1) + /** + * Class Full Screen Status. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Class Full Screen Status. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Class Full Screen Status. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + * @deprecated since 12 + */ + static readonly Full: PanelMode = new PanelMode(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): PanelMode { + if ((arg0) == (PanelMode.Mini.value)) { + return PanelMode.Mini + } + if ((arg0) == (PanelMode.Half.value)) { + return PanelMode.Half + } + if ((arg0) == (PanelMode.Full.value)) { + return PanelMode.Full + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Sets the type of sliding panel. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Sets the type of sliding panel. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Sets the type of sliding panel. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + * @deprecated since 12 + */ +export class PanelType { + /** + * The switch between the minibar and full-screen display is provided. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * The switch between the minibar and full-screen display is provided. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * The switch between the minibar and full-screen display is provided. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + * @deprecated since 12 + */ + static readonly Minibar: PanelType = new PanelType(0) + /** + * Permanent content display class. + * The switchover effect is provided in three sizes: large (full-screen), medium (half-screen), and small. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Permanent content display class. + * The switchover effect is provided in three sizes: large (full-screen), medium (half-screen), and small. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Permanent content display class. + * The switchover effect is provided in three sizes: large (full-screen), medium (half-screen), and small. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + * @deprecated since 12 + */ + static readonly Foldable: PanelType = new PanelType(1) + /** + * Temporary content display area. + * The switchover effect is provided in three sizes: large (full-screen), medium (half-screen), and small. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Temporary content display area. + * The switchover effect is provided in three sizes: large (full-screen), medium (half-screen), and small. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Temporary content display area. + * The switchover effect is provided in three sizes: large (full-screen), medium (half-screen), and small. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + * @deprecated since 12 + */ + static readonly Temporary: PanelType = new PanelType(2) + /** + * Custom content display area. + * The switchover effect is provided in three sizes: large (full-screen), medium (half-screen), and small. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Custom content display area. + * The switchover effect is provided in three sizes: large (full-screen), medium (half-screen), and small. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + * @deprecated since 12 + */ + static readonly CUSTOM: PanelType = new PanelType(3) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): PanelType { + if ((arg0) == (PanelType.Minibar.value)) { + return PanelType.Minibar + } + if ((arg0) == (PanelType.Foldable.value)) { + return PanelType.Foldable + } + if ((arg0) == (PanelType.Temporary.value)) { + return PanelType.Temporary + } + if ((arg0) == (PanelType.CUSTOM.value)) { + return PanelType.CUSTOM + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Enum for custom content display area. + * + * @enum { string } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Enum for custom content display area. + * + * @enum { string } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + * @deprecated since 12 + */ +export class PanelHeight { + /** + * The Panel adapts to the content height. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * The Panel adapts to the content height. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + * @deprecated since 12 + */ + static readonly WRAP_CONTENT: PanelHeight = new PanelHeight("wrapContent",0) + constructor(value: string, ordinal: KInt) { + this.value = value + this.ordinal = ordinal + } + public readonly value: string + public readonly ordinal: KInt + public static of(arg0: string): PanelHeight { + if ((arg0) == (PanelHeight.WRAP_CONTENT.value)) { + return PanelHeight.WRAP_CONTENT + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +export interface PanelAttribute { + mode(value: PanelMode): PanelAttribute; + type(value: PanelType): PanelAttribute; + dragBar(value: boolean): PanelAttribute; + customHeight(value: Dimension | PanelHeight): PanelAttribute; + fullHeight(value: number | string): PanelAttribute; + halfHeight(value: number | string): PanelAttribute; + miniHeight(value: number | string): PanelAttribute; + show(value: boolean): PanelAttribute; + backgroundMask(color: ResourceColor): PanelAttribute; + showCloseIcon(value: boolean): PanelAttribute; + onChange(event: ((width: number, height: number, mode: PanelMode) => void)): PanelAttribute; + onHeightChange(callback: ((value: number) => void)): PanelAttribute; +} +export interface PanelInterface { +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkPasteButton.ts b/arkoala-arkts/arkui/src/generated/ArkPasteButton.ts new file mode 100644 index 000000000..73697ffa8 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkPasteButton.ts @@ -0,0 +1,85 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkSecurityComponentMethodComponent } from "./ArkSecurityComponent" +import { ArkPasteButtonPeer } from "./peers/ArkPasteButtonPeer" +import { UseEventsProperties } from "./use_properties" +import { ClickEvent } from "./ArkCommonInterfaces" +import { PasteButtonOnClickResult, PasteButtonAttribute, PasteButtonOptions, PasteButtonInterface, PasteIconStyle, PasteDescription } from "./ArkPasteButtonInterfaces" +import { ButtonType } from "./ArkButtonInterfaces" +/** @memo:stable */ +export class ArkPasteButtonComponent extends ArkSecurityComponentMethodComponent { + protected peer?: ArkPasteButtonPeer + /** @memo */ + setPasteButtonOptions(options?: PasteButtonOptions): this { + if (this.checkPriority("setPasteButtonOptions")) { + const options_type = runtimeType(options) + if ((((RuntimeType.OBJECT == options_type)))) { + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (PasteButtonOptions) + this.peer?.setPasteButtonOptions1Attribute(options_casted) + return this + } + if ((((RuntimeType.UNDEFINED == options_type)))) { + this.peer?.setPasteButtonOptions0Attribute() + return this + } + throw new Error("Can not select appropriate overload") + } + return this + } + /** @memo */ + onClick(event: ((event: ClickEvent, result: PasteButtonOnClickResult) => void)): this { + if (this.checkPriority("onClick")) { + const event_casted = event as (((event: ClickEvent, result: PasteButtonOnClickResult) => void)) + this.peer?.onClickAttribute(event_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkPasteButton( + /** @memo */ + style: ((attributes: ArkPasteButtonComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + options?: PasteButtonOptions +) { + const receiver = remember(() => { + return new ArkPasteButtonComponent() + }) + NodeAttach((): ArkPasteButtonPeer => ArkPasteButtonPeer.create(ArkUINodeType.PasteButton, receiver), (_: ArkPasteButtonPeer) => { + receiver.setPasteButtonOptions(options) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkPasteButtonInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkPasteButtonInterfaces.ts new file mode 100644 index 000000000..996f72df5 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkPasteButtonInterfaces.ts @@ -0,0 +1,171 @@ +import { ClickEvent } from "./ArkCommonInterfaces" +import { ButtonType } from "./ArkButtonInterfaces" +import { KInt } from "@koalaui/interop" +/** + * Enumerates the click event results of the paste button. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Enumerates the click event results of the paste button. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ +export class PasteButtonOnClickResult { + /** + * Success. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Success. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ + static readonly SUCCESS: PasteButtonOnClickResult = new PasteButtonOnClickResult(0) + /** + * Failure because the application is not temporarily authorized for accessing the current pasteboard data. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Failure because the application is not temporarily authorized for accessing the current pasteboard data. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ + static readonly TEMPORARY_AUTHORIZATION_FAILED: PasteButtonOnClickResult = new PasteButtonOnClickResult(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): PasteButtonOnClickResult { + if ((arg0) == (PasteButtonOnClickResult.SUCCESS.value)) { + return PasteButtonOnClickResult.SUCCESS + } + if ((arg0) == (PasteButtonOnClickResult.TEMPORARY_AUTHORIZATION_FAILED.value)) { + return PasteButtonOnClickResult.TEMPORARY_AUTHORIZATION_FAILED + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/* + * Copyright (c) 2023 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +/** + * @file + * @kit ArkUI + */ +/** + * Enumerates the icon styles. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Enumerates the icon styles. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ +export class PasteIconStyle { + /** + * Icon rendered as lines. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Icon rendered as lines. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ + static readonly LINES: PasteIconStyle = new PasteIconStyle(0) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): PasteIconStyle { + if ((arg0) == (PasteIconStyle.LINES.value)) { + return PasteIconStyle.LINES + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Enumerates the text that can be displayed on the paste button. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Enumerates the text that can be displayed on the paste button. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ +export class PasteDescription { + /** + * Paste + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Paste + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ + static readonly PASTE: PasteDescription = new PasteDescription(0) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): PasteDescription { + if ((arg0) == (PasteDescription.PASTE.value)) { + return PasteDescription.PASTE + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +export interface PasteButtonAttribute { + onClick(event: ((event: ClickEvent, result: PasteButtonOnClickResult) => void)): PasteButtonAttribute; +} +export interface PasteButtonInterface { +} +export interface PasteButtonOptions { + icon?: PasteIconStyle + text?: PasteDescription + buttonType?: ButtonType +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkPath.ts b/arkoala-arkts/arkui/src/generated/ArkPath.ts new file mode 100644 index 000000000..e33c8921c --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkPath.ts @@ -0,0 +1,75 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonShapeMethodComponent } from "./ArkCommon" +import { ArkPathPeer } from "./peers/ArkPathPeer" +import { PathAttribute, PathInterface } from "./ArkPathInterfaces" +import { LITERAL_WidthNumberstringHeightNumberstringCommandsString } from "./SyntheticDeclarations" +/** @memo:stable */ +export class ArkPathComponent extends ArkCommonShapeMethodComponent { + protected peer?: ArkPathPeer + /** @memo */ + setPathOptions(value?: LITERAL_WidthNumberstringHeightNumberstringCommandsString): this { + if (this.checkPriority("setPathOptions")) { + if ((value) == (undefined)) { + throw new Error("Arg 'value' is null"); + } + const value_casted = value as (LITERAL_WidthNumberstringHeightNumberstringCommandsString) + this.peer?.setPathOptionsAttribute(value_casted) + return this + } + return this + } + /** @memo */ + commands(value: string): this { + if (this.checkPriority("commands")) { + const value_casted = value as (string) + this.peer?.commandsAttribute(value_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkPath( + /** @memo */ + style: ((attributes: ArkPathComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + value?: LITERAL_WidthNumberstringHeightNumberstringCommandsString +) { + const receiver = remember(() => { + return new ArkPathComponent() + }) + NodeAttach((): ArkPathPeer => ArkPathPeer.create(ArkUINodeType.Path, receiver), (_: ArkPathPeer) => { + receiver.setPathOptions(value) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkPath2DMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkPath2DMaterialized.ts new file mode 100644 index 000000000..9048077eb --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkPath2DMaterialized.ts @@ -0,0 +1,87 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { CanvasPath } from "./ArkCanvasPathMaterialized" +import { Matrix2D } from "./ArkMatrix2DMaterialized" +import { LengthMetricsUnit } from "./ArkUnitsInterfaces" +import { IMPORT_LengthMetricsUnit_FROM_api_arkui_Graphics } from "./SyntheticDeclarations" +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class Path2D extends CanvasPath { + peer?: Finalizable + static ctor(): KPointer { + const retval = NativeModule._Path2D_ctor() + return retval + } + constructor() { + super(); + const ctorPtr = Path2D.ctor() + this.peer = new Finalizable(ctorPtr, Path2D.getFinalizer()) + } + static getFinalizer(): KPointer { + return NativeModule._Path2D_getFinalizer() + } + addPath(path: Path2D, transform?: Matrix2D): void { + const path_casted = path as (Path2D) + if ((transform) == (undefined)) { + throw new Error("Arg 'transform' is null"); + } + const transform_casted = transform as (Matrix2D) + this.addPath_serialize(path_casted, transform_casted) + } + private addPath_serialize(path: Path2D, transform?: Matrix2D): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeMaterialized(path) + let transform_type = RuntimeType.UNDEFINED + if (transform != undefined) { + transform_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(transform_type as int32) + if ((RuntimeType.UNDEFINED) != (transform_type)) { + const transform_value = transform! + thisSerializer.writeMaterialized(transform_value) + } + NativeModule._Path2D_addPath(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkPathInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkPathInterfaces.ts new file mode 100644 index 000000000..31fc1baee --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkPathInterfaces.ts @@ -0,0 +1,7 @@ +import { LITERAL_WidthNumberstringHeightNumberstringCommandsString } from "./SyntheticDeclarations" +import { KInt } from "@koalaui/interop" +export interface PathAttribute { + commands(value: string): PathAttribute; +} +export interface PathInterface { +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkPatternLock.ts b/arkoala-arkts/arkui/src/generated/ArkPatternLock.ts new file mode 100644 index 000000000..710a0532f --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkPatternLock.ts @@ -0,0 +1,192 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkPatternLockPeer } from "./peers/ArkPatternLockPeer" +import { UseEventsProperties } from "./use_properties" +import { Length, Resource, SizeOptions, ConstraintSizeOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, ResourceStr, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, PX, VP, FP, LPX, Percentage, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, LengthMetrics } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, LITERAL_TopLengthRightLengthBottomLengthLeftLength, LITERAL_AlignAlignment, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image, IMPORT_default_VisualEffect_FROM_api_ohos_graphics_uiEffect, IMPORT_default_Filter_FROM_api_ohos_graphics_uiEffect, LITERAL_TopBorderStyleRightBorderStyleBottomBorderStyleLeftBorderStyle, LITERAL_TopResourceColorRightResourceColorBottomResourceColorLeftResourceColor, LITERAL_TopLeftLengthTopRightLengthBottomLeftLengthBottomRightLength, LITERAL_TopOutlineStyleRightOutlineStyleBottomOutlineStyleLeftOutlineStyle, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, LITERAL_TopDimensionRightDimensionBottomDimensionLeftDimension, LITERAL_TopLeftDimensionTopRightDimensionBottomLeftDimensionBottomRightDimension, LITERAL_SpanNumberOffsetNumber, LITERAL_XsNumberLITERALSpanNumberOffsetNumberSmNumberLITERALSpanNumberOffsetNumberMdNumberLITERALSpanNumberOffsetNumberLgNumberLITERALSpanNumberOffsetNumber, IMPORT_default_UniformDataType_FROM_api_ohos_data_uniformTypeDescriptor, IMPORT_ComponentContent_T_FROM_api_arkui_ComponentContent, LITERAL_AngleNumberstringDirectionGradientDirectionColorsArrayResourceColornumberRepeatingBoolean, LITERAL_CenterLengthLengthStartNumberstringEndNumberstringRotationNumberstringColorsArrayResourceColornumberRepeatingBoolean, LITERAL_CenterLengthLengthRadiusNumberstringColorsArrayResourceColornumberRepeatingBoolean, IMPORT_default_Blender_FROM_api_ohos_graphics_uiEffect, IMPORT_CircleShape_FROM_api_ohos_arkui_shape, IMPORT_EllipseShape_FROM_api_ohos_arkui_shape, IMPORT_PathShape_FROM_api_ohos_arkui_shape, IMPORT_RectShape_FROM_api_ohos_arkui_shape, IMPORT_Callback_number_FROM_api_ohos_base, IMPORT_LengthMetrics_FROM_api_arkui_Graphics } from "./SyntheticDeclarations" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { Optional, SafeAreaType, SafeAreaEdge, Rectangle, TouchTestInfo, TouchResult, CustomBuilder, PixelRoundPolicy, PixelMap, BlurStyle, BackgroundBlurStyleOptions, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, ForegroundBlurStyleOptions, BorderImageOption, OutlineStyle, ClickEvent, Callback, HoverEvent, AccessibilityCallback, AccessibilityHoverEvent, MouseEvent, TouchEvent, KeyEvent, AnimateParam, TransitionOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, sharedTransitionOptions, AlignRuleOption, LocalizedAlignRuleOptions, ChainStyle, ClickEffect, DragEvent, DragItemInfo, UniformDataType, DragPreviewOptions, DragInteractionOptions, PreDragStatus, ComponentContent, OverlayOptions, MotionPathOptions, ShadowOptions, ShadowStyle, BlendMode, BlendApplyType, Blender, CircleShape, EllipseShape, PathShape, RectShape, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, StateStyles, VisibleAreaChangeCallback, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback } from "./ArkCommonInterfaces" +import { HitTestMode, Alignment, Color, ImageRepeat, ImageSize, BorderStyle, ColoringStrategy, HoverEffect, Visibility, ItemAlign, Direction, Axis, GradientDirection, ResponseType, FunctionKey, ModifierKey, ObscuredReasons, RenderFit } from "./ArkEnumsInterfaces" +import { ResizableOptions } from "./ArkImageInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ConflictedDeclarations" +import { GestureType, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureMask, GestureInfo, BaseGestureEvent, GestureJudgeResult } from "./ArkGestureInterfaces" +import { CircleAttribute } from "./ArkCircleInterfaces" +import { EllipseAttribute } from "./ArkEllipseInterfaces" +import { PathAttribute } from "./ArkPathInterfaces" +import { RectAttribute } from "./ArkRectInterfaces" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./ArkAttributeModifierMaterialized" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureRecognizer } from "./ArkGestureRecognizerMaterialized" +import { PatternLockAttribute, CircleStyleOptions, PatternLockInterface } from "./ArkPatternLockInterfaces" +import { PatternLockController } from "./ArkPatternLockControllerMaterialized" +/** @memo:stable */ +export class ArkPatternLockComponent extends ArkCommonMethodComponent { + protected peer?: ArkPatternLockPeer + /** @memo */ + setPatternLockOptions(controller?: PatternLockController): this { + if (this.checkPriority("setPatternLockOptions")) { + if ((controller) == (undefined)) { + throw new Error("Arg 'controller' is null"); + } + const controller_casted = controller as (PatternLockController) + this.peer?.setPatternLockOptionsAttribute(controller_casted) + return this + } + return this + } + /** @memo */ + sideLength(value: Length): this { + if (this.checkPriority("sideLength")) { + const value_casted = value as (Length) + this.peer?.sideLengthAttribute(value_casted) + return this + } + return this + } + /** @memo */ + circleRadius(value: Length): this { + if (this.checkPriority("circleRadius")) { + const value_casted = value as (Length) + this.peer?.circleRadiusAttribute(value_casted) + return this + } + return this + } + /** @memo */ + backgroundColor(value: ResourceColor): this { + if (this.checkPriority("backgroundColor")) { + const value_casted = value as (ResourceColor) + this.peer?.backgroundColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + regularColor(value: ResourceColor): this { + if (this.checkPriority("regularColor")) { + const value_casted = value as (ResourceColor) + this.peer?.regularColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + selectedColor(value: ResourceColor): this { + if (this.checkPriority("selectedColor")) { + const value_casted = value as (ResourceColor) + this.peer?.selectedColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + activeColor(value: ResourceColor): this { + if (this.checkPriority("activeColor")) { + const value_casted = value as (ResourceColor) + this.peer?.activeColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + pathColor(value: ResourceColor): this { + if (this.checkPriority("pathColor")) { + const value_casted = value as (ResourceColor) + this.peer?.pathColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + pathStrokeWidth(value: number | string): this { + if (this.checkPriority("pathStrokeWidth")) { + const value_casted = value as (number | string) + this.peer?.pathStrokeWidthAttribute(value_casted) + return this + } + return this + } + /** @memo */ + onPatternComplete(callback: ((input: Array) => void)): this { + if (this.checkPriority("onPatternComplete")) { + const callback_casted = callback as (((input: Array) => void)) + this.peer?.onPatternCompleteAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + autoReset(value: boolean): this { + if (this.checkPriority("autoReset")) { + const value_casted = value as (boolean) + this.peer?.autoResetAttribute(value_casted) + return this + } + return this + } + /** @memo */ + onDotConnect(callback: IMPORT_Callback_number_FROM_api_ohos_base): this { + if (this.checkPriority("onDotConnect")) { + const callback_casted = callback as (IMPORT_Callback_number_FROM_api_ohos_base) + this.peer?.onDotConnectAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + activateCircleStyle(options: CircleStyleOptions | undefined): this { + if (this.checkPriority("activateCircleStyle")) { + const options_casted = options as (CircleStyleOptions | undefined) + this.peer?.activateCircleStyleAttribute(options_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkPatternLock( + /** @memo */ + style: ((attributes: ArkPatternLockComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + controller?: PatternLockController +) { + const receiver = remember(() => { + return new ArkPatternLockComponent() + }) + NodeAttach((): ArkPatternLockPeer => ArkPatternLockPeer.create(ArkUINodeType.PatternLock, receiver), (_: ArkPatternLockPeer) => { + receiver.setPatternLockOptions(controller) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkPatternLockControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkPatternLockControllerMaterialized.ts new file mode 100644 index 000000000..f61e600b3 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkPatternLockControllerMaterialized.ts @@ -0,0 +1,73 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { PatternLockChallengeResult } from "./ArkPatternLockInterfaces" +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class PatternLockController { + peer?: Finalizable + static ctor(): KPointer { + const retval = NativeModule._PatternLockController_ctor() + return retval + } + constructor() { + const ctorPtr = PatternLockController.ctor() + this.peer = new Finalizable(ctorPtr, PatternLockController.getFinalizer()) + } + static getFinalizer(): KPointer { + return NativeModule._PatternLockController_getFinalizer() + } + reset(): void { + this.reset_serialize() + } + setChallengeResult(result: PatternLockChallengeResult): void { + const result_casted = result as (PatternLockChallengeResult) + this.setChallengeResult_serialize(result_casted) + } + private reset_serialize(): void { + NativeModule._PatternLockController_reset(this.peer!.ptr); + } + private setChallengeResult_serialize(result: PatternLockChallengeResult): void { + NativeModule._PatternLockController_setChallengeResult(this.peer!.ptr, (result.value as int32)); + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkPatternLockInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkPatternLockInterfaces.ts new file mode 100644 index 000000000..e7f51f907 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkPatternLockInterfaces.ts @@ -0,0 +1,116 @@ +import { Length, Resource, SizeOptions, ConstraintSizeOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, ResourceStr, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, PX, VP, FP, LPX, Percentage, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, LengthMetrics } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, LITERAL_TopLengthRightLengthBottomLengthLeftLength, LITERAL_AlignAlignment, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image, IMPORT_default_VisualEffect_FROM_api_ohos_graphics_uiEffect, IMPORT_default_Filter_FROM_api_ohos_graphics_uiEffect, LITERAL_TopBorderStyleRightBorderStyleBottomBorderStyleLeftBorderStyle, LITERAL_TopResourceColorRightResourceColorBottomResourceColorLeftResourceColor, LITERAL_TopLeftLengthTopRightLengthBottomLeftLengthBottomRightLength, LITERAL_TopOutlineStyleRightOutlineStyleBottomOutlineStyleLeftOutlineStyle, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, LITERAL_TopDimensionRightDimensionBottomDimensionLeftDimension, LITERAL_TopLeftDimensionTopRightDimensionBottomLeftDimensionBottomRightDimension, LITERAL_SpanNumberOffsetNumber, LITERAL_XsNumberLITERALSpanNumberOffsetNumberSmNumberLITERALSpanNumberOffsetNumberMdNumberLITERALSpanNumberOffsetNumberLgNumberLITERALSpanNumberOffsetNumber, IMPORT_default_UniformDataType_FROM_api_ohos_data_uniformTypeDescriptor, IMPORT_ComponentContent_T_FROM_api_arkui_ComponentContent, LITERAL_AngleNumberstringDirectionGradientDirectionColorsArrayResourceColornumberRepeatingBoolean, LITERAL_CenterLengthLengthStartNumberstringEndNumberstringRotationNumberstringColorsArrayResourceColornumberRepeatingBoolean, LITERAL_CenterLengthLengthRadiusNumberstringColorsArrayResourceColornumberRepeatingBoolean, IMPORT_default_Blender_FROM_api_ohos_graphics_uiEffect, IMPORT_CircleShape_FROM_api_ohos_arkui_shape, IMPORT_EllipseShape_FROM_api_ohos_arkui_shape, IMPORT_PathShape_FROM_api_ohos_arkui_shape, IMPORT_RectShape_FROM_api_ohos_arkui_shape, IMPORT_Callback_number_FROM_api_ohos_base, IMPORT_LengthMetrics_FROM_api_arkui_Graphics } from "./SyntheticDeclarations" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { Optional, SafeAreaType, SafeAreaEdge, Rectangle, TouchTestInfo, TouchResult, CustomBuilder, PixelRoundPolicy, PixelMap, BlurStyle, BackgroundBlurStyleOptions, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, ForegroundBlurStyleOptions, BorderImageOption, OutlineStyle, ClickEvent, Callback, HoverEvent, AccessibilityCallback, AccessibilityHoverEvent, MouseEvent, TouchEvent, KeyEvent, AnimateParam, TransitionOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, sharedTransitionOptions, AlignRuleOption, LocalizedAlignRuleOptions, ChainStyle, ClickEffect, DragEvent, DragItemInfo, UniformDataType, DragPreviewOptions, DragInteractionOptions, PreDragStatus, ComponentContent, OverlayOptions, MotionPathOptions, ShadowOptions, ShadowStyle, BlendMode, BlendApplyType, Blender, CircleShape, EllipseShape, PathShape, RectShape, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, StateStyles, VisibleAreaChangeCallback, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback } from "./ArkCommonInterfaces" +import { HitTestMode, Alignment, Color, ImageRepeat, ImageSize, BorderStyle, ColoringStrategy, HoverEffect, Visibility, ItemAlign, Direction, Axis, GradientDirection, ResponseType, FunctionKey, ModifierKey, ObscuredReasons, RenderFit } from "./ArkEnumsInterfaces" +import { ResizableOptions } from "./ArkImageInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ConflictedDeclarations" +import { GestureType, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureMask, GestureInfo, BaseGestureEvent, GestureJudgeResult } from "./ArkGestureInterfaces" +import { CircleAttribute } from "./ArkCircleInterfaces" +import { EllipseAttribute } from "./ArkEllipseInterfaces" +import { PathAttribute } from "./ArkPathInterfaces" +import { RectAttribute } from "./ArkRectInterfaces" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./ArkAttributeModifierMaterialized" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureRecognizer } from "./ArkGestureRecognizerMaterialized" +import { PatternLockController } from "./ArkPatternLockControllerMaterialized" +import { KInt } from "@koalaui/interop" +/* + * Copyright (c) 2021-2023 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +/** + * @file + * @kit ArkUI + */ +/** + * The challenge result based on input pattern for control pattern lock component. + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * The challenge result based on input pattern for control pattern lock component. + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ +export class PatternLockChallengeResult { + /** + * The challenge result is correct. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * The challenge result is correct. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly CORRECT: PatternLockChallengeResult = new PatternLockChallengeResult(1) + /** + * The challenge result is wrong. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * The challenge result is wrong. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly WRONG: PatternLockChallengeResult = new PatternLockChallengeResult(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): PatternLockChallengeResult { + if ((arg0) == (PatternLockChallengeResult.CORRECT.value)) { + return PatternLockChallengeResult.CORRECT + } + if ((arg0) == (PatternLockChallengeResult.WRONG.value)) { + return PatternLockChallengeResult.WRONG + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +export interface PatternLockAttribute { + sideLength(value: Length): PatternLockAttribute; + circleRadius(value: Length): PatternLockAttribute; + backgroundColor(value: ResourceColor): PatternLockAttribute; + regularColor(value: ResourceColor): PatternLockAttribute; + selectedColor(value: ResourceColor): PatternLockAttribute; + activeColor(value: ResourceColor): PatternLockAttribute; + pathColor(value: ResourceColor): PatternLockAttribute; + pathStrokeWidth(value: number | string): PatternLockAttribute; + onPatternComplete(callback: ((input: Array) => void)): PatternLockAttribute; + autoReset(value: boolean): PatternLockAttribute; + onDotConnect(callback: IMPORT_Callback_number_FROM_api_ohos_base): PatternLockAttribute; + activateCircleStyle(options: CircleStyleOptions | undefined): PatternLockAttribute; +} +export interface PatternLockInterface { +} +export interface CircleStyleOptions { + color?: ResourceColor + radius?: LengthMetrics + enableWaveEffect?: boolean +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkPermissionRequestMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkPermissionRequestMaterialized.ts new file mode 100644 index 000000000..a3af78d41 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkPermissionRequestMaterialized.ts @@ -0,0 +1,94 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class PermissionRequest { + peer?: Finalizable + static ctor(): KPointer { + const retval = NativeModule._PermissionRequest_ctor() + return retval + } + constructor() { + const ctorPtr = PermissionRequest.ctor() + this.peer = new Finalizable(ctorPtr, PermissionRequest.getFinalizer()) + } + static getFinalizer(): KPointer { + return NativeModule._PermissionRequest_getFinalizer() + } + deny(): void { + this.deny_serialize() + } + getOrigin(): string { + return this.getOrigin_serialize() + } + getAccessibleResource(): Array { + return this.getAccessibleResource_serialize() + } + grant(resources: Array): void { + const resources_casted = resources as (Array) + this.grant_serialize(resources_casted) + } + private deny_serialize(): void { + NativeModule._PermissionRequest_deny(this.peer!.ptr); + } + private getOrigin_serialize(): string { + const retval = NativeModule._PermissionRequest_getOrigin(this.peer!.ptr) + return retval + } + private getAccessibleResource_serialize(): Array { + const retval = NativeModule._PermissionRequest_getAccessibleResource(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private grant_serialize(resources: Array): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeInt8(runtimeType(resources) as int32) + thisSerializer.writeInt32(resources.length as int32) + for (let i = 0; i < resources.length; i++) { + const resources_element = resources[i] + thisSerializer.writeString(resources_element) + } + NativeModule._PermissionRequest_grant(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkPluginComponent.ts b/arkoala-arkts/arkui/src/generated/ArkPluginComponent.ts new file mode 100644 index 000000000..136c4f7d6 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkPluginComponent.ts @@ -0,0 +1,82 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkPluginComponentPeer } from "./peers/ArkPluginComponentPeer" +import { UseEventsProperties } from "./use_properties" +import { PluginComponentAttribute, PluginComponentTemplate, PluginComponentInterface } from "./ArkPluginComponentInterfaces" +import { LITERAL_ErrcodeNumberMsgString, LITERAL_TemplatePluginComponentTemplateDataObject } from "./SyntheticDeclarations" +/** @memo:stable */ +export class ArkPluginComponentComponent extends ArkCommonMethodComponent { + protected peer?: ArkPluginComponentPeer + /** @memo */ + setPluginComponentOptions(value: LITERAL_TemplatePluginComponentTemplateDataObject): this { + if (this.checkPriority("setPluginComponentOptions")) { + const value_casted = value as (LITERAL_TemplatePluginComponentTemplateDataObject) + this.peer?.setPluginComponentOptionsAttribute(value_casted) + return this + } + return this + } + /** @memo */ + onComplete(callback: (() => void)): this { + if (this.checkPriority("onComplete")) { + const callback_casted = callback as ((() => void)) + this.peer?.onCompleteAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onError(callback: ((info: LITERAL_ErrcodeNumberMsgString) => void)): this { + if (this.checkPriority("onError")) { + const callback_casted = callback as (((info: LITERAL_ErrcodeNumberMsgString) => void)) + this.peer?.onErrorAttribute(callback_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkPluginComponent( + /** @memo */ + style: ((attributes: ArkPluginComponentComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + value: LITERAL_TemplatePluginComponentTemplateDataObject +) { + const receiver = remember(() => { + return new ArkPluginComponentComponent() + }) + NodeAttach((): ArkPluginComponentPeer => ArkPluginComponentPeer.create(ArkUINodeType.PluginComponent, receiver), (_: ArkPluginComponentPeer) => { + receiver.setPluginComponentOptions(value) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkPluginComponentInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkPluginComponentInterfaces.ts new file mode 100644 index 000000000..5bd4e4ffa --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkPluginComponentInterfaces.ts @@ -0,0 +1,12 @@ +import { LITERAL_ErrcodeNumberMsgString, LITERAL_TemplatePluginComponentTemplateDataObject } from "./SyntheticDeclarations" +import { KInt } from "@koalaui/interop" +export interface PluginComponentAttribute { + onComplete(callback: (() => void)): PluginComponentAttribute; + onError(callback: ((info: LITERAL_ErrcodeNumberMsgString) => void)): PluginComponentAttribute; +} +export interface PluginComponentInterface { +} +export interface PluginComponentTemplate { + source: string + bundleName: string +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkPolygon.ts b/arkoala-arkts/arkui/src/generated/ArkPolygon.ts new file mode 100644 index 000000000..da6ace9e9 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkPolygon.ts @@ -0,0 +1,75 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonShapeMethodComponent } from "./ArkCommon" +import { ArkPolygonPeer } from "./peers/ArkPolygonPeer" +import { PolygonAttribute, PolygonInterface } from "./ArkPolygonInterfaces" +import { LITERAL_WidthStringnumberHeightStringnumber } from "./SyntheticDeclarations" +/** @memo:stable */ +export class ArkPolygonComponent extends ArkCommonShapeMethodComponent { + protected peer?: ArkPolygonPeer + /** @memo */ + setPolygonOptions(value?: LITERAL_WidthStringnumberHeightStringnumber): this { + if (this.checkPriority("setPolygonOptions")) { + if ((value) == (undefined)) { + throw new Error("Arg 'value' is null"); + } + const value_casted = value as (LITERAL_WidthStringnumberHeightStringnumber) + this.peer?.setPolygonOptionsAttribute(value_casted) + return this + } + return this + } + /** @memo */ + points(value: Array): this { + if (this.checkPriority("points")) { + const value_casted = value as (Array) + this.peer?.pointsAttribute(value_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkPolygon( + /** @memo */ + style: ((attributes: ArkPolygonComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + value?: LITERAL_WidthStringnumberHeightStringnumber +) { + const receiver = remember(() => { + return new ArkPolygonComponent() + }) + NodeAttach((): ArkPolygonPeer => ArkPolygonPeer.create(ArkUINodeType.Polygon, receiver), (_: ArkPolygonPeer) => { + receiver.setPolygonOptions(value) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkPolygonInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkPolygonInterfaces.ts new file mode 100644 index 000000000..022aa7d4d --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkPolygonInterfaces.ts @@ -0,0 +1,7 @@ +import { LITERAL_WidthStringnumberHeightStringnumber } from "./SyntheticDeclarations" +import { KInt } from "@koalaui/interop" +export interface PolygonAttribute { + points(value: Array): PolygonAttribute; +} +export interface PolygonInterface { +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkPolyline.ts b/arkoala-arkts/arkui/src/generated/ArkPolyline.ts new file mode 100644 index 000000000..223ede11b --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkPolyline.ts @@ -0,0 +1,75 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonShapeMethodComponent } from "./ArkCommon" +import { ArkPolylinePeer } from "./peers/ArkPolylinePeer" +import { PolylineAttribute, PolylineInterface } from "./ArkPolylineInterfaces" +import { LITERAL_WidthStringnumberHeightStringnumber } from "./SyntheticDeclarations" +/** @memo:stable */ +export class ArkPolylineComponent extends ArkCommonShapeMethodComponent { + protected peer?: ArkPolylinePeer + /** @memo */ + setPolylineOptions(value?: LITERAL_WidthStringnumberHeightStringnumber): this { + if (this.checkPriority("setPolylineOptions")) { + if ((value) == (undefined)) { + throw new Error("Arg 'value' is null"); + } + const value_casted = value as (LITERAL_WidthStringnumberHeightStringnumber) + this.peer?.setPolylineOptionsAttribute(value_casted) + return this + } + return this + } + /** @memo */ + points(value: Array): this { + if (this.checkPriority("points")) { + const value_casted = value as (Array) + this.peer?.pointsAttribute(value_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkPolyline( + /** @memo */ + style: ((attributes: ArkPolylineComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + value?: LITERAL_WidthStringnumberHeightStringnumber +) { + const receiver = remember(() => { + return new ArkPolylineComponent() + }) + NodeAttach((): ArkPolylinePeer => ArkPolylinePeer.create(ArkUINodeType.Polyline, receiver), (_: ArkPolylinePeer) => { + receiver.setPolylineOptions(value) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkPolylineInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkPolylineInterfaces.ts new file mode 100644 index 000000000..5a128d5c2 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkPolylineInterfaces.ts @@ -0,0 +1,7 @@ +import { LITERAL_WidthStringnumberHeightStringnumber } from "./SyntheticDeclarations" +import { KInt } from "@koalaui/interop" +export interface PolylineAttribute { + points(value: Array): PolylineAttribute; +} +export interface PolylineInterface { +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkProgressInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkProgressInterfaces.ts new file mode 100644 index 000000000..5f3e82364 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkProgressInterfaces.ts @@ -0,0 +1 @@ +import { KInt } from "@koalaui/interop" \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkProgressMaskMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkProgressMaskMaterialized.ts new file mode 100644 index 000000000..5d874ac15 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkProgressMaskMaterialized.ts @@ -0,0 +1,133 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { ResourceColor, Resource } from "./ArkUnitsInterfaces" +import { Color } from "./ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource } from "./SyntheticDeclarations" +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class ProgressMask { + peer?: Finalizable + static ctor(value: number, total: number, color: ResourceColor): KPointer { + const thisSerializer = SerializerBase.hold(createSerializer) + let color_type = RuntimeType.UNDEFINED + color_type = runtimeType(color) + if (((RuntimeType.OBJECT) == (color_type)) && (color instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const color_0 = color as Color + thisSerializer.writeInt32((color_0.value as int32)) + } + else if (((RuntimeType.NUMBER == color_type))) { + thisSerializer.writeInt8(1 as int32) + const color_1 = color as number + thisSerializer.writeNumber(color_1) + } + else if (((RuntimeType.STRING == color_type))) { + thisSerializer.writeInt8(2 as int32) + const color_2 = color as string + thisSerializer.writeString(color_2) + } + else if (isResource(color)) { + thisSerializer.writeInt8(3 as int32) + const color_3 = color as Resource + thisSerializer.writeResource(color_3) + } + const retval = NativeModule._ProgressMask_ctor(value, total, thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release(); + return retval + } + constructor(value?: number, total?: number, color?: ResourceColor) { + if (((value) !== (undefined)) && ((total) !== (undefined)) && ((color) !== (undefined))) { + const ctorPtr = ProgressMask.ctor(value, total, color) + this.peer = new Finalizable(ctorPtr, ProgressMask.getFinalizer()) + } + } + static getFinalizer(): KPointer { + return NativeModule._ProgressMask_getFinalizer() + } + updateProgress(value: number): void { + const value_casted = value as (number) + this.updateProgress_serialize(value_casted) + } + updateColor(value: ResourceColor): void { + const value_casted = value as (ResourceColor) + this.updateColor_serialize(value_casted) + } + enableBreathingAnimation(value: boolean): void { + const value_casted = value as (boolean) + this.enableBreathingAnimation_serialize(value_casted) + } + private updateProgress_serialize(value: number): void { + NativeModule._ProgressMask_updateProgress(this.peer!.ptr, value); + } + private updateColor_serialize(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._ProgressMask_updateColor(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private enableBreathingAnimation_serialize(value: boolean): void { + NativeModule._ProgressMask_enableBreathingAnimation(this.peer!.ptr, value ? 1 : 0); + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkQrcode.ts b/arkoala-arkts/arkui/src/generated/ArkQrcode.ts new file mode 100644 index 000000000..1b91a64e4 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkQrcode.ts @@ -0,0 +1,106 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkQRCodePeer } from "./peers/ArkQrcodePeer" +import { Length, Resource, SizeOptions, ConstraintSizeOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, ResourceStr, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, PX, VP, FP, LPX, Percentage, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, LITERAL_TopLengthRightLengthBottomLengthLeftLength, LITERAL_AlignAlignment, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image, IMPORT_default_VisualEffect_FROM_api_ohos_graphics_uiEffect, IMPORT_default_Filter_FROM_api_ohos_graphics_uiEffect, LITERAL_TopBorderStyleRightBorderStyleBottomBorderStyleLeftBorderStyle, LITERAL_TopResourceColorRightResourceColorBottomResourceColorLeftResourceColor, LITERAL_TopLeftLengthTopRightLengthBottomLeftLengthBottomRightLength, LITERAL_TopOutlineStyleRightOutlineStyleBottomOutlineStyleLeftOutlineStyle, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, LITERAL_TopDimensionRightDimensionBottomDimensionLeftDimension, LITERAL_TopLeftDimensionTopRightDimensionBottomLeftDimensionBottomRightDimension, LITERAL_SpanNumberOffsetNumber, LITERAL_XsNumberLITERALSpanNumberOffsetNumberSmNumberLITERALSpanNumberOffsetNumberMdNumberLITERALSpanNumberOffsetNumberLgNumberLITERALSpanNumberOffsetNumber, IMPORT_default_UniformDataType_FROM_api_ohos_data_uniformTypeDescriptor, IMPORT_ComponentContent_T_FROM_api_arkui_ComponentContent, LITERAL_AngleNumberstringDirectionGradientDirectionColorsArrayResourceColornumberRepeatingBoolean, LITERAL_CenterLengthLengthStartNumberstringEndNumberstringRotationNumberstringColorsArrayResourceColornumberRepeatingBoolean, LITERAL_CenterLengthLengthRadiusNumberstringColorsArrayResourceColornumberRepeatingBoolean, IMPORT_default_Blender_FROM_api_ohos_graphics_uiEffect, IMPORT_CircleShape_FROM_api_ohos_arkui_shape, IMPORT_EllipseShape_FROM_api_ohos_arkui_shape, IMPORT_PathShape_FROM_api_ohos_arkui_shape, IMPORT_RectShape_FROM_api_ohos_arkui_shape } from "./SyntheticDeclarations" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { Optional, SafeAreaType, SafeAreaEdge, Rectangle, TouchTestInfo, TouchResult, CustomBuilder, PixelRoundPolicy, PixelMap, BlurStyle, BackgroundBlurStyleOptions, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, ForegroundBlurStyleOptions, BorderImageOption, OutlineStyle, ClickEvent, Callback, HoverEvent, AccessibilityCallback, AccessibilityHoverEvent, MouseEvent, TouchEvent, KeyEvent, AnimateParam, TransitionOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, sharedTransitionOptions, AlignRuleOption, LocalizedAlignRuleOptions, ChainStyle, ClickEffect, DragEvent, DragItemInfo, UniformDataType, DragPreviewOptions, DragInteractionOptions, PreDragStatus, ComponentContent, OverlayOptions, MotionPathOptions, ShadowOptions, ShadowStyle, BlendMode, BlendApplyType, Blender, CircleShape, EllipseShape, PathShape, RectShape, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, StateStyles, VisibleAreaChangeCallback, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback } from "./ArkCommonInterfaces" +import { HitTestMode, Alignment, Color, ImageRepeat, ImageSize, BorderStyle, ColoringStrategy, HoverEffect, Visibility, ItemAlign, Direction, Axis, GradientDirection, ResponseType, FunctionKey, ModifierKey, ObscuredReasons, RenderFit } from "./ArkEnumsInterfaces" +import { ResizableOptions } from "./ArkImageInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ConflictedDeclarations" +import { GestureType, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureMask, GestureInfo, BaseGestureEvent, GestureJudgeResult } from "./ArkGestureInterfaces" +import { CircleAttribute } from "./ArkCircleInterfaces" +import { EllipseAttribute } from "./ArkEllipseInterfaces" +import { PathAttribute } from "./ArkPathInterfaces" +import { RectAttribute } from "./ArkRectInterfaces" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./ArkAttributeModifierMaterialized" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureRecognizer } from "./ArkGestureRecognizerMaterialized" +import { QRCodeAttribute, QRCodeInterface } from "./ArkQrcodeInterfaces" +/** @memo:stable */ +export class ArkQRCodeComponent extends ArkCommonMethodComponent { + protected peer?: ArkQRCodePeer + /** @memo */ + setQRCodeOptions(value: string): this { + if (this.checkPriority("setQRCodeOptions")) { + const value_casted = value as (string) + this.peer?.setQRCodeOptionsAttribute(value_casted) + return this + } + return this + } + /** @memo */ + color(value: ResourceColor): this { + if (this.checkPriority("color")) { + const value_casted = value as (ResourceColor) + this.peer?.colorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + backgroundColor(value: ResourceColor): this { + if (this.checkPriority("backgroundColor")) { + const value_casted = value as (ResourceColor) + this.peer?.backgroundColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + contentOpacity(value: number | Resource): this { + if (this.checkPriority("contentOpacity")) { + const value_casted = value as (number | Resource) + this.peer?.contentOpacityAttribute(value_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkQRCode( + /** @memo */ + style: ((attributes: ArkQRCodeComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + value: string +) { + const receiver = remember(() => { + return new ArkQRCodeComponent() + }) + NodeAttach((): ArkQRCodePeer => ArkQRCodePeer.create(ArkUINodeType.QRCode, receiver), (_: ArkQRCodePeer) => { + receiver.setQRCodeOptions(value) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkQrcodeInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkQrcodeInterfaces.ts new file mode 100644 index 000000000..0e3d19c16 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkQrcodeInterfaces.ts @@ -0,0 +1,25 @@ +import { Length, Resource, SizeOptions, ConstraintSizeOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, ResourceStr, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, PX, VP, FP, LPX, Percentage, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, LITERAL_TopLengthRightLengthBottomLengthLeftLength, LITERAL_AlignAlignment, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image, IMPORT_default_VisualEffect_FROM_api_ohos_graphics_uiEffect, IMPORT_default_Filter_FROM_api_ohos_graphics_uiEffect, LITERAL_TopBorderStyleRightBorderStyleBottomBorderStyleLeftBorderStyle, LITERAL_TopResourceColorRightResourceColorBottomResourceColorLeftResourceColor, LITERAL_TopLeftLengthTopRightLengthBottomLeftLengthBottomRightLength, LITERAL_TopOutlineStyleRightOutlineStyleBottomOutlineStyleLeftOutlineStyle, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, LITERAL_TopDimensionRightDimensionBottomDimensionLeftDimension, LITERAL_TopLeftDimensionTopRightDimensionBottomLeftDimensionBottomRightDimension, LITERAL_SpanNumberOffsetNumber, LITERAL_XsNumberLITERALSpanNumberOffsetNumberSmNumberLITERALSpanNumberOffsetNumberMdNumberLITERALSpanNumberOffsetNumberLgNumberLITERALSpanNumberOffsetNumber, IMPORT_default_UniformDataType_FROM_api_ohos_data_uniformTypeDescriptor, IMPORT_ComponentContent_T_FROM_api_arkui_ComponentContent, LITERAL_AngleNumberstringDirectionGradientDirectionColorsArrayResourceColornumberRepeatingBoolean, LITERAL_CenterLengthLengthStartNumberstringEndNumberstringRotationNumberstringColorsArrayResourceColornumberRepeatingBoolean, LITERAL_CenterLengthLengthRadiusNumberstringColorsArrayResourceColornumberRepeatingBoolean, IMPORT_default_Blender_FROM_api_ohos_graphics_uiEffect, IMPORT_CircleShape_FROM_api_ohos_arkui_shape, IMPORT_EllipseShape_FROM_api_ohos_arkui_shape, IMPORT_PathShape_FROM_api_ohos_arkui_shape, IMPORT_RectShape_FROM_api_ohos_arkui_shape } from "./SyntheticDeclarations" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { Optional, SafeAreaType, SafeAreaEdge, Rectangle, TouchTestInfo, TouchResult, CustomBuilder, PixelRoundPolicy, PixelMap, BlurStyle, BackgroundBlurStyleOptions, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, ForegroundBlurStyleOptions, BorderImageOption, OutlineStyle, ClickEvent, Callback, HoverEvent, AccessibilityCallback, AccessibilityHoverEvent, MouseEvent, TouchEvent, KeyEvent, AnimateParam, TransitionOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, sharedTransitionOptions, AlignRuleOption, LocalizedAlignRuleOptions, ChainStyle, ClickEffect, DragEvent, DragItemInfo, UniformDataType, DragPreviewOptions, DragInteractionOptions, PreDragStatus, ComponentContent, OverlayOptions, MotionPathOptions, ShadowOptions, ShadowStyle, BlendMode, BlendApplyType, Blender, CircleShape, EllipseShape, PathShape, RectShape, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, StateStyles, VisibleAreaChangeCallback, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback } from "./ArkCommonInterfaces" +import { HitTestMode, Alignment, Color, ImageRepeat, ImageSize, BorderStyle, ColoringStrategy, HoverEffect, Visibility, ItemAlign, Direction, Axis, GradientDirection, ResponseType, FunctionKey, ModifierKey, ObscuredReasons, RenderFit } from "./ArkEnumsInterfaces" +import { ResizableOptions } from "./ArkImageInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ConflictedDeclarations" +import { GestureType, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureMask, GestureInfo, BaseGestureEvent, GestureJudgeResult } from "./ArkGestureInterfaces" +import { CircleAttribute } from "./ArkCircleInterfaces" +import { EllipseAttribute } from "./ArkEllipseInterfaces" +import { PathAttribute } from "./ArkPathInterfaces" +import { RectAttribute } from "./ArkRectInterfaces" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./ArkAttributeModifierMaterialized" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureRecognizer } from "./ArkGestureRecognizerMaterialized" +import { KInt } from "@koalaui/interop" +export interface QRCodeAttribute { + color(value: ResourceColor): QRCodeAttribute; + backgroundColor(value: ResourceColor): QRCodeAttribute; + contentOpacity(value: number | Resource): QRCodeAttribute; +} +export interface QRCodeInterface { +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkRadio.ts b/arkoala-arkts/arkui/src/generated/ArkRadio.ts new file mode 100644 index 000000000..5b45d8bc4 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkRadio.ts @@ -0,0 +1,107 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkRadioPeer } from "./peers/ArkRadioPeer" +import { UseEventsProperties } from "./use_properties" +import { RadioAttribute, RadioStyle, RadioConfiguration, RadioOptions, RadioInterface, RadioIndicatorType } from "./ArkRadioInterfaces" +import { ContentModifier } from "./ConflictedDeclarations" +import { ResourceColor, Resource } from "./ArkUnitsInterfaces" +import { Color } from "./ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource } from "./SyntheticDeclarations" +import { CommonConfiguration, Callback, CustomBuilder } from "./ArkCommonInterfaces" +/** @memo:stable */ +export class ArkRadioComponent extends ArkCommonMethodComponent { + protected peer?: ArkRadioPeer + /** @memo */ + setRadioOptions(options: RadioOptions): this { + if (this.checkPriority("setRadioOptions")) { + const options_casted = options as (RadioOptions) + this.peer?.setRadioOptionsAttribute(options_casted) + return this + } + return this + } + /** @memo */ + checked(value: boolean): this { + if (this.checkPriority("checked")) { + const value_casted = value as (boolean) + this.peer?.checkedAttribute(value_casted) + return this + } + return this + } + /** @memo */ + onChange(callback: ((isChecked: boolean) => void)): this { + if (this.checkPriority("onChange")) { + const callback_casted = callback as (((isChecked: boolean) => void)) + this.peer?.onChangeAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + radioStyle(value?: RadioStyle): this { + if (this.checkPriority("radioStyle")) { + if ((value) == (undefined)) { + throw new Error("Arg 'value' is null"); + } + const value_casted = value as (RadioStyle) + this.peer?.radioStyleAttribute(value_casted) + return this + } + return this + } + /** @memo */ + contentModifier(modifier: ContentModifier): this { + if (this.checkPriority("contentModifier")) { + const modifier_casted = modifier as (ContentModifier) + this.peer?.contentModifierAttribute(modifier_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkRadio( + /** @memo */ + style: ((attributes: ArkRadioComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + options: RadioOptions +) { + const receiver = remember(() => { + return new ArkRadioComponent() + }) + NodeAttach((): ArkRadioPeer => ArkRadioPeer.create(ArkUINodeType.Radio, receiver), (_: ArkRadioPeer) => { + receiver.setRadioOptions(options) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkRadioInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkRadioInterfaces.ts new file mode 100644 index 000000000..6bbb78062 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkRadioInterfaces.ts @@ -0,0 +1,108 @@ +import { ContentModifier } from "./ConflictedDeclarations" +import { ResourceColor, Resource } from "./ArkUnitsInterfaces" +import { Color } from "./ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource } from "./SyntheticDeclarations" +import { CommonConfiguration, Callback, CustomBuilder } from "./ArkCommonInterfaces" +import { KInt } from "@koalaui/interop" +/* + * Copyright (c) 2021-2023 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +/** + * @file + * @kit ArkUI + */ +/** + * Defines the IndicatorType of Radio component + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ +export class RadioIndicatorType { + /** + * Tick shape. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly TICK: RadioIndicatorType = new RadioIndicatorType(0) + /** + * Dot shape. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly DOT: RadioIndicatorType = new RadioIndicatorType(1) + /** + * custom shape. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly CUSTOM: RadioIndicatorType = new RadioIndicatorType(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): RadioIndicatorType { + if ((arg0) == (RadioIndicatorType.TICK.value)) { + return RadioIndicatorType.TICK + } + if ((arg0) == (RadioIndicatorType.DOT.value)) { + return RadioIndicatorType.DOT + } + if ((arg0) == (RadioIndicatorType.CUSTOM.value)) { + return RadioIndicatorType.CUSTOM + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +export interface RadioAttribute { + checked(value: boolean): RadioAttribute; + onChange(callback: ((isChecked: boolean) => void)): RadioAttribute; + radioStyle(value: RadioStyle): RadioAttribute; + contentModifier(modifier: ContentModifier): RadioAttribute; +} +export interface RadioInterface { +} +export interface RadioStyle { + checkedBackgroundColor?: ResourceColor + uncheckedBorderColor?: ResourceColor + indicatorColor?: ResourceColor +} +export interface RadioConfiguration { + enabled: boolean + contentModifier: ContentModifier + value: string + checked: boolean + triggerChange: Callback +} +export interface RadioOptions { + group: string + value: string + indicatorType?: RadioIndicatorType + indicatorBuilder?: CustomBuilder +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkRating.ts b/arkoala-arkts/arkui/src/generated/ArkRating.ts new file mode 100644 index 000000000..1513e68f8 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkRating.ts @@ -0,0 +1,113 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkRatingPeer } from "./peers/ArkRatingPeer" +import { UseEventsProperties } from "./use_properties" +import { RatingAttribute, StarStyleOptions, RatingConfiguration, RatingOptions, RatingInterface } from "./ArkRatingInterfaces" +import { ContentModifier } from "./ConflictedDeclarations" +import { CommonConfiguration, Callback } from "./ArkCommonInterfaces" +/** @memo:stable */ +export class ArkRatingComponent extends ArkCommonMethodComponent { + protected peer?: ArkRatingPeer + /** @memo */ + setRatingOptions(options?: RatingOptions): this { + if (this.checkPriority("setRatingOptions")) { + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (RatingOptions) + this.peer?.setRatingOptionsAttribute(options_casted) + return this + } + return this + } + /** @memo */ + stars(value: number): this { + if (this.checkPriority("stars")) { + const value_casted = value as (number) + this.peer?.starsAttribute(value_casted) + return this + } + return this + } + /** @memo */ + stepSize(value: number): this { + if (this.checkPriority("stepSize")) { + const value_casted = value as (number) + this.peer?.stepSizeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + starStyle(options: StarStyleOptions): this { + if (this.checkPriority("starStyle")) { + const options_casted = options as (StarStyleOptions) + this.peer?.starStyleAttribute(options_casted) + return this + } + return this + } + /** @memo */ + onChange(callback: ((value: number) => void)): this { + if (this.checkPriority("onChange")) { + const callback_casted = callback as (((value: number) => void)) + this.peer?.onChangeAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + contentModifier(modifier: ContentModifier): this { + if (this.checkPriority("contentModifier")) { + const modifier_casted = modifier as (ContentModifier) + this.peer?.contentModifierAttribute(modifier_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkRating( + /** @memo */ + style: ((attributes: ArkRatingComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + options?: RatingOptions +) { + const receiver = remember(() => { + return new ArkRatingComponent() + }) + NodeAttach((): ArkRatingPeer => ArkRatingPeer.create(ArkUINodeType.Rating, receiver), (_: ArkRatingPeer) => { + receiver.setRatingOptions(options) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkRatingInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkRatingInterfaces.ts new file mode 100644 index 000000000..e8fa41922 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkRatingInterfaces.ts @@ -0,0 +1,30 @@ +import { ContentModifier } from "./ConflictedDeclarations" +import { CommonConfiguration, Callback } from "./ArkCommonInterfaces" +import { KInt } from "@koalaui/interop" +export interface RatingAttribute { + stars(value: number): RatingAttribute; + stepSize(value: number): RatingAttribute; + starStyle(options: StarStyleOptions): RatingAttribute; + onChange(callback: ((value: number) => void)): RatingAttribute; + contentModifier(modifier: ContentModifier): RatingAttribute; +} +export interface RatingInterface { +} +export interface StarStyleOptions { + backgroundUri: string + foregroundUri: string + secondaryUri?: string +} +export interface RatingConfiguration { + enabled: boolean + contentModifier: ContentModifier + rating: number + indicator: boolean + stars: number + stepSize: number + triggerChange: Callback +} +export interface RatingOptions { + rating: number + indicator?: boolean +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkRefresh.ts b/arkoala-arkts/arkui/src/generated/ArkRefresh.ts new file mode 100644 index 000000000..7b2892eb5 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkRefresh.ts @@ -0,0 +1,120 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkRefreshPeer } from "./peers/ArkRefreshPeer" +import { UseEventsProperties } from "./use_properties" +import { RefreshStatus, RefreshAttribute, RefreshOptions, RefreshInterface } from "./ArkRefreshInterfaces" +import { Callback, Optional, CustomBuilder, ComponentContent } from "./ArkCommonInterfaces" +import { ResourceStr, Resource } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, IMPORT_ComponentContent_T_FROM_api_arkui_ComponentContent } from "./SyntheticDeclarations" +/** @memo:stable */ +export class ArkRefreshComponent extends ArkCommonMethodComponent { + protected peer?: ArkRefreshPeer + /** @memo */ + setRefreshOptions(value: RefreshOptions): this { + if (this.checkPriority("setRefreshOptions")) { + const value_casted = value as (RefreshOptions) + this.peer?.setRefreshOptionsAttribute(value_casted) + return this + } + return this + } + /** @memo */ + onStateChange(callback: ((state: RefreshStatus) => void)): this { + if (this.checkPriority("onStateChange")) { + const callback_casted = callback as (((state: RefreshStatus) => void)) + this.peer?.onStateChangeAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onRefreshing(callback: (() => void)): this { + if (this.checkPriority("onRefreshing")) { + const callback_casted = callback as ((() => void)) + this.peer?.onRefreshingAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + refreshOffset(value: number): this { + if (this.checkPriority("refreshOffset")) { + const value_casted = value as (number) + this.peer?.refreshOffsetAttribute(value_casted) + return this + } + return this + } + /** @memo */ + pullToRefresh(value: boolean): this { + if (this.checkPriority("pullToRefresh")) { + const value_casted = value as (boolean) + this.peer?.pullToRefreshAttribute(value_casted) + return this + } + return this + } + /** @memo */ + onOffsetChange(callback: Callback): this { + if (this.checkPriority("onOffsetChange")) { + const callback_casted = callback as (Callback) + this.peer?.onOffsetChangeAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + pullDownRatio(ratio: number | undefined): this { + if (this.checkPriority("pullDownRatio")) { + const ratio_casted = ratio as (number | undefined) + this.peer?.pullDownRatioAttribute(ratio_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkRefresh( + /** @memo */ + style: ((attributes: ArkRefreshComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + value: RefreshOptions +) { + const receiver = remember(() => { + return new ArkRefreshComponent() + }) + NodeAttach((): ArkRefreshPeer => ArkRefreshPeer.create(ArkUINodeType.Refresh, receiver), (_: ArkRefreshPeer) => { + receiver.setRefreshOptions(value) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkRefreshInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkRefreshInterfaces.ts new file mode 100644 index 000000000..9037ee81d --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkRefreshInterfaces.ts @@ -0,0 +1,198 @@ +import { Callback, Optional, CustomBuilder, ComponentContent } from "./ArkCommonInterfaces" +import { ResourceStr, Resource } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, IMPORT_ComponentContent_T_FROM_api_arkui_ComponentContent } from "./SyntheticDeclarations" +import { KInt } from "@koalaui/interop" +/* + * Copyright (c) 2021-2023 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +/** + * @file + * @kit ArkUI + */ +/** + * The refresh status of the drop-down refresh. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * The refresh status of the drop-down refresh. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * The refresh status of the drop-down refresh. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class RefreshStatus { + /** + * The refresh status of the drop-down refresh. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * The refresh status of the drop-down refresh. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * The refresh status of the drop-down refresh. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Inactive: RefreshStatus = new RefreshStatus(0) + /** + * Drop down, but the drop-down distance is less than the refresh distance. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * Drop down, but the drop-down distance is less than the refresh distance. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Drop down, but the drop-down distance is less than the refresh distance. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Drag: RefreshStatus = new RefreshStatus(1) + /** + * The pull-down exceeds the refresh distance. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * The pull-down exceeds the refresh distance. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * The pull-down exceeds the refresh distance. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly OverDrag: RefreshStatus = new RefreshStatus(2) + /** + * After the pull-down, it rebounds to the refresh distance and enters the refresh state. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * After the pull-down, it rebounds to the refresh distance and enters the refresh state. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * After the pull-down, it rebounds to the refresh distance and enters the refresh state. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Refresh: RefreshStatus = new RefreshStatus(3) + /** + * After refresh, return to the initial state. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * After refresh, return to the initial state. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * After refresh, return to the initial state. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Done: RefreshStatus = new RefreshStatus(4) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): RefreshStatus { + if ((arg0) == (RefreshStatus.Inactive.value)) { + return RefreshStatus.Inactive + } + if ((arg0) == (RefreshStatus.Drag.value)) { + return RefreshStatus.Drag + } + if ((arg0) == (RefreshStatus.OverDrag.value)) { + return RefreshStatus.OverDrag + } + if ((arg0) == (RefreshStatus.Refresh.value)) { + return RefreshStatus.Refresh + } + if ((arg0) == (RefreshStatus.Done.value)) { + return RefreshStatus.Done + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +export interface RefreshAttribute { + onStateChange(callback: ((state: RefreshStatus) => void)): RefreshAttribute; + onRefreshing(callback: (() => void)): RefreshAttribute; + refreshOffset(value: number): RefreshAttribute; + pullToRefresh(value: boolean): RefreshAttribute; + onOffsetChange(callback: Callback): RefreshAttribute; + pullDownRatio(ratio: number | undefined): RefreshAttribute; +} +export interface RefreshInterface { +} +export interface RefreshOptions { + refreshing: boolean + offset?: number | string + friction?: number | string + promptText?: ResourceStr + builder?: CustomBuilder + refreshingContent?: ComponentContent +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkRelativeContainer.ts b/arkoala-arkts/arkui/src/generated/ArkRelativeContainer.ts new file mode 100644 index 000000000..62d3e6931 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkRelativeContainer.ts @@ -0,0 +1,91 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkRelativeContainerPeer } from "./peers/ArkRelativeContainerPeer" +import { GuideLineStyle, RelativeContainerAttribute, BarrierStyle, LocalizedBarrierStyle, RelativeContainerInterface, GuideLinePosition, BarrierDirection, LocalizedBarrierDirection } from "./ArkRelativeContainerInterfaces" +import { Axis } from "./ArkEnumsInterfaces" +import { Dimension, PX, VP, FP, LPX, Percentage, Resource } from "./ArkUnitsInterfaces" +import { TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, IMPORT_Resource_FROM_api_global_resource } from "./SyntheticDeclarations" +/** @memo:stable */ +export class ArkRelativeContainerComponent extends ArkCommonMethodComponent { + protected peer?: ArkRelativeContainerPeer + /** @memo */ + setRelativeContainerOptions(): this { + if (this.checkPriority("setRelativeContainerOptions")) { + this.peer?.setRelativeContainerOptionsAttribute() + return this + } + return this + } + /** @memo */ + guideLine(value: Array): this { + if (this.checkPriority("guideLine")) { + const value_casted = value as (Array) + this.peer?.guideLineAttribute(value_casted) + return this + } + return this + } + /** @memo */ + barrier(value: Array | Array): this { + if (this.checkPriority("barrier")) { + const value_type = runtimeType(value) + if ((((RuntimeType.OBJECT) == (value_type)) && (value instanceof Array))) { + const value_casted = value as (Array) + this.peer?.barrier0Attribute(value_casted) + return this + } + if ((((RuntimeType.OBJECT) == (value_type)) && (value instanceof Array))) { + const value_casted = value as (Array) + this.peer?.barrier1Attribute(value_casted) + return this + } + throw new Error("Can not select appropriate overload") + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkRelativeContainer( + /** @memo */ + style: ((attributes: ArkRelativeContainerComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + +) { + const receiver = remember(() => { + return new ArkRelativeContainerComponent() + }) + NodeAttach((): ArkRelativeContainerPeer => ArkRelativeContainerPeer.create(ArkUINodeType.RelativeContainer, receiver), (_: ArkRelativeContainerPeer) => { + receiver.setRelativeContainerOptions() + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkRelativeContainerInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkRelativeContainerInterfaces.ts new file mode 100644 index 000000000..003225ae3 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkRelativeContainerInterfaces.ts @@ -0,0 +1,161 @@ +import { Axis } from "./ArkEnumsInterfaces" +import { Dimension, PX, VP, FP, LPX, Percentage, Resource } from "./ArkUnitsInterfaces" +import { TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, IMPORT_Resource_FROM_api_global_resource } from "./SyntheticDeclarations" +import { KInt } from "@koalaui/interop" +/** + * Specifies the direction value of Barrier. + * + * @enum {number} + * @syscap SystemCapability.Test.UiTest + * @crossplatform + * @atomicservice + * @since 12 + */ +export class BarrierDirection { + /** + * Barrier will be positioned to the far left of all referenced components. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly LEFT: BarrierDirection = new BarrierDirection(0) + /** + * Barrier will be positioned to the far right of all referenced components. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly RIGHT: BarrierDirection = new BarrierDirection(1) + /** + * Barrier will be positioned to the top of all referenced components. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly TOP: BarrierDirection = new BarrierDirection(2) + /** + * Barrier will be positioned to the bottom of all referenced components. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly BOTTOM: BarrierDirection = new BarrierDirection(3) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): BarrierDirection { + if ((arg0) == (BarrierDirection.LEFT.value)) { + return BarrierDirection.LEFT + } + if ((arg0) == (BarrierDirection.RIGHT.value)) { + return BarrierDirection.RIGHT + } + if ((arg0) == (BarrierDirection.TOP.value)) { + return BarrierDirection.TOP + } + if ((arg0) == (BarrierDirection.BOTTOM.value)) { + return BarrierDirection.BOTTOM + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Specifies the localized direction value of Barrier. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ +export class LocalizedBarrierDirection { + /** + * Localized barrier will be positioned to the far start of all referenced components. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly START: LocalizedBarrierDirection = new LocalizedBarrierDirection(0) + /** + * Localized barrier will be positioned to the far end of all referenced components. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly END: LocalizedBarrierDirection = new LocalizedBarrierDirection(1) + /** + * Localized barrier will be positioned to the top of all referenced components. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly TOP: LocalizedBarrierDirection = new LocalizedBarrierDirection(2) + /** + * Localized barrier will be positioned to the bottom of all referenced components. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly BOTTOM: LocalizedBarrierDirection = new LocalizedBarrierDirection(3) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): LocalizedBarrierDirection { + if ((arg0) == (LocalizedBarrierDirection.START.value)) { + return LocalizedBarrierDirection.START + } + if ((arg0) == (LocalizedBarrierDirection.END.value)) { + return LocalizedBarrierDirection.END + } + if ((arg0) == (LocalizedBarrierDirection.TOP.value)) { + return LocalizedBarrierDirection.TOP + } + if ((arg0) == (LocalizedBarrierDirection.BOTTOM.value)) { + return LocalizedBarrierDirection.BOTTOM + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +export interface RelativeContainerAttribute { + guideLine(value: Array): RelativeContainerAttribute; + barrier(value: Array): RelativeContainerAttribute; +} +export interface RelativeContainerInterface { +} +export interface GuideLineStyle { + id: string + direction: Axis + position: GuideLinePosition +} +export interface GuideLinePosition { + start?: Dimension + end?: Dimension +} +export interface BarrierStyle { + id: string + direction: BarrierDirection + referencedId: Array +} +export interface LocalizedBarrierStyle { + id: string + localizedDirection: LocalizedBarrierDirection + referencedId: Array +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkRemoteWindow.ts b/arkoala-arkts/arkui/src/generated/ArkRemoteWindow.ts new file mode 100644 index 000000000..34a9ce5f8 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkRemoteWindow.ts @@ -0,0 +1,62 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkRemoteWindowPeer } from "./peers/ArkRemoteWindowPeer" +import { RemoteWindowAttribute, WindowAnimationTarget, RemoteWindowInterface, RRect } from "./ArkRemoteWindowInterfaces" +/** @memo:stable */ +export class ArkRemoteWindowComponent extends ArkCommonMethodComponent { + protected peer?: ArkRemoteWindowPeer + /** @memo */ + setRemoteWindowOptions(target: WindowAnimationTarget): this { + if (this.checkPriority("setRemoteWindowOptions")) { + const target_casted = target as (WindowAnimationTarget) + this.peer?.setRemoteWindowOptionsAttribute(target_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkRemoteWindow( + /** @memo */ + style: ((attributes: ArkRemoteWindowComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + target: WindowAnimationTarget +) { + const receiver = remember(() => { + return new ArkRemoteWindowComponent() + }) + NodeAttach((): ArkRemoteWindowPeer => ArkRemoteWindowPeer.create(ArkUINodeType.RemoteWindow, receiver), (_: ArkRemoteWindowPeer) => { + receiver.setRemoteWindowOptions(target) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkRemoteWindowInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkRemoteWindowInterfaces.ts new file mode 100644 index 000000000..23758c1c3 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkRemoteWindowInterfaces.ts @@ -0,0 +1,18 @@ +import { KInt } from "@koalaui/interop" +export interface RemoteWindowAttribute { +} +export interface RemoteWindowInterface { +} +export interface WindowAnimationTarget { + bundleName: string + abilityName: string + windowBounds: RRect + missionId: number +} +export interface RRect { + left: number + top: number + width: number + height: number + radius: number +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkRepeatInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkRepeatInterfaces.ts new file mode 100644 index 000000000..5f3e82364 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkRepeatInterfaces.ts @@ -0,0 +1 @@ +import { KInt } from "@koalaui/interop" \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkRichEditor.ts b/arkoala-arkts/arkui/src/generated/ArkRichEditor.ts new file mode 100644 index 000000000..35fb8b6a9 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkRichEditor.ts @@ -0,0 +1,359 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkRichEditorPeer } from "./peers/ArkRichEditorPeer" +import { UseEventsProperties } from "./use_properties" +import { Callback, CustomBuilder, ShadowOptions, PixelMap, ClickEvent } from "./ArkCommonInterfaces" +import { RichEditorAttribute, RichEditorSelection, RichEditorRange, RichEditorInsertValue, RichEditorTextSpanResult, RichEditorDeleteValue, RichEditorSpanType, RichEditorResponseType, SelectionMenuOptions, KeyboardOptions, PasteEventCallback, PasteEvent, PlaceholderStyle, SubmitCallback, RichEditorChangeValue, CutEvent, CopyEvent, RichEditorOptions, RichEditorStyledStringOptions, RichEditorInterface, RichEditorImageSpanResult, RichEditorSpanPosition, RichEditorTextStyleResult, RichEditorSymbolSpanStyle, RichEditorParagraphStyle, LeadingMarginPlaceholder, RichEditorImageSpanStyleResult, RichEditorLayoutStyle, RichEditorDeleteDirection, MenuOnAppearCallback, RichEditorTextStyle, RichEditorGesture, RichEditorTextSpanOptions, RichEditorImageSpanStyle, RichEditorImageSpanOptions, RichEditorBuilderSpanOptions, RichEditorSymbolSpanOptions, RichEditorSpanStyleOptions, RichEditorUpdateTextSpanStyleOptions, RichEditorUpdateImageSpanStyleOptions, RichEditorUpdateSymbolSpanStyleOptions, RichEditorParagraphStyleOptions, RichEditorParagraphResult, RichEditorSpan } from "./ArkRichEditorInterfaces" +import { TextRange, TextDataDetectorConfig, OnDidChangeCallback, DecorationStyleResult, MenuType } from "./ArkTextCommonInterfaces" +import { CopyOptions, ResponseType, Color, BarState, FontStyle, FontWeight, TextAlign, WordBreak, LineBreakStrategy, ImageSpanAlignment, ImageFit } from "./ArkEnumsInterfaces" +import { ResourceStr, Resource, ResourceColor, Dimension, PX, VP, FP, LPX, Percentage, Margin, Padding, Length, BorderRadiuses, Font } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image, LITERAL_TopLengthRightLengthBottomLengthLeftLength, LITERAL_TopLeftLengthTopRightLengthBottomLeftLengthBottomRightLength } from "./SyntheticDeclarations" +import { EnterKeyType, SubmitEvent } from "./ArkTextInputInterfaces" +import { EditMenuOptions } from "./ArkEditMenuOptionsMaterialized" +import { SymbolEffectStrategy, SymbolRenderingStrategy } from "./ArkSymbolglyphInterfaces" +import { RichEditorController } from "./ArkRichEditorControllerMaterialized" +import { DecorationStyleInterface } from "./ArkStyledStringInterfaces" +import { GestureEvent } from "./ArkGestureInterfaces" +import { RichEditorStyledStringController } from "./ArkRichEditorStyledStringControllerMaterialized" +/** @memo:stable */ +export class ArkRichEditorComponent extends ArkCommonMethodComponent { + protected peer?: ArkRichEditorPeer + /** @memo */ + setRichEditorOptions(value: RichEditorOptions | RichEditorStyledStringOptions): this { + if (this.checkPriority("setRichEditorOptions")) { + const value_type = runtimeType(value) + if ((TypeChecker.isRichEditorOptions(value, true))) { + const value_casted = value as (RichEditorOptions) + this.peer?.setRichEditorOptions0Attribute(value_casted) + return this + } + if ((TypeChecker.isRichEditorStyledStringOptions(value, true))) { + const value_casted = value as (RichEditorStyledStringOptions) + this.peer?.setRichEditorOptions1Attribute(value_casted) + return this + } + throw new Error("Can not select appropriate overload") + } + return this + } + /** @memo */ + onReady(callback: Callback): this { + if (this.checkPriority("onReady")) { + const callback_casted = callback as (Callback) + this.peer?.onReadyAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onSelect(callback: Callback): this { + if (this.checkPriority("onSelect")) { + const callback_casted = callback as (Callback) + this.peer?.onSelectAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onSelectionChange(callback: Callback): this { + if (this.checkPriority("onSelectionChange")) { + const callback_casted = callback as (Callback) + this.peer?.onSelectionChangeAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + aboutToIMEInput(callback: Callback): this { + if (this.checkPriority("aboutToIMEInput")) { + const callback_casted = callback as (Callback) + this.peer?.aboutToIMEInputAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onIMEInputComplete(callback: Callback): this { + if (this.checkPriority("onIMEInputComplete")) { + const callback_casted = callback as (Callback) + this.peer?.onIMEInputCompleteAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onDidIMEInput(callback: Callback): this { + if (this.checkPriority("onDidIMEInput")) { + const callback_casted = callback as (Callback) + this.peer?.onDidIMEInputAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + aboutToDelete(callback: Callback): this { + if (this.checkPriority("aboutToDelete")) { + const callback_casted = callback as (Callback) + this.peer?.aboutToDeleteAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onDeleteComplete(callback: Callback): this { + if (this.checkPriority("onDeleteComplete")) { + const callback_casted = callback as (Callback) + this.peer?.onDeleteCompleteAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + copyOptions(value: CopyOptions): this { + if (this.checkPriority("copyOptions")) { + const value_casted = value as (CopyOptions) + this.peer?.copyOptionsAttribute(value_casted) + return this + } + return this + } + /** @memo */ + bindSelectionMenu(spanType: RichEditorSpanType, content: CustomBuilder, responseType: ResponseType | RichEditorResponseType, options?: SelectionMenuOptions): this { + if (this.checkPriority("bindSelectionMenu")) { + const spanType_casted = spanType as (RichEditorSpanType) + const content_casted = content as (CustomBuilder) + const responseType_casted = responseType as (ResponseType | RichEditorResponseType) + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (SelectionMenuOptions) + this.peer?.bindSelectionMenuAttribute(spanType_casted, content_casted, responseType_casted, options_casted) + return this + } + return this + } + /** @memo */ + customKeyboard(value: CustomBuilder, options?: KeyboardOptions): this { + if (this.checkPriority("customKeyboard")) { + const value_casted = value as (CustomBuilder) + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (KeyboardOptions) + this.peer?.customKeyboardAttribute(value_casted, options_casted) + return this + } + return this + } + /** @memo */ + onPaste(callback: PasteEventCallback): this { + if (this.checkPriority("onPaste")) { + const callback_casted = callback as (PasteEventCallback) + this.peer?.onPasteAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + enableDataDetector(enable: boolean): this { + if (this.checkPriority("enableDataDetector")) { + const enable_casted = enable as (boolean) + this.peer?.enableDataDetectorAttribute(enable_casted) + return this + } + return this + } + /** @memo */ + enablePreviewText(enable: boolean): this { + if (this.checkPriority("enablePreviewText")) { + const enable_casted = enable as (boolean) + this.peer?.enablePreviewTextAttribute(enable_casted) + return this + } + return this + } + /** @memo */ + dataDetectorConfig(config: TextDataDetectorConfig): this { + if (this.checkPriority("dataDetectorConfig")) { + const config_casted = config as (TextDataDetectorConfig) + this.peer?.dataDetectorConfigAttribute(config_casted) + return this + } + return this + } + /** @memo */ + placeholder(value: ResourceStr, style?: PlaceholderStyle): this { + if (this.checkPriority("placeholder")) { + const value_casted = value as (ResourceStr) + if ((style) == (undefined)) { + throw new Error("Arg 'style' is null"); + } + const style_casted = style as (PlaceholderStyle) + this.peer?.placeholderAttribute(value_casted, style_casted) + return this + } + return this + } + /** @memo */ + caretColor(value: ResourceColor): this { + if (this.checkPriority("caretColor")) { + const value_casted = value as (ResourceColor) + this.peer?.caretColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + selectedBackgroundColor(value: ResourceColor): this { + if (this.checkPriority("selectedBackgroundColor")) { + const value_casted = value as (ResourceColor) + this.peer?.selectedBackgroundColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + onEditingChange(callback: Callback): this { + if (this.checkPriority("onEditingChange")) { + const callback_casted = callback as (Callback) + this.peer?.onEditingChangeAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + enterKeyType(value: EnterKeyType): this { + if (this.checkPriority("enterKeyType")) { + const value_casted = value as (EnterKeyType) + this.peer?.enterKeyTypeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + onSubmit(callback: SubmitCallback): this { + if (this.checkPriority("onSubmit")) { + const callback_casted = callback as (SubmitCallback) + this.peer?.onSubmitAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onWillChange(callback: Callback): this { + if (this.checkPriority("onWillChange")) { + const callback_casted = callback as (Callback) + this.peer?.onWillChangeAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onDidChange(callback: OnDidChangeCallback): this { + if (this.checkPriority("onDidChange")) { + const callback_casted = callback as (OnDidChangeCallback) + this.peer?.onDidChangeAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onCut(callback: Callback): this { + if (this.checkPriority("onCut")) { + const callback_casted = callback as (Callback) + this.peer?.onCutAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onCopy(callback: Callback): this { + if (this.checkPriority("onCopy")) { + const callback_casted = callback as (Callback) + this.peer?.onCopyAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + editMenuOptions(editMenu: EditMenuOptions): this { + if (this.checkPriority("editMenuOptions")) { + const editMenu_casted = editMenu as (EditMenuOptions) + this.peer?.editMenuOptionsAttribute(editMenu_casted) + return this + } + return this + } + /** @memo */ + enableKeyboardOnFocus(isEnabled: boolean): this { + if (this.checkPriority("enableKeyboardOnFocus")) { + const isEnabled_casted = isEnabled as (boolean) + this.peer?.enableKeyboardOnFocusAttribute(isEnabled_casted) + return this + } + return this + } + /** @memo */ + enableHapticFeedback(isEnabled: boolean): this { + if (this.checkPriority("enableHapticFeedback")) { + const isEnabled_casted = isEnabled as (boolean) + this.peer?.enableHapticFeedbackAttribute(isEnabled_casted) + return this + } + return this + } + /** @memo */ + barState(state: BarState): this { + if (this.checkPriority("barState")) { + const state_casted = state as (BarState) + this.peer?.barStateAttribute(state_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkRichEditor( + /** @memo */ + style: ((attributes: ArkRichEditorComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + value: RichEditorOptions | RichEditorStyledStringOptions +) { + const receiver = remember(() => { + return new ArkRichEditorComponent() + }) + NodeAttach((): ArkRichEditorPeer => ArkRichEditorPeer.create(ArkUINodeType.RichEditor, receiver), (_: ArkRichEditorPeer) => { + receiver.setRichEditorOptions(value) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkRichEditorBaseControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkRichEditorBaseControllerMaterialized.ts new file mode 100644 index 000000000..e7a940931 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkRichEditorBaseControllerMaterialized.ts @@ -0,0 +1,153 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { TextEditControllerEx } from "./ArkTextEditControllerExMaterialized" +import { TextBaseController } from "./ArkTextBaseControllerMaterialized" +import { SelectionOptions } from "./ArkCommonInterfaces" +import { LayoutManager } from "./ArkLayoutManagerMaterialized" +import { PreviewText } from "./ArkTextCommonInterfaces" +import { RichEditorTextStyle } from "./ArkRichEditorInterfaces" +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class RichEditorBaseController { + peer?: Finalizable + static ctor(): KPointer { + const retval = NativeModule._RichEditorBaseController_ctor() + return retval + } + constructor() { + const ctorPtr = RichEditorBaseController.ctor() + this.peer = new Finalizable(ctorPtr, RichEditorBaseController.getFinalizer()) + } + static getFinalizer(): KPointer { + return NativeModule._RichEditorBaseController_getFinalizer() + } + getCaretOffset(): number { + return this.getCaretOffset_serialize() + } + setCaretOffset(offset: number): boolean { + const offset_casted = offset as (number) + return this.setCaretOffset_serialize(offset_casted) + } + closeSelectionMenu(): void { + this.closeSelectionMenu_serialize() + } + getTypingStyle(): RichEditorTextStyle { + return this.getTypingStyle_serialize() + } + setTypingStyle(value: RichEditorTextStyle): void { + const value_casted = value as (RichEditorTextStyle) + this.setTypingStyle_serialize(value_casted) + } + setSelection(selectionStart: number, selectionEnd: number, options?: SelectionOptions): void { + const selectionStart_casted = selectionStart as (number) + const selectionEnd_casted = selectionEnd as (number) + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (SelectionOptions) + this.setSelection_serialize(selectionStart_casted, selectionEnd_casted, options_casted) + } + isEditing(): boolean { + return this.isEditing_serialize() + } + stopEditing(): void { + this.stopEditing_serialize() + } + getLayoutManager(): LayoutManager { + return this.getLayoutManager_serialize() + } + getPreviewText(): PreviewText { + return this.getPreviewText_serialize() + } + private getCaretOffset_serialize(): number { + const retval = NativeModule._RichEditorBaseController_getCaretOffset(this.peer!.ptr) + return retval + } + private setCaretOffset_serialize(offset: number): boolean { + const retval = NativeModule._RichEditorBaseController_setCaretOffset(this.peer!.ptr, offset) + return retval + } + private closeSelectionMenu_serialize(): void { + NativeModule._RichEditorBaseController_closeSelectionMenu(this.peer!.ptr); + } + private getTypingStyle_serialize(): RichEditorTextStyle { + const retval = NativeModule._RichEditorBaseController_getTypingStyle(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private setTypingStyle_serialize(value: RichEditorTextStyle): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeRichEditorTextStyle(value) + NativeModule._RichEditorBaseController_setTypingStyle(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private setSelection_serialize(selectionStart: number, selectionEnd: number, options?: SelectionOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeSelectionOptions(options_value) + } + NativeModule._RichEditorBaseController_setSelection(this.peer!.ptr, selectionStart, selectionEnd, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private isEditing_serialize(): boolean { + const retval = NativeModule._RichEditorBaseController_isEditing(this.peer!.ptr) + return retval + } + private stopEditing_serialize(): void { + NativeModule._RichEditorBaseController_stopEditing(this.peer!.ptr); + } + private getLayoutManager_serialize(): LayoutManager { + const retval = NativeModule._RichEditorBaseController_getLayoutManager(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private getPreviewText_serialize(): PreviewText { + const retval = NativeModule._RichEditorBaseController_getPreviewText(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkRichEditorControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkRichEditorControllerMaterialized.ts new file mode 100644 index 000000000..a3cf581d7 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkRichEditorControllerMaterialized.ts @@ -0,0 +1,326 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { RichEditorBaseController } from "./ArkRichEditorBaseControllerMaterialized" +import { TextEditControllerEx } from "./ArkTextEditControllerExMaterialized" +import { TextBaseController } from "./ArkTextBaseControllerMaterialized" +import { SelectionOptions, PixelMap, CustomBuilder } from "./ArkCommonInterfaces" +import { LayoutManager } from "./ArkLayoutManagerMaterialized" +import { PreviewText } from "./ArkTextCommonInterfaces" +import { RichEditorTextStyle, RichEditorTextSpanOptions, RichEditorImageSpanOptions, RichEditorBuilderSpanOptions, RichEditorSymbolSpanOptions, RichEditorUpdateTextSpanStyleOptions, RichEditorUpdateImageSpanStyleOptions, RichEditorUpdateSymbolSpanStyleOptions, RichEditorParagraphStyleOptions, RichEditorRange, RichEditorImageSpanResult, RichEditorTextSpanResult, RichEditorParagraphResult, RichEditorSelection, RichEditorSpan } from "./ArkRichEditorInterfaces" +import { IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image, IMPORT_Resource_FROM_api_global_resource } from "./SyntheticDeclarations" +import { ResourceStr, Resource } from "./ArkUnitsInterfaces" +import { StyledString } from "./ArkStyledStringMaterialized" +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class RichEditorController extends RichEditorBaseController { + peer?: Finalizable + static ctor(): KPointer { + const retval = NativeModule._RichEditorController_ctor() + return retval + } + constructor() { + super(); + const ctorPtr = RichEditorController.ctor() + this.peer = new Finalizable(ctorPtr, RichEditorController.getFinalizer()) + } + static getFinalizer(): KPointer { + return NativeModule._RichEditorController_getFinalizer() + } + addTextSpan(value: string, options?: RichEditorTextSpanOptions): number { + const value_casted = value as (string) + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (RichEditorTextSpanOptions) + return this.addTextSpan_serialize(value_casted, options_casted) + } + addImageSpan(value: PixelMap | ResourceStr, options?: RichEditorImageSpanOptions): number { + const value_casted = value as (PixelMap | ResourceStr) + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (RichEditorImageSpanOptions) + return this.addImageSpan_serialize(value_casted, options_casted) + } + addBuilderSpan(value: CustomBuilder, options?: RichEditorBuilderSpanOptions): number { + const value_casted = value as (CustomBuilder) + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (RichEditorBuilderSpanOptions) + return this.addBuilderSpan_serialize(value_casted, options_casted) + } + addSymbolSpan(value: Resource, options?: RichEditorSymbolSpanOptions): number { + const value_casted = value as (Resource) + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (RichEditorSymbolSpanOptions) + return this.addSymbolSpan_serialize(value_casted, options_casted) + } + updateSpanStyle(value: RichEditorUpdateTextSpanStyleOptions | RichEditorUpdateImageSpanStyleOptions | RichEditorUpdateSymbolSpanStyleOptions): void { + const value_casted = value as (RichEditorUpdateTextSpanStyleOptions | RichEditorUpdateImageSpanStyleOptions | RichEditorUpdateSymbolSpanStyleOptions) + this.updateSpanStyle_serialize(value_casted) + } + updateParagraphStyle(value: RichEditorParagraphStyleOptions): void { + const value_casted = value as (RichEditorParagraphStyleOptions) + this.updateParagraphStyle_serialize(value_casted) + } + deleteSpans(value?: RichEditorRange): void { + if ((value) == (undefined)) { + throw new Error("Arg 'value' is null"); + } + const value_casted = value as (RichEditorRange) + this.deleteSpans_serialize(value_casted) + } + getSpans(value?: RichEditorRange): Array { + if ((value) == (undefined)) { + throw new Error("Arg 'value' is null"); + } + const value_casted = value as (RichEditorRange) + return this.getSpans_serialize(value_casted) + } + getParagraphs(value?: RichEditorRange): Array { + if ((value) == (undefined)) { + throw new Error("Arg 'value' is null"); + } + const value_casted = value as (RichEditorRange) + return this.getParagraphs_serialize(value_casted) + } + getSelection(): RichEditorSelection { + return this.getSelection_serialize() + } + fromStyledString(value: StyledString): Array { + const value_casted = value as (StyledString) + return this.fromStyledString_serialize(value_casted) + } + toStyledString(value: RichEditorRange): StyledString { + const value_casted = value as (RichEditorRange) + return this.toStyledString_serialize(value_casted) + } + private addTextSpan_serialize(value: string, options?: RichEditorTextSpanOptions): number { + const thisSerializer = SerializerBase.hold(createSerializer) + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeRichEditorTextSpanOptions(options_value) + } + const retval = NativeModule._RichEditorController_addTextSpan(this.peer!.ptr, value, thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release(); + return retval + } + private addImageSpan_serialize(value: PixelMap | ResourceStr, options?: RichEditorImageSpanOptions): number { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (isPixelMap(value))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as PixelMap + thisSerializer.writeCustomObject("PixelMap", value_0) + } + else if (((RuntimeType.STRING == value_type)) || ((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as ResourceStr + let value_1_type = RuntimeType.UNDEFINED + value_1_type = runtimeType(value_1) + if (((RuntimeType.STRING == value_1_type))) { + thisSerializer.writeInt8(0 as int32) + const value_1_0 = value_1 as string + thisSerializer.writeString(value_1_0) + } + else if (((RuntimeType.OBJECT == value_1_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1_1 = value_1 as Resource + thisSerializer.writeResource(value_1_1) + } + } + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeRichEditorImageSpanOptions(options_value) + } + const retval = NativeModule._RichEditorController_addImageSpan(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release(); + return retval + } + private addBuilderSpan_serialize(value: CustomBuilder, options?: RichEditorBuilderSpanOptions): number { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.FUNCTION == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Object + thisSerializer.writeFunction(value_0) + } + else if (((RuntimeType.UNDEFINED == value_type))) { + thisSerializer.writeInt8(1 as int32) + } + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeRichEditorBuilderSpanOptions(options_value) + } + const retval = NativeModule._RichEditorController_addBuilderSpan(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release(); + return retval + } + private addSymbolSpan_serialize(value: Resource, options?: RichEditorSymbolSpanOptions): number { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeResource(value) + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeRichEditorSymbolSpanOptions(options_value) + } + const retval = NativeModule._RichEditorController_addSymbolSpan(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release(); + return retval + } + private updateSpanStyle_serialize(value: RichEditorUpdateTextSpanStyleOptions | RichEditorUpdateImageSpanStyleOptions | RichEditorUpdateSymbolSpanStyleOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (TypeChecker.isRichEditorUpdateTextSpanStyleOptions(value, true, true, false)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as RichEditorUpdateTextSpanStyleOptions + thisSerializer.writeRichEditorUpdateTextSpanStyleOptions(value_0) + } + else if (TypeChecker.isRichEditorUpdateImageSpanStyleOptions(value, true, true, false)) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as RichEditorUpdateImageSpanStyleOptions + thisSerializer.writeRichEditorUpdateImageSpanStyleOptions(value_1) + } + else if (TypeChecker.isRichEditorUpdateSymbolSpanStyleOptions(value, true, true, false)) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as RichEditorUpdateSymbolSpanStyleOptions + thisSerializer.writeRichEditorUpdateSymbolSpanStyleOptions(value_2) + } + NativeModule._RichEditorController_updateSpanStyle(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private updateParagraphStyle_serialize(value: RichEditorParagraphStyleOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeRichEditorParagraphStyleOptions(value) + NativeModule._RichEditorController_updateParagraphStyle(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private deleteSpans_serialize(value?: RichEditorRange): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + if (value != undefined) { + value_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_type as int32) + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value! + thisSerializer.writeRichEditorRange(value_value) + } + NativeModule._RichEditorController_deleteSpans(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private getSpans_serialize(value?: RichEditorRange): Array { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + if (value != undefined) { + value_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_type as int32) + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value! + thisSerializer.writeRichEditorRange(value_value) + } + const retval = NativeModule._RichEditorController_getSpans(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release(); + throw new Error("Object deserialization is not implemented.") + } + private getParagraphs_serialize(value?: RichEditorRange): Array { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + if (value != undefined) { + value_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_type as int32) + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value! + thisSerializer.writeRichEditorRange(value_value) + } + const retval = NativeModule._RichEditorController_getParagraphs(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release(); + throw new Error("Object deserialization is not implemented.") + } + private getSelection_serialize(): RichEditorSelection { + const retval = NativeModule._RichEditorController_getSelection(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private fromStyledString_serialize(value: StyledString): Array { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeMaterialized(value) + const retval = NativeModule._RichEditorController_fromStyledString(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release(); + throw new Error("Object deserialization is not implemented.") + } + private toStyledString_serialize(value: RichEditorRange): StyledString { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeRichEditorRange(value) + const retval = NativeModule._RichEditorController_toStyledString(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release(); + throw new Error("Object deserialization is not implemented.") + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkRichEditorInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkRichEditorInterfaces.ts new file mode 100644 index 000000000..9fc0d6cee --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkRichEditorInterfaces.ts @@ -0,0 +1,483 @@ +import { Callback, CustomBuilder, ShadowOptions, PixelMap, ClickEvent } from "./ArkCommonInterfaces" +import { TextRange, TextDataDetectorConfig, OnDidChangeCallback, DecorationStyleResult, MenuType } from "./ArkTextCommonInterfaces" +import { CopyOptions, ResponseType, Color, BarState, FontStyle, FontWeight, TextAlign, WordBreak, LineBreakStrategy, ImageSpanAlignment, ImageFit } from "./ArkEnumsInterfaces" +import { ResourceStr, Resource, ResourceColor, Dimension, PX, VP, FP, LPX, Percentage, Margin, Padding, Length, BorderRadiuses, Font } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image, LITERAL_TopLengthRightLengthBottomLengthLeftLength, LITERAL_TopLeftLengthTopRightLengthBottomLeftLengthBottomRightLength } from "./SyntheticDeclarations" +import { EnterKeyType, SubmitEvent } from "./ArkTextInputInterfaces" +import { EditMenuOptions } from "./ArkEditMenuOptionsMaterialized" +import { SymbolEffectStrategy, SymbolRenderingStrategy } from "./ArkSymbolglyphInterfaces" +import { RichEditorController } from "./ArkRichEditorControllerMaterialized" +import { DecorationStyleInterface } from "./ArkStyledStringInterfaces" +import { GestureEvent } from "./ArkGestureInterfaces" +import { RichEditorStyledStringController } from "./ArkRichEditorStyledStringControllerMaterialized" +import { KInt } from "@koalaui/interop" +/* + * Copyright (c) 2023 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +/** + * @file + * @kit ArkUI + */ +/** + * Defines delete text direction. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Defines delete text direction. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class RichEditorDeleteDirection { + /** + * Delete backward. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Delete backward. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly BACKWARD: RichEditorDeleteDirection = new RichEditorDeleteDirection(0) + /** + * Delete forward. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Delete forward. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly FORWARD: RichEditorDeleteDirection = new RichEditorDeleteDirection(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): RichEditorDeleteDirection { + if ((arg0) == (RichEditorDeleteDirection.BACKWARD.value)) { + return RichEditorDeleteDirection.BACKWARD + } + if ((arg0) == (RichEditorDeleteDirection.FORWARD.value)) { + return RichEditorDeleteDirection.FORWARD + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Defines span type. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Defines span type. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class RichEditorSpanType { + /** + * Text,corresponding textSpan type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Text,corresponding textSpan type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly TEXT: RichEditorSpanType = new RichEditorSpanType(0) + /** + * Image,corresponding imageSpan type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Image,corresponding imageSpan type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly IMAGE: RichEditorSpanType = new RichEditorSpanType(1) + /** + * Mixed,corresponding mixed span type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Mixed,corresponding mixed span type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly MIXED: RichEditorSpanType = new RichEditorSpanType(2) + /** + * Builder,corresponding builderSpan type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly BUILDER: RichEditorSpanType = new RichEditorSpanType(3) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): RichEditorSpanType { + if ((arg0) == (RichEditorSpanType.TEXT.value)) { + return RichEditorSpanType.TEXT + } + if ((arg0) == (RichEditorSpanType.IMAGE.value)) { + return RichEditorSpanType.IMAGE + } + if ((arg0) == (RichEditorSpanType.MIXED.value)) { + return RichEditorSpanType.MIXED + } + if ((arg0) == (RichEditorSpanType.BUILDER.value)) { + return RichEditorSpanType.BUILDER + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * ResponseType for contextMenu + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * ResponseType for contextMenu + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ +export class RichEditorResponseType { + /** + * Right click. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * Right click. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly RIGHT_CLICK: RichEditorResponseType = new RichEditorResponseType(0) + /** + * Long press. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * Long press. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly LONG_PRESS: RichEditorResponseType = new RichEditorResponseType(1) + /** + * Selected by mouse. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * Selected by mouse. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly SELECT: RichEditorResponseType = new RichEditorResponseType(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): RichEditorResponseType { + if ((arg0) == (RichEditorResponseType.RIGHT_CLICK.value)) { + return RichEditorResponseType.RIGHT_CLICK + } + if ((arg0) == (RichEditorResponseType.LONG_PRESS.value)) { + return RichEditorResponseType.LONG_PRESS + } + if ((arg0) == (RichEditorResponseType.SELECT.value)) { + return RichEditorResponseType.SELECT + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +export interface RichEditorAttribute { + onReady(callback: Callback): RichEditorAttribute; + onSelect(callback: Callback): RichEditorAttribute; + onSelectionChange(callback: Callback): RichEditorAttribute; + aboutToIMEInput(callback: Callback): RichEditorAttribute; + onIMEInputComplete(callback: Callback): RichEditorAttribute; + onDidIMEInput(callback: Callback): RichEditorAttribute; + aboutToDelete(callback: Callback): RichEditorAttribute; + onDeleteComplete(callback: Callback): RichEditorAttribute; + copyOptions(value: CopyOptions): RichEditorAttribute; + bindSelectionMenu(spanType: RichEditorSpanType,content: CustomBuilder,responseType: ResponseType | RichEditorResponseType,options: SelectionMenuOptions): RichEditorAttribute; + customKeyboard(value: CustomBuilder,options: KeyboardOptions): RichEditorAttribute; + onPaste(callback: PasteEventCallback): RichEditorAttribute; + enableDataDetector(enable: boolean): RichEditorAttribute; + enablePreviewText(enable: boolean): RichEditorAttribute; + dataDetectorConfig(config: TextDataDetectorConfig): RichEditorAttribute; + placeholder(value: ResourceStr,style: PlaceholderStyle): RichEditorAttribute; + caretColor(value: ResourceColor): RichEditorAttribute; + selectedBackgroundColor(value: ResourceColor): RichEditorAttribute; + onEditingChange(callback: Callback): RichEditorAttribute; + enterKeyType(value: EnterKeyType): RichEditorAttribute; + onSubmit(callback: SubmitCallback): RichEditorAttribute; + onWillChange(callback: Callback): RichEditorAttribute; + onDidChange(callback: OnDidChangeCallback): RichEditorAttribute; + onCut(callback: Callback): RichEditorAttribute; + onCopy(callback: Callback): RichEditorAttribute; + editMenuOptions(editMenu: EditMenuOptions): RichEditorAttribute; + enableKeyboardOnFocus(isEnabled: boolean): RichEditorAttribute; + enableHapticFeedback(isEnabled: boolean): RichEditorAttribute; + barState(state: BarState): RichEditorAttribute; +} +export interface RichEditorInterface { +} +export interface RichEditorSelection { + selection: [number, number] + spans: Array +} +export interface RichEditorTextSpanResult { + spanPosition: RichEditorSpanPosition + value: string + textStyle: RichEditorTextStyleResult + offsetInSpan: [number, number] + symbolSpanStyle?: RichEditorSymbolSpanStyle + valueResource?: Resource + paragraphStyle?: RichEditorParagraphStyle + previewText?: string +} +export interface RichEditorSpanPosition { + spanIndex: number + spanRange: [number, number] +} +export interface RichEditorTextStyleResult { + fontColor: ResourceColor + fontSize: number + fontStyle: FontStyle + fontWeight: number + fontFamily: string + decoration: DecorationStyleResult + textShadow?: Array + letterSpacing?: number + lineHeight?: number + fontFeature?: string +} +export interface RichEditorSymbolSpanStyle { + fontSize?: number | string | Resource + fontColor?: Array + fontWeight?: number | FontWeight | string + effectStrategy?: SymbolEffectStrategy + renderingStrategy?: SymbolRenderingStrategy +} +export interface RichEditorParagraphStyle { + textAlign?: TextAlign + leadingMargin?: Dimension | LeadingMarginPlaceholder + wordBreak?: WordBreak + lineBreakStrategy?: LineBreakStrategy +} +export interface LeadingMarginPlaceholder { + pixelMap: PixelMap + size: [Dimension, Dimension] +} +export interface RichEditorImageSpanResult { + spanPosition: RichEditorSpanPosition + valuePixelMap?: PixelMap + valueResourceStr?: ResourceStr + imageStyle: RichEditorImageSpanStyleResult + offsetInSpan: [number, number] +} +export interface RichEditorImageSpanStyleResult { + size: [number, number] + verticalAlign: ImageSpanAlignment + objectFit: ImageFit + layoutStyle?: RichEditorLayoutStyle +} +export interface RichEditorLayoutStyle { + margin?: Dimension | Margin + borderRadius?: Dimension | BorderRadiuses +} +export interface RichEditorRange { + start?: number + end?: number +} +export interface RichEditorInsertValue { + insertOffset: number + insertValue: string + previewText?: string +} +export interface RichEditorDeleteValue { + offset: number + direction: RichEditorDeleteDirection + length: number + richEditorDeleteSpans: Array +} +export interface SelectionMenuOptions { + onAppear?: MenuOnAppearCallback + onDisappear?: Callback + menuType?: MenuType +} +export declare type MenuOnAppearCallback = ((start: number, end: number) => void) +export interface KeyboardOptions { + supportAvoidance?: boolean +} +export declare type PasteEventCallback = ((event: PasteEvent|undefined) => void) +export interface PasteEvent { + preventDefault?: Callback +} +export interface PlaceholderStyle { + font?: Font + fontColor?: ResourceColor +} +export declare type SubmitCallback = ((enterKey: EnterKeyType, event: SubmitEvent) => void) +export interface RichEditorChangeValue { + rangeBefore: TextRange + replacedSpans: Array + replacedImageSpans: Array + replacedSymbolSpans: Array +} +export interface CutEvent { + preventDefault?: Callback +} +export interface CopyEvent { + preventDefault?: Callback +} +export interface RichEditorOptions { + controller: RichEditorController +} +export interface RichEditorTextStyle { + fontColor?: ResourceColor + fontSize?: Length | number + fontStyle?: FontStyle + fontWeight?: number | FontWeight | string + fontFamily?: ResourceStr + decoration?: DecorationStyleInterface + textShadow?: ShadowOptions | Array + letterSpacing?: number | string + lineHeight?: number | string | Resource + fontFeature?: string +} +export interface RichEditorTextSpanOptions { + offset?: number + style?: RichEditorTextStyle + paragraphStyle?: RichEditorParagraphStyle + gesture?: RichEditorGesture +} +export interface RichEditorGesture { + onClick?: Callback + onLongPress?: Callback +} +export interface RichEditorImageSpanOptions { + offset?: number + imageStyle?: RichEditorImageSpanStyle + gesture?: RichEditorGesture +} +export interface RichEditorImageSpanStyle { + size?: [Dimension, Dimension] + verticalAlign?: ImageSpanAlignment + objectFit?: ImageFit + layoutStyle?: RichEditorLayoutStyle +} +export interface RichEditorBuilderSpanOptions { + offset?: number +} +export interface RichEditorSymbolSpanOptions { + offset?: number + style?: RichEditorSymbolSpanStyle +} +export interface RichEditorUpdateTextSpanStyleOptions { + start?: number + end?: number + textStyle: RichEditorTextStyle +} +export interface RichEditorSpanStyleOptions { + start?: number + end?: number +} +export interface RichEditorUpdateImageSpanStyleOptions { + start?: number + end?: number + imageStyle: RichEditorImageSpanStyle +} +export interface RichEditorUpdateSymbolSpanStyleOptions { + start?: number + end?: number + symbolStyle: RichEditorSymbolSpanStyle +} +export interface RichEditorParagraphStyleOptions { + start?: number + end?: number + style: RichEditorParagraphStyle +} +export interface RichEditorParagraphResult { + style: RichEditorParagraphStyle + range: [number, number] +} +export declare type RichEditorSpan = RichEditorImageSpanResult | RichEditorTextSpanResult +export interface RichEditorStyledStringOptions { + controller: RichEditorStyledStringController +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkRichEditorStyledStringControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkRichEditorStyledStringControllerMaterialized.ts new file mode 100644 index 000000000..e09a11062 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkRichEditorStyledStringControllerMaterialized.ts @@ -0,0 +1,104 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { RichEditorBaseController } from "./ArkRichEditorBaseControllerMaterialized" +import { TextEditControllerEx } from "./ArkTextEditControllerExMaterialized" +import { TextBaseController } from "./ArkTextBaseControllerMaterialized" +import { SelectionOptions } from "./ArkCommonInterfaces" +import { LayoutManager } from "./ArkLayoutManagerMaterialized" +import { PreviewText, StyledStringChangedListener } from "./ArkTextCommonInterfaces" +import { RichEditorTextStyle, RichEditorRange } from "./ArkRichEditorInterfaces" +import { StyledStringController } from "./ArkStyledStringControllerMaterialized" +import { StyledString } from "./ArkStyledStringMaterialized" +import { MutableStyledString } from "./ArkMutableStyledStringMaterialized" +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class RichEditorStyledStringController extends RichEditorBaseController { + peer?: Finalizable + static ctor(): KPointer { + const retval = NativeModule._RichEditorStyledStringController_ctor() + return retval + } + constructor() { + super(); + const ctorPtr = RichEditorStyledStringController.ctor() + this.peer = new Finalizable(ctorPtr, RichEditorStyledStringController.getFinalizer()) + } + static getFinalizer(): KPointer { + return NativeModule._RichEditorStyledStringController_getFinalizer() + } + setStyledString(styledString: StyledString): void { + const styledString_casted = styledString as (StyledString) + this.setStyledString_serialize(styledString_casted) + } + getStyledString(): MutableStyledString { + return this.getStyledString_serialize() + } + getSelection(): RichEditorRange { + return this.getSelection_serialize() + } + onContentChanged(listener: StyledStringChangedListener): void { + const listener_casted = listener as (StyledStringChangedListener) + this.onContentChanged_serialize(listener_casted) + } + private setStyledString_serialize(styledString: StyledString): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeMaterialized(styledString) + NativeModule._RichEditorStyledStringController_setStyledString(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private getStyledString_serialize(): MutableStyledString { + const retval = NativeModule._RichEditorStyledStringController_getStyledString(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private getSelection_serialize(): RichEditorRange { + const retval = NativeModule._RichEditorStyledStringController_getSelection(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private onContentChanged_serialize(listener: StyledStringChangedListener): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeStyledStringChangedListener(listener) + NativeModule._RichEditorStyledStringController_onContentChanged(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkRichText.ts b/arkoala-arkts/arkui/src/generated/ArkRichText.ts new file mode 100644 index 000000000..cbd4d18f1 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkRichText.ts @@ -0,0 +1,81 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkRichTextPeer } from "./peers/ArkRichTextPeer" +import { UseEventsProperties } from "./use_properties" +import { RichTextAttribute, RichTextInterface } from "./ArkRichTextInterfaces" +/** @memo:stable */ +export class ArkRichTextComponent extends ArkCommonMethodComponent { + protected peer?: ArkRichTextPeer + /** @memo */ + setRichTextOptions(content: string): this { + if (this.checkPriority("setRichTextOptions")) { + const content_casted = content as (string) + this.peer?.setRichTextOptionsAttribute(content_casted) + return this + } + return this + } + /** @memo */ + onStart(callback: (() => void)): this { + if (this.checkPriority("onStart")) { + const callback_casted = callback as ((() => void)) + this.peer?.onStartAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onComplete(callback: (() => void)): this { + if (this.checkPriority("onComplete")) { + const callback_casted = callback as ((() => void)) + this.peer?.onCompleteAttribute(callback_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkRichText( + /** @memo */ + style: ((attributes: ArkRichTextComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + content: string +) { + const receiver = remember(() => { + return new ArkRichTextComponent() + }) + NodeAttach((): ArkRichTextPeer => ArkRichTextPeer.create(ArkUINodeType.RichText, receiver), (_: ArkRichTextPeer) => { + receiver.setRichTextOptions(content) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkRichTextInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkRichTextInterfaces.ts new file mode 100644 index 000000000..e769a52f1 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkRichTextInterfaces.ts @@ -0,0 +1,7 @@ +import { KInt } from "@koalaui/interop" +export interface RichTextAttribute { + onStart(callback: (() => void)): RichTextAttribute; + onComplete(callback: (() => void)): RichTextAttribute; +} +export interface RichTextInterface { +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkRootScene.ts b/arkoala-arkts/arkui/src/generated/ArkRootScene.ts new file mode 100644 index 000000000..df76a8634 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkRootScene.ts @@ -0,0 +1,62 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkRootScenePeer } from "./peers/ArkRootScenePeer" +import { RootSceneAttribute, RootSceneSession, RootSceneInterface } from "./ArkRootSceneInterfaces" +/** @memo:stable */ +export class ArkRootSceneComponent extends ArkCommonMethodComponent { + protected peer?: ArkRootScenePeer + /** @memo */ + setRootSceneOptions(session: RootSceneSession): this { + if (this.checkPriority("setRootSceneOptions")) { + const session_casted = session as (RootSceneSession) + this.peer?.setRootSceneOptionsAttribute(session_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkRootScene( + /** @memo */ + style: ((attributes: ArkRootSceneComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + session: RootSceneSession +) { + const receiver = remember(() => { + return new ArkRootSceneComponent() + }) + NodeAttach((): ArkRootScenePeer => ArkRootScenePeer.create(ArkUINodeType.RootScene, receiver), (_: ArkRootScenePeer) => { + receiver.setRootSceneOptions(session) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkRootSceneInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkRootSceneInterfaces.ts new file mode 100644 index 000000000..bd1ef3573 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkRootSceneInterfaces.ts @@ -0,0 +1,7 @@ +import { KInt } from "@koalaui/interop" +export interface RootSceneAttribute { +} +export interface RootSceneInterface { +} +export interface RootSceneSession { +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkRow.ts b/arkoala-arkts/arkui/src/generated/ArkRow.ts new file mode 100644 index 000000000..3547c7e34 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkRow.ts @@ -0,0 +1,103 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkRowPeer } from "./peers/ArkRowPeer" +import { VerticalAlign, FlexAlign } from "./ArkEnumsInterfaces" +import { RowAttribute, RowOptions, RowInterface } from "./ArkRowInterfaces" +import { PointLightStyle, Optional } from "./ArkCommonInterfaces" +/** @memo:stable */ +export class ArkRowComponent extends ArkCommonMethodComponent { + protected peer?: ArkRowPeer + /** @memo */ + setRowOptions(options?: RowOptions): this { + if (this.checkPriority("setRowOptions")) { + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (RowOptions) + this.peer?.setRowOptionsAttribute(options_casted) + return this + } + return this + } + /** @memo */ + alignItems(value: VerticalAlign): this { + if (this.checkPriority("alignItems")) { + const value_casted = value as (VerticalAlign) + this.peer?.alignItemsAttribute(value_casted) + return this + } + return this + } + /** @memo */ + justifyContent(value: FlexAlign): this { + if (this.checkPriority("justifyContent")) { + const value_casted = value as (FlexAlign) + this.peer?.justifyContentAttribute(value_casted) + return this + } + return this + } + /** @memo */ + pointLight(value: PointLightStyle): this { + if (this.checkPriority("pointLight")) { + const value_casted = value as (PointLightStyle) + this.peer?.pointLightAttribute(value_casted) + return this + } + return this + } + /** @memo */ + reverse(isReversed: boolean | undefined): this { + if (this.checkPriority("reverse")) { + const isReversed_casted = isReversed as (boolean | undefined) + this.peer?.reverseAttribute(isReversed_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkRow( + /** @memo */ + style: ((attributes: ArkRowComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + options?: RowOptions +) { + const receiver = remember(() => { + return new ArkRowComponent() + }) + NodeAttach((): ArkRowPeer => ArkRowPeer.create(ArkUINodeType.Row, receiver), (_: ArkRowPeer) => { + receiver.setRowOptions(options) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkRowInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkRowInterfaces.ts new file mode 100644 index 000000000..888fd9735 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkRowInterfaces.ts @@ -0,0 +1,14 @@ +import { VerticalAlign, FlexAlign } from "./ArkEnumsInterfaces" +import { PointLightStyle, Optional } from "./ArkCommonInterfaces" +import { KInt } from "@koalaui/interop" +export interface RowAttribute { + alignItems(value: VerticalAlign): RowAttribute; + justifyContent(value: FlexAlign): RowAttribute; + pointLight(value: PointLightStyle): RowAttribute; + reverse(isReversed: boolean | undefined): RowAttribute; +} +export interface RowInterface { +} +export interface RowOptions { + space?: string | number +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkRowSplit.ts b/arkoala-arkts/arkui/src/generated/ArkRowSplit.ts new file mode 100644 index 000000000..8ed381305 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkRowSplit.ts @@ -0,0 +1,70 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkRowSplitPeer } from "./peers/ArkRowSplitPeer" +import { RowSplitAttribute, RowSplitInterface } from "./ArkRowSplitInterfaces" +/** @memo:stable */ +export class ArkRowSplitComponent extends ArkCommonMethodComponent { + protected peer?: ArkRowSplitPeer + /** @memo */ + setRowSplitOptions(): this { + if (this.checkPriority("setRowSplitOptions")) { + this.peer?.setRowSplitOptionsAttribute() + return this + } + return this + } + /** @memo */ + resizeable(value: boolean): this { + if (this.checkPriority("resizeable")) { + const value_casted = value as (boolean) + this.peer?.resizeableAttribute(value_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkRowSplit( + /** @memo */ + style: ((attributes: ArkRowSplitComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + +) { + const receiver = remember(() => { + return new ArkRowSplitComponent() + }) + NodeAttach((): ArkRowSplitPeer => ArkRowSplitPeer.create(ArkUINodeType.RowSplit, receiver), (_: ArkRowSplitPeer) => { + receiver.setRowSplitOptions() + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkRowSplitInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkRowSplitInterfaces.ts new file mode 100644 index 000000000..730a9454b --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkRowSplitInterfaces.ts @@ -0,0 +1,6 @@ +import { KInt } from "@koalaui/interop" +export interface RowSplitAttribute { + resizeable(value: boolean): RowSplitAttribute; +} +export interface RowSplitInterface { +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkSaveButton.ts b/arkoala-arkts/arkui/src/generated/ArkSaveButton.ts new file mode 100644 index 000000000..1aab1ab18 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkSaveButton.ts @@ -0,0 +1,85 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkSecurityComponentMethodComponent } from "./ArkSecurityComponent" +import { ArkSaveButtonPeer } from "./peers/ArkSaveButtonPeer" +import { UseEventsProperties } from "./use_properties" +import { ClickEvent } from "./ArkCommonInterfaces" +import { SaveButtonOnClickResult, SaveButtonAttribute, SaveButtonOptions, SaveButtonInterface, SaveIconStyle, SaveDescription } from "./ArkSaveButtonInterfaces" +import { ButtonType } from "./ArkButtonInterfaces" +/** @memo:stable */ +export class ArkSaveButtonComponent extends ArkSecurityComponentMethodComponent { + protected peer?: ArkSaveButtonPeer + /** @memo */ + setSaveButtonOptions(options?: SaveButtonOptions): this { + if (this.checkPriority("setSaveButtonOptions")) { + const options_type = runtimeType(options) + if ((((RuntimeType.OBJECT == options_type)))) { + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (SaveButtonOptions) + this.peer?.setSaveButtonOptions1Attribute(options_casted) + return this + } + if ((((RuntimeType.UNDEFINED == options_type)))) { + this.peer?.setSaveButtonOptions0Attribute() + return this + } + throw new Error("Can not select appropriate overload") + } + return this + } + /** @memo */ + onClick(event: ((event: ClickEvent, result: SaveButtonOnClickResult) => void)): this { + if (this.checkPriority("onClick")) { + const event_casted = event as (((event: ClickEvent, result: SaveButtonOnClickResult) => void)) + this.peer?.onClickAttribute(event_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkSaveButton( + /** @memo */ + style: ((attributes: ArkSaveButtonComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + options?: SaveButtonOptions +) { + const receiver = remember(() => { + return new ArkSaveButtonComponent() + }) + NodeAttach((): ArkSaveButtonPeer => ArkSaveButtonPeer.create(ArkUINodeType.SaveButton, receiver), (_: ArkSaveButtonPeer) => { + receiver.setSaveButtonOptions(options) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkSaveButtonInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkSaveButtonInterfaces.ts new file mode 100644 index 000000000..2ae8b12e1 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkSaveButtonInterfaces.ts @@ -0,0 +1,362 @@ +import { ClickEvent } from "./ArkCommonInterfaces" +import { ButtonType } from "./ArkButtonInterfaces" +import { KInt } from "@koalaui/interop" +/** + * Enumerates the click event results of the save button. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Enumerates the click event results of the save button. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ +export class SaveButtonOnClickResult { + /** + * Success. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Success. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ + static readonly SUCCESS: SaveButtonOnClickResult = new SaveButtonOnClickResult(0) + /** + * Failure because the application is not temporarily authorized for saving files. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Failure because the application is not temporarily authorized for saving files. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ + static readonly TEMPORARY_AUTHORIZATION_FAILED: SaveButtonOnClickResult = new SaveButtonOnClickResult(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): SaveButtonOnClickResult { + if ((arg0) == (SaveButtonOnClickResult.SUCCESS.value)) { + return SaveButtonOnClickResult.SUCCESS + } + if ((arg0) == (SaveButtonOnClickResult.TEMPORARY_AUTHORIZATION_FAILED.value)) { + return SaveButtonOnClickResult.TEMPORARY_AUTHORIZATION_FAILED + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/* + * Copyright (c) 2023 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +/** + * @file + * @kit ArkUI + */ +/** + * Enumerates the icon styles. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Enumerates the icon styles. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ +export class SaveIconStyle { + /** + * Icon filled with the specified color. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Icon filled with the specified color. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ + static readonly FULL_FILLED: SaveIconStyle = new SaveIconStyle(0) + /** + * Icon rendered as lines. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Icon rendered as lines. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ + static readonly LINES: SaveIconStyle = new SaveIconStyle(1) + /** + * Icon rendered as picture. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @systemapi + * @since 12 + */ + static readonly PICTURE: SaveIconStyle = new SaveIconStyle(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): SaveIconStyle { + if ((arg0) == (SaveIconStyle.FULL_FILLED.value)) { + return SaveIconStyle.FULL_FILLED + } + if ((arg0) == (SaveIconStyle.LINES.value)) { + return SaveIconStyle.LINES + } + if ((arg0) == (SaveIconStyle.PICTURE.value)) { + return SaveIconStyle.PICTURE + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Enumerates the text that can be displayed on the save button. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Enumerates the text that can be displayed on the save button. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ +export class SaveDescription { + /** + * Download + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Download + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ + static readonly DOWNLOAD: SaveDescription = new SaveDescription(0) + /** + * Download File + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Download File + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ + static readonly DOWNLOAD_FILE: SaveDescription = new SaveDescription(1) + /** + * Save + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Save + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ + static readonly SAVE: SaveDescription = new SaveDescription(2) + /** + * Save Image + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Save Image + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ + static readonly SAVE_IMAGE: SaveDescription = new SaveDescription(3) + /** + * Save File + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Save File + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ + static readonly SAVE_FILE: SaveDescription = new SaveDescription(4) + /** + * Download and Share + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Download and Share + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ + static readonly DOWNLOAD_AND_SHARE: SaveDescription = new SaveDescription(5) + /** + * Receive + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Receive + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ + static readonly RECEIVE: SaveDescription = new SaveDescription(6) + /** + * Continue to Receive + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Continue to Receive + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ + static readonly CONTINUE_TO_RECEIVE: SaveDescription = new SaveDescription(7) + /** + * Save to gallery + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly SAVE_TO_GALLERY: SaveDescription = new SaveDescription(8) + /** + * Export to gallery + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly EXPORT_TO_GALLERY: SaveDescription = new SaveDescription(9) + /** + * Quick save to gallery + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly QUICK_SAVE_TO_GALLERY: SaveDescription = new SaveDescription(10) + /** + * Resave to gallery + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly RESAVE_TO_GALLERY: SaveDescription = new SaveDescription(11) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): SaveDescription { + if ((arg0) == (SaveDescription.DOWNLOAD.value)) { + return SaveDescription.DOWNLOAD + } + if ((arg0) == (SaveDescription.DOWNLOAD_FILE.value)) { + return SaveDescription.DOWNLOAD_FILE + } + if ((arg0) == (SaveDescription.SAVE.value)) { + return SaveDescription.SAVE + } + if ((arg0) == (SaveDescription.SAVE_IMAGE.value)) { + return SaveDescription.SAVE_IMAGE + } + if ((arg0) == (SaveDescription.SAVE_FILE.value)) { + return SaveDescription.SAVE_FILE + } + if ((arg0) == (SaveDescription.DOWNLOAD_AND_SHARE.value)) { + return SaveDescription.DOWNLOAD_AND_SHARE + } + if ((arg0) == (SaveDescription.RECEIVE.value)) { + return SaveDescription.RECEIVE + } + if ((arg0) == (SaveDescription.CONTINUE_TO_RECEIVE.value)) { + return SaveDescription.CONTINUE_TO_RECEIVE + } + if ((arg0) == (SaveDescription.SAVE_TO_GALLERY.value)) { + return SaveDescription.SAVE_TO_GALLERY + } + if ((arg0) == (SaveDescription.EXPORT_TO_GALLERY.value)) { + return SaveDescription.EXPORT_TO_GALLERY + } + if ((arg0) == (SaveDescription.QUICK_SAVE_TO_GALLERY.value)) { + return SaveDescription.QUICK_SAVE_TO_GALLERY + } + if ((arg0) == (SaveDescription.RESAVE_TO_GALLERY.value)) { + return SaveDescription.RESAVE_TO_GALLERY + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +export interface SaveButtonAttribute { + onClick(event: ((event: ClickEvent, result: SaveButtonOnClickResult) => void)): SaveButtonAttribute; +} +export interface SaveButtonInterface { +} +export interface SaveButtonOptions { + icon?: SaveIconStyle + text?: SaveDescription + buttonType?: ButtonType +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkScreen.ts b/arkoala-arkts/arkui/src/generated/ArkScreen.ts new file mode 100644 index 000000000..661924985 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkScreen.ts @@ -0,0 +1,62 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkScreenPeer } from "./peers/ArkScreenPeer" +import { ScreenAttribute, ScreenInterface } from "./ArkScreenInterfaces" +/** @memo:stable */ +export class ArkScreenComponent extends ArkCommonMethodComponent { + protected peer?: ArkScreenPeer + /** @memo */ + setScreenOptions(screenId: number): this { + if (this.checkPriority("setScreenOptions")) { + const screenId_casted = screenId as (number) + this.peer?.setScreenOptionsAttribute(screenId_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkScreen( + /** @memo */ + style: ((attributes: ArkScreenComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + screenId: number +) { + const receiver = remember(() => { + return new ArkScreenComponent() + }) + NodeAttach((): ArkScreenPeer => ArkScreenPeer.create(ArkUINodeType.Screen, receiver), (_: ArkScreenPeer) => { + receiver.setScreenOptions(screenId) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkScreenCaptureHandlerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkScreenCaptureHandlerMaterialized.ts new file mode 100644 index 000000000..1e88e6bcd --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkScreenCaptureHandlerMaterialized.ts @@ -0,0 +1,83 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { ScreenCaptureConfig } from "./ArkWebInterfaces" +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class ScreenCaptureHandler { + peer?: Finalizable + static ctor(): KPointer { + const retval = NativeModule._ScreenCaptureHandler_ctor() + return retval + } + constructor() { + const ctorPtr = ScreenCaptureHandler.ctor() + this.peer = new Finalizable(ctorPtr, ScreenCaptureHandler.getFinalizer()) + } + static getFinalizer(): KPointer { + return NativeModule._ScreenCaptureHandler_getFinalizer() + } + getOrigin(): string { + return this.getOrigin_serialize() + } + grant(config: ScreenCaptureConfig): void { + const config_casted = config as (ScreenCaptureConfig) + this.grant_serialize(config_casted) + } + deny(): void { + this.deny_serialize() + } + private getOrigin_serialize(): string { + const retval = NativeModule._ScreenCaptureHandler_getOrigin(this.peer!.ptr) + return retval + } + private grant_serialize(config: ScreenCaptureConfig): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeScreenCaptureConfig(config) + NativeModule._ScreenCaptureHandler_grant(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private deny_serialize(): void { + NativeModule._ScreenCaptureHandler_deny(this.peer!.ptr); + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkScreenInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkScreenInterfaces.ts new file mode 100644 index 000000000..82b76ad85 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkScreenInterfaces.ts @@ -0,0 +1,5 @@ +import { KInt } from "@koalaui/interop" +export interface ScreenAttribute { +} +export interface ScreenInterface { +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkScrollBar.ts b/arkoala-arkts/arkui/src/generated/ArkScrollBar.ts new file mode 100644 index 000000000..e2506d6da --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkScrollBar.ts @@ -0,0 +1,74 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkScrollBarPeer } from "./peers/ArkScrollBarPeer" +import { Optional } from "./ArkCommonInterfaces" +import { ScrollBarAttribute, ScrollBarOptions, ScrollBarInterface, ScrollBarDirection } from "./ArkScrollBarInterfaces" +import { Scroller } from "./ArkScrollerMaterialized" +import { BarState } from "./ArkEnumsInterfaces" +/** @memo:stable */ +export class ArkScrollBarComponent extends ArkCommonMethodComponent { + protected peer?: ArkScrollBarPeer + /** @memo */ + setScrollBarOptions(value: ScrollBarOptions): this { + if (this.checkPriority("setScrollBarOptions")) { + const value_casted = value as (ScrollBarOptions) + this.peer?.setScrollBarOptionsAttribute(value_casted) + return this + } + return this + } + /** @memo */ + enableNestedScroll(enabled: boolean | undefined): this { + if (this.checkPriority("enableNestedScroll")) { + const enabled_casted = enabled as (boolean | undefined) + this.peer?.enableNestedScrollAttribute(enabled_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkScrollBar( + /** @memo */ + style: ((attributes: ArkScrollBarComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + value: ScrollBarOptions +) { + const receiver = remember(() => { + return new ArkScrollBarComponent() + }) + NodeAttach((): ArkScrollBarPeer => ArkScrollBarPeer.create(ArkUINodeType.ScrollBar, receiver), (_: ArkScrollBarPeer) => { + receiver.setScrollBarOptions(value) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkScrollBarInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkScrollBarInterfaces.ts new file mode 100644 index 000000000..2566ba556 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkScrollBarInterfaces.ts @@ -0,0 +1,115 @@ +import { Optional } from "./ArkCommonInterfaces" +import { Scroller } from "./ArkScrollerMaterialized" +import { BarState } from "./ArkEnumsInterfaces" +import { KInt } from "@koalaui/interop" +/* + * Copyright (c) 2021-2023 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +/** + * @file + * @kit ArkUI + */ +/** + * Content scroll direction. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * Content scroll direction. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Content scroll direction. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class ScrollBarDirection { + /** + * Vertical scrolling is supported. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * Vertical scrolling is supported. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Vertical scrolling is supported. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Vertical: ScrollBarDirection = new ScrollBarDirection(0) + /** + * Horizontal scrolling is supported. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * Horizontal scrolling is supported. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Horizontal scrolling is supported. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Horizontal: ScrollBarDirection = new ScrollBarDirection(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): ScrollBarDirection { + if ((arg0) == (ScrollBarDirection.Vertical.value)) { + return ScrollBarDirection.Vertical + } + if ((arg0) == (ScrollBarDirection.Horizontal.value)) { + return ScrollBarDirection.Horizontal + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +export interface ScrollBarAttribute { + enableNestedScroll(enabled: boolean | undefined): ScrollBarAttribute; +} +export interface ScrollBarInterface { +} +export interface ScrollBarOptions { + scroller: Scroller + direction?: ScrollBarDirection + state?: BarState +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkSearch.ts b/arkoala-arkts/arkui/src/generated/ArkSearch.ts new file mode 100644 index 000000000..b745486c7 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkSearch.ts @@ -0,0 +1,453 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkSearchPeer } from "./peers/ArkSearchPeer" +import { UseEventsProperties } from "./use_properties" +import { SearchButtonOptions, SearchAttribute, IconOptions, CancelButtonOptions, CancelButtonSymbolOptions, SearchType, SearchInterface, CancelButtonStyle } from "./ArkSearchInterfaces" +import { ResourceColor, Resource, Dimension, PX, VP, FP, LPX, Percentage, ResourceStr, Font, Length } from "./ArkUnitsInterfaces" +import { Color, CopyOptions, TextAlign } from "./ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, IMPORT_SymbolGlyphModifier_FROM_api_arkui_SymbolGlyphModifier, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, LITERAL_ValueStringPlaceholderResourceStrIconStringControllerSearchController } from "./SyntheticDeclarations" +import { SymbolGlyphModifier, Callback, CustomBuilder, TextDecorationOptions } from "./ArkCommonInterfaces" +import { CaretStyle, EditableTextOnChangeCallback, PreviewText, InsertValue, DeleteValue } from "./ArkTextCommonInterfaces" +import { EnterKeyType } from "./ArkTextInputInterfaces" +import { PasteEvent, KeyboardOptions } from "./ArkRichEditorInterfaces" +import { EditMenuOptions } from "./ArkEditMenuOptionsMaterialized" +import { SearchController } from "./ArkSearchControllerMaterialized" +/** @memo:stable */ +export class ArkSearchComponent extends ArkCommonMethodComponent { + protected peer?: ArkSearchPeer + /** @memo */ + setSearchOptions(options?: LITERAL_ValueStringPlaceholderResourceStrIconStringControllerSearchController): this { + if (this.checkPriority("setSearchOptions")) { + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (LITERAL_ValueStringPlaceholderResourceStrIconStringControllerSearchController) + this.peer?.setSearchOptionsAttribute(options_casted) + return this + } + return this + } + /** @memo */ + searchButton(value: string, option?: SearchButtonOptions): this { + if (this.checkPriority("searchButton")) { + const value_casted = value as (string) + if ((option) == (undefined)) { + throw new Error("Arg 'option' is null"); + } + const option_casted = option as (SearchButtonOptions) + this.peer?.searchButtonAttribute(value_casted, option_casted) + return this + } + return this + } + /** @memo */ + fontColor(value: ResourceColor): this { + if (this.checkPriority("fontColor")) { + const value_casted = value as (ResourceColor) + this.peer?.fontColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + searchIcon(value: IconOptions | SymbolGlyphModifier): this { + if (this.checkPriority("searchIcon")) { + const value_casted = value as (IconOptions | SymbolGlyphModifier) + this.peer?.searchIconAttribute(value_casted) + return this + } + return this + } + /** @memo */ + cancelButton(value: CancelButtonOptions | CancelButtonSymbolOptions): this { + if (this.checkPriority("cancelButton")) { + const value_casted = value as (CancelButtonOptions | CancelButtonSymbolOptions) + this.peer?.cancelButtonAttribute(value_casted) + return this + } + return this + } + /** @memo */ + textIndent(value: Dimension): this { + if (this.checkPriority("textIndent")) { + const value_casted = value as (Dimension) + this.peer?.textIndentAttribute(value_casted) + return this + } + return this + } + /** @memo */ + inputFilter(value: ResourceStr, error?: Callback): this { + if (this.checkPriority("inputFilter")) { + const value_casted = value as (ResourceStr) + if ((error) == (undefined)) { + throw new Error("Arg 'error' is null"); + } + const error_casted = error as (Callback) + this.peer?.inputFilterAttribute(value_casted, error_casted) + return this + } + return this + } + /** @memo */ + onEditChange(callback: Callback): this { + if (this.checkPriority("onEditChange")) { + const callback_casted = callback as (Callback) + this.peer?.onEditChangeAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + selectedBackgroundColor(value: ResourceColor): this { + if (this.checkPriority("selectedBackgroundColor")) { + const value_casted = value as (ResourceColor) + this.peer?.selectedBackgroundColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + caretStyle(value: CaretStyle): this { + if (this.checkPriority("caretStyle")) { + const value_casted = value as (CaretStyle) + this.peer?.caretStyleAttribute(value_casted) + return this + } + return this + } + /** @memo */ + placeholderColor(value: ResourceColor): this { + if (this.checkPriority("placeholderColor")) { + const value_casted = value as (ResourceColor) + this.peer?.placeholderColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + placeholderFont(value?: Font): this { + if (this.checkPriority("placeholderFont")) { + if ((value) == (undefined)) { + throw new Error("Arg 'value' is null"); + } + const value_casted = value as (Font) + this.peer?.placeholderFontAttribute(value_casted) + return this + } + return this + } + /** @memo */ + textFont(value?: Font): this { + if (this.checkPriority("textFont")) { + if ((value) == (undefined)) { + throw new Error("Arg 'value' is null"); + } + const value_casted = value as (Font) + this.peer?.textFontAttribute(value_casted) + return this + } + return this + } + /** @memo */ + enterKeyType(value: EnterKeyType): this { + if (this.checkPriority("enterKeyType")) { + const value_casted = value as (EnterKeyType) + this.peer?.enterKeyTypeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + onSubmit(callback: ((value: string) => void)): this { + if (this.checkPriority("onSubmit")) { + const callback_casted = callback as (((value: string) => void)) + this.peer?.onSubmitAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onChange(callback: EditableTextOnChangeCallback): this { + if (this.checkPriority("onChange")) { + const callback_casted = callback as (EditableTextOnChangeCallback) + this.peer?.onChangeAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onTextSelectionChange(callback: ((selectionStart: number, selectionEnd: number) => void)): this { + if (this.checkPriority("onTextSelectionChange")) { + const callback_casted = callback as (((selectionStart: number, selectionEnd: number) => void)) + this.peer?.onTextSelectionChangeAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onContentScroll(callback: ((totalOffsetX: number, totalOffsetY: number) => void)): this { + if (this.checkPriority("onContentScroll")) { + const callback_casted = callback as (((totalOffsetX: number, totalOffsetY: number) => void)) + this.peer?.onContentScrollAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onCopy(callback: ((value: string) => void)): this { + if (this.checkPriority("onCopy")) { + const callback_casted = callback as (((value: string) => void)) + this.peer?.onCopyAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onCut(callback: ((value: string) => void)): this { + if (this.checkPriority("onCut")) { + const callback_casted = callback as (((value: string) => void)) + this.peer?.onCutAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onPaste(callback: ((value: string, event: PasteEvent) => void)): this { + if (this.checkPriority("onPaste")) { + const callback_casted = callback as (((value: string, event: PasteEvent) => void)) + this.peer?.onPasteAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + copyOption(value: CopyOptions): this { + if (this.checkPriority("copyOption")) { + const value_casted = value as (CopyOptions) + this.peer?.copyOptionAttribute(value_casted) + return this + } + return this + } + /** @memo */ + maxLength(value: number): this { + if (this.checkPriority("maxLength")) { + const value_casted = value as (number) + this.peer?.maxLengthAttribute(value_casted) + return this + } + return this + } + /** @memo */ + textAlign(value: TextAlign): this { + if (this.checkPriority("textAlign")) { + const value_casted = value as (TextAlign) + this.peer?.textAlignAttribute(value_casted) + return this + } + return this + } + /** @memo */ + enableKeyboardOnFocus(value: boolean): this { + if (this.checkPriority("enableKeyboardOnFocus")) { + const value_casted = value as (boolean) + this.peer?.enableKeyboardOnFocusAttribute(value_casted) + return this + } + return this + } + /** @memo */ + selectionMenuHidden(value: boolean): this { + if (this.checkPriority("selectionMenuHidden")) { + const value_casted = value as (boolean) + this.peer?.selectionMenuHiddenAttribute(value_casted) + return this + } + return this + } + /** @memo */ + minFontSize(value: number | string | Resource): this { + if (this.checkPriority("minFontSize")) { + const value_casted = value as (number | string | Resource) + this.peer?.minFontSizeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + maxFontSize(value: number | string | Resource): this { + if (this.checkPriority("maxFontSize")) { + const value_casted = value as (number | string | Resource) + this.peer?.maxFontSizeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + customKeyboard(value: CustomBuilder, options?: KeyboardOptions): this { + if (this.checkPriority("customKeyboard")) { + const value_casted = value as (CustomBuilder) + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (KeyboardOptions) + this.peer?.customKeyboardAttribute(value_casted, options_casted) + return this + } + return this + } + /** @memo */ + decoration(value: TextDecorationOptions): this { + if (this.checkPriority("decoration")) { + const value_casted = value as (TextDecorationOptions) + this.peer?.decorationAttribute(value_casted) + return this + } + return this + } + /** @memo */ + letterSpacing(value: number | string | Resource): this { + if (this.checkPriority("letterSpacing")) { + const value_casted = value as (number | string | Resource) + this.peer?.letterSpacingAttribute(value_casted) + return this + } + return this + } + /** @memo */ + lineHeight(value: number | string | Resource): this { + if (this.checkPriority("lineHeight")) { + const value_casted = value as (number | string | Resource) + this.peer?.lineHeightAttribute(value_casted) + return this + } + return this + } + /** @memo */ + type(value: SearchType): this { + if (this.checkPriority("type")) { + const value_casted = value as (SearchType) + this.peer?.typeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fontFeature(value: string): this { + if (this.checkPriority("fontFeature")) { + const value_casted = value as (string) + this.peer?.fontFeatureAttribute(value_casted) + return this + } + return this + } + /** @memo */ + onWillInsert(callback: Callback): this { + if (this.checkPriority("onWillInsert")) { + const callback_casted = callback as (Callback) + this.peer?.onWillInsertAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onDidInsert(callback: Callback): this { + if (this.checkPriority("onDidInsert")) { + const callback_casted = callback as (Callback) + this.peer?.onDidInsertAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onWillDelete(callback: Callback): this { + if (this.checkPriority("onWillDelete")) { + const callback_casted = callback as (Callback) + this.peer?.onWillDeleteAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onDidDelete(callback: Callback): this { + if (this.checkPriority("onDidDelete")) { + const callback_casted = callback as (Callback) + this.peer?.onDidDeleteAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + editMenuOptions(editMenu: EditMenuOptions): this { + if (this.checkPriority("editMenuOptions")) { + const editMenu_casted = editMenu as (EditMenuOptions) + this.peer?.editMenuOptionsAttribute(editMenu_casted) + return this + } + return this + } + /** @memo */ + enablePreviewText(enable: boolean): this { + if (this.checkPriority("enablePreviewText")) { + const enable_casted = enable as (boolean) + this.peer?.enablePreviewTextAttribute(enable_casted) + return this + } + return this + } + /** @memo */ + enableHapticFeedback(isEnabled: boolean): this { + if (this.checkPriority("enableHapticFeedback")) { + const isEnabled_casted = isEnabled as (boolean) + this.peer?.enableHapticFeedbackAttribute(isEnabled_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkSearch( + /** @memo */ + style: ((attributes: ArkSearchComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + options?: LITERAL_ValueStringPlaceholderResourceStrIconStringControllerSearchController +) { + const receiver = remember(() => { + return new ArkSearchComponent() + }) + NodeAttach((): ArkSearchPeer => ArkSearchPeer.create(ArkUINodeType.Search, receiver), (_: ArkSearchPeer) => { + receiver.setSearchOptions(options) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkSearchControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkSearchControllerMaterialized.ts new file mode 100644 index 000000000..6f780c691 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkSearchControllerMaterialized.ts @@ -0,0 +1,98 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { TextContentControllerBase } from "./ArkTextContentControllerBaseMaterialized" +import { CaretOffset, RectResult, SelectionOptions } from "./ArkCommonInterfaces" +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class SearchController extends TextContentControllerBase { + peer?: Finalizable + static ctor(): KPointer { + const retval = NativeModule._SearchController_ctor() + return retval + } + constructor() { + super(); + const ctorPtr = SearchController.ctor() + this.peer = new Finalizable(ctorPtr, SearchController.getFinalizer()) + } + static getFinalizer(): KPointer { + return NativeModule._SearchController_getFinalizer() + } + caretPosition(value: number): void { + const value_casted = value as (number) + this.caretPosition_serialize(value_casted) + } + stopEditing(): void { + this.stopEditing_serialize() + } + setTextSelection(selectionStart: number, selectionEnd: number, options?: SelectionOptions): void { + const selectionStart_casted = selectionStart as (number) + const selectionEnd_casted = selectionEnd as (number) + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (SelectionOptions) + this.setTextSelection_serialize(selectionStart_casted, selectionEnd_casted, options_casted) + } + private caretPosition_serialize(value: number): void { + NativeModule._SearchController_caretPosition(this.peer!.ptr, value); + } + private stopEditing_serialize(): void { + NativeModule._SearchController_stopEditing(this.peer!.ptr); + } + private setTextSelection_serialize(selectionStart: number, selectionEnd: number, options?: SelectionOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeSelectionOptions(options_value) + } + NativeModule._SearchController_setTextSelection(this.peer!.ptr, selectionStart, selectionEnd, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkSearchInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkSearchInterfaces.ts new file mode 100644 index 000000000..020ee1502 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkSearchInterfaces.ts @@ -0,0 +1,280 @@ +import { ResourceColor, Resource, Dimension, PX, VP, FP, LPX, Percentage, ResourceStr, Font, Length } from "./ArkUnitsInterfaces" +import { Color, CopyOptions, TextAlign } from "./ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, IMPORT_SymbolGlyphModifier_FROM_api_arkui_SymbolGlyphModifier, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, LITERAL_ValueStringPlaceholderResourceStrIconStringControllerSearchController } from "./SyntheticDeclarations" +import { SymbolGlyphModifier, Callback, CustomBuilder, TextDecorationOptions } from "./ArkCommonInterfaces" +import { CaretStyle, EditableTextOnChangeCallback, PreviewText, InsertValue, DeleteValue } from "./ArkTextCommonInterfaces" +import { EnterKeyType } from "./ArkTextInputInterfaces" +import { PasteEvent, KeyboardOptions } from "./ArkRichEditorInterfaces" +import { EditMenuOptions } from "./ArkEditMenuOptionsMaterialized" +import { SearchController } from "./ArkSearchControllerMaterialized" +import { KInt } from "@koalaui/interop" +/** + * Enum for the style of cancel button + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Enum for the style of cancel button + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class CancelButtonStyle { + /** + * The value of button style constant + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * The value of button style constant + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly CONSTANT: CancelButtonStyle = new CancelButtonStyle(0) + /** + * The value of button style invisible + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * The value of button style invisible + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly INVISIBLE: CancelButtonStyle = new CancelButtonStyle(1) + /** + * The value of button style input + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * The value of button style input + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly INPUT: CancelButtonStyle = new CancelButtonStyle(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): CancelButtonStyle { + if ((arg0) == (CancelButtonStyle.CONSTANT.value)) { + return CancelButtonStyle.CONSTANT + } + if ((arg0) == (CancelButtonStyle.INVISIBLE.value)) { + return CancelButtonStyle.INVISIBLE + } + if ((arg0) == (CancelButtonStyle.INPUT.value)) { + return CancelButtonStyle.INPUT + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Declare the type of search input box + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * Declare the type of search input box + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ +export class SearchType { + /** + * Basic input mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * Basic input mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly NORMAL: SearchType = new SearchType(0) + /** + * Pure digital input mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * Pure digital input mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly NUMBER: SearchType = new SearchType(2) + /** + * Phone number entry mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * Phone number entry mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly PHONE_NUMBER: SearchType = new SearchType(3) + /** + * E-mail address input mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * E-mail address input mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly EMAIL: SearchType = new SearchType(5) + /** + * Number decimal entry mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly NUMBER_DECIMAL: SearchType = new SearchType(12) + /** + * URL entry mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly URL: SearchType = new SearchType(13) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): SearchType { + if ((arg0) == (SearchType.NORMAL.value)) { + return SearchType.NORMAL + } + if ((arg0) == (SearchType.NUMBER.value)) { + return SearchType.NUMBER + } + if ((arg0) == (SearchType.PHONE_NUMBER.value)) { + return SearchType.PHONE_NUMBER + } + if ((arg0) == (SearchType.EMAIL.value)) { + return SearchType.EMAIL + } + if ((arg0) == (SearchType.NUMBER_DECIMAL.value)) { + return SearchType.NUMBER_DECIMAL + } + if ((arg0) == (SearchType.URL.value)) { + return SearchType.URL + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +export interface SearchAttribute { + searchButton(value: string,option: SearchButtonOptions): SearchAttribute; + fontColor(value: ResourceColor): SearchAttribute; + searchIcon(value: IconOptions | SymbolGlyphModifier): SearchAttribute; + cancelButton(value: CancelButtonOptions | CancelButtonSymbolOptions): SearchAttribute; + textIndent(value: Dimension): SearchAttribute; + inputFilter(value: ResourceStr,error: Callback): SearchAttribute; + onEditChange(callback: Callback): SearchAttribute; + selectedBackgroundColor(value: ResourceColor): SearchAttribute; + caretStyle(value: CaretStyle): SearchAttribute; + placeholderColor(value: ResourceColor): SearchAttribute; + placeholderFont(value: Font): SearchAttribute; + textFont(value: Font): SearchAttribute; + enterKeyType(value: EnterKeyType): SearchAttribute; + onSubmit(callback: ((value: string) => void)): SearchAttribute; + onChange(callback: EditableTextOnChangeCallback): SearchAttribute; + onTextSelectionChange(callback: ((selectionStart: number, selectionEnd: number) => void)): SearchAttribute; + onContentScroll(callback: ((totalOffsetX: number, totalOffsetY: number) => void)): SearchAttribute; + onCopy(callback: ((value: string) => void)): SearchAttribute; + onCut(callback: ((value: string) => void)): SearchAttribute; + onPaste(callback: ((value: string, event: PasteEvent) => void)): SearchAttribute; + copyOption(value: CopyOptions): SearchAttribute; + maxLength(value: number): SearchAttribute; + textAlign(value: TextAlign): SearchAttribute; + enableKeyboardOnFocus(value: boolean): SearchAttribute; + selectionMenuHidden(value: boolean): SearchAttribute; + minFontSize(value: number | string | Resource): SearchAttribute; + maxFontSize(value: number | string | Resource): SearchAttribute; + customKeyboard(value: CustomBuilder,options: KeyboardOptions): SearchAttribute; + decoration(value: TextDecorationOptions): SearchAttribute; + letterSpacing(value: number | string | Resource): SearchAttribute; + lineHeight(value: number | string | Resource): SearchAttribute; + type(value: SearchType): SearchAttribute; + fontFeature(value: string): SearchAttribute; + onWillInsert(callback: Callback): SearchAttribute; + onDidInsert(callback: Callback): SearchAttribute; + onWillDelete(callback: Callback): SearchAttribute; + onDidDelete(callback: Callback): SearchAttribute; + editMenuOptions(editMenu: EditMenuOptions): SearchAttribute; + enablePreviewText(enable: boolean): SearchAttribute; + enableHapticFeedback(isEnabled: boolean): SearchAttribute; +} +export interface SearchInterface { +} +export interface SearchButtonOptions { + fontSize?: Length + fontColor?: ResourceColor +} +export interface IconOptions { + size?: Length + color?: ResourceColor + src?: ResourceStr +} +export interface CancelButtonOptions { + style?: CancelButtonStyle + icon?: IconOptions +} +export interface CancelButtonSymbolOptions { + style?: CancelButtonStyle + icon?: SymbolGlyphModifier +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkSecurityComponent.ts b/arkoala-arkts/arkui/src/generated/ArkSecurityComponent.ts new file mode 100644 index 000000000..a7e465250 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkSecurityComponent.ts @@ -0,0 +1,262 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkSecurityComponentMethodPeer } from "./peers/ArkSecurityComponentPeer" +import { Dimension, PX, VP, FP, LPX, Percentage, Resource, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions } from "./ArkUnitsInterfaces" +import { TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, IMPORT_Resource_FROM_api_global_resource, LITERAL_TopLengthRightLengthBottomLengthLeftLength } from "./SyntheticDeclarations" +import { SecurityComponentLayoutDirection, SecurityComponentMethod } from "./ArkSecurityComponentInterfaces" +import { FontStyle, FontWeight, Color, BorderStyle } from "./ArkEnumsInterfaces" +/** @memo:stable */ +export class ArkSecurityComponentMethodComponent extends ComponentBase { + protected peer?: ArkSecurityComponentMethodPeer + /** @memo */ + iconSize(value: Dimension): this { + if (this.checkPriority("iconSize")) { + const value_casted = value as (Dimension) + this.peer?.iconSizeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + layoutDirection(value: SecurityComponentLayoutDirection): this { + if (this.checkPriority("layoutDirection")) { + const value_casted = value as (SecurityComponentLayoutDirection) + this.peer?.layoutDirectionAttribute(value_casted) + return this + } + return this + } + /** @memo */ + position(value: Position): this { + if (this.checkPriority("position")) { + const value_casted = value as (Position) + this.peer?.positionAttribute(value_casted) + return this + } + return this + } + /** @memo */ + markAnchor(value: Position): this { + if (this.checkPriority("markAnchor")) { + const value_casted = value as (Position) + this.peer?.markAnchorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + offset(value: Position | Edges | LocalizedEdges): this { + if (this.checkPriority("offset")) { + const value_casted = value as (Position | Edges | LocalizedEdges) + this.peer?.offsetAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fontSize(value: Dimension): this { + if (this.checkPriority("fontSize")) { + const value_casted = value as (Dimension) + this.peer?.fontSizeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fontStyle(value: FontStyle): this { + if (this.checkPriority("fontStyle")) { + const value_casted = value as (FontStyle) + this.peer?.fontStyleAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fontWeight(value: number | FontWeight | string): this { + if (this.checkPriority("fontWeight")) { + const value_casted = value as (number | FontWeight | string) + this.peer?.fontWeightAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fontFamily(value: string | Resource): this { + if (this.checkPriority("fontFamily")) { + const value_casted = value as (string | Resource) + this.peer?.fontFamilyAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fontColor(value: ResourceColor): this { + if (this.checkPriority("fontColor")) { + const value_casted = value as (ResourceColor) + this.peer?.fontColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + iconColor(value: ResourceColor): this { + if (this.checkPriority("iconColor")) { + const value_casted = value as (ResourceColor) + this.peer?.iconColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + backgroundColor(value: ResourceColor): this { + if (this.checkPriority("backgroundColor")) { + const value_casted = value as (ResourceColor) + this.peer?.backgroundColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + borderStyle(value: BorderStyle): this { + if (this.checkPriority("borderStyle")) { + const value_casted = value as (BorderStyle) + this.peer?.borderStyleAttribute(value_casted) + return this + } + return this + } + /** @memo */ + borderWidth(value: Dimension): this { + if (this.checkPriority("borderWidth")) { + const value_casted = value as (Dimension) + this.peer?.borderWidthAttribute(value_casted) + return this + } + return this + } + /** @memo */ + borderColor(value: ResourceColor): this { + if (this.checkPriority("borderColor")) { + const value_casted = value as (ResourceColor) + this.peer?.borderColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + borderRadius(value: Dimension): this { + if (this.checkPriority("borderRadius")) { + const value_casted = value as (Dimension) + this.peer?.borderRadiusAttribute(value_casted) + return this + } + return this + } + /** @memo */ + padding(value: Padding | Dimension): this { + if (this.checkPriority("padding")) { + const value_casted = value as (Padding | Dimension) + this.peer?.paddingAttribute(value_casted) + return this + } + return this + } + /** @memo */ + textIconSpace(value: Dimension): this { + if (this.checkPriority("textIconSpace")) { + const value_casted = value as (Dimension) + this.peer?.textIconSpaceAttribute(value_casted) + return this + } + return this + } + /** @memo */ + key(value: string): this { + if (this.checkPriority("key")) { + const value_casted = value as (string) + this.peer?.keyAttribute(value_casted) + return this + } + return this + } + /** @memo */ + width(value: Length): this { + if (this.checkPriority("width")) { + const value_casted = value as (Length) + this.peer?.widthAttribute(value_casted) + return this + } + return this + } + /** @memo */ + height(value: Length): this { + if (this.checkPriority("height")) { + const value_casted = value as (Length) + this.peer?.heightAttribute(value_casted) + return this + } + return this + } + /** @memo */ + size(value: SizeOptions): this { + if (this.checkPriority("size")) { + const value_casted = value as (SizeOptions) + this.peer?.sizeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + constraintSize(value: ConstraintSizeOptions): this { + if (this.checkPriority("constraintSize")) { + const value_casted = value as (ConstraintSizeOptions) + this.peer?.constraintSizeAttribute(value_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkSecurityComponentMethod( + /** @memo */ + style: ((attributes: ArkSecurityComponentMethodComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + +) { + const receiver = remember(() => { + return new ArkSecurityComponentMethodComponent() + }) + NodeAttach((): ArkSecurityComponentMethodPeer => ArkSecurityComponentMethodPeer.create(ArkUINodeType.SecurityComponentMethod, receiver), (_: ArkSecurityComponentMethodPeer) => { + + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkSlider.ts b/arkoala-arkts/arkui/src/generated/ArkSlider.ts new file mode 100644 index 000000000..5a02eed19 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkSlider.ts @@ -0,0 +1,268 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkSliderPeer } from "./peers/ArkSliderPeer" +import { UseEventsProperties } from "./use_properties" +import { ResourceColor, Resource, ResourceStr, Length, Dimension, PX, VP, FP, LPX, Percentage, SizeOptions } from "./ArkUnitsInterfaces" +import { Color, Axis } from "./ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage } from "./SyntheticDeclarations" +import { SliderAttribute, SliderChangeMode, SliderBlockStyle, SliderInteraction, SliderConfiguration, SlideRange, SliderOptions, SliderInterface, SliderBlockType, SliderTriggerChangeCallback, SliderStyle } from "./ArkSliderInterfaces" +import { LinearGradient, ContentModifier } from "./ConflictedDeclarations" +import { CircleAttribute } from "./ArkCircleInterfaces" +import { EllipseAttribute } from "./ArkEllipseInterfaces" +import { PathAttribute } from "./ArkPathInterfaces" +import { RectAttribute } from "./ArkRectInterfaces" +import { CommonConfiguration } from "./ArkCommonInterfaces" +/** @memo:stable */ +export class ArkSliderComponent extends ArkCommonMethodComponent { + protected peer?: ArkSliderPeer + /** @memo */ + setSliderOptions(options?: SliderOptions): this { + if (this.checkPriority("setSliderOptions")) { + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (SliderOptions) + this.peer?.setSliderOptionsAttribute(options_casted) + return this + } + return this + } + /** @memo */ + blockColor(value: ResourceColor): this { + if (this.checkPriority("blockColor")) { + const value_casted = value as (ResourceColor) + this.peer?.blockColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + trackColor(value: ResourceColor | LinearGradient): this { + if (this.checkPriority("trackColor")) { + const value_casted = value as (ResourceColor | LinearGradient) + this.peer?.trackColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + selectedColor(value: ResourceColor): this { + if (this.checkPriority("selectedColor")) { + const value_casted = value as (ResourceColor) + this.peer?.selectedColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + minLabel(value: string): this { + if (this.checkPriority("minLabel")) { + const value_casted = value as (string) + this.peer?.minLabelAttribute(value_casted) + return this + } + return this + } + /** @memo */ + maxLabel(value: string): this { + if (this.checkPriority("maxLabel")) { + const value_casted = value as (string) + this.peer?.maxLabelAttribute(value_casted) + return this + } + return this + } + /** @memo */ + showSteps(value: boolean): this { + if (this.checkPriority("showSteps")) { + const value_casted = value as (boolean) + this.peer?.showStepsAttribute(value_casted) + return this + } + return this + } + /** @memo */ + showTips(value: boolean, content?: ResourceStr): this { + if (this.checkPriority("showTips")) { + const value_casted = value as (boolean) + if ((content) == (undefined)) { + throw new Error("Arg 'content' is null"); + } + const content_casted = content as (ResourceStr) + this.peer?.showTipsAttribute(value_casted, content_casted) + return this + } + return this + } + /** @memo */ + trackThickness(value: Length): this { + if (this.checkPriority("trackThickness")) { + const value_casted = value as (Length) + this.peer?.trackThicknessAttribute(value_casted) + return this + } + return this + } + /** @memo */ + onChange(callback: ((value: number, mode: SliderChangeMode) => void)): this { + if (this.checkPriority("onChange")) { + const callback_casted = callback as (((value: number, mode: SliderChangeMode) => void)) + this.peer?.onChangeAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + blockBorderColor(value: ResourceColor): this { + if (this.checkPriority("blockBorderColor")) { + const value_casted = value as (ResourceColor) + this.peer?.blockBorderColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + blockBorderWidth(value: Length): this { + if (this.checkPriority("blockBorderWidth")) { + const value_casted = value as (Length) + this.peer?.blockBorderWidthAttribute(value_casted) + return this + } + return this + } + /** @memo */ + stepColor(value: ResourceColor): this { + if (this.checkPriority("stepColor")) { + const value_casted = value as (ResourceColor) + this.peer?.stepColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + trackBorderRadius(value: Length): this { + if (this.checkPriority("trackBorderRadius")) { + const value_casted = value as (Length) + this.peer?.trackBorderRadiusAttribute(value_casted) + return this + } + return this + } + /** @memo */ + selectedBorderRadius(value: Dimension): this { + if (this.checkPriority("selectedBorderRadius")) { + const value_casted = value as (Dimension) + this.peer?.selectedBorderRadiusAttribute(value_casted) + return this + } + return this + } + /** @memo */ + blockSize(value: SizeOptions): this { + if (this.checkPriority("blockSize")) { + const value_casted = value as (SizeOptions) + this.peer?.blockSizeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + blockStyle(value: SliderBlockStyle): this { + if (this.checkPriority("blockStyle")) { + const value_casted = value as (SliderBlockStyle) + this.peer?.blockStyleAttribute(value_casted) + return this + } + return this + } + /** @memo */ + stepSize(value: Length): this { + if (this.checkPriority("stepSize")) { + const value_casted = value as (Length) + this.peer?.stepSizeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + sliderInteractionMode(value: SliderInteraction): this { + if (this.checkPriority("sliderInteractionMode")) { + const value_casted = value as (SliderInteraction) + this.peer?.sliderInteractionModeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + minResponsiveDistance(value: number): this { + if (this.checkPriority("minResponsiveDistance")) { + const value_casted = value as (number) + this.peer?.minResponsiveDistanceAttribute(value_casted) + return this + } + return this + } + /** @memo */ + contentModifier(modifier: ContentModifier): this { + if (this.checkPriority("contentModifier")) { + const modifier_casted = modifier as (ContentModifier) + this.peer?.contentModifierAttribute(modifier_casted) + return this + } + return this + } + /** @memo */ + slideRange(value: SlideRange): this { + if (this.checkPriority("slideRange")) { + const value_casted = value as (SlideRange) + this.peer?.slideRangeAttribute(value_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkSlider( + /** @memo */ + style: ((attributes: ArkSliderComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + options?: SliderOptions +) { + const receiver = remember(() => { + return new ArkSliderComponent() + }) + NodeAttach((): ArkSliderPeer => ArkSliderPeer.create(ArkUINodeType.Slider, receiver), (_: ArkSliderPeer) => { + receiver.setSliderOptions(options) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkSpan.ts b/arkoala-arkts/arkui/src/generated/ArkSpan.ts new file mode 100644 index 000000000..764d19dbc --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkSpan.ts @@ -0,0 +1,211 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkBaseSpanPeer, ArkSpanPeer } from "./peers/ArkSpanPeer" +import { TextBackgroundStyle, BaseSpan, SpanAttribute, SpanInterface } from "./ArkSpanInterfaces" +import { LengthMetrics, Font, ResourceColor, Resource, Length, Dimension, PX, VP, FP, LPX, Percentage, BorderRadiuses } from "./ArkUnitsInterfaces" +import { IMPORT_LengthMetrics_FROM_api_arkui_Graphics, IMPORT_Resource_FROM_api_global_resource, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, LITERAL_TopLeftLengthTopRightLengthBottomLeftLengthBottomRightLength } from "./SyntheticDeclarations" +import { Color, FontStyle, FontWeight, TextCase } from "./ArkEnumsInterfaces" +import { DecorationStyleInterface } from "./ArkStyledStringInterfaces" +import { ShadowOptions } from "./ArkCommonInterfaces" +/** @memo:stable */ +export class ArkBaseSpanComponent extends ArkCommonMethodComponent { + protected peer?: ArkBaseSpanPeer + /** @memo */ + textBackgroundStyle(style: TextBackgroundStyle): this { + if (this.checkPriority("textBackgroundStyle")) { + const style_casted = style as (TextBackgroundStyle) + this.peer?.textBackgroundStyleAttribute(style_casted) + return this + } + return this + } + /** @memo */ + baselineOffset(value: LengthMetrics): this { + if (this.checkPriority("baselineOffset")) { + const value_casted = value as (LengthMetrics) + this.peer?.baselineOffsetAttribute(value_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkBaseSpan( + /** @memo */ + style: ((attributes: ArkBaseSpanComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + +) { + const receiver = remember(() => { + return new ArkBaseSpanComponent() + }) + NodeAttach((): ArkBaseSpanPeer => ArkBaseSpanPeer.create(ArkUINodeType.BaseSpan, receiver), (_: ArkBaseSpanPeer) => { + + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} +/** @memo:stable */ +export class ArkSpanComponent extends ArkBaseSpanComponent { + protected peer?: ArkSpanPeer + /** @memo */ + setSpanOptions(value: string | Resource): this { + if (this.checkPriority("setSpanOptions")) { + const value_casted = value as (string | Resource) + this.peer?.setSpanOptionsAttribute(value_casted) + return this + } + return this + } + /** @memo */ + font(value: Font): this { + if (this.checkPriority("font")) { + const value_casted = value as (Font) + this.peer?.fontAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fontColor(value: ResourceColor): this { + if (this.checkPriority("fontColor")) { + const value_casted = value as (ResourceColor) + this.peer?.fontColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fontSize(value: number | string | Resource): this { + if (this.checkPriority("fontSize")) { + const value_casted = value as (number | string | Resource) + this.peer?.fontSizeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fontStyle(value: FontStyle): this { + if (this.checkPriority("fontStyle")) { + const value_casted = value as (FontStyle) + this.peer?.fontStyleAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fontWeight(value: number | FontWeight | string): this { + if (this.checkPriority("fontWeight")) { + const value_casted = value as (number | FontWeight | string) + this.peer?.fontWeightAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fontFamily(value: string | Resource): this { + if (this.checkPriority("fontFamily")) { + const value_casted = value as (string | Resource) + this.peer?.fontFamilyAttribute(value_casted) + return this + } + return this + } + /** @memo */ + decoration(value: DecorationStyleInterface): this { + if (this.checkPriority("decoration")) { + const value_casted = value as (DecorationStyleInterface) + this.peer?.decorationAttribute(value_casted) + return this + } + return this + } + /** @memo */ + letterSpacing(value: number | string): this { + if (this.checkPriority("letterSpacing")) { + const value_casted = value as (number | string) + this.peer?.letterSpacingAttribute(value_casted) + return this + } + return this + } + /** @memo */ + textCase(value: TextCase): this { + if (this.checkPriority("textCase")) { + const value_casted = value as (TextCase) + this.peer?.textCaseAttribute(value_casted) + return this + } + return this + } + /** @memo */ + lineHeight(value: Length): this { + if (this.checkPriority("lineHeight")) { + const value_casted = value as (Length) + this.peer?.lineHeightAttribute(value_casted) + return this + } + return this + } + /** @memo */ + textShadow(value: ShadowOptions | Array): this { + if (this.checkPriority("textShadow")) { + const value_casted = value as (ShadowOptions | Array) + this.peer?.textShadowAttribute(value_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkSpan( + /** @memo */ + style: ((attributes: ArkSpanComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + value: string | Resource +) { + const receiver = remember(() => { + return new ArkSpanComponent() + }) + NodeAttach((): ArkSpanPeer => ArkSpanPeer.create(ArkUINodeType.Span, receiver), (_: ArkSpanPeer) => { + receiver.setSpanOptions(value) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkSslErrorHandlerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkSslErrorHandlerMaterialized.ts new file mode 100644 index 000000000..1bdaf255e --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkSslErrorHandlerMaterialized.ts @@ -0,0 +1,71 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class SslErrorHandler { + peer?: Finalizable + static ctor(): KPointer { + const retval = NativeModule._SslErrorHandler_ctor() + return retval + } + constructor() { + const ctorPtr = SslErrorHandler.ctor() + this.peer = new Finalizable(ctorPtr, SslErrorHandler.getFinalizer()) + } + static getFinalizer(): KPointer { + return NativeModule._SslErrorHandler_getFinalizer() + } + handleConfirm(): void { + this.handleConfirm_serialize() + } + handleCancel(): void { + this.handleCancel_serialize() + } + private handleConfirm_serialize(): void { + NativeModule._SslErrorHandler_handleConfirm(this.peer!.ptr); + } + private handleCancel_serialize(): void { + NativeModule._SslErrorHandler_handleCancel(this.peer!.ptr); + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkStack.ts b/arkoala-arkts/arkui/src/generated/ArkStack.ts new file mode 100644 index 000000000..f07aeac90 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkStack.ts @@ -0,0 +1,85 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkStackPeer } from "./peers/ArkStackPeer" +import { Alignment } from "./ArkEnumsInterfaces" +import { StackAttribute, StackOptions, StackInterface } from "./ArkStackInterfaces" +import { PointLightStyle } from "./ArkCommonInterfaces" +/** @memo:stable */ +export class ArkStackComponent extends ArkCommonMethodComponent { + protected peer?: ArkStackPeer + /** @memo */ + setStackOptions(options?: StackOptions): this { + if (this.checkPriority("setStackOptions")) { + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (StackOptions) + this.peer?.setStackOptionsAttribute(options_casted) + return this + } + return this + } + /** @memo */ + alignContent(value: Alignment): this { + if (this.checkPriority("alignContent")) { + const value_casted = value as (Alignment) + this.peer?.alignContentAttribute(value_casted) + return this + } + return this + } + /** @memo */ + pointLight(value: PointLightStyle): this { + if (this.checkPriority("pointLight")) { + const value_casted = value as (PointLightStyle) + this.peer?.pointLightAttribute(value_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkStack( + /** @memo */ + style: ((attributes: ArkStackComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + options?: StackOptions +) { + const receiver = remember(() => { + return new ArkStackComponent() + }) + NodeAttach((): ArkStackPeer => ArkStackPeer.create(ArkUINodeType.Stack, receiver), (_: ArkStackPeer) => { + receiver.setStackOptions(options) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkStackInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkStackInterfaces.ts new file mode 100644 index 000000000..45f793c9e --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkStackInterfaces.ts @@ -0,0 +1,12 @@ +import { Alignment } from "./ArkEnumsInterfaces" +import { PointLightStyle } from "./ArkCommonInterfaces" +import { KInt } from "@koalaui/interop" +export interface StackAttribute { + alignContent(value: Alignment): StackAttribute; + pointLight(value: PointLightStyle): StackAttribute; +} +export interface StackInterface { +} +export interface StackOptions { + alignContent?: Alignment +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkStateManagementInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkStateManagementInterfaces.ts new file mode 100644 index 000000000..5f3e82364 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkStateManagementInterfaces.ts @@ -0,0 +1 @@ +import { KInt } from "@koalaui/interop" \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkStepper.ts b/arkoala-arkts/arkui/src/generated/ArkStepper.ts new file mode 100644 index 000000000..edd19532d --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkStepper.ts @@ -0,0 +1,112 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkStepperPeer } from "./peers/ArkStepperPeer" +import { UseEventsProperties } from "./use_properties" +import { StepperAttribute, StepperInterface } from "./ArkStepperInterfaces" +import { LITERAL_IndexNumber } from "./SyntheticDeclarations" +/** @memo:stable */ +export class ArkStepperComponent extends ArkCommonMethodComponent { + protected peer?: ArkStepperPeer + /** @memo */ + setStepperOptions(value?: LITERAL_IndexNumber): this { + if (this.checkPriority("setStepperOptions")) { + if ((value) == (undefined)) { + throw new Error("Arg 'value' is null"); + } + const value_casted = value as (LITERAL_IndexNumber) + this.peer?.setStepperOptionsAttribute(value_casted) + return this + } + return this + } + /** @memo */ + onFinish(callback: (() => void)): this { + if (this.checkPriority("onFinish")) { + const callback_casted = callback as ((() => void)) + this.peer?.onFinishAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onSkip(callback: (() => void)): this { + if (this.checkPriority("onSkip")) { + const callback_casted = callback as ((() => void)) + this.peer?.onSkipAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onChange(callback: ((prevIndex: number, index: number) => void)): this { + if (this.checkPriority("onChange")) { + const callback_casted = callback as (((prevIndex: number, index: number) => void)) + this.peer?.onChangeAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onNext(callback: ((index: number, pendingIndex: number) => void)): this { + if (this.checkPriority("onNext")) { + const callback_casted = callback as (((index: number, pendingIndex: number) => void)) + this.peer?.onNextAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onPrevious(callback: ((index: number, pendingIndex: number) => void)): this { + if (this.checkPriority("onPrevious")) { + const callback_casted = callback as (((index: number, pendingIndex: number) => void)) + this.peer?.onPreviousAttribute(callback_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkStepper( + /** @memo */ + style: ((attributes: ArkStepperComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + value?: LITERAL_IndexNumber +) { + const receiver = remember(() => { + return new ArkStepperComponent() + }) + NodeAttach((): ArkStepperPeer => ArkStepperPeer.create(ArkUINodeType.Stepper, receiver), (_: ArkStepperPeer) => { + receiver.setStepperOptions(value) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkStepperInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkStepperInterfaces.ts new file mode 100644 index 000000000..0168e8eb5 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkStepperInterfaces.ts @@ -0,0 +1,11 @@ +import { LITERAL_IndexNumber } from "./SyntheticDeclarations" +import { KInt } from "@koalaui/interop" +export interface StepperAttribute { + onFinish(callback: (() => void)): StepperAttribute; + onSkip(callback: (() => void)): StepperAttribute; + onChange(callback: ((prevIndex: number, index: number) => void)): StepperAttribute; + onNext(callback: ((index: number, pendingIndex: number) => void)): StepperAttribute; + onPrevious(callback: ((index: number, pendingIndex: number) => void)): StepperAttribute; +} +export interface StepperInterface { +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkStepperItem.ts b/arkoala-arkts/arkui/src/generated/ArkStepperItem.ts new file mode 100644 index 000000000..eb220cb9b --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkStepperItem.ts @@ -0,0 +1,91 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkStepperItemPeer } from "./peers/ArkStepperItemPeer" +import { StepperItemAttribute, ItemState, StepperItemInterface } from "./ArkStepperItemInterfaces" +/** @memo:stable */ +export class ArkStepperItemComponent extends ArkCommonMethodComponent { + protected peer?: ArkStepperItemPeer + /** @memo */ + setStepperItemOptions(): this { + if (this.checkPriority("setStepperItemOptions")) { + this.peer?.setStepperItemOptionsAttribute() + return this + } + return this + } + /** @memo */ + prevLabel(value: string): this { + if (this.checkPriority("prevLabel")) { + const value_casted = value as (string) + this.peer?.prevLabelAttribute(value_casted) + return this + } + return this + } + /** @memo */ + nextLabel(value: string): this { + if (this.checkPriority("nextLabel")) { + const value_casted = value as (string) + this.peer?.nextLabelAttribute(value_casted) + return this + } + return this + } + /** @memo */ + status(value?: ItemState): this { + if (this.checkPriority("status")) { + if ((value) == (undefined)) { + throw new Error("Arg 'value' is null"); + } + const value_casted = value as (ItemState) + this.peer?.statusAttribute(value_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkStepperItem( + /** @memo */ + style: ((attributes: ArkStepperItemComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + +) { + const receiver = remember(() => { + return new ArkStepperItemComponent() + }) + NodeAttach((): ArkStepperItemPeer => ArkStepperItemPeer.create(ArkUINodeType.StepperItem, receiver), (_: ArkStepperItemPeer) => { + receiver.setStepperItemOptions() + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkStepperItemInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkStepperItemInterfaces.ts new file mode 100644 index 000000000..1707e9b60 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkStepperItemInterfaces.ts @@ -0,0 +1,159 @@ +import { KInt } from "@koalaui/interop" +/* + * Copyright (c) 2021-2023 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +/** + * @file + * @kit ArkUI + */ +/** + * ItemState + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * ItemState + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * ItemState + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class ItemState { + /** + * Default State + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * Default State + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Default State + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Normal: ItemState = new ItemState(0) + /** + * Disabled State + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * Disabled State + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Disabled State + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Disabled: ItemState = new ItemState(1) + /** + * Waiting State + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * Waiting State + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Waiting State + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Waiting: ItemState = new ItemState(2) + /** + * Skip State + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * Skip State + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Skip State + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Skip: ItemState = new ItemState(3) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): ItemState { + if ((arg0) == (ItemState.Normal.value)) { + return ItemState.Normal + } + if ((arg0) == (ItemState.Disabled.value)) { + return ItemState.Disabled + } + if ((arg0) == (ItemState.Waiting.value)) { + return ItemState.Waiting + } + if ((arg0) == (ItemState.Skip.value)) { + return ItemState.Skip + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +export interface StepperItemAttribute { + prevLabel(value: string): StepperItemAttribute; + nextLabel(value: string): StepperItemAttribute; + status(value: ItemState): StepperItemAttribute; +} +export interface StepperItemInterface { +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkStyledStringControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkStyledStringControllerMaterialized.ts new file mode 100644 index 000000000..cc52d315a --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkStyledStringControllerMaterialized.ts @@ -0,0 +1,79 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { StyledString } from "./ArkStyledStringMaterialized" +import { MutableStyledString } from "./ArkMutableStyledStringMaterialized" +import { INTERFACE_StyledStringController } from "./SyntheticDeclarations" +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class StyledStringController implements INTERFACE_StyledStringController { + peer?: Finalizable + static ctor(): KPointer { + const retval = NativeModule._StyledStringController_ctor() + return retval + } + constructor() { + const ctorPtr = StyledStringController.ctor() + this.peer = new Finalizable(ctorPtr, StyledStringController.getFinalizer()) + } + static getFinalizer(): KPointer { + return NativeModule._StyledStringController_getFinalizer() + } + setStyledString(styledString: StyledString): void { + const styledString_casted = styledString as (StyledString) + this.setStyledString_serialize(styledString_casted) + } + getStyledString(): MutableStyledString { + return this.getStyledString_serialize() + } + private setStyledString_serialize(styledString: StyledString): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeMaterialized(styledString) + NativeModule._StyledStringController_setStyledString(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private getStyledString_serialize(): MutableStyledString { + const retval = NativeModule._StyledStringController_getStyledString(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkSwiperContentTransitionProxyMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkSwiperContentTransitionProxyMaterialized.ts new file mode 100644 index 000000000..723cc8fad --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkSwiperContentTransitionProxyMaterialized.ts @@ -0,0 +1,146 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { INTERFACE_SwiperContentTransitionProxy } from "./SyntheticDeclarations" +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class SwiperContentTransitionProxy implements INTERFACE_SwiperContentTransitionProxy { + peer?: Finalizable + get selectedIndex(): number { + return this.getSelectedIndex() + } + set selectedIndex(selectedIndex: number) { + this.setSelectedIndex(selectedIndex) + } + get index(): number { + return this.getIndex() + } + set index(index: number) { + this.setIndex(index) + } + get position(): number { + return this.getPosition() + } + set position(position: number) { + this.setPosition(position) + } + get mainAxisLength(): number { + return this.getMainAxisLength() + } + set mainAxisLength(mainAxisLength: number) { + this.setMainAxisLength(mainAxisLength) + } + static ctor(): KPointer { + const retval = NativeModule._SwiperContentTransitionProxy_ctor() + return retval + } + constructor() { + const ctorPtr = SwiperContentTransitionProxy.ctor() + this.peer = new Finalizable(ctorPtr, SwiperContentTransitionProxy.getFinalizer()) + } + static getFinalizer(): KPointer { + return NativeModule._SwiperContentTransitionProxy_getFinalizer() + } + finishTransition(): void { + this.finishTransition_serialize() + } + private getSelectedIndex(): number { + return this.getSelectedIndex_serialize() + } + private setSelectedIndex(selectedIndex: number): void { + const selectedIndex_casted = selectedIndex as (number) + this.setSelectedIndex_serialize(selectedIndex_casted) + } + private getIndex(): number { + return this.getIndex_serialize() + } + private setIndex(index: number): void { + const index_casted = index as (number) + this.setIndex_serialize(index_casted) + } + private getPosition(): number { + return this.getPosition_serialize() + } + private setPosition(position: number): void { + const position_casted = position as (number) + this.setPosition_serialize(position_casted) + } + private getMainAxisLength(): number { + return this.getMainAxisLength_serialize() + } + private setMainAxisLength(mainAxisLength: number): void { + const mainAxisLength_casted = mainAxisLength as (number) + this.setMainAxisLength_serialize(mainAxisLength_casted) + } + private finishTransition_serialize(): void { + NativeModule._SwiperContentTransitionProxy_finishTransition(this.peer!.ptr); + } + private getSelectedIndex_serialize(): number { + const retval = NativeModule._SwiperContentTransitionProxy_getSelectedIndex(this.peer!.ptr) + return retval + } + private setSelectedIndex_serialize(selectedIndex: number): void { + NativeModule._SwiperContentTransitionProxy_setSelectedIndex(this.peer!.ptr, selectedIndex); + } + private getIndex_serialize(): number { + const retval = NativeModule._SwiperContentTransitionProxy_getIndex(this.peer!.ptr) + return retval + } + private setIndex_serialize(index: number): void { + NativeModule._SwiperContentTransitionProxy_setIndex(this.peer!.ptr, index); + } + private getPosition_serialize(): number { + const retval = NativeModule._SwiperContentTransitionProxy_getPosition(this.peer!.ptr) + return retval + } + private setPosition_serialize(position: number): void { + NativeModule._SwiperContentTransitionProxy_setPosition(this.peer!.ptr, position); + } + private getMainAxisLength_serialize(): number { + const retval = NativeModule._SwiperContentTransitionProxy_getMainAxisLength(this.peer!.ptr) + return retval + } + private setMainAxisLength_serialize(mainAxisLength: number): void { + NativeModule._SwiperContentTransitionProxy_setMainAxisLength(this.peer!.ptr, mainAxisLength); + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkSymbolSpan.ts b/arkoala-arkts/arkui/src/generated/ArkSymbolSpan.ts new file mode 100644 index 000000000..8ca2a51be --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkSymbolSpan.ts @@ -0,0 +1,125 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkSymbolSpanPeer } from "./peers/ArkSymbolSpanPeer" +import { Length, Resource, SizeOptions, ConstraintSizeOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, ResourceStr, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, PX, VP, FP, LPX, Percentage, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, LITERAL_TopLengthRightLengthBottomLengthLeftLength, LITERAL_AlignAlignment, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image, IMPORT_default_VisualEffect_FROM_api_ohos_graphics_uiEffect, IMPORT_default_Filter_FROM_api_ohos_graphics_uiEffect, LITERAL_TopBorderStyleRightBorderStyleBottomBorderStyleLeftBorderStyle, LITERAL_TopResourceColorRightResourceColorBottomResourceColorLeftResourceColor, LITERAL_TopLeftLengthTopRightLengthBottomLeftLengthBottomRightLength, LITERAL_TopOutlineStyleRightOutlineStyleBottomOutlineStyleLeftOutlineStyle, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, LITERAL_TopDimensionRightDimensionBottomDimensionLeftDimension, LITERAL_TopLeftDimensionTopRightDimensionBottomLeftDimensionBottomRightDimension, LITERAL_SpanNumberOffsetNumber, LITERAL_XsNumberLITERALSpanNumberOffsetNumberSmNumberLITERALSpanNumberOffsetNumberMdNumberLITERALSpanNumberOffsetNumberLgNumberLITERALSpanNumberOffsetNumber, IMPORT_default_UniformDataType_FROM_api_ohos_data_uniformTypeDescriptor, IMPORT_ComponentContent_T_FROM_api_arkui_ComponentContent, LITERAL_AngleNumberstringDirectionGradientDirectionColorsArrayResourceColornumberRepeatingBoolean, LITERAL_CenterLengthLengthStartNumberstringEndNumberstringRotationNumberstringColorsArrayResourceColornumberRepeatingBoolean, LITERAL_CenterLengthLengthRadiusNumberstringColorsArrayResourceColornumberRepeatingBoolean, IMPORT_default_Blender_FROM_api_ohos_graphics_uiEffect, IMPORT_CircleShape_FROM_api_ohos_arkui_shape, IMPORT_EllipseShape_FROM_api_ohos_arkui_shape, IMPORT_PathShape_FROM_api_ohos_arkui_shape, IMPORT_RectShape_FROM_api_ohos_arkui_shape } from "./SyntheticDeclarations" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { Optional, SafeAreaType, SafeAreaEdge, Rectangle, TouchTestInfo, TouchResult, CustomBuilder, PixelRoundPolicy, PixelMap, BlurStyle, BackgroundBlurStyleOptions, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, ForegroundBlurStyleOptions, BorderImageOption, OutlineStyle, ClickEvent, Callback, HoverEvent, AccessibilityCallback, AccessibilityHoverEvent, MouseEvent, TouchEvent, KeyEvent, AnimateParam, TransitionOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, sharedTransitionOptions, AlignRuleOption, LocalizedAlignRuleOptions, ChainStyle, ClickEffect, DragEvent, DragItemInfo, UniformDataType, DragPreviewOptions, DragInteractionOptions, PreDragStatus, ComponentContent, OverlayOptions, MotionPathOptions, ShadowOptions, ShadowStyle, BlendMode, BlendApplyType, Blender, CircleShape, EllipseShape, PathShape, RectShape, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, StateStyles, VisibleAreaChangeCallback, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback } from "./ArkCommonInterfaces" +import { HitTestMode, Alignment, Color, ImageRepeat, ImageSize, BorderStyle, ColoringStrategy, HoverEffect, Visibility, ItemAlign, Direction, Axis, GradientDirection, ResponseType, FunctionKey, ModifierKey, ObscuredReasons, RenderFit, FontWeight } from "./ArkEnumsInterfaces" +import { ResizableOptions } from "./ArkImageInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ConflictedDeclarations" +import { GestureType, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureMask, GestureInfo, BaseGestureEvent, GestureJudgeResult } from "./ArkGestureInterfaces" +import { CircleAttribute } from "./ArkCircleInterfaces" +import { EllipseAttribute } from "./ArkEllipseInterfaces" +import { PathAttribute } from "./ArkPathInterfaces" +import { RectAttribute } from "./ArkRectInterfaces" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./ArkAttributeModifierMaterialized" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureRecognizer } from "./ArkGestureRecognizerMaterialized" +import { SymbolSpanAttribute, SymbolSpanInterface } from "./ArkSymbolSpanInterfaces" +import { SymbolEffectStrategy, SymbolRenderingStrategy } from "./ArkSymbolglyphInterfaces" +/** @memo:stable */ +export class ArkSymbolSpanComponent extends ArkCommonMethodComponent { + protected peer?: ArkSymbolSpanPeer + /** @memo */ + setSymbolSpanOptions(value: Resource): this { + if (this.checkPriority("setSymbolSpanOptions")) { + const value_casted = value as (Resource) + this.peer?.setSymbolSpanOptionsAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fontSize(value: number | string | Resource): this { + if (this.checkPriority("fontSize")) { + const value_casted = value as (number | string | Resource) + this.peer?.fontSizeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fontColor(value: Array): this { + if (this.checkPriority("fontColor")) { + const value_casted = value as (Array) + this.peer?.fontColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fontWeight(value: number | FontWeight | string): this { + if (this.checkPriority("fontWeight")) { + const value_casted = value as (number | FontWeight | string) + this.peer?.fontWeightAttribute(value_casted) + return this + } + return this + } + /** @memo */ + effectStrategy(value: SymbolEffectStrategy): this { + if (this.checkPriority("effectStrategy")) { + const value_casted = value as (SymbolEffectStrategy) + this.peer?.effectStrategyAttribute(value_casted) + return this + } + return this + } + /** @memo */ + renderingStrategy(value: SymbolRenderingStrategy): this { + if (this.checkPriority("renderingStrategy")) { + const value_casted = value as (SymbolRenderingStrategy) + this.peer?.renderingStrategyAttribute(value_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkSymbolSpan( + /** @memo */ + style: ((attributes: ArkSymbolSpanComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + value: Resource +) { + const receiver = remember(() => { + return new ArkSymbolSpanComponent() + }) + NodeAttach((): ArkSymbolSpanPeer => ArkSymbolSpanPeer.create(ArkUINodeType.SymbolSpan, receiver), (_: ArkSymbolSpanPeer) => { + receiver.setSymbolSpanOptions(value) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkSymbolSpanInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkSymbolSpanInterfaces.ts new file mode 100644 index 000000000..f42be143f --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkSymbolSpanInterfaces.ts @@ -0,0 +1,29 @@ +import { Length, Resource, SizeOptions, ConstraintSizeOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, ResourceStr, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, PX, VP, FP, LPX, Percentage, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, LITERAL_TopLengthRightLengthBottomLengthLeftLength, LITERAL_AlignAlignment, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image, IMPORT_default_VisualEffect_FROM_api_ohos_graphics_uiEffect, IMPORT_default_Filter_FROM_api_ohos_graphics_uiEffect, LITERAL_TopBorderStyleRightBorderStyleBottomBorderStyleLeftBorderStyle, LITERAL_TopResourceColorRightResourceColorBottomResourceColorLeftResourceColor, LITERAL_TopLeftLengthTopRightLengthBottomLeftLengthBottomRightLength, LITERAL_TopOutlineStyleRightOutlineStyleBottomOutlineStyleLeftOutlineStyle, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, LITERAL_TopDimensionRightDimensionBottomDimensionLeftDimension, LITERAL_TopLeftDimensionTopRightDimensionBottomLeftDimensionBottomRightDimension, LITERAL_SpanNumberOffsetNumber, LITERAL_XsNumberLITERALSpanNumberOffsetNumberSmNumberLITERALSpanNumberOffsetNumberMdNumberLITERALSpanNumberOffsetNumberLgNumberLITERALSpanNumberOffsetNumber, IMPORT_default_UniformDataType_FROM_api_ohos_data_uniformTypeDescriptor, IMPORT_ComponentContent_T_FROM_api_arkui_ComponentContent, LITERAL_AngleNumberstringDirectionGradientDirectionColorsArrayResourceColornumberRepeatingBoolean, LITERAL_CenterLengthLengthStartNumberstringEndNumberstringRotationNumberstringColorsArrayResourceColornumberRepeatingBoolean, LITERAL_CenterLengthLengthRadiusNumberstringColorsArrayResourceColornumberRepeatingBoolean, IMPORT_default_Blender_FROM_api_ohos_graphics_uiEffect, IMPORT_CircleShape_FROM_api_ohos_arkui_shape, IMPORT_EllipseShape_FROM_api_ohos_arkui_shape, IMPORT_PathShape_FROM_api_ohos_arkui_shape, IMPORT_RectShape_FROM_api_ohos_arkui_shape } from "./SyntheticDeclarations" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { Optional, SafeAreaType, SafeAreaEdge, Rectangle, TouchTestInfo, TouchResult, CustomBuilder, PixelRoundPolicy, PixelMap, BlurStyle, BackgroundBlurStyleOptions, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, ForegroundBlurStyleOptions, BorderImageOption, OutlineStyle, ClickEvent, Callback, HoverEvent, AccessibilityCallback, AccessibilityHoverEvent, MouseEvent, TouchEvent, KeyEvent, AnimateParam, TransitionOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, sharedTransitionOptions, AlignRuleOption, LocalizedAlignRuleOptions, ChainStyle, ClickEffect, DragEvent, DragItemInfo, UniformDataType, DragPreviewOptions, DragInteractionOptions, PreDragStatus, ComponentContent, OverlayOptions, MotionPathOptions, ShadowOptions, ShadowStyle, BlendMode, BlendApplyType, Blender, CircleShape, EllipseShape, PathShape, RectShape, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, StateStyles, VisibleAreaChangeCallback, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback } from "./ArkCommonInterfaces" +import { HitTestMode, Alignment, Color, ImageRepeat, ImageSize, BorderStyle, ColoringStrategy, HoverEffect, Visibility, ItemAlign, Direction, Axis, GradientDirection, ResponseType, FunctionKey, ModifierKey, ObscuredReasons, RenderFit, FontWeight } from "./ArkEnumsInterfaces" +import { ResizableOptions } from "./ArkImageInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ConflictedDeclarations" +import { GestureType, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureMask, GestureInfo, BaseGestureEvent, GestureJudgeResult } from "./ArkGestureInterfaces" +import { CircleAttribute } from "./ArkCircleInterfaces" +import { EllipseAttribute } from "./ArkEllipseInterfaces" +import { PathAttribute } from "./ArkPathInterfaces" +import { RectAttribute } from "./ArkRectInterfaces" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./ArkAttributeModifierMaterialized" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureRecognizer } from "./ArkGestureRecognizerMaterialized" +import { SymbolEffectStrategy, SymbolRenderingStrategy } from "./ArkSymbolglyphInterfaces" +import { KInt } from "@koalaui/interop" +export interface SymbolSpanAttribute { + fontSize(value: number | string | Resource): SymbolSpanAttribute; + fontColor(value: Array): SymbolSpanAttribute; + fontWeight(value: number | FontWeight | string): SymbolSpanAttribute; + effectStrategy(value: SymbolEffectStrategy): SymbolSpanAttribute; + renderingStrategy(value: SymbolRenderingStrategy): SymbolSpanAttribute; + attributeModifier(modifier: AttributeModifier): SymbolSpanAttribute; +} +export interface SymbolSpanInterface { +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkTabContentTransitionProxyMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTabContentTransitionProxyMaterialized.ts new file mode 100644 index 000000000..03df87c5e --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkTabContentTransitionProxyMaterialized.ts @@ -0,0 +1,106 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { INTERFACE_TabContentTransitionProxy } from "./SyntheticDeclarations" +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class TabContentTransitionProxy implements INTERFACE_TabContentTransitionProxy { + peer?: Finalizable + get from(): number { + return this.getFrom() + } + set from(from: number) { + this.setFrom(from) + } + get to(): number { + return this.getTo() + } + set to(to: number) { + this.setTo(to) + } + static ctor(): KPointer { + const retval = NativeModule._TabContentTransitionProxy_ctor() + return retval + } + constructor() { + const ctorPtr = TabContentTransitionProxy.ctor() + this.peer = new Finalizable(ctorPtr, TabContentTransitionProxy.getFinalizer()) + } + static getFinalizer(): KPointer { + return NativeModule._TabContentTransitionProxy_getFinalizer() + } + finishTransition(): void { + this.finishTransition_serialize() + } + private getFrom(): number { + return this.getFrom_serialize() + } + private setFrom(from: number): void { + const from_casted = from as (number) + this.setFrom_serialize(from_casted) + } + private getTo(): number { + return this.getTo_serialize() + } + private setTo(to: number): void { + const to_casted = to as (number) + this.setTo_serialize(to_casted) + } + private finishTransition_serialize(): void { + NativeModule._TabContentTransitionProxy_finishTransition(this.peer!.ptr); + } + private getFrom_serialize(): number { + const retval = NativeModule._TabContentTransitionProxy_getFrom(this.peer!.ptr) + return retval + } + private setFrom_serialize(from: number): void { + NativeModule._TabContentTransitionProxy_setFrom(this.peer!.ptr, from); + } + private getTo_serialize(): number { + const retval = NativeModule._TabContentTransitionProxy_getTo(this.peer!.ptr) + return retval + } + private setTo_serialize(to: number): void { + NativeModule._TabContentTransitionProxy_setTo(this.peer!.ptr, to); + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkTabsControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTabsControllerMaterialized.ts new file mode 100644 index 000000000..f11c9c579 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkTabsControllerMaterialized.ts @@ -0,0 +1,91 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { Optional } from "./ArkCommonInterfaces" +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class TabsController { + peer?: Finalizable + static ctor(): KPointer { + const retval = NativeModule._TabsController_ctor() + return retval + } + constructor() { + const ctorPtr = TabsController.ctor() + this.peer = new Finalizable(ctorPtr, TabsController.getFinalizer()) + } + static getFinalizer(): KPointer { + return NativeModule._TabsController_getFinalizer() + } + changeIndex(value: number): void { + const value_casted = value as (number) + this.changeIndex_serialize(value_casted) + } + preloadItems(indices: Array | undefined): Promise { + const indices_casted = indices as (Array | undefined) + return this.preloadItems_serialize(indices_casted) + } + private changeIndex_serialize(value: number): void { + NativeModule._TabsController_changeIndex(this.peer!.ptr, value); + } + private preloadItems_serialize(indices: Array | undefined): Promise { + const thisSerializer = SerializerBase.hold(createSerializer) + let indices_type = RuntimeType.UNDEFINED + if (indices != undefined) { + indices_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(indices_type as int32) + if ((RuntimeType.UNDEFINED) != (indices_type)) { + const indices_value = indices! + thisSerializer.writeInt8(runtimeType(indices_value) as int32) + thisSerializer.writeInt32(indices_value.length as int32) + for (let i = 0; i < indices_value.length; i++) { + const indices_value_element = indices_value[i] + thisSerializer.writeNumber(indices_value_element) + } + } + const retval = NativeModule._TabsController_preloadItems(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release(); + throw new Error("Object deserialization is not implemented.") + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkTextArea.ts b/arkoala-arkts/arkui/src/generated/ArkTextArea.ts new file mode 100644 index 000000000..eb47d7463 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkTextArea.ts @@ -0,0 +1,555 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkTextAreaPeer } from "./peers/ArkTextAreaPeer" +import { UseEventsProperties } from "./use_properties" +import { ResourceColor, Resource, Font, Length, ResourceStr, Dimension, PX, VP, FP, LPX, Percentage, LengthMetrics } from "./ArkUnitsInterfaces" +import { Color, TextAlign, FontStyle, FontWeight, TextOverflow, CopyOptions, TextContentStyle, BarState, TextHeightAdaptivePolicy, WordBreak, LineBreakStrategy } from "./ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, IMPORT_LengthMetrics_FROM_api_arkui_Graphics } from "./SyntheticDeclarations" +import { TextAreaAttribute, TextAreaType, ContentType, TextAreaOptions, TextAreaInterface } from "./ArkTextAreaInterfaces" +import { EnterKeyType } from "./ArkTextInputInterfaces" +import { CaretStyle, EditableTextOnChangeCallback, PreviewText, InsertValue, DeleteValue } from "./ArkTextCommonInterfaces" +import { PasteEvent, KeyboardOptions } from "./ArkRichEditorInterfaces" +import { InputCounterOptions, CustomBuilder, TextDecorationOptions, Callback } from "./ArkCommonInterfaces" +import { EditMenuOptions } from "./ArkEditMenuOptionsMaterialized" +import { TextAreaController } from "./ArkTextAreaControllerMaterialized" +/** @memo:stable */ +export class ArkTextAreaComponent extends ArkCommonMethodComponent { + protected peer?: ArkTextAreaPeer + /** @memo */ + setTextAreaOptions(value?: TextAreaOptions): this { + if (this.checkPriority("setTextAreaOptions")) { + if ((value) == (undefined)) { + throw new Error("Arg 'value' is null"); + } + const value_casted = value as (TextAreaOptions) + this.peer?.setTextAreaOptionsAttribute(value_casted) + return this + } + return this + } + /** @memo */ + placeholderColor(value: ResourceColor): this { + if (this.checkPriority("placeholderColor")) { + const value_casted = value as (ResourceColor) + this.peer?.placeholderColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + placeholderFont(value: Font): this { + if (this.checkPriority("placeholderFont")) { + const value_casted = value as (Font) + this.peer?.placeholderFontAttribute(value_casted) + return this + } + return this + } + /** @memo */ + enterKeyType(value: EnterKeyType): this { + if (this.checkPriority("enterKeyType")) { + const value_casted = value as (EnterKeyType) + this.peer?.enterKeyTypeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + textAlign(value: TextAlign): this { + if (this.checkPriority("textAlign")) { + const value_casted = value as (TextAlign) + this.peer?.textAlignAttribute(value_casted) + return this + } + return this + } + /** @memo */ + caretColor(value: ResourceColor): this { + if (this.checkPriority("caretColor")) { + const value_casted = value as (ResourceColor) + this.peer?.caretColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fontColor(value: ResourceColor): this { + if (this.checkPriority("fontColor")) { + const value_casted = value as (ResourceColor) + this.peer?.fontColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fontSize(value: Length): this { + if (this.checkPriority("fontSize")) { + const value_casted = value as (Length) + this.peer?.fontSizeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fontStyle(value: FontStyle): this { + if (this.checkPriority("fontStyle")) { + const value_casted = value as (FontStyle) + this.peer?.fontStyleAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fontWeight(value: number | FontWeight | string): this { + if (this.checkPriority("fontWeight")) { + const value_casted = value as (number | FontWeight | string) + this.peer?.fontWeightAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fontFamily(value: ResourceStr): this { + if (this.checkPriority("fontFamily")) { + const value_casted = value as (ResourceStr) + this.peer?.fontFamilyAttribute(value_casted) + return this + } + return this + } + /** @memo */ + textOverflow(value: TextOverflow): this { + if (this.checkPriority("textOverflow")) { + const value_casted = value as (TextOverflow) + this.peer?.textOverflowAttribute(value_casted) + return this + } + return this + } + /** @memo */ + textIndent(value: Dimension): this { + if (this.checkPriority("textIndent")) { + const value_casted = value as (Dimension) + this.peer?.textIndentAttribute(value_casted) + return this + } + return this + } + /** @memo */ + inputFilter(value: ResourceStr, error?: ((value: string) => void)): this { + if (this.checkPriority("inputFilter")) { + const value_casted = value as (ResourceStr) + if ((error) == (undefined)) { + throw new Error("Arg 'error' is null"); + } + const error_casted = error as (((value: string) => void)) + this.peer?.inputFilterAttribute(value_casted, error_casted) + return this + } + return this + } + /** @memo */ + caretStyle(value: CaretStyle): this { + if (this.checkPriority("caretStyle")) { + const value_casted = value as (CaretStyle) + this.peer?.caretStyleAttribute(value_casted) + return this + } + return this + } + /** @memo */ + selectedBackgroundColor(value: ResourceColor): this { + if (this.checkPriority("selectedBackgroundColor")) { + const value_casted = value as (ResourceColor) + this.peer?.selectedBackgroundColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + onSubmit(callback: ((enterKey: EnterKeyType) => void)): this { + if (this.checkPriority("onSubmit")) { + const callback_casted = callback as (((enterKey: EnterKeyType) => void)) + this.peer?.onSubmitAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onChange(callback: EditableTextOnChangeCallback): this { + if (this.checkPriority("onChange")) { + const callback_casted = callback as (EditableTextOnChangeCallback) + this.peer?.onChangeAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onTextSelectionChange(callback: ((selectionStart: number, selectionEnd: number) => void)): this { + if (this.checkPriority("onTextSelectionChange")) { + const callback_casted = callback as (((selectionStart: number, selectionEnd: number) => void)) + this.peer?.onTextSelectionChangeAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onContentScroll(callback: ((totalOffsetX: number, totalOffsetY: number) => void)): this { + if (this.checkPriority("onContentScroll")) { + const callback_casted = callback as (((totalOffsetX: number, totalOffsetY: number) => void)) + this.peer?.onContentScrollAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onEditChange(callback: ((isEditing: boolean) => void)): this { + if (this.checkPriority("onEditChange")) { + const callback_casted = callback as (((isEditing: boolean) => void)) + this.peer?.onEditChangeAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onCopy(callback: ((value: string) => void)): this { + if (this.checkPriority("onCopy")) { + const callback_casted = callback as (((value: string) => void)) + this.peer?.onCopyAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onCut(callback: ((value: string) => void)): this { + if (this.checkPriority("onCut")) { + const callback_casted = callback as (((value: string) => void)) + this.peer?.onCutAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onPaste(callback: ((value: string, event: PasteEvent) => void)): this { + if (this.checkPriority("onPaste")) { + const callback_casted = callback as (((value: string, event: PasteEvent) => void)) + this.peer?.onPasteAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + copyOption(value: CopyOptions): this { + if (this.checkPriority("copyOption")) { + const value_casted = value as (CopyOptions) + this.peer?.copyOptionAttribute(value_casted) + return this + } + return this + } + /** @memo */ + enableKeyboardOnFocus(value: boolean): this { + if (this.checkPriority("enableKeyboardOnFocus")) { + const value_casted = value as (boolean) + this.peer?.enableKeyboardOnFocusAttribute(value_casted) + return this + } + return this + } + /** @memo */ + maxLength(value: number): this { + if (this.checkPriority("maxLength")) { + const value_casted = value as (number) + this.peer?.maxLengthAttribute(value_casted) + return this + } + return this + } + /** @memo */ + showCounter(value: boolean, options?: InputCounterOptions): this { + if (this.checkPriority("showCounter")) { + const value_casted = value as (boolean) + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (InputCounterOptions) + this.peer?.showCounterAttribute(value_casted, options_casted) + return this + } + return this + } + /** @memo */ + style(value: TextContentStyle): this { + if (this.checkPriority("style")) { + const value_casted = value as (TextContentStyle) + this.peer?.styleAttribute(value_casted) + return this + } + return this + } + /** @memo */ + barState(value: BarState): this { + if (this.checkPriority("barState")) { + const value_casted = value as (BarState) + this.peer?.barStateAttribute(value_casted) + return this + } + return this + } + /** @memo */ + selectionMenuHidden(value: boolean): this { + if (this.checkPriority("selectionMenuHidden")) { + const value_casted = value as (boolean) + this.peer?.selectionMenuHiddenAttribute(value_casted) + return this + } + return this + } + /** @memo */ + minFontSize(value: number | string | Resource): this { + if (this.checkPriority("minFontSize")) { + const value_casted = value as (number | string | Resource) + this.peer?.minFontSizeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + maxFontSize(value: number | string | Resource): this { + if (this.checkPriority("maxFontSize")) { + const value_casted = value as (number | string | Resource) + this.peer?.maxFontSizeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + heightAdaptivePolicy(value: TextHeightAdaptivePolicy): this { + if (this.checkPriority("heightAdaptivePolicy")) { + const value_casted = value as (TextHeightAdaptivePolicy) + this.peer?.heightAdaptivePolicyAttribute(value_casted) + return this + } + return this + } + /** @memo */ + maxLines(value: number): this { + if (this.checkPriority("maxLines")) { + const value_casted = value as (number) + this.peer?.maxLinesAttribute(value_casted) + return this + } + return this + } + /** @memo */ + wordBreak(value: WordBreak): this { + if (this.checkPriority("wordBreak")) { + const value_casted = value as (WordBreak) + this.peer?.wordBreakAttribute(value_casted) + return this + } + return this + } + /** @memo */ + lineBreakStrategy(strategy: LineBreakStrategy): this { + if (this.checkPriority("lineBreakStrategy")) { + const strategy_casted = strategy as (LineBreakStrategy) + this.peer?.lineBreakStrategyAttribute(strategy_casted) + return this + } + return this + } + /** @memo */ + customKeyboard(value: CustomBuilder, options?: KeyboardOptions): this { + if (this.checkPriority("customKeyboard")) { + const value_casted = value as (CustomBuilder) + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (KeyboardOptions) + this.peer?.customKeyboardAttribute(value_casted, options_casted) + return this + } + return this + } + /** @memo */ + decoration(value: TextDecorationOptions): this { + if (this.checkPriority("decoration")) { + const value_casted = value as (TextDecorationOptions) + this.peer?.decorationAttribute(value_casted) + return this + } + return this + } + /** @memo */ + letterSpacing(value: number | string | Resource): this { + if (this.checkPriority("letterSpacing")) { + const value_casted = value as (number | string | Resource) + this.peer?.letterSpacingAttribute(value_casted) + return this + } + return this + } + /** @memo */ + lineSpacing(value: LengthMetrics): this { + if (this.checkPriority("lineSpacing")) { + const value_casted = value as (LengthMetrics) + this.peer?.lineSpacingAttribute(value_casted) + return this + } + return this + } + /** @memo */ + lineHeight(value: number | string | Resource): this { + if (this.checkPriority("lineHeight")) { + const value_casted = value as (number | string | Resource) + this.peer?.lineHeightAttribute(value_casted) + return this + } + return this + } + /** @memo */ + type(value: TextAreaType): this { + if (this.checkPriority("type")) { + const value_casted = value as (TextAreaType) + this.peer?.typeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + enableAutoFill(value: boolean): this { + if (this.checkPriority("enableAutoFill")) { + const value_casted = value as (boolean) + this.peer?.enableAutoFillAttribute(value_casted) + return this + } + return this + } + /** @memo */ + contentType(contentType: ContentType): this { + if (this.checkPriority("contentType")) { + const contentType_casted = contentType as (ContentType) + this.peer?.contentTypeAttribute(contentType_casted) + return this + } + return this + } + /** @memo */ + fontFeature(value: string): this { + if (this.checkPriority("fontFeature")) { + const value_casted = value as (string) + this.peer?.fontFeatureAttribute(value_casted) + return this + } + return this + } + /** @memo */ + onWillInsert(callback: Callback): this { + if (this.checkPriority("onWillInsert")) { + const callback_casted = callback as (Callback) + this.peer?.onWillInsertAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onDidInsert(callback: Callback): this { + if (this.checkPriority("onDidInsert")) { + const callback_casted = callback as (Callback) + this.peer?.onDidInsertAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onWillDelete(callback: Callback): this { + if (this.checkPriority("onWillDelete")) { + const callback_casted = callback as (Callback) + this.peer?.onWillDeleteAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onDidDelete(callback: Callback): this { + if (this.checkPriority("onDidDelete")) { + const callback_casted = callback as (Callback) + this.peer?.onDidDeleteAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + editMenuOptions(editMenu: EditMenuOptions): this { + if (this.checkPriority("editMenuOptions")) { + const editMenu_casted = editMenu as (EditMenuOptions) + this.peer?.editMenuOptionsAttribute(editMenu_casted) + return this + } + return this + } + /** @memo */ + enablePreviewText(enable: boolean): this { + if (this.checkPriority("enablePreviewText")) { + const enable_casted = enable as (boolean) + this.peer?.enablePreviewTextAttribute(enable_casted) + return this + } + return this + } + /** @memo */ + enableHapticFeedback(isEnabled: boolean): this { + if (this.checkPriority("enableHapticFeedback")) { + const isEnabled_casted = isEnabled as (boolean) + this.peer?.enableHapticFeedbackAttribute(isEnabled_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkTextArea( + /** @memo */ + style: ((attributes: ArkTextAreaComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + value?: TextAreaOptions +) { + const receiver = remember(() => { + return new ArkTextAreaComponent() + }) + NodeAttach((): ArkTextAreaPeer => ArkTextAreaPeer.create(ArkUINodeType.TextArea, receiver), (_: ArkTextAreaPeer) => { + receiver.setTextAreaOptions(value) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkTextAreaControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextAreaControllerMaterialized.ts new file mode 100644 index 000000000..6ab22b351 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkTextAreaControllerMaterialized.ts @@ -0,0 +1,98 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { TextContentControllerBase } from "./ArkTextContentControllerBaseMaterialized" +import { CaretOffset, RectResult, SelectionOptions } from "./ArkCommonInterfaces" +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class TextAreaController extends TextContentControllerBase { + peer?: Finalizable + static ctor(): KPointer { + const retval = NativeModule._TextAreaController_ctor() + return retval + } + constructor() { + super(); + const ctorPtr = TextAreaController.ctor() + this.peer = new Finalizable(ctorPtr, TextAreaController.getFinalizer()) + } + static getFinalizer(): KPointer { + return NativeModule._TextAreaController_getFinalizer() + } + caretPosition(value: number): void { + const value_casted = value as (number) + this.caretPosition_serialize(value_casted) + } + setTextSelection(selectionStart: number, selectionEnd: number, options?: SelectionOptions): void { + const selectionStart_casted = selectionStart as (number) + const selectionEnd_casted = selectionEnd as (number) + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (SelectionOptions) + this.setTextSelection_serialize(selectionStart_casted, selectionEnd_casted, options_casted) + } + stopEditing(): void { + this.stopEditing_serialize() + } + private caretPosition_serialize(value: number): void { + NativeModule._TextAreaController_caretPosition(this.peer!.ptr, value); + } + private setTextSelection_serialize(selectionStart: number, selectionEnd: number, options?: SelectionOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeSelectionOptions(options_value) + } + NativeModule._TextAreaController_setTextSelection(this.peer!.ptr, selectionStart, selectionEnd, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private stopEditing_serialize(): void { + NativeModule._TextAreaController_stopEditing(this.peer!.ptr); + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkTextAreaInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkTextAreaInterfaces.ts new file mode 100644 index 000000000..0f48dd25a --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkTextAreaInterfaces.ts @@ -0,0 +1,445 @@ +import { ResourceColor, Resource, Font, Length, ResourceStr, Dimension, PX, VP, FP, LPX, Percentage, LengthMetrics } from "./ArkUnitsInterfaces" +import { Color, TextAlign, FontStyle, FontWeight, TextOverflow, CopyOptions, TextContentStyle, BarState, TextHeightAdaptivePolicy, WordBreak, LineBreakStrategy } from "./ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, IMPORT_LengthMetrics_FROM_api_arkui_Graphics } from "./SyntheticDeclarations" +import { EnterKeyType } from "./ArkTextInputInterfaces" +import { CaretStyle, EditableTextOnChangeCallback, PreviewText, InsertValue, DeleteValue } from "./ArkTextCommonInterfaces" +import { PasteEvent, KeyboardOptions } from "./ArkRichEditorInterfaces" +import { InputCounterOptions, CustomBuilder, TextDecorationOptions, Callback } from "./ArkCommonInterfaces" +import { EditMenuOptions } from "./ArkEditMenuOptionsMaterialized" +import { TextAreaController } from "./ArkTextAreaControllerMaterialized" +import { KInt } from "@koalaui/interop" +/** + * Declare the type of input box + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * Declare the type of input box + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ +export class TextAreaType { + /** + * Basic input mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * Basic input mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly NORMAL: TextAreaType = new TextAreaType(0) + /** + * Pure digital input mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * Pure digital input mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly NUMBER: TextAreaType = new TextAreaType(2) + /** + * Phone number entry mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * Phone number entry mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly PHONE_NUMBER: TextAreaType = new TextAreaType(3) + /** + * E-mail address input mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * E-mail address input mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly EMAIL: TextAreaType = new TextAreaType(5) + /** + * Number decimal entry mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly NUMBER_DECIMAL: TextAreaType = new TextAreaType(12) + /** + * URL entry mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly URL: TextAreaType = new TextAreaType(13) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): TextAreaType { + if ((arg0) == (TextAreaType.NORMAL.value)) { + return TextAreaType.NORMAL + } + if ((arg0) == (TextAreaType.NUMBER.value)) { + return TextAreaType.NUMBER + } + if ((arg0) == (TextAreaType.PHONE_NUMBER.value)) { + return TextAreaType.PHONE_NUMBER + } + if ((arg0) == (TextAreaType.EMAIL.value)) { + return TextAreaType.EMAIL + } + if ((arg0) == (TextAreaType.NUMBER_DECIMAL.value)) { + return TextAreaType.NUMBER_DECIMAL + } + if ((arg0) == (TextAreaType.URL.value)) { + return TextAreaType.URL + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Declare the content type of input box + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ +export class ContentType { + /** + * User name content type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly USER_NAME: ContentType = new ContentType(0) + /** + * Password content type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly PASSWORD: ContentType = new ContentType(1) + /** + * New password content type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly NEW_PASSWORD: ContentType = new ContentType(2) + /** + * Full street address content type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly FULL_STREET_ADDRESS: ContentType = new ContentType(3) + /** + * House number content type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly HOUSE_NUMBER: ContentType = new ContentType(4) + /** + * District address content type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly DISTRICT_ADDRESS: ContentType = new ContentType(5) + /** + * City address content type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly CITY_ADDRESS: ContentType = new ContentType(6) + /** + * Province address content type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly PROVINCE_ADDRESS: ContentType = new ContentType(7) + /** + * Country address content type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly COUNTRY_ADDRESS: ContentType = new ContentType(8) + /** + * Person full name content type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly PERSON_FULL_NAME: ContentType = new ContentType(9) + /** + * Person last name content type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly PERSON_LAST_NAME: ContentType = new ContentType(10) + /** + * Person first name content type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly PERSON_FIRST_NAME: ContentType = new ContentType(11) + /** + * Phone number content type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly PHONE_NUMBER: ContentType = new ContentType(12) + /** + * Phone country code content type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly PHONE_COUNTRY_CODE: ContentType = new ContentType(13) + /** + * Full phone number content type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly FULL_PHONE_NUMBER: ContentType = new ContentType(14) + /** + * Email address content type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly EMAIL_ADDRESS: ContentType = new ContentType(15) + /** + * Bank card number content type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly BANK_CARD_NUMBER: ContentType = new ContentType(16) + /** + * ID card number content type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly ID_CARD_NUMBER: ContentType = new ContentType(17) + /** + * Nickname content type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly NICKNAME: ContentType = new ContentType(23) + /** + * Detail info without street content type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly DETAIL_INFO_WITHOUT_STREET: ContentType = new ContentType(24) + /** + * Format address content type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly FORMAT_ADDRESS: ContentType = new ContentType(25) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): ContentType { + if ((arg0) == (ContentType.USER_NAME.value)) { + return ContentType.USER_NAME + } + if ((arg0) == (ContentType.PASSWORD.value)) { + return ContentType.PASSWORD + } + if ((arg0) == (ContentType.NEW_PASSWORD.value)) { + return ContentType.NEW_PASSWORD + } + if ((arg0) == (ContentType.FULL_STREET_ADDRESS.value)) { + return ContentType.FULL_STREET_ADDRESS + } + if ((arg0) == (ContentType.HOUSE_NUMBER.value)) { + return ContentType.HOUSE_NUMBER + } + if ((arg0) == (ContentType.DISTRICT_ADDRESS.value)) { + return ContentType.DISTRICT_ADDRESS + } + if ((arg0) == (ContentType.CITY_ADDRESS.value)) { + return ContentType.CITY_ADDRESS + } + if ((arg0) == (ContentType.PROVINCE_ADDRESS.value)) { + return ContentType.PROVINCE_ADDRESS + } + if ((arg0) == (ContentType.COUNTRY_ADDRESS.value)) { + return ContentType.COUNTRY_ADDRESS + } + if ((arg0) == (ContentType.PERSON_FULL_NAME.value)) { + return ContentType.PERSON_FULL_NAME + } + if ((arg0) == (ContentType.PERSON_LAST_NAME.value)) { + return ContentType.PERSON_LAST_NAME + } + if ((arg0) == (ContentType.PERSON_FIRST_NAME.value)) { + return ContentType.PERSON_FIRST_NAME + } + if ((arg0) == (ContentType.PHONE_NUMBER.value)) { + return ContentType.PHONE_NUMBER + } + if ((arg0) == (ContentType.PHONE_COUNTRY_CODE.value)) { + return ContentType.PHONE_COUNTRY_CODE + } + if ((arg0) == (ContentType.FULL_PHONE_NUMBER.value)) { + return ContentType.FULL_PHONE_NUMBER + } + if ((arg0) == (ContentType.EMAIL_ADDRESS.value)) { + return ContentType.EMAIL_ADDRESS + } + if ((arg0) == (ContentType.BANK_CARD_NUMBER.value)) { + return ContentType.BANK_CARD_NUMBER + } + if ((arg0) == (ContentType.ID_CARD_NUMBER.value)) { + return ContentType.ID_CARD_NUMBER + } + if ((arg0) == (ContentType.NICKNAME.value)) { + return ContentType.NICKNAME + } + if ((arg0) == (ContentType.DETAIL_INFO_WITHOUT_STREET.value)) { + return ContentType.DETAIL_INFO_WITHOUT_STREET + } + if ((arg0) == (ContentType.FORMAT_ADDRESS.value)) { + return ContentType.FORMAT_ADDRESS + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +export interface TextAreaAttribute { + placeholderColor(value: ResourceColor): TextAreaAttribute; + placeholderFont(value: Font): TextAreaAttribute; + enterKeyType(value: EnterKeyType): TextAreaAttribute; + textAlign(value: TextAlign): TextAreaAttribute; + caretColor(value: ResourceColor): TextAreaAttribute; + fontColor(value: ResourceColor): TextAreaAttribute; + fontSize(value: Length): TextAreaAttribute; + fontStyle(value: FontStyle): TextAreaAttribute; + fontWeight(value: number | FontWeight | string): TextAreaAttribute; + fontFamily(value: ResourceStr): TextAreaAttribute; + textOverflow(value: TextOverflow): TextAreaAttribute; + textIndent(value: Dimension): TextAreaAttribute; + inputFilter(value: ResourceStr,error: ((value: string) => void)): TextAreaAttribute; + caretStyle(value: CaretStyle): TextAreaAttribute; + selectedBackgroundColor(value: ResourceColor): TextAreaAttribute; + onSubmit(callback: ((enterKey: EnterKeyType) => void)): TextAreaAttribute; + onChange(callback: EditableTextOnChangeCallback): TextAreaAttribute; + onTextSelectionChange(callback: ((selectionStart: number, selectionEnd: number) => void)): TextAreaAttribute; + onContentScroll(callback: ((totalOffsetX: number, totalOffsetY: number) => void)): TextAreaAttribute; + onEditChange(callback: ((isEditing: boolean) => void)): TextAreaAttribute; + onCopy(callback: ((value: string) => void)): TextAreaAttribute; + onCut(callback: ((value: string) => void)): TextAreaAttribute; + onPaste(callback: ((value: string, event: PasteEvent) => void)): TextAreaAttribute; + copyOption(value: CopyOptions): TextAreaAttribute; + enableKeyboardOnFocus(value: boolean): TextAreaAttribute; + maxLength(value: number): TextAreaAttribute; + showCounter(value: boolean,options: InputCounterOptions): TextAreaAttribute; + style(value: TextContentStyle): TextAreaAttribute; + barState(value: BarState): TextAreaAttribute; + selectionMenuHidden(value: boolean): TextAreaAttribute; + minFontSize(value: number | string | Resource): TextAreaAttribute; + maxFontSize(value: number | string | Resource): TextAreaAttribute; + heightAdaptivePolicy(value: TextHeightAdaptivePolicy): TextAreaAttribute; + maxLines(value: number): TextAreaAttribute; + wordBreak(value: WordBreak): TextAreaAttribute; + lineBreakStrategy(strategy: LineBreakStrategy): TextAreaAttribute; + customKeyboard(value: CustomBuilder,options: KeyboardOptions): TextAreaAttribute; + decoration(value: TextDecorationOptions): TextAreaAttribute; + letterSpacing(value: number | string | Resource): TextAreaAttribute; + lineSpacing(value: LengthMetrics): TextAreaAttribute; + lineHeight(value: number | string | Resource): TextAreaAttribute; + type(value: TextAreaType): TextAreaAttribute; + enableAutoFill(value: boolean): TextAreaAttribute; + contentType(contentType: ContentType): TextAreaAttribute; + fontFeature(value: string): TextAreaAttribute; + onWillInsert(callback: Callback): TextAreaAttribute; + onDidInsert(callback: Callback): TextAreaAttribute; + onWillDelete(callback: Callback): TextAreaAttribute; + onDidDelete(callback: Callback): TextAreaAttribute; + editMenuOptions(editMenu: EditMenuOptions): TextAreaAttribute; + enablePreviewText(enable: boolean): TextAreaAttribute; + enableHapticFeedback(isEnabled: boolean): TextAreaAttribute; +} +export interface TextAreaInterface { +} +export interface TextAreaOptions { + placeholder?: ResourceStr + text?: ResourceStr + controller?: TextAreaController +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkTextBaseControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextBaseControllerMaterialized.ts new file mode 100644 index 000000000..9734216f8 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkTextBaseControllerMaterialized.ts @@ -0,0 +1,98 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { SelectionOptions } from "./ArkCommonInterfaces" +import { LayoutManager } from "./ArkLayoutManagerMaterialized" +import { INTERFACE_TextBaseController } from "./SyntheticDeclarations" +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class TextBaseController implements INTERFACE_TextBaseController { + peer?: Finalizable + static ctor(): KPointer { + const retval = NativeModule._TextBaseController_ctor() + return retval + } + constructor() { + const ctorPtr = TextBaseController.ctor() + this.peer = new Finalizable(ctorPtr, TextBaseController.getFinalizer()) + } + static getFinalizer(): KPointer { + return NativeModule._TextBaseController_getFinalizer() + } + setSelection(selectionStart: number, selectionEnd: number, options?: SelectionOptions): void { + const selectionStart_casted = selectionStart as (number) + const selectionEnd_casted = selectionEnd as (number) + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (SelectionOptions) + this.setSelection_serialize(selectionStart_casted, selectionEnd_casted, options_casted) + } + closeSelectionMenu(): void { + this.closeSelectionMenu_serialize() + } + getLayoutManager(): LayoutManager { + return this.getLayoutManager_serialize() + } + private setSelection_serialize(selectionStart: number, selectionEnd: number, options?: SelectionOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeSelectionOptions(options_value) + } + NativeModule._TextBaseController_setSelection(this.peer!.ptr, selectionStart, selectionEnd, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private closeSelectionMenu_serialize(): void { + NativeModule._TextBaseController_closeSelectionMenu(this.peer!.ptr); + } + private getLayoutManager_serialize(): LayoutManager { + const retval = NativeModule._TextBaseController_getLayoutManager(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkTextClock.ts b/arkoala-arkts/arkui/src/generated/ArkTextClock.ts new file mode 100644 index 000000000..cc723c65f --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkTextClock.ts @@ -0,0 +1,172 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkTextClockPeer } from "./peers/ArkTextClockPeer" +import { UseEventsProperties } from "./use_properties" +import { TextClockAttribute, TextClockConfiguration, TextClockOptions, TextClockInterface } from "./ArkTextClockInterfaces" +import { ResourceColor, Resource, Length, ResourceStr } from "./ArkUnitsInterfaces" +import { Color, FontStyle, FontWeight } from "./ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, IMPORT_default_DateTimeOptions_FROM_api_ohos_intl } from "./SyntheticDeclarations" +import { ShadowOptions, Optional, CommonConfiguration } from "./ArkCommonInterfaces" +import { ContentModifier } from "./ConflictedDeclarations" +import { DateTimeOptions } from "./ArkTimePickerInterfaces" +import { TextClockController } from "./ArkTextClockControllerMaterialized" +/** @memo:stable */ +export class ArkTextClockComponent extends ArkCommonMethodComponent { + protected peer?: ArkTextClockPeer + /** @memo */ + setTextClockOptions(options?: TextClockOptions): this { + if (this.checkPriority("setTextClockOptions")) { + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (TextClockOptions) + this.peer?.setTextClockOptionsAttribute(options_casted) + return this + } + return this + } + /** @memo */ + format(value: string): this { + if (this.checkPriority("format")) { + const value_casted = value as (string) + this.peer?.formatAttribute(value_casted) + return this + } + return this + } + /** @memo */ + onDateChange(event: ((value: number) => void)): this { + if (this.checkPriority("onDateChange")) { + const event_casted = event as (((value: number) => void)) + this.peer?.onDateChangeAttribute(event_casted) + return this + } + return this + } + /** @memo */ + fontColor(value: ResourceColor): this { + if (this.checkPriority("fontColor")) { + const value_casted = value as (ResourceColor) + this.peer?.fontColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fontSize(value: Length): this { + if (this.checkPriority("fontSize")) { + const value_casted = value as (Length) + this.peer?.fontSizeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fontStyle(value: FontStyle): this { + if (this.checkPriority("fontStyle")) { + const value_casted = value as (FontStyle) + this.peer?.fontStyleAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fontWeight(value: number | FontWeight | string): this { + if (this.checkPriority("fontWeight")) { + const value_casted = value as (number | FontWeight | string) + this.peer?.fontWeightAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fontFamily(value: ResourceStr): this { + if (this.checkPriority("fontFamily")) { + const value_casted = value as (ResourceStr) + this.peer?.fontFamilyAttribute(value_casted) + return this + } + return this + } + /** @memo */ + textShadow(value: ShadowOptions | Array): this { + if (this.checkPriority("textShadow")) { + const value_casted = value as (ShadowOptions | Array) + this.peer?.textShadowAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fontFeature(value: string): this { + if (this.checkPriority("fontFeature")) { + const value_casted = value as (string) + this.peer?.fontFeatureAttribute(value_casted) + return this + } + return this + } + /** @memo */ + contentModifier(modifier: ContentModifier): this { + if (this.checkPriority("contentModifier")) { + const modifier_casted = modifier as (ContentModifier) + this.peer?.contentModifierAttribute(modifier_casted) + return this + } + return this + } + /** @memo */ + dateTimeOptions(dateTimeOptions: DateTimeOptions | undefined): this { + if (this.checkPriority("dateTimeOptions")) { + const dateTimeOptions_casted = dateTimeOptions as (DateTimeOptions | undefined) + this.peer?.dateTimeOptionsAttribute(dateTimeOptions_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkTextClock( + /** @memo */ + style: ((attributes: ArkTextClockComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + options?: TextClockOptions +) { + const receiver = remember(() => { + return new ArkTextClockComponent() + }) + NodeAttach((): ArkTextClockPeer => ArkTextClockPeer.create(ArkUINodeType.TextClock, receiver), (_: ArkTextClockPeer) => { + receiver.setTextClockOptions(options) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkTextClockControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextClockControllerMaterialized.ts new file mode 100644 index 000000000..d5a03acff --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkTextClockControllerMaterialized.ts @@ -0,0 +1,71 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class TextClockController { + peer?: Finalizable + static ctor(): KPointer { + const retval = NativeModule._TextClockController_ctor() + return retval + } + constructor() { + const ctorPtr = TextClockController.ctor() + this.peer = new Finalizable(ctorPtr, TextClockController.getFinalizer()) + } + static getFinalizer(): KPointer { + return NativeModule._TextClockController_getFinalizer() + } + start(): void { + this.start_serialize() + } + stop(): void { + this.stop_serialize() + } + private start_serialize(): void { + NativeModule._TextClockController_start(this.peer!.ptr); + } + private stop_serialize(): void { + NativeModule._TextClockController_stop(this.peer!.ptr); + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkTextClockInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkTextClockInterfaces.ts new file mode 100644 index 000000000..f59350161 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkTextClockInterfaces.ts @@ -0,0 +1,34 @@ +import { ResourceColor, Resource, Length, ResourceStr } from "./ArkUnitsInterfaces" +import { Color, FontStyle, FontWeight } from "./ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, IMPORT_default_DateTimeOptions_FROM_api_ohos_intl } from "./SyntheticDeclarations" +import { ShadowOptions, Optional, CommonConfiguration } from "./ArkCommonInterfaces" +import { ContentModifier } from "./ConflictedDeclarations" +import { DateTimeOptions } from "./ArkTimePickerInterfaces" +import { TextClockController } from "./ArkTextClockControllerMaterialized" +import { KInt } from "@koalaui/interop" +export interface TextClockAttribute { + format(value: string): TextClockAttribute; + onDateChange(event: ((value: number) => void)): TextClockAttribute; + fontColor(value: ResourceColor): TextClockAttribute; + fontSize(value: Length): TextClockAttribute; + fontStyle(value: FontStyle): TextClockAttribute; + fontWeight(value: number | FontWeight | string): TextClockAttribute; + fontFamily(value: ResourceStr): TextClockAttribute; + textShadow(value: ShadowOptions | Array): TextClockAttribute; + fontFeature(value: string): TextClockAttribute; + contentModifier(modifier: ContentModifier): TextClockAttribute; + dateTimeOptions(dateTimeOptions: DateTimeOptions | undefined): TextClockAttribute; +} +export interface TextClockInterface { +} +export interface TextClockConfiguration { + enabled: boolean + contentModifier: ContentModifier + timeZoneOffset: number + started: boolean + timeValue: number +} +export interface TextClockOptions { + timeZoneOffset?: number + controller?: TextClockController +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkTextCommonInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkTextCommonInterfaces.ts new file mode 100644 index 000000000..c9dd9cb62 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkTextCommonInterfaces.ts @@ -0,0 +1,274 @@ +import { TextDecorationType, Color, TextDecorationStyle } from "./ArkEnumsInterfaces" +import { ResourceColor, Resource, ResourceStr, Length } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, IMPORT_default_Affinity_FROM_api_ohos_graphics_text, IMPORT_default_LineMetrics_FROM_api_ohos_graphics_text, IMPORT_default_RectWidthStyle_FROM_api_ohos_graphics_text, IMPORT_default_RectHeightStyle_FROM_api_ohos_graphics_text, IMPORT_default_TextBox_FROM_api_ohos_graphics_text } from "./SyntheticDeclarations" +import { DecorationStyleInterface } from "./ArkStyledStringInterfaces" +import { Callback } from "./ArkCommonInterfaces" +import { StyledString } from "./ArkStyledStringMaterialized" +import { KInt } from "@koalaui/interop" +/** + * Defines menu type. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 13 + */ +export class MenuType { + /** + * Selection menu. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 13 + */ + static readonly SELECTION_MENU: MenuType = new MenuType(0) + /** + * Preview menu, only for image. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 13 + */ + static readonly PREVIEW_MENU: MenuType = new MenuType(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): MenuType { + if ((arg0) == (MenuType.SELECTION_MENU.value)) { + return MenuType.SELECTION_MENU + } + if ((arg0) == (MenuType.PREVIEW_MENU.value)) { + return MenuType.PREVIEW_MENU + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/* + * Copyright (c) 2021-2023 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +/** + * @file + * @kit ArkUI + */ +/** + * Defines the text data detector type. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 11 + */ +/** + * Defines the text data detector type. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ +export class TextDataDetectorType { + /** + * Detector type phone number. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 11 + */ +/** + * Detector type phone number. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly PHONE_NUMBER: TextDataDetectorType = new TextDataDetectorType(0) + /** + * Detector type URL. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 11 + */ +/** + * Detector type URL. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly URL: TextDataDetectorType = new TextDataDetectorType(1) + /** + * Detector type email. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 11 + */ +/** + * Detector type email. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly EMAIL: TextDataDetectorType = new TextDataDetectorType(2) + /** + * Detector type address. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 11 + */ +/** + * Detector type address. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly ADDRESS: TextDataDetectorType = new TextDataDetectorType(3) + /** + * Detector type datetime. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly DATE_TIME: TextDataDetectorType = new TextDataDetectorType(4) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): TextDataDetectorType { + if ((arg0) == (TextDataDetectorType.PHONE_NUMBER.value)) { + return TextDataDetectorType.PHONE_NUMBER + } + if ((arg0) == (TextDataDetectorType.URL.value)) { + return TextDataDetectorType.URL + } + if ((arg0) == (TextDataDetectorType.EMAIL.value)) { + return TextDataDetectorType.EMAIL + } + if ((arg0) == (TextDataDetectorType.ADDRESS.value)) { + return TextDataDetectorType.ADDRESS + } + if ((arg0) == (TextDataDetectorType.DATE_TIME.value)) { + return TextDataDetectorType.DATE_TIME + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Defines delete text direction. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ +export class TextDeleteDirection { + /** + * Delete backward. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly BACKWARD: TextDeleteDirection = new TextDeleteDirection(0) + /** + * Delete forward. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly FORWARD: TextDeleteDirection = new TextDeleteDirection(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): TextDeleteDirection { + if ((arg0) == (TextDeleteDirection.BACKWARD.value)) { + return TextDeleteDirection.BACKWARD + } + if ((arg0) == (TextDeleteDirection.FORWARD.value)) { + return TextDeleteDirection.FORWARD + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +export interface DecorationStyleResult { + type: TextDecorationType + color: ResourceColor + style?: TextDecorationStyle +} +export interface TextRange { + start?: number + end?: number +} +export interface TextDataDetectorConfig { + types: TextDataDetectorType[] + onDetectResultUpdate?: ((result: string) => void) + color?: ResourceColor + decoration?: DecorationStyleInterface +} +export declare type OnDidChangeCallback = ((rangeBefore: TextRange, rangeAfter: TextRange) => void) +export interface TextMenuItem { + content: ResourceStr + icon?: ResourceStr + id: TextMenuItemId +} +export declare class TextMenuItemId { +} +export interface PositionWithAffinity { + position: number + affinity: Affinity +} +export declare type Affinity = IMPORT_default_Affinity_FROM_api_ohos_graphics_text +export declare type LineMetrics = IMPORT_default_LineMetrics_FROM_api_ohos_graphics_text +export declare type RectWidthStyle = IMPORT_default_RectWidthStyle_FROM_api_ohos_graphics_text +export declare type RectHeightStyle = IMPORT_default_RectHeightStyle_FROM_api_ohos_graphics_text +export declare type TextBox = IMPORT_default_TextBox_FROM_api_ohos_graphics_text +export interface PreviewText { + offset: number + value: string +} +export interface StyledStringChangedListener { + onWillChange?: Callback + onDidChange?: OnDidChangeCallback +} +export interface StyledStringChangeValue { + range: TextRange + replacementString: StyledString + previewText?: StyledString +} +export interface CaretStyle { + width?: Length + color?: ResourceColor +} +export declare type EditableTextOnChangeCallback = ((value: string, previewText: PreviewText|undefined) => void) +export interface InsertValue { + insertOffset: number + insertValue: string +} +export interface DeleteValue { + deleteOffset: number + direction: TextDeleteDirection + deleteValue: string +} +export interface FontSettingOptions { + enableVariableFontWeight?: boolean +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkTextContentControllerBaseMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextContentControllerBaseMaterialized.ts new file mode 100644 index 000000000..fa65d4590 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkTextContentControllerBaseMaterialized.ts @@ -0,0 +1,81 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { CaretOffset, RectResult } from "./ArkCommonInterfaces" +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class TextContentControllerBase { + peer?: Finalizable + static ctor(): KPointer { + const retval = NativeModule._TextContentControllerBase_ctor() + return retval + } + constructor() { + const ctorPtr = TextContentControllerBase.ctor() + this.peer = new Finalizable(ctorPtr, TextContentControllerBase.getFinalizer()) + } + static getFinalizer(): KPointer { + return NativeModule._TextContentControllerBase_getFinalizer() + } + getCaretOffset(): CaretOffset { + return this.getCaretOffset_serialize() + } + getTextContentRect(): RectResult { + return this.getTextContentRect_serialize() + } + getTextContentLineCount(): number { + return this.getTextContentLineCount_serialize() + } + private getCaretOffset_serialize(): CaretOffset { + const retval = NativeModule._TextContentControllerBase_getCaretOffset(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private getTextContentRect_serialize(): RectResult { + const retval = NativeModule._TextContentControllerBase_getTextContentRect(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private getTextContentLineCount_serialize(): number { + const retval = NativeModule._TextContentControllerBase_getTextContentLineCount(this.peer!.ptr) + return retval + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkTextEditControllerExMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextEditControllerExMaterialized.ts new file mode 100644 index 000000000..d350b2ae4 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkTextEditControllerExMaterialized.ts @@ -0,0 +1,100 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { TextBaseController } from "./ArkTextBaseControllerMaterialized" +import { SelectionOptions } from "./ArkCommonInterfaces" +import { LayoutManager } from "./ArkLayoutManagerMaterialized" +import { PreviewText } from "./ArkTextCommonInterfaces" +import { INTERFACE_TextEditControllerEx } from "./SyntheticDeclarations" +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class TextEditControllerEx extends TextBaseController implements INTERFACE_TextEditControllerEx { + peer?: Finalizable + static ctor(): KPointer { + const retval = NativeModule._TextEditControllerEx_ctor() + return retval + } + constructor() { + super(); + const ctorPtr = TextEditControllerEx.ctor() + this.peer = new Finalizable(ctorPtr, TextEditControllerEx.getFinalizer()) + } + static getFinalizer(): KPointer { + return NativeModule._TextEditControllerEx_getFinalizer() + } + isEditing(): boolean { + return this.isEditing_serialize() + } + stopEditing(): void { + this.stopEditing_serialize() + } + setCaretOffset(offset: number): boolean { + const offset_casted = offset as (number) + return this.setCaretOffset_serialize(offset_casted) + } + getCaretOffset(): number { + return this.getCaretOffset_serialize() + } + getPreviewText(): PreviewText { + return this.getPreviewText_serialize() + } + private isEditing_serialize(): boolean { + const retval = NativeModule._TextEditControllerEx_isEditing(this.peer!.ptr) + return retval + } + private stopEditing_serialize(): void { + NativeModule._TextEditControllerEx_stopEditing(this.peer!.ptr); + } + private setCaretOffset_serialize(offset: number): boolean { + const retval = NativeModule._TextEditControllerEx_setCaretOffset(this.peer!.ptr, offset) + return retval + } + private getCaretOffset_serialize(): number { + const retval = NativeModule._TextEditControllerEx_getCaretOffset(this.peer!.ptr) + return retval + } + private getPreviewText_serialize(): PreviewText { + const retval = NativeModule._TextEditControllerEx_getPreviewText(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkTextInputControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextInputControllerMaterialized.ts new file mode 100644 index 000000000..0e1d7aec7 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkTextInputControllerMaterialized.ts @@ -0,0 +1,98 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { TextContentControllerBase } from "./ArkTextContentControllerBaseMaterialized" +import { CaretOffset, RectResult, SelectionOptions } from "./ArkCommonInterfaces" +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class TextInputController extends TextContentControllerBase { + peer?: Finalizable + static ctor(): KPointer { + const retval = NativeModule._TextInputController_ctor() + return retval + } + constructor() { + super(); + const ctorPtr = TextInputController.ctor() + this.peer = new Finalizable(ctorPtr, TextInputController.getFinalizer()) + } + static getFinalizer(): KPointer { + return NativeModule._TextInputController_getFinalizer() + } + caretPosition(value: number): void { + const value_casted = value as (number) + this.caretPosition_serialize(value_casted) + } + setTextSelection(selectionStart: number, selectionEnd: number, options?: SelectionOptions): void { + const selectionStart_casted = selectionStart as (number) + const selectionEnd_casted = selectionEnd as (number) + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (SelectionOptions) + this.setTextSelection_serialize(selectionStart_casted, selectionEnd_casted, options_casted) + } + stopEditing(): void { + this.stopEditing_serialize() + } + private caretPosition_serialize(value: number): void { + NativeModule._TextInputController_caretPosition(this.peer!.ptr, value); + } + private setTextSelection_serialize(selectionStart: number, selectionEnd: number, options?: SelectionOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeSelectionOptions(options_value) + } + NativeModule._TextInputController_setTextSelection(this.peer!.ptr, selectionStart, selectionEnd, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private stopEditing_serialize(): void { + NativeModule._TextInputController_stopEditing(this.peer!.ptr); + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkTextTimer.ts b/arkoala-arkts/arkui/src/generated/ArkTextTimer.ts new file mode 100644 index 000000000..40062c5d6 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkTextTimer.ts @@ -0,0 +1,153 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkTextTimerPeer } from "./peers/ArkTextTimerPeer" +import { UseEventsProperties } from "./use_properties" +import { TextTimerAttribute, TextTimerConfiguration, TextTimerOptions, TextTimerInterface } from "./ArkTextTimerInterfaces" +import { ResourceColor, Resource, Length, ResourceStr } from "./ArkUnitsInterfaces" +import { Color, FontStyle, FontWeight } from "./ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource } from "./SyntheticDeclarations" +import { ShadowOptions, CommonConfiguration } from "./ArkCommonInterfaces" +import { ContentModifier } from "./ConflictedDeclarations" +import { TextTimerController } from "./ArkTextTimerControllerMaterialized" +/** @memo:stable */ +export class ArkTextTimerComponent extends ArkCommonMethodComponent { + protected peer?: ArkTextTimerPeer + /** @memo */ + setTextTimerOptions(options?: TextTimerOptions): this { + if (this.checkPriority("setTextTimerOptions")) { + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (TextTimerOptions) + this.peer?.setTextTimerOptionsAttribute(options_casted) + return this + } + return this + } + /** @memo */ + format(value: string): this { + if (this.checkPriority("format")) { + const value_casted = value as (string) + this.peer?.formatAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fontColor(value: ResourceColor): this { + if (this.checkPriority("fontColor")) { + const value_casted = value as (ResourceColor) + this.peer?.fontColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fontSize(value: Length): this { + if (this.checkPriority("fontSize")) { + const value_casted = value as (Length) + this.peer?.fontSizeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fontStyle(value: FontStyle): this { + if (this.checkPriority("fontStyle")) { + const value_casted = value as (FontStyle) + this.peer?.fontStyleAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fontWeight(value: number | FontWeight | string): this { + if (this.checkPriority("fontWeight")) { + const value_casted = value as (number | FontWeight | string) + this.peer?.fontWeightAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fontFamily(value: ResourceStr): this { + if (this.checkPriority("fontFamily")) { + const value_casted = value as (ResourceStr) + this.peer?.fontFamilyAttribute(value_casted) + return this + } + return this + } + /** @memo */ + onTimer(event: ((utc: number, elapsedTime: number) => void)): this { + if (this.checkPriority("onTimer")) { + const event_casted = event as (((utc: number, elapsedTime: number) => void)) + this.peer?.onTimerAttribute(event_casted) + return this + } + return this + } + /** @memo */ + textShadow(value: ShadowOptions | Array): this { + if (this.checkPriority("textShadow")) { + const value_casted = value as (ShadowOptions | Array) + this.peer?.textShadowAttribute(value_casted) + return this + } + return this + } + /** @memo */ + contentModifier(modifier: ContentModifier): this { + if (this.checkPriority("contentModifier")) { + const modifier_casted = modifier as (ContentModifier) + this.peer?.contentModifierAttribute(modifier_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkTextTimer( + /** @memo */ + style: ((attributes: ArkTextTimerComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + options?: TextTimerOptions +) { + const receiver = remember(() => { + return new ArkTextTimerComponent() + }) + NodeAttach((): ArkTextTimerPeer => ArkTextTimerPeer.create(ArkUINodeType.TextTimer, receiver), (_: ArkTextTimerPeer) => { + receiver.setTextTimerOptions(options) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkTextTimerControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextTimerControllerMaterialized.ts new file mode 100644 index 000000000..641e1b994 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkTextTimerControllerMaterialized.ts @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class TextTimerController { + peer?: Finalizable + static ctor(): KPointer { + const retval = NativeModule._TextTimerController_ctor() + return retval + } + constructor() { + const ctorPtr = TextTimerController.ctor() + this.peer = new Finalizable(ctorPtr, TextTimerController.getFinalizer()) + } + static getFinalizer(): KPointer { + return NativeModule._TextTimerController_getFinalizer() + } + start(): void { + this.start_serialize() + } + pause(): void { + this.pause_serialize() + } + reset(): void { + this.reset_serialize() + } + private start_serialize(): void { + NativeModule._TextTimerController_start(this.peer!.ptr); + } + private pause_serialize(): void { + NativeModule._TextTimerController_pause(this.peer!.ptr); + } + private reset_serialize(): void { + NativeModule._TextTimerController_reset(this.peer!.ptr); + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkTextTimerInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkTextTimerInterfaces.ts new file mode 100644 index 000000000..fe1c1f060 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkTextTimerInterfaces.ts @@ -0,0 +1,33 @@ +import { ResourceColor, Resource, Length, ResourceStr } from "./ArkUnitsInterfaces" +import { Color, FontStyle, FontWeight } from "./ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource } from "./SyntheticDeclarations" +import { ShadowOptions, CommonConfiguration } from "./ArkCommonInterfaces" +import { ContentModifier } from "./ConflictedDeclarations" +import { TextTimerController } from "./ArkTextTimerControllerMaterialized" +import { KInt } from "@koalaui/interop" +export interface TextTimerAttribute { + format(value: string): TextTimerAttribute; + fontColor(value: ResourceColor): TextTimerAttribute; + fontSize(value: Length): TextTimerAttribute; + fontStyle(value: FontStyle): TextTimerAttribute; + fontWeight(value: number | FontWeight | string): TextTimerAttribute; + fontFamily(value: ResourceStr): TextTimerAttribute; + onTimer(event: ((utc: number, elapsedTime: number) => void)): TextTimerAttribute; + textShadow(value: ShadowOptions | Array): TextTimerAttribute; + contentModifier(modifier: ContentModifier): TextTimerAttribute; +} +export interface TextTimerInterface { +} +export interface TextTimerConfiguration { + enabled: boolean + contentModifier: ContentModifier + count: number + isCountDown: boolean + started: boolean + elapsedTime: number +} +export interface TextTimerOptions { + isCountDown?: boolean + count?: number + controller?: TextTimerController +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkTimePicker.ts b/arkoala-arkts/arkui/src/generated/ArkTimePicker.ts new file mode 100644 index 000000000..a8496a535 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkTimePicker.ts @@ -0,0 +1,140 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkTimePickerPeer } from "./peers/ArkTimePickerPeer" +import { UseEventsProperties } from "./use_properties" +import { TimePickerAttribute, DateTimeOptions, TimePickerResult, TimePickerOptions, TimePickerInterface, TimePickerFormat } from "./ArkTimePickerInterfaces" +import { PickerTextStyle } from "./ArkCommonInterfaces" +import { IMPORT_default_DateTimeOptions_FROM_api_ohos_intl } from "./SyntheticDeclarations" +/** @memo:stable */ +export class ArkTimePickerComponent extends ArkCommonMethodComponent { + protected peer?: ArkTimePickerPeer + /** @memo */ + setTimePickerOptions(options?: TimePickerOptions): this { + if (this.checkPriority("setTimePickerOptions")) { + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (TimePickerOptions) + this.peer?.setTimePickerOptionsAttribute(options_casted) + return this + } + return this + } + /** @memo */ + useMilitaryTime(value: boolean): this { + if (this.checkPriority("useMilitaryTime")) { + const value_casted = value as (boolean) + this.peer?.useMilitaryTimeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + loop(value: boolean): this { + if (this.checkPriority("loop")) { + const value_casted = value as (boolean) + this.peer?.loopAttribute(value_casted) + return this + } + return this + } + /** @memo */ + disappearTextStyle(value: PickerTextStyle): this { + if (this.checkPriority("disappearTextStyle")) { + const value_casted = value as (PickerTextStyle) + this.peer?.disappearTextStyleAttribute(value_casted) + return this + } + return this + } + /** @memo */ + textStyle(value: PickerTextStyle): this { + if (this.checkPriority("textStyle")) { + const value_casted = value as (PickerTextStyle) + this.peer?.textStyleAttribute(value_casted) + return this + } + return this + } + /** @memo */ + selectedTextStyle(value: PickerTextStyle): this { + if (this.checkPriority("selectedTextStyle")) { + const value_casted = value as (PickerTextStyle) + this.peer?.selectedTextStyleAttribute(value_casted) + return this + } + return this + } + /** @memo */ + dateTimeOptions(value: DateTimeOptions): this { + if (this.checkPriority("dateTimeOptions")) { + const value_casted = value as (DateTimeOptions) + this.peer?.dateTimeOptionsAttribute(value_casted) + return this + } + return this + } + /** @memo */ + onChange(callback: ((value: TimePickerResult) => void)): this { + if (this.checkPriority("onChange")) { + const callback_casted = callback as (((value: TimePickerResult) => void)) + this.peer?.onChangeAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + enableHapticFeedback(enable: boolean): this { + if (this.checkPriority("enableHapticFeedback")) { + const enable_casted = enable as (boolean) + this.peer?.enableHapticFeedbackAttribute(enable_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkTimePicker( + /** @memo */ + style: ((attributes: ArkTimePickerComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + options?: TimePickerOptions +) { + const receiver = remember(() => { + return new ArkTimePickerComponent() + }) + NodeAttach((): ArkTimePickerPeer => ArkTimePickerPeer.create(ArkUINodeType.TimePicker, receiver), (_: ArkTimePickerPeer) => { + receiver.setTimePickerOptions(options) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkTimePickerInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkTimePickerInterfaces.ts new file mode 100644 index 000000000..efb0199be --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkTimePickerInterfaces.ts @@ -0,0 +1,83 @@ +import { PickerTextStyle } from "./ArkCommonInterfaces" +import { IMPORT_default_DateTimeOptions_FROM_api_ohos_intl } from "./SyntheticDeclarations" +import { KInt } from "@koalaui/interop" +/** + * Type of the TimePicker that need to be displayed. + * @enum {number} + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * Type of the TimePicker that need to be displayed. + * @enum {number} + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ +export class TimePickerFormat { + /** + * Hour and minute. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * Hour and minute. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly HOUR_MINUTE: TimePickerFormat = new TimePickerFormat(0) + /** + * Hour and minute and second + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * Hour and minute and second + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly HOUR_MINUTE_SECOND: TimePickerFormat = new TimePickerFormat(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): TimePickerFormat { + if ((arg0) == (TimePickerFormat.HOUR_MINUTE.value)) { + return TimePickerFormat.HOUR_MINUTE + } + if ((arg0) == (TimePickerFormat.HOUR_MINUTE_SECOND.value)) { + return TimePickerFormat.HOUR_MINUTE_SECOND + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +export interface TimePickerAttribute { + useMilitaryTime(value: boolean): TimePickerAttribute; + loop(value: boolean): TimePickerAttribute; + disappearTextStyle(value: PickerTextStyle): TimePickerAttribute; + textStyle(value: PickerTextStyle): TimePickerAttribute; + selectedTextStyle(value: PickerTextStyle): TimePickerAttribute; + dateTimeOptions(value: DateTimeOptions): TimePickerAttribute; + onChange(callback: ((value: TimePickerResult) => void)): TimePickerAttribute; + enableHapticFeedback(enable: boolean): TimePickerAttribute; +} +export interface TimePickerInterface { +} +export declare type DateTimeOptions = IMPORT_default_DateTimeOptions_FROM_api_ohos_intl +export interface TimePickerResult { + hour: number + minute: number + second: number +} +export interface TimePickerOptions { + selected?: Date + format?: TimePickerFormat +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkToggle.ts b/arkoala-arkts/arkui/src/generated/ArkToggle.ts new file mode 100644 index 000000000..4294b6d26 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkToggle.ts @@ -0,0 +1,113 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkTogglePeer } from "./peers/ArkTogglePeer" +import { UseEventsProperties } from "./use_properties" +import { ToggleAttribute, ToggleConfiguration, SwitchStyle, ToggleOptions, ToggleInterface, ToggleType } from "./ArkToggleInterfaces" +import { ContentModifier } from "./ConflictedDeclarations" +import { ResourceColor, Resource } from "./ArkUnitsInterfaces" +import { Color } from "./ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource } from "./SyntheticDeclarations" +import { CommonConfiguration, Callback } from "./ArkCommonInterfaces" +/** @memo:stable */ +export class ArkToggleComponent extends ArkCommonMethodComponent { + protected peer?: ArkTogglePeer + /** @memo */ + setToggleOptions(options: ToggleOptions): this { + if (this.checkPriority("setToggleOptions")) { + const options_casted = options as (ToggleOptions) + this.peer?.setToggleOptionsAttribute(options_casted) + return this + } + return this + } + /** @memo */ + onChange(callback: ((isOn: boolean) => void)): this { + if (this.checkPriority("onChange")) { + const callback_casted = callback as (((isOn: boolean) => void)) + this.peer?.onChangeAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + contentModifier(modifier: ContentModifier): this { + if (this.checkPriority("contentModifier")) { + const modifier_casted = modifier as (ContentModifier) + this.peer?.contentModifierAttribute(modifier_casted) + return this + } + return this + } + /** @memo */ + selectedColor(value: ResourceColor): this { + if (this.checkPriority("selectedColor")) { + const value_casted = value as (ResourceColor) + this.peer?.selectedColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + switchPointColor(color: ResourceColor): this { + if (this.checkPriority("switchPointColor")) { + const color_casted = color as (ResourceColor) + this.peer?.switchPointColorAttribute(color_casted) + return this + } + return this + } + /** @memo */ + switchStyle(value: SwitchStyle): this { + if (this.checkPriority("switchStyle")) { + const value_casted = value as (SwitchStyle) + this.peer?.switchStyleAttribute(value_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkToggle( + /** @memo */ + style: ((attributes: ArkToggleComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + options: ToggleOptions +) { + const receiver = remember(() => { + return new ArkToggleComponent() + }) + NodeAttach((): ArkTogglePeer => ArkTogglePeer.create(ArkUINodeType.Toggle, receiver), (_: ArkTogglePeer) => { + receiver.setToggleOptions(options) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkToggleInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkToggleInterfaces.ts new file mode 100644 index 000000000..d563711f8 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkToggleInterfaces.ts @@ -0,0 +1,194 @@ +import { ContentModifier } from "./ConflictedDeclarations" +import { ResourceColor, Resource } from "./ArkUnitsInterfaces" +import { Color } from "./ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource } from "./SyntheticDeclarations" +import { CommonConfiguration, Callback } from "./ArkCommonInterfaces" +import { KInt } from "@koalaui/interop" +/* + * Copyright (c) 2021-2023 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +/** + * @file + * @kit ArkUI + */ +/** + * Declare the type of status button + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * Declare the type of status button + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Declare the type of status button + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Declare the type of status button + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ +export class ToggleType { + /** + * Checkbox + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * Checkbox + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Checkbox + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Checkbox + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Checkbox: ToggleType = new ToggleType(0) + /** + * Switch + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * Switch + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Switch + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Switch + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Switch: ToggleType = new ToggleType(1) + /** + * Button + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * Button + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Button + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Button + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Button: ToggleType = new ToggleType(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): ToggleType { + if ((arg0) == (ToggleType.Checkbox.value)) { + return ToggleType.Checkbox + } + if ((arg0) == (ToggleType.Switch.value)) { + return ToggleType.Switch + } + if ((arg0) == (ToggleType.Button.value)) { + return ToggleType.Button + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +export interface ToggleAttribute { + onChange(callback: ((isOn: boolean) => void)): ToggleAttribute; + contentModifier(modifier: ContentModifier): ToggleAttribute; + selectedColor(value: ResourceColor): ToggleAttribute; + switchPointColor(color: ResourceColor): ToggleAttribute; + switchStyle(value: SwitchStyle): ToggleAttribute; +} +export interface ToggleInterface { +} +export interface ToggleConfiguration { + enabled: boolean + contentModifier: ContentModifier + isOn: boolean + triggerChange: Callback +} +export interface SwitchStyle { + pointRadius?: number | Resource + unselectedColor?: ResourceColor + pointColor?: ResourceColor + trackBorderRadius?: number | Resource +} +export interface ToggleOptions { + type: ToggleType + isOn?: boolean +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkVideo.ts b/arkoala-arkts/arkui/src/generated/ArkVideo.ts new file mode 100644 index 000000000..8b00840e2 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkVideo.ts @@ -0,0 +1,222 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkVideoPeer } from "./peers/ArkVideoPeer" +import { UseEventsProperties } from "./use_properties" +import { VideoAttribute, VideoOptions, VideoInterface, PlaybackSpeed } from "./ArkVideoInterfaces" +import { ImageFit } from "./ArkEnumsInterfaces" +import { LITERAL_FullscreenBoolean, LITERAL_DurationNumber, LITERAL_TimeNumber, IMPORT_Resource_FROM_api_global_resource, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image } from "./SyntheticDeclarations" +import { Callback, PixelMap } from "./ArkCommonInterfaces" +import { ImageAnalyzerConfig, ImageAIOptions } from "./ArkImageCommonInterfaces" +import { Resource } from "./ArkUnitsInterfaces" +import { VideoController } from "./ArkVideoControllerMaterialized" +/** @memo:stable */ +export class ArkVideoComponent extends ArkCommonMethodComponent { + protected peer?: ArkVideoPeer + /** @memo */ + setVideoOptions(value: VideoOptions): this { + if (this.checkPriority("setVideoOptions")) { + const value_casted = value as (VideoOptions) + this.peer?.setVideoOptionsAttribute(value_casted) + return this + } + return this + } + /** @memo */ + muted(value: boolean): this { + if (this.checkPriority("muted")) { + const value_casted = value as (boolean) + this.peer?.mutedAttribute(value_casted) + return this + } + return this + } + /** @memo */ + autoPlay(value: boolean): this { + if (this.checkPriority("autoPlay")) { + const value_casted = value as (boolean) + this.peer?.autoPlayAttribute(value_casted) + return this + } + return this + } + /** @memo */ + controls(value: boolean): this { + if (this.checkPriority("controls")) { + const value_casted = value as (boolean) + this.peer?.controlsAttribute(value_casted) + return this + } + return this + } + /** @memo */ + loop(value: boolean): this { + if (this.checkPriority("loop")) { + const value_casted = value as (boolean) + this.peer?.loopAttribute(value_casted) + return this + } + return this + } + /** @memo */ + objectFit(value: ImageFit): this { + if (this.checkPriority("objectFit")) { + const value_casted = value as (ImageFit) + this.peer?.objectFitAttribute(value_casted) + return this + } + return this + } + /** @memo */ + onStart(event: (() => void)): this { + if (this.checkPriority("onStart")) { + const event_casted = event as ((() => void)) + this.peer?.onStartAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onPause(event: (() => void)): this { + if (this.checkPriority("onPause")) { + const event_casted = event as ((() => void)) + this.peer?.onPauseAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onFinish(event: (() => void)): this { + if (this.checkPriority("onFinish")) { + const event_casted = event as ((() => void)) + this.peer?.onFinishAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onFullscreenChange(callback: ((event: LITERAL_FullscreenBoolean) => void)): this { + if (this.checkPriority("onFullscreenChange")) { + const callback_casted = callback as (((event: LITERAL_FullscreenBoolean) => void)) + this.peer?.onFullscreenChangeAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onPrepared(callback: ((event: LITERAL_DurationNumber) => void)): this { + if (this.checkPriority("onPrepared")) { + const callback_casted = callback as (((event: LITERAL_DurationNumber) => void)) + this.peer?.onPreparedAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onSeeking(callback: ((event: LITERAL_TimeNumber) => void)): this { + if (this.checkPriority("onSeeking")) { + const callback_casted = callback as (((event: LITERAL_TimeNumber) => void)) + this.peer?.onSeekingAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onSeeked(callback: ((event: LITERAL_TimeNumber) => void)): this { + if (this.checkPriority("onSeeked")) { + const callback_casted = callback as (((event: LITERAL_TimeNumber) => void)) + this.peer?.onSeekedAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onUpdate(callback: ((event: LITERAL_TimeNumber) => void)): this { + if (this.checkPriority("onUpdate")) { + const callback_casted = callback as (((event: LITERAL_TimeNumber) => void)) + this.peer?.onUpdateAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onError(event: (() => void)): this { + if (this.checkPriority("onError")) { + const event_casted = event as ((() => void)) + this.peer?.onErrorAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onStop(event: Callback): this { + if (this.checkPriority("onStop")) { + const event_casted = event as (Callback) + this.peer?.onStopAttribute(event_casted) + return this + } + return this + } + /** @memo */ + enableAnalyzer(enable: boolean): this { + if (this.checkPriority("enableAnalyzer")) { + const enable_casted = enable as (boolean) + this.peer?.enableAnalyzerAttribute(enable_casted) + return this + } + return this + } + /** @memo */ + analyzerConfig(config: ImageAnalyzerConfig): this { + if (this.checkPriority("analyzerConfig")) { + const config_casted = config as (ImageAnalyzerConfig) + this.peer?.analyzerConfigAttribute(config_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkVideo( + /** @memo */ + style: ((attributes: ArkVideoComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + value: VideoOptions +) { + const receiver = remember(() => { + return new ArkVideoComponent() + }) + NodeAttach((): ArkVideoPeer => ArkVideoPeer.create(ArkUINodeType.Video, receiver), (_: ArkVideoPeer) => { + receiver.setVideoOptions(value) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkVideoControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkVideoControllerMaterialized.ts new file mode 100644 index 000000000..b4833351a --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkVideoControllerMaterialized.ts @@ -0,0 +1,120 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { SeekMode } from "./ArkVideoInterfaces" +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class VideoController { + peer?: Finalizable + static ctor(): KPointer { + const retval = NativeModule._VideoController_ctor() + return retval + } + constructor() { + const ctorPtr = VideoController.ctor() + this.peer = new Finalizable(ctorPtr, VideoController.getFinalizer()) + } + static getFinalizer(): KPointer { + return NativeModule._VideoController_getFinalizer() + } + start(): void { + this.start_serialize() + } + pause(): void { + this.pause_serialize() + } + stop(): void { + this.stop_serialize() + } + setCurrentTime(value: number | number, seekMode?: SeekMode): void { + const value_type = runtimeType(value) + const seekMode_type = runtimeType(seekMode) + if ((((RuntimeType.NUMBER == value_type))) && (((seekMode instanceof SeekMode)))) { + const value_casted = value as (number) + if ((seekMode) == (undefined)) { + throw new Error("Arg 'seekMode' is null"); + } + const seekMode_casted = seekMode as (SeekMode) + this.setCurrentTime1_serialize(value_casted, seekMode_casted) + } + if ((((RuntimeType.NUMBER == value_type))) && (((RuntimeType.UNDEFINED == seekMode_type)))) { + const value_casted = value as (number) + this.setCurrentTime0_serialize(value_casted) + } + throw new Error("Can not select appropriate overload") + } + requestFullscreen(value: boolean): void { + const value_casted = value as (boolean) + this.requestFullscreen_serialize(value_casted) + } + exitFullscreen(): void { + this.exitFullscreen_serialize() + } + reset(): void { + this.reset_serialize() + } + private start_serialize(): void { + NativeModule._VideoController_start(this.peer!.ptr); + } + private pause_serialize(): void { + NativeModule._VideoController_pause(this.peer!.ptr); + } + private stop_serialize(): void { + NativeModule._VideoController_stop(this.peer!.ptr); + } + private setCurrentTime0_serialize(value: number): void { + NativeModule._VideoController_setCurrentTime0(this.peer!.ptr, value); + } + private requestFullscreen_serialize(value: boolean): void { + NativeModule._VideoController_requestFullscreen(this.peer!.ptr, value ? 1 : 0); + } + private exitFullscreen_serialize(): void { + NativeModule._VideoController_exitFullscreen(this.peer!.ptr); + } + private setCurrentTime1_serialize(value: number, seekMode: SeekMode): void { + NativeModule._VideoController_setCurrentTime1(this.peer!.ptr, value, (seekMode.value as int32)); + } + private reset_serialize(): void { + NativeModule._VideoController_reset(this.peer!.ptr); + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkVideoInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkVideoInterfaces.ts new file mode 100644 index 000000000..f8b1e9a27 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkVideoInterfaces.ts @@ -0,0 +1,344 @@ +import { ImageFit } from "./ArkEnumsInterfaces" +import { LITERAL_FullscreenBoolean, LITERAL_DurationNumber, LITERAL_TimeNumber, IMPORT_Resource_FROM_api_global_resource, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image } from "./SyntheticDeclarations" +import { Callback, PixelMap } from "./ArkCommonInterfaces" +import { ImageAnalyzerConfig, ImageAIOptions } from "./ArkImageCommonInterfaces" +import { Resource } from "./ArkUnitsInterfaces" +import { VideoController } from "./ArkVideoControllerMaterialized" +import { KInt } from "@koalaui/interop" +/** + * playback speed. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * playback speed. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * playback speed. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class PlaybackSpeed { + /** + * 0.75x speed playback. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * 0.75x speed playback. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * 0.75x speed playback. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Speed_Forward_0_75_X: PlaybackSpeed = new PlaybackSpeed(0) + /** + * 1.00x speed playback. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * 1.00x speed playback. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * 1.00x speed playback. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Speed_Forward_1_00_X: PlaybackSpeed = new PlaybackSpeed(1) + /** + * 1.25x speed playback. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * 1.25x speed playback. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * 1.25x speed playback. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Speed_Forward_1_25_X: PlaybackSpeed = new PlaybackSpeed(2) + /** + * 1.75x speed playback. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * 1.75x speed playback. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * 1.75x speed playback. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Speed_Forward_1_75_X: PlaybackSpeed = new PlaybackSpeed(3) + /** + * 2.00x speed playback. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * 2.00x speed playback. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * 2.00x speed playback. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Speed_Forward_2_00_X: PlaybackSpeed = new PlaybackSpeed(4) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): PlaybackSpeed { + if ((arg0) == (PlaybackSpeed.Speed_Forward_0_75_X.value)) { + return PlaybackSpeed.Speed_Forward_0_75_X + } + if ((arg0) == (PlaybackSpeed.Speed_Forward_1_00_X.value)) { + return PlaybackSpeed.Speed_Forward_1_00_X + } + if ((arg0) == (PlaybackSpeed.Speed_Forward_1_25_X.value)) { + return PlaybackSpeed.Speed_Forward_1_25_X + } + if ((arg0) == (PlaybackSpeed.Speed_Forward_1_75_X.value)) { + return PlaybackSpeed.Speed_Forward_1_75_X + } + if ((arg0) == (PlaybackSpeed.Speed_Forward_2_00_X.value)) { + return PlaybackSpeed.Speed_Forward_2_00_X + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/* + * Copyright (c) 2021-2023 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +/** + * @file + * @kit ArkUI + */ +/** + * Seek mode. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * Seek mode. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Seek mode. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class SeekMode { + /** + * Sync to keyframes before the time point. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * Sync to keyframes before the time point. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Sync to keyframes before the time point. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly PreviousKeyframe: SeekMode = new SeekMode(0) + /** + * Sync to keyframes after the time point. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * Sync to keyframes after the time point. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Sync to keyframes after the time point. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly NextKeyframe: SeekMode = new SeekMode(1) + /** + * Sync to closest keyframes. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * Sync to closest keyframes. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Sync to closest keyframes. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly ClosestKeyframe: SeekMode = new SeekMode(2) + /** + * Seek to frames closest the time point. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * Seek to frames closest the time point. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Seek to frames closest the time point. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Accurate: SeekMode = new SeekMode(3) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): SeekMode { + if ((arg0) == (SeekMode.PreviousKeyframe.value)) { + return SeekMode.PreviousKeyframe + } + if ((arg0) == (SeekMode.NextKeyframe.value)) { + return SeekMode.NextKeyframe + } + if ((arg0) == (SeekMode.ClosestKeyframe.value)) { + return SeekMode.ClosestKeyframe + } + if ((arg0) == (SeekMode.Accurate.value)) { + return SeekMode.Accurate + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +export interface VideoAttribute { + muted(value: boolean): VideoAttribute; + autoPlay(value: boolean): VideoAttribute; + controls(value: boolean): VideoAttribute; + loop(value: boolean): VideoAttribute; + objectFit(value: ImageFit): VideoAttribute; + onStart(event: (() => void)): VideoAttribute; + onPause(event: (() => void)): VideoAttribute; + onFinish(event: (() => void)): VideoAttribute; + onFullscreenChange(callback: ((event: LITERAL_FullscreenBoolean) => void)): VideoAttribute; + onPrepared(callback: ((event: LITERAL_DurationNumber) => void)): VideoAttribute; + onSeeking(callback: ((event: LITERAL_TimeNumber) => void)): VideoAttribute; + onSeeked(callback: ((event: LITERAL_TimeNumber) => void)): VideoAttribute; + onUpdate(callback: ((event: LITERAL_TimeNumber) => void)): VideoAttribute; + onError(event: (() => void)): VideoAttribute; + onStop(event: Callback): VideoAttribute; + enableAnalyzer(enable: boolean): VideoAttribute; + analyzerConfig(config: ImageAnalyzerConfig): VideoAttribute; +} +export interface VideoInterface { +} +export interface VideoOptions { + src?: string | Resource + currentProgressRate?: number | string | PlaybackSpeed + previewUri?: string | PixelMap | Resource + controller?: VideoController + imageAIOptions?: ImageAIOptions +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkWaterFlow.ts b/arkoala-arkts/arkui/src/generated/ArkWaterFlow.ts new file mode 100644 index 000000000..9ebd5537b --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkWaterFlow.ts @@ -0,0 +1,200 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkScrollableCommonMethodComponent } from "./ArkCommon" +import { ArkWaterFlowPeer } from "./peers/ArkWaterFlowPeer" +import { UseEventsProperties } from "./use_properties" +import { BarState, Color, EdgeEffect, ScrollSource, FlexDirection } from "./ArkEnumsInterfaces" +import { EdgeEffectOptions, Optional, FadingEdgeOptions, NestedScrollOptions, ScrollResult, OnScrollCallback, CustomBuilder } from "./ArkCommonInterfaces" +import { Resource, ConstraintSizeOptions, Length, Dimension, PX, VP, FP, LPX, Percentage, Margin, Padding } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, LITERAL_OffsetRemainNumber, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, LITERAL_TopLengthRightLengthBottomLengthLeftLength } from "./SyntheticDeclarations" +import { ScrollState } from "./ArkListInterfaces" +import { OnWillScrollCallback } from "./ConflictedDeclarations" +import { WaterFlowAttribute, WaterFlowOptions, WaterFlowInterface, WaterFlowLayoutMode, GetItemMainSizeByIndex, SectionOptions } from "./ArkWaterFlowInterfaces" +import { Scroller } from "./ArkScrollerMaterialized" +import { WaterFlowSections } from "./ArkWaterFlowSectionsMaterialized" +/** @memo:stable */ +export class ArkWaterFlowComponent extends ArkScrollableCommonMethodComponent { + protected peer?: ArkWaterFlowPeer + /** @memo */ + setWaterFlowOptions(options?: WaterFlowOptions): this { + if (this.checkPriority("setWaterFlowOptions")) { + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (WaterFlowOptions) + this.peer?.setWaterFlowOptionsAttribute(options_casted) + return this + } + return this + } + /** @memo */ + columnsTemplate(value: string): this { + if (this.checkPriority("columnsTemplate")) { + const value_casted = value as (string) + this.peer?.columnsTemplateAttribute(value_casted) + return this + } + return this + } + /** @memo */ + itemConstraintSize(value: ConstraintSizeOptions): this { + if (this.checkPriority("itemConstraintSize")) { + const value_casted = value as (ConstraintSizeOptions) + this.peer?.itemConstraintSizeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + rowsTemplate(value: string): this { + if (this.checkPriority("rowsTemplate")) { + const value_casted = value as (string) + this.peer?.rowsTemplateAttribute(value_casted) + return this + } + return this + } + /** @memo */ + columnsGap(value: Length): this { + if (this.checkPriority("columnsGap")) { + const value_casted = value as (Length) + this.peer?.columnsGapAttribute(value_casted) + return this + } + return this + } + /** @memo */ + rowsGap(value: Length): this { + if (this.checkPriority("rowsGap")) { + const value_casted = value as (Length) + this.peer?.rowsGapAttribute(value_casted) + return this + } + return this + } + /** @memo */ + layoutDirection(value: FlexDirection): this { + if (this.checkPriority("layoutDirection")) { + const value_casted = value as (FlexDirection) + this.peer?.layoutDirectionAttribute(value_casted) + return this + } + return this + } + /** @memo */ + nestedScroll(value: NestedScrollOptions): this { + if (this.checkPriority("nestedScroll")) { + const value_casted = value as (NestedScrollOptions) + this.peer?.nestedScrollAttribute(value_casted) + return this + } + return this + } + /** @memo */ + enableScrollInteraction(value: boolean): this { + if (this.checkPriority("enableScrollInteraction")) { + const value_casted = value as (boolean) + this.peer?.enableScrollInteractionAttribute(value_casted) + return this + } + return this + } + /** @memo */ + friction(value: number | Resource): this { + if (this.checkPriority("friction")) { + const value_casted = value as (number | Resource) + this.peer?.frictionAttribute(value_casted) + return this + } + return this + } + /** @memo */ + cachedCount(value: number): this { + if (this.checkPriority("cachedCount")) { + const value_casted = value as (number) + this.peer?.cachedCountAttribute(value_casted) + return this + } + return this + } + /** @memo */ + onReachStart(event: (() => void)): this { + if (this.checkPriority("onReachStart")) { + const event_casted = event as ((() => void)) + this.peer?.onReachStartAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onReachEnd(event: (() => void)): this { + if (this.checkPriority("onReachEnd")) { + const event_casted = event as ((() => void)) + this.peer?.onReachEndAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onScrollFrameBegin(event: ((offset: number, state: ScrollState) => LITERAL_OffsetRemainNumber)): this { + if (this.checkPriority("onScrollFrameBegin")) { + const event_casted = event as (((offset: number, state: ScrollState) => LITERAL_OffsetRemainNumber)) + this.peer?.onScrollFrameBeginAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onScrollIndex(event: ((first: number, last: number) => void)): this { + if (this.checkPriority("onScrollIndex")) { + const event_casted = event as (((first: number, last: number) => void)) + this.peer?.onScrollIndexAttribute(event_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkWaterFlow( + /** @memo */ + style: ((attributes: ArkWaterFlowComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + options?: WaterFlowOptions +) { + const receiver = remember(() => { + return new ArkWaterFlowComponent() + }) + NodeAttach((): ArkWaterFlowPeer => ArkWaterFlowPeer.create(ArkUINodeType.WaterFlow, receiver), (_: ArkWaterFlowPeer) => { + receiver.setWaterFlowOptions(options) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkWaterFlowInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkWaterFlowInterfaces.ts new file mode 100644 index 000000000..d605fdeee --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkWaterFlowInterfaces.ts @@ -0,0 +1,84 @@ +import { BarState, Color, EdgeEffect, ScrollSource, FlexDirection } from "./ArkEnumsInterfaces" +import { EdgeEffectOptions, Optional, FadingEdgeOptions, NestedScrollOptions, ScrollResult, OnScrollCallback, CustomBuilder } from "./ArkCommonInterfaces" +import { Resource, ConstraintSizeOptions, Length, Dimension, PX, VP, FP, LPX, Percentage, Margin, Padding } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, LITERAL_OffsetRemainNumber, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, LITERAL_TopLengthRightLengthBottomLengthLeftLength } from "./SyntheticDeclarations" +import { ScrollState } from "./ArkListInterfaces" +import { OnWillScrollCallback } from "./ConflictedDeclarations" +import { Scroller } from "./ArkScrollerMaterialized" +import { WaterFlowSections } from "./ArkWaterFlowSectionsMaterialized" +import { KInt } from "@koalaui/interop" +/** + * Declare layout modes of WaterFlow. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ +export class WaterFlowLayoutMode { + /** + * Top-down Layout mode. Positions of new items depend on items above. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly ALWAYS_TOP_DOWN: WaterFlowLayoutMode = new WaterFlowLayoutMode(0) + /** + * Sliding window mode. Only maintains layout information of items currently in viewport. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly SLIDING_WINDOW: WaterFlowLayoutMode = new WaterFlowLayoutMode(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): WaterFlowLayoutMode { + if ((arg0) == (WaterFlowLayoutMode.ALWAYS_TOP_DOWN.value)) { + return WaterFlowLayoutMode.ALWAYS_TOP_DOWN + } + if ((arg0) == (WaterFlowLayoutMode.SLIDING_WINDOW.value)) { + return WaterFlowLayoutMode.SLIDING_WINDOW + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +export interface WaterFlowAttribute { + columnsTemplate(value: string): WaterFlowAttribute; + itemConstraintSize(value: ConstraintSizeOptions): WaterFlowAttribute; + rowsTemplate(value: string): WaterFlowAttribute; + columnsGap(value: Length): WaterFlowAttribute; + rowsGap(value: Length): WaterFlowAttribute; + layoutDirection(value: FlexDirection): WaterFlowAttribute; + nestedScroll(value: NestedScrollOptions): WaterFlowAttribute; + enableScrollInteraction(value: boolean): WaterFlowAttribute; + friction(value: number | Resource): WaterFlowAttribute; + cachedCount(value: number): WaterFlowAttribute; + onReachStart(event: (() => void)): WaterFlowAttribute; + onReachEnd(event: (() => void)): WaterFlowAttribute; + onScrollFrameBegin(event: ((offset: number, state: ScrollState) => LITERAL_OffsetRemainNumber)): WaterFlowAttribute; + onScrollIndex(event: ((first: number, last: number) => void)): WaterFlowAttribute; +} +export interface WaterFlowInterface { +} +export interface WaterFlowOptions { + footer?: CustomBuilder + scroller?: Scroller + sections?: WaterFlowSections + layoutMode?: WaterFlowLayoutMode +} +export declare class SectionOptions { + itemsCount: number; + crossCount?: number; + onGetItemMainSizeByIndex?: GetItemMainSizeByIndex; + columnsGap?: Dimension; + rowsGap?: Dimension; + margin?: Margin | Dimension; +} +export declare type GetItemMainSizeByIndex = ((index: number) => number) \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkWaterFlowSectionsMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkWaterFlowSectionsMaterialized.ts new file mode 100644 index 000000000..fa30db750 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkWaterFlowSectionsMaterialized.ts @@ -0,0 +1,138 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { SectionOptions } from "./ArkWaterFlowInterfaces" +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class WaterFlowSections { + peer?: Finalizable + static ctor(): KPointer { + const retval = NativeModule._WaterFlowSections_ctor() + return retval + } + constructor() { + const ctorPtr = WaterFlowSections.ctor() + this.peer = new Finalizable(ctorPtr, WaterFlowSections.getFinalizer()) + } + static getFinalizer(): KPointer { + return NativeModule._WaterFlowSections_getFinalizer() + } + splice(start: number, deleteCount?: number, sections?: Array): boolean { + const start_casted = start as (number) + if ((deleteCount) == (undefined)) { + throw new Error("Arg 'deleteCount' is null"); + } + const deleteCount_casted = deleteCount as (number) + if ((sections) == (undefined)) { + throw new Error("Arg 'sections' is null"); + } + const sections_casted = sections as (Array) + return this.splice_serialize(start_casted, deleteCount_casted, sections_casted) + } + push(section: SectionOptions): boolean { + const section_casted = section as (SectionOptions) + return this.push_serialize(section_casted) + } + update(sectionIndex: number, section: SectionOptions): boolean { + const sectionIndex_casted = sectionIndex as (number) + const section_casted = section as (SectionOptions) + return this.update_serialize(sectionIndex_casted, section_casted) + } + values(): Array { + return this.values_serialize() + } + length(): number { + return this.length_serialize() + } + private splice_serialize(start: number, deleteCount?: number, sections?: Array): boolean { + const thisSerializer = SerializerBase.hold(createSerializer) + let deleteCount_type = RuntimeType.UNDEFINED + if (deleteCount != undefined) { + deleteCount_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(deleteCount_type as int32) + if ((RuntimeType.UNDEFINED) != (deleteCount_type)) { + const deleteCount_value = deleteCount! + thisSerializer.writeNumber(deleteCount_value) + } + let sections_type = RuntimeType.UNDEFINED + if (sections != undefined) { + sections_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(sections_type as int32) + if ((RuntimeType.UNDEFINED) != (sections_type)) { + const sections_value = sections! + thisSerializer.writeInt8(runtimeType(sections_value) as int32) + thisSerializer.writeInt32(sections_value.length as int32) + for (let i = 0; i < sections_value.length; i++) { + const sections_value_element = sections_value[i] + thisSerializer.writeSectionOptions(sections_value_element) + } + } + const retval = NativeModule._WaterFlowSections_splice(this.peer!.ptr, start, thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release(); + return retval + } + private push_serialize(section: SectionOptions): boolean { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeSectionOptions(section) + const retval = NativeModule._WaterFlowSections_push(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release(); + return retval + } + private update_serialize(sectionIndex: number, section: SectionOptions): boolean { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeSectionOptions(section) + const retval = NativeModule._WaterFlowSections_update(this.peer!.ptr, sectionIndex, thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release(); + return retval + } + private values_serialize(): Array { + const retval = NativeModule._WaterFlowSections_values(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private length_serialize(): number { + const retval = NativeModule._WaterFlowSections_length(this.peer!.ptr) + return retval + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkWebContextMenuParamMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkWebContextMenuParamMaterialized.ts new file mode 100644 index 000000000..4c12c4131 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkWebContextMenuParamMaterialized.ts @@ -0,0 +1,144 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { ContextMenuMediaType, ContextMenuSourceType, ContextMenuInputFieldType } from "./ArkWebInterfaces" +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class WebContextMenuParam { + peer?: Finalizable + static ctor(): KPointer { + const retval = NativeModule._WebContextMenuParam_ctor() + return retval + } + constructor() { + const ctorPtr = WebContextMenuParam.ctor() + this.peer = new Finalizable(ctorPtr, WebContextMenuParam.getFinalizer()) + } + static getFinalizer(): KPointer { + return NativeModule._WebContextMenuParam_getFinalizer() + } + x(): number { + return this.x_serialize() + } + y(): number { + return this.y_serialize() + } + getLinkUrl(): string { + return this.getLinkUrl_serialize() + } + getUnfilteredLinkUrl(): string { + return this.getUnfilteredLinkUrl_serialize() + } + getSourceUrl(): string { + return this.getSourceUrl_serialize() + } + existsImageContents(): boolean { + return this.existsImageContents_serialize() + } + getMediaType(): ContextMenuMediaType { + return this.getMediaType_serialize() + } + getSelectionText(): string { + return this.getSelectionText_serialize() + } + getSourceType(): ContextMenuSourceType { + return this.getSourceType_serialize() + } + getInputFieldType(): ContextMenuInputFieldType { + return this.getInputFieldType_serialize() + } + isEditable(): boolean { + return this.isEditable_serialize() + } + getEditStateFlags(): number { + return this.getEditStateFlags_serialize() + } + private x_serialize(): number { + const retval = NativeModule._WebContextMenuParam_x(this.peer!.ptr) + return retval + } + private y_serialize(): number { + const retval = NativeModule._WebContextMenuParam_y(this.peer!.ptr) + return retval + } + private getLinkUrl_serialize(): string { + const retval = NativeModule._WebContextMenuParam_getLinkUrl(this.peer!.ptr) + return retval + } + private getUnfilteredLinkUrl_serialize(): string { + const retval = NativeModule._WebContextMenuParam_getUnfilteredLinkUrl(this.peer!.ptr) + return retval + } + private getSourceUrl_serialize(): string { + const retval = NativeModule._WebContextMenuParam_getSourceUrl(this.peer!.ptr) + return retval + } + private existsImageContents_serialize(): boolean { + const retval = NativeModule._WebContextMenuParam_existsImageContents(this.peer!.ptr) + return retval + } + private getMediaType_serialize(): ContextMenuMediaType { + const retval = NativeModule._WebContextMenuParam_getMediaType(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private getSelectionText_serialize(): string { + const retval = NativeModule._WebContextMenuParam_getSelectionText(this.peer!.ptr) + return retval + } + private getSourceType_serialize(): ContextMenuSourceType { + const retval = NativeModule._WebContextMenuParam_getSourceType(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private getInputFieldType_serialize(): ContextMenuInputFieldType { + const retval = NativeModule._WebContextMenuParam_getInputFieldType(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private isEditable_serialize(): boolean { + const retval = NativeModule._WebContextMenuParam_isEditable(this.peer!.ptr) + return retval + } + private getEditStateFlags_serialize(): number { + const retval = NativeModule._WebContextMenuParam_getEditStateFlags(this.peer!.ptr) + return retval + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkWebContextMenuResultMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkWebContextMenuResultMaterialized.ts new file mode 100644 index 000000000..bfca2ab81 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkWebContextMenuResultMaterialized.ts @@ -0,0 +1,95 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class WebContextMenuResult { + peer?: Finalizable + static ctor(): KPointer { + const retval = NativeModule._WebContextMenuResult_ctor() + return retval + } + constructor() { + const ctorPtr = WebContextMenuResult.ctor() + this.peer = new Finalizable(ctorPtr, WebContextMenuResult.getFinalizer()) + } + static getFinalizer(): KPointer { + return NativeModule._WebContextMenuResult_getFinalizer() + } + closeContextMenu(): void { + this.closeContextMenu_serialize() + } + copyImage(): void { + this.copyImage_serialize() + } + copy(): void { + this.copy_serialize() + } + paste(): void { + this.paste_serialize() + } + cut(): void { + this.cut_serialize() + } + selectAll(): void { + this.selectAll_serialize() + } + private closeContextMenu_serialize(): void { + NativeModule._WebContextMenuResult_closeContextMenu(this.peer!.ptr); + } + private copyImage_serialize(): void { + NativeModule._WebContextMenuResult_copyImage(this.peer!.ptr); + } + private copy_serialize(): void { + NativeModule._WebContextMenuResult_copy(this.peer!.ptr); + } + private paste_serialize(): void { + NativeModule._WebContextMenuResult_paste(this.peer!.ptr); + } + private cut_serialize(): void { + NativeModule._WebContextMenuResult_cut(this.peer!.ptr); + } + private selectAll_serialize(): void { + NativeModule._WebContextMenuResult_selectAll(this.peer!.ptr); + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkWebControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkWebControllerMaterialized.ts new file mode 100644 index 000000000..fa001da94 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkWebControllerMaterialized.ts @@ -0,0 +1,274 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { Resource } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, LITERAL_ScriptStringCallbackResultstringvoid, LITERAL_DataStringMimeTypeStringEncodingStringBaseUrlStringHistoryUrlString, LITERAL_UrlStringResourceHeadersArrayHeader, LITERAL_ObjectObjectNameStringMethodListArraystring } from "./SyntheticDeclarations" +import { Header, HitTestType } from "./ArkWebInterfaces" +import { WebCookie } from "./ArkWebCookieMaterialized" +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class WebController { + peer?: Finalizable + static ctor(): KPointer { + const retval = NativeModule._WebController_ctor() + return retval + } + constructor() { + const ctorPtr = WebController.ctor() + this.peer = new Finalizable(ctorPtr, WebController.getFinalizer()) + } + static getFinalizer(): KPointer { + return NativeModule._WebController_getFinalizer() + } + onInactive(): void { + this.onInactive_serialize() + } + onActive(): void { + this.onActive_serialize() + } + zoom(factor: number): void { + const factor_casted = factor as (number) + this.zoom_serialize(factor_casted) + } + clearHistory(): void { + this.clearHistory_serialize() + } + runJavaScript(options: LITERAL_ScriptStringCallbackResultstringvoid): void { + const options_casted = options as (LITERAL_ScriptStringCallbackResultstringvoid) + this.runJavaScript_serialize(options_casted) + } + loadData(options: LITERAL_DataStringMimeTypeStringEncodingStringBaseUrlStringHistoryUrlString): void { + const options_casted = options as (LITERAL_DataStringMimeTypeStringEncodingStringBaseUrlStringHistoryUrlString) + this.loadData_serialize(options_casted) + } + loadUrl(options: LITERAL_UrlStringResourceHeadersArrayHeader): void { + const options_casted = options as (LITERAL_UrlStringResourceHeadersArrayHeader) + this.loadUrl_serialize(options_casted) + } + refresh(): void { + this.refresh_serialize() + } + stop(): void { + this.stop_serialize() + } + registerJavaScriptProxy(options: LITERAL_ObjectObjectNameStringMethodListArraystring): void { + const options_casted = options as (LITERAL_ObjectObjectNameStringMethodListArraystring) + this.registerJavaScriptProxy_serialize(options_casted) + } + deleteJavaScriptRegister(name: string): void { + const name_casted = name as (string) + this.deleteJavaScriptRegister_serialize(name_casted) + } + getHitTest(): HitTestType { + return this.getHitTest_serialize() + } + requestFocus(): void { + this.requestFocus_serialize() + } + accessBackward(): boolean { + return this.accessBackward_serialize() + } + accessForward(): boolean { + return this.accessForward_serialize() + } + accessStep(step: number): boolean { + const step_casted = step as (number) + return this.accessStep_serialize(step_casted) + } + backward(): void { + this.backward_serialize() + } + forward(): void { + this.forward_serialize() + } + getCookieManager(): WebCookie { + return this.getCookieManager_serialize() + } + private onInactive_serialize(): void { + NativeModule._WebController_onInactive(this.peer!.ptr); + } + private onActive_serialize(): void { + NativeModule._WebController_onActive(this.peer!.ptr); + } + private zoom_serialize(factor: number): void { + NativeModule._WebController_zoom(this.peer!.ptr, factor); + } + private clearHistory_serialize(): void { + NativeModule._WebController_clearHistory(this.peer!.ptr); + } + private runJavaScript_serialize(options: LITERAL_ScriptStringCallbackResultstringvoid): void { + const thisSerializer = SerializerBase.hold(createSerializer) + const options_script = options.script + thisSerializer.writeString(options_script) + const options_callback = options.callback + let options_callback_type = RuntimeType.UNDEFINED + if (options_callback != undefined) { + options_callback_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_callback_type as int32) + if ((RuntimeType.UNDEFINED) != (options_callback_type)) { + const options_callback_value = options_callback! + thisSerializer.writeFunction(options_callback_value) + } + NativeModule._WebController_runJavaScript(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private loadData_serialize(options: LITERAL_DataStringMimeTypeStringEncodingStringBaseUrlStringHistoryUrlString): void { + const thisSerializer = SerializerBase.hold(createSerializer) + const options_data = options.data + thisSerializer.writeString(options_data) + const options_mimeType = options.mimeType + thisSerializer.writeString(options_mimeType) + const options_encoding = options.encoding + thisSerializer.writeString(options_encoding) + const options_baseUrl = options.baseUrl + let options_baseUrl_type = RuntimeType.UNDEFINED + if (options_baseUrl != undefined) { + options_baseUrl_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_baseUrl_type as int32) + if ((RuntimeType.UNDEFINED) != (options_baseUrl_type)) { + const options_baseUrl_value = options_baseUrl! + thisSerializer.writeString(options_baseUrl_value) + } + const options_historyUrl = options.historyUrl + let options_historyUrl_type = RuntimeType.UNDEFINED + if (options_historyUrl != undefined) { + options_historyUrl_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_historyUrl_type as int32) + if ((RuntimeType.UNDEFINED) != (options_historyUrl_type)) { + const options_historyUrl_value = options_historyUrl! + thisSerializer.writeString(options_historyUrl_value) + } + NativeModule._WebController_loadData(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private loadUrl_serialize(options: LITERAL_UrlStringResourceHeadersArrayHeader): void { + const thisSerializer = SerializerBase.hold(createSerializer) + const options_url = options.url + let options_url_type = RuntimeType.UNDEFINED + options_url_type = runtimeType(options_url) + if (((RuntimeType.STRING == options_url_type))) { + thisSerializer.writeInt8(0 as int32) + const options_url_0 = options_url as string + thisSerializer.writeString(options_url_0) + } + else if (((RuntimeType.OBJECT == options_url_type))) { + thisSerializer.writeInt8(1 as int32) + const options_url_1 = options_url as Resource + thisSerializer.writeResource(options_url_1) + } + const options_headers = options.headers + let options_headers_type = RuntimeType.UNDEFINED + if (options_headers != undefined) { + options_headers_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_headers_type as int32) + if ((RuntimeType.UNDEFINED) != (options_headers_type)) { + const options_headers_value = options_headers! + thisSerializer.writeInt8(runtimeType(options_headers_value) as int32) + thisSerializer.writeInt32(options_headers_value.length as int32) + for (let i = 0; i < options_headers_value.length; i++) { + const options_headers_value_element = options_headers_value[i] + thisSerializer.writeHeader(options_headers_value_element) + } + } + NativeModule._WebController_loadUrl(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private refresh_serialize(): void { + NativeModule._WebController_refresh(this.peer!.ptr); + } + private stop_serialize(): void { + NativeModule._WebController_stop(this.peer!.ptr); + } + private registerJavaScriptProxy_serialize(options: LITERAL_ObjectObjectNameStringMethodListArraystring): void { + const thisSerializer = SerializerBase.hold(createSerializer) + const options_object = options.object + thisSerializer.writeCustomObject("Object", options_object) + const options_name = options.name + thisSerializer.writeString(options_name) + const options_methodList = options.methodList + thisSerializer.writeInt8(runtimeType(options_methodList) as int32) + thisSerializer.writeInt32(options_methodList.length as int32) + for (let i = 0; i < options_methodList.length; i++) { + const options_methodList_element = options_methodList[i] + thisSerializer.writeString(options_methodList_element) + } + NativeModule._WebController_registerJavaScriptProxy(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private deleteJavaScriptRegister_serialize(name: string): void { + NativeModule._WebController_deleteJavaScriptRegister(this.peer!.ptr, name); + } + private getHitTest_serialize(): HitTestType { + const retval = NativeModule._WebController_getHitTest(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private requestFocus_serialize(): void { + NativeModule._WebController_requestFocus(this.peer!.ptr); + } + private accessBackward_serialize(): boolean { + const retval = NativeModule._WebController_accessBackward(this.peer!.ptr) + return retval + } + private accessForward_serialize(): boolean { + const retval = NativeModule._WebController_accessForward(this.peer!.ptr) + return retval + } + private accessStep_serialize(step: number): boolean { + const retval = NativeModule._WebController_accessStep(this.peer!.ptr, step) + return retval + } + private backward_serialize(): void { + NativeModule._WebController_backward(this.peer!.ptr); + } + private forward_serialize(): void { + NativeModule._WebController_forward(this.peer!.ptr); + } + private getCookieManager_serialize(): WebCookie { + const retval = NativeModule._WebController_getCookieManager(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkWebCookieMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkWebCookieMaterialized.ts new file mode 100644 index 000000000..1c7128adc --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkWebCookieMaterialized.ts @@ -0,0 +1,71 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class WebCookie { + peer?: Finalizable + static ctor(): KPointer { + const retval = NativeModule._WebCookie_ctor() + return retval + } + constructor() { + const ctorPtr = WebCookie.ctor() + this.peer = new Finalizable(ctorPtr, WebCookie.getFinalizer()) + } + static getFinalizer(): KPointer { + return NativeModule._WebCookie_getFinalizer() + } + setCookie(): void { + this.setCookie_serialize() + } + saveCookie(): void { + this.saveCookie_serialize() + } + private setCookie_serialize(): void { + NativeModule._WebCookie_setCookie(this.peer!.ptr); + } + private saveCookie_serialize(): void { + NativeModule._WebCookie_saveCookie(this.peer!.ptr); + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkWebKeyboardControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkWebKeyboardControllerMaterialized.ts new file mode 100644 index 000000000..7596408b8 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkWebKeyboardControllerMaterialized.ts @@ -0,0 +1,93 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class WebKeyboardController { + peer?: Finalizable + static ctor(): KPointer { + const retval = NativeModule._WebKeyboardController_ctor() + return retval + } + constructor() { + const ctorPtr = WebKeyboardController.ctor() + this.peer = new Finalizable(ctorPtr, WebKeyboardController.getFinalizer()) + } + static getFinalizer(): KPointer { + return NativeModule._WebKeyboardController_getFinalizer() + } + insertText(text: string): void { + const text_casted = text as (string) + this.insertText_serialize(text_casted) + } + deleteForward(length: number): void { + const length_casted = length as (number) + this.deleteForward_serialize(length_casted) + } + deleteBackward(length: number): void { + const length_casted = length as (number) + this.deleteBackward_serialize(length_casted) + } + sendFunctionKey(key: number): void { + const key_casted = key as (number) + this.sendFunctionKey_serialize(key_casted) + } + close(): void { + this.close_serialize() + } + private insertText_serialize(text: string): void { + NativeModule._WebKeyboardController_insertText(this.peer!.ptr, text); + } + private deleteForward_serialize(length: number): void { + NativeModule._WebKeyboardController_deleteForward(this.peer!.ptr, length); + } + private deleteBackward_serialize(length: number): void { + NativeModule._WebKeyboardController_deleteBackward(this.peer!.ptr, length); + } + private sendFunctionKey_serialize(key: number): void { + NativeModule._WebKeyboardController_sendFunctionKey(this.peer!.ptr, key); + } + private close_serialize(): void { + NativeModule._WebKeyboardController_close(this.peer!.ptr); + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkWebResourceErrorMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkWebResourceErrorMaterialized.ts new file mode 100644 index 000000000..25080202c --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkWebResourceErrorMaterialized.ts @@ -0,0 +1,73 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class WebResourceError { + peer?: Finalizable + static ctor(): KPointer { + const retval = NativeModule._WebResourceError_ctor() + return retval + } + constructor() { + const ctorPtr = WebResourceError.ctor() + this.peer = new Finalizable(ctorPtr, WebResourceError.getFinalizer()) + } + static getFinalizer(): KPointer { + return NativeModule._WebResourceError_getFinalizer() + } + getErrorInfo(): string { + return this.getErrorInfo_serialize() + } + getErrorCode(): number { + return this.getErrorCode_serialize() + } + private getErrorInfo_serialize(): string { + const retval = NativeModule._WebResourceError_getErrorInfo(this.peer!.ptr) + return retval + } + private getErrorCode_serialize(): number { + const retval = NativeModule._WebResourceError_getErrorCode(this.peer!.ptr) + return retval + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkWebResourceRequestMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkWebResourceRequestMaterialized.ts new file mode 100644 index 000000000..a679cbf0f --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkWebResourceRequestMaterialized.ts @@ -0,0 +1,102 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { Header } from "./ArkWebInterfaces" +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class WebResourceRequest { + peer?: Finalizable + static ctor(): KPointer { + const retval = NativeModule._WebResourceRequest_ctor() + return retval + } + constructor() { + const ctorPtr = WebResourceRequest.ctor() + this.peer = new Finalizable(ctorPtr, WebResourceRequest.getFinalizer()) + } + static getFinalizer(): KPointer { + return NativeModule._WebResourceRequest_getFinalizer() + } + getRequestHeader(): Array
{ + return this.getRequestHeader_serialize() + } + getRequestUrl(): string { + return this.getRequestUrl_serialize() + } + isRequestGesture(): boolean { + return this.isRequestGesture_serialize() + } + isMainFrame(): boolean { + return this.isMainFrame_serialize() + } + isRedirect(): boolean { + return this.isRedirect_serialize() + } + getRequestMethod(): string { + return this.getRequestMethod_serialize() + } + private getRequestHeader_serialize(): Array
{ + const retval = NativeModule._WebResourceRequest_getRequestHeader(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private getRequestUrl_serialize(): string { + const retval = NativeModule._WebResourceRequest_getRequestUrl(this.peer!.ptr) + return retval + } + private isRequestGesture_serialize(): boolean { + const retval = NativeModule._WebResourceRequest_isRequestGesture(this.peer!.ptr) + return retval + } + private isMainFrame_serialize(): boolean { + const retval = NativeModule._WebResourceRequest_isMainFrame(this.peer!.ptr) + return retval + } + private isRedirect_serialize(): boolean { + const retval = NativeModule._WebResourceRequest_isRedirect(this.peer!.ptr) + return retval + } + private getRequestMethod_serialize(): string { + const retval = NativeModule._WebResourceRequest_getRequestMethod(this.peer!.ptr) + return retval + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkWindowScene.ts b/arkoala-arkts/arkui/src/generated/ArkWindowScene.ts new file mode 100644 index 000000000..057d39020 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkWindowScene.ts @@ -0,0 +1,73 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkWindowScenePeer } from "./peers/ArkWindowScenePeer" +import { Position } from "./ArkUnitsInterfaces" +import { WindowSceneAttribute, WindowSceneInterface } from "./ArkWindowSceneInterfaces" +/** @memo:stable */ +export class ArkWindowSceneComponent extends ArkCommonMethodComponent { + protected peer?: ArkWindowScenePeer + /** @memo */ + setWindowSceneOptions(persistentId: number): this { + if (this.checkPriority("setWindowSceneOptions")) { + const persistentId_casted = persistentId as (number) + this.peer?.setWindowSceneOptionsAttribute(persistentId_casted) + return this + } + return this + } + /** @memo */ + attractionEffect(destination: Position, fraction: number): this { + if (this.checkPriority("attractionEffect")) { + const destination_casted = destination as (Position) + const fraction_casted = fraction as (number) + this.peer?.attractionEffectAttribute(destination_casted, fraction_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkWindowScene( + /** @memo */ + style: ((attributes: ArkWindowSceneComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + persistentId: number +) { + const receiver = remember(() => { + return new ArkWindowSceneComponent() + }) + NodeAttach((): ArkWindowScenePeer => ArkWindowScenePeer.create(ArkUINodeType.WindowScene, receiver), (_: ArkWindowScenePeer) => { + receiver.setWindowSceneOptions(persistentId) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkWindowSceneInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkWindowSceneInterfaces.ts new file mode 100644 index 000000000..4d9acac64 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkWindowSceneInterfaces.ts @@ -0,0 +1,7 @@ +import { Position } from "./ArkUnitsInterfaces" +import { KInt } from "@koalaui/interop" +export interface WindowSceneAttribute { + attractionEffect(destination: Position,fraction: number): WindowSceneAttribute; +} +export interface WindowSceneInterface { +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkWithThemeInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkWithThemeInterfaces.ts new file mode 100644 index 000000000..5f3e82364 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkWithThemeInterfaces.ts @@ -0,0 +1 @@ +import { KInt } from "@koalaui/interop" \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkXComponentControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkXComponentControllerMaterialized.ts new file mode 100644 index 000000000..c95d07015 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkXComponentControllerMaterialized.ts @@ -0,0 +1,165 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { SurfaceRect, SurfaceRotationOptions } from "./ArkXcomponentInterfaces" +import { ImageAnalyzerConfig } from "./ArkImageCommonInterfaces" +import { LITERAL_SurfaceWidthNumberSurfaceHeightNumber } from "./SyntheticDeclarations" +import { TypeChecker } from "#components" + +import { Finalizable } from "./Finalizable" +import { createSerializer, Serializer } from "./peers/Serializer" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback } from "./peers/SerializerBase" +import { NativeModule } from "#components" +import { wrapCallback } from "@koalaui/interop" + +import { + int32, + float32 +} from "@koalaui/common" +import { + KInt, + KBoolean, + KFloat, + KUInt, + KStringPtr, + KPointer, + KNativePointer, + KInt32ArrayPtr, + KUint8ArrayPtr, + KFloat32ArrayPtr, + pointer +} from "@koalaui/interop" + + +export class XComponentController { + peer?: Finalizable + static ctor(): KPointer { + const retval = NativeModule._XComponentController_ctor() + return retval + } + constructor() { + const ctorPtr = XComponentController.ctor() + this.peer = new Finalizable(ctorPtr, XComponentController.getFinalizer()) + } + static getFinalizer(): KPointer { + return NativeModule._XComponentController_getFinalizer() + } + getXComponentSurfaceId(): string { + return this.getXComponentSurfaceId_serialize() + } + getXComponentContext(): Object { + return this.getXComponentContext_serialize() + } + setXComponentSurfaceSize(value: LITERAL_SurfaceWidthNumberSurfaceHeightNumber): void { + const value_casted = value as (LITERAL_SurfaceWidthNumberSurfaceHeightNumber) + this.setXComponentSurfaceSize_serialize(value_casted) + } + setXComponentSurfaceRect(rect: SurfaceRect): void { + const rect_casted = rect as (SurfaceRect) + this.setXComponentSurfaceRect_serialize(rect_casted) + } + getXComponentSurfaceRect(): SurfaceRect { + return this.getXComponentSurfaceRect_serialize() + } + setXComponentSurfaceRotation(rotationOptions: SurfaceRotationOptions): void { + const rotationOptions_casted = rotationOptions as (SurfaceRotationOptions) + this.setXComponentSurfaceRotation_serialize(rotationOptions_casted) + } + getXComponentSurfaceRotation(): Required { + return this.getXComponentSurfaceRotation_serialize() + } + onSurfaceCreated(surfaceId: string): void { + const surfaceId_casted = surfaceId as (string) + this.onSurfaceCreated_serialize(surfaceId_casted) + } + onSurfaceChanged(surfaceId: string, rect: SurfaceRect): void { + const surfaceId_casted = surfaceId as (string) + const rect_casted = rect as (SurfaceRect) + this.onSurfaceChanged_serialize(surfaceId_casted, rect_casted) + } + onSurfaceDestroyed(surfaceId: string): void { + const surfaceId_casted = surfaceId as (string) + this.onSurfaceDestroyed_serialize(surfaceId_casted) + } + startImageAnalyzer(config: ImageAnalyzerConfig): Promise { + const config_casted = config as (ImageAnalyzerConfig) + return this.startImageAnalyzer_serialize(config_casted) + } + stopImageAnalyzer(): void { + this.stopImageAnalyzer_serialize() + } + private getXComponentSurfaceId_serialize(): string { + const retval = NativeModule._XComponentController_getXComponentSurfaceId(this.peer!.ptr) + return retval + } + private getXComponentContext_serialize(): Object { + const retval = NativeModule._XComponentController_getXComponentContext(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private setXComponentSurfaceSize_serialize(value: LITERAL_SurfaceWidthNumberSurfaceHeightNumber): void { + const thisSerializer = SerializerBase.hold(createSerializer) + const value_surfaceWidth = value.surfaceWidth + thisSerializer.writeNumber(value_surfaceWidth) + const value_surfaceHeight = value.surfaceHeight + thisSerializer.writeNumber(value_surfaceHeight) + NativeModule._XComponentController_setXComponentSurfaceSize(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private setXComponentSurfaceRect_serialize(rect: SurfaceRect): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeSurfaceRect(rect) + NativeModule._XComponentController_setXComponentSurfaceRect(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private getXComponentSurfaceRect_serialize(): SurfaceRect { + const retval = NativeModule._XComponentController_getXComponentSurfaceRect(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private setXComponentSurfaceRotation_serialize(rotationOptions: SurfaceRotationOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeSurfaceRotationOptions(rotationOptions) + NativeModule._XComponentController_setXComponentSurfaceRotation(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private getXComponentSurfaceRotation_serialize(): Required { + const retval = NativeModule._XComponentController_getXComponentSurfaceRotation(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private onSurfaceCreated_serialize(surfaceId: string): void { + NativeModule._XComponentController_onSurfaceCreated(this.peer!.ptr, surfaceId); + } + private onSurfaceChanged_serialize(surfaceId: string, rect: SurfaceRect): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeSurfaceRect(rect) + NativeModule._XComponentController_onSurfaceChanged(this.peer!.ptr, surfaceId, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private onSurfaceDestroyed_serialize(surfaceId: string): void { + NativeModule._XComponentController_onSurfaceDestroyed(this.peer!.ptr, surfaceId); + } + private startImageAnalyzer_serialize(config: ImageAnalyzerConfig): Promise { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeImageAnalyzerConfig(config) + const retval = NativeModule._XComponentController_startImageAnalyzer(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release(); + throw new Error("Object deserialization is not implemented.") + } + private stopImageAnalyzer_serialize(): void { + NativeModule._XComponentController_stopImageAnalyzer(this.peer!.ptr); + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkXcomponent.ts b/arkoala-arkts/arkui/src/generated/ArkXcomponent.ts new file mode 100644 index 000000000..5837c651f --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkXcomponent.ts @@ -0,0 +1,117 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { NodeAttach, remember } from "@koalaui/runtime" +import { ArkUINodeType } from "./peers/ArkUINodeType" +import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" +import { ComponentBase } from "./ComponentBase" +import { TypeChecker } from "#components" +import { ArkCommonMethodComponent } from "./ArkCommon" +import { ArkXComponentPeer } from "./peers/ArkXcomponentPeer" +import { UseEventsProperties } from "./use_properties" +import { XComponentAttribute, XComponentOptions, XComponentInterface, SurfaceRect, SurfaceRotationOptions } from "./ArkXcomponentInterfaces" +import { XComponentController } from "./ArkXComponentControllerMaterialized" +import { LITERAL_IdStringTypeStringLibrarynameStringControllerXComponentController, LITERAL_IdStringTypeXComponentTypeLibrarynameStringControllerXComponentController } from "./SyntheticDeclarations" +import { XComponentType } from "./ArkEnumsInterfaces" +import { ImageAIOptions } from "./ArkImageCommonInterfaces" +/** @memo:stable */ +export class ArkXComponentComponent extends ArkCommonMethodComponent { + protected peer?: ArkXComponentPeer + /** @memo */ + setXComponentOptions(value: LITERAL_IdStringTypeStringLibrarynameStringControllerXComponentController | LITERAL_IdStringTypeXComponentTypeLibrarynameStringControllerXComponentController | XComponentOptions): this { + if (this.checkPriority("setXComponentOptions")) { + const value_type = runtimeType(value) + if ((TypeChecker.isLITERAL_IdStringTypeStringLibrarynameStringControllerXComponentController(value, true, true, true, true))) { + const value_casted = value as (LITERAL_IdStringTypeStringLibrarynameStringControllerXComponentController) + this.peer?.setXComponentOptions0Attribute(value_casted) + return this + } + if ((TypeChecker.isLITERAL_IdStringTypeXComponentTypeLibrarynameStringControllerXComponentController(value, true, true, true, true))) { + const value_casted = value as (LITERAL_IdStringTypeXComponentTypeLibrarynameStringControllerXComponentController) + this.peer?.setXComponentOptions1Attribute(value_casted) + return this + } + if ((TypeChecker.isXComponentOptions(value, true, true, false))) { + const value_casted = value as (XComponentOptions) + this.peer?.setXComponentOptions2Attribute(value_casted) + return this + } + throw new Error("Can not select appropriate overload") + } + return this + } + /** @memo */ + onLoad(callback: ((event: Object|undefined) => void)): this { + if (this.checkPriority("onLoad")) { + const callback_casted = callback as (((event: Object|undefined) => void)) + this.peer?.onLoadAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onDestroy(event: (() => void)): this { + if (this.checkPriority("onDestroy")) { + const event_casted = event as ((() => void)) + this.peer?.onDestroyAttribute(event_casted) + return this + } + return this + } + /** @memo */ + enableAnalyzer(enable: boolean): this { + if (this.checkPriority("enableAnalyzer")) { + const enable_casted = enable as (boolean) + this.peer?.enableAnalyzerAttribute(enable_casted) + return this + } + return this + } + /** @memo */ + enableSecure(isSecure: boolean): this { + if (this.checkPriority("enableSecure")) { + const isSecure_casted = isSecure as (boolean) + this.peer?.enableSecureAttribute(isSecure_casted) + return this + } + return this + } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkXComponent( + /** @memo */ + style: ((attributes: ArkXComponentComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + value: LITERAL_IdStringTypeStringLibrarynameStringControllerXComponentController | LITERAL_IdStringTypeXComponentTypeLibrarynameStringControllerXComponentController | XComponentOptions +) { + const receiver = remember(() => { + return new ArkXComponentComponent() + }) + NodeAttach((): ArkXComponentPeer => ArkXComponentPeer.create(ArkUINodeType.XComponent, receiver), (_: ArkXComponentPeer) => { + receiver.setXComponentOptions(value) + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} diff --git a/arkoala-arkts/arkui/src/generated/ArkXcomponentInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkXcomponentInterfaces.ts new file mode 100644 index 000000000..c551cda0d --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkXcomponentInterfaces.ts @@ -0,0 +1,27 @@ +import { XComponentController } from "./ArkXComponentControllerMaterialized" +import { LITERAL_IdStringTypeStringLibrarynameStringControllerXComponentController, LITERAL_IdStringTypeXComponentTypeLibrarynameStringControllerXComponentController } from "./SyntheticDeclarations" +import { XComponentType } from "./ArkEnumsInterfaces" +import { ImageAIOptions } from "./ArkImageCommonInterfaces" +import { KInt } from "@koalaui/interop" +export interface XComponentAttribute { + onLoad(callback: ((event: Object|undefined) => void)): XComponentAttribute; + onDestroy(event: (() => void)): XComponentAttribute; + enableAnalyzer(enable: boolean): XComponentAttribute; + enableSecure(isSecure: boolean): XComponentAttribute; +} +export interface XComponentInterface { +} +export interface SurfaceRect { + offsetX?: number + offsetY?: number + surfaceWidth: number + surfaceHeight: number +} +export interface SurfaceRotationOptions { + lock?: boolean +} +export interface XComponentOptions { + type: XComponentType + controller: XComponentController + imageAIOptions?: ImageAIOptions +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/common.ts b/arkoala-arkts/arkui/src/generated/common.ts new file mode 100644 index 000000000..d821b57f9 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/common.ts @@ -0,0 +1,2 @@ +export type int32 = int +export type float32 = float \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/main.ts b/arkoala-arkts/arkui/src/generated/main.ts new file mode 100644 index 000000000..e4668c682 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/main.ts @@ -0,0 +1,674 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { NativeModule, nativeModule } from "#components" +import { wrapCallback, callCallback } from "./CallbackRegistry" +import { assertEquals, assertThrows } from "./test_utils" +import { ArkButtonPeer } from "@arkoala/arkui/peers/ArkButtonPeer" +import { ArkColumnPeer } from "@arkoala/arkui/peers/ArkColumnPeer" +import { ArkUINodeType } from "@arkoala/arkui/peers/ArkUINodeType" +import { ButtonType, LabelStyle } from '@arkoala/arkui/ArkButtonInterfaces' +import { BlurOptions, + SheetSize, + BlurStyle, + SheetType, + SheetDismiss, + DismissSheetAction, + SpringBackAction, + EdgeWidths, + LocalizedEdgeWidths, + EdgeColors, + LocalizedEdgeColors, + BorderStyle, + ShadowOptions, + ShadowStyle, + SheetMode, + Callback, + SheetTitleOptions, + SheetOptions, + CustomBuilder, + EdgeStyles, + UIContext, + ScrollSizeMode, + SheetKeyboardAvoidMode } from "@arkoala/arkui/ArkCommonInterfaces" +import { Dimension, + Length, + LengthMetrics, + Resource, + ResourceColor, + ResourceStr, + Font } from "@arkoala/arkui/ArkUnitsInterfaces" + +import { TextOverflow, TextHeightAdaptivePolicy } from "@arkoala/arkui/ArkEnumsInterfaces" + +const testString1000 = "One Thousand words One Thousand words One Thousand words One Thousand words One Thousand words One Thousand words One Thousand words One Thousand words One Thousand words One Thousand words One Thousand words One Thousand words One Thousand words One Thousand words One Thousand words One Thousand words One Thousand words One Thousand words One Thousand words One Thousand words One Thousand words One Thousand words One Thousand words One Thousand words One Thousand words One Thousand words One Thousand words One Thousand words One Thousand words One Thousand words One Thousand words One Thousand words One Thousand words One Thousand words One Thousand words One Thousand words One Thousand words One Thousand words One Thousand words One Thousand words One Thousand words One Thousand words One Thousand words One Thousand words One Thousand words One Thousand words One Thousand words One Thousand words One Thousand words One Thousand words One Thousand words One Thousand words One Thousand"; + +/* +V8: +backdropBlur: 1456ms for 5000000 iteration, 291ms per 1M iterations +widthAttributeString: 1006ms for 5000000 iteration, 201ms per 1M iterations + + +PANDA: +"backdropBlur: 3518ms for 5000000 iteration, 704ms per 5000000 iterations" +"widthAttributeString: 1380ms for 5000000 iteration, 276ms per 5000000 iterations" + +JVM: +backdropBlur: 284ms for 5000000 iteration, 57ms per 1M iterations +widthAttributeString: 502ms for 5000000 iteration, 100ms per 1M iterations + +*/ + +let hasTestErrors = false + +function checkPerf(count: number) { + let start = Date.now() + for (let i = 0; i < count; i++) { + NativeModule._TestPerfNumber(i) + } + let passed = Date.now() - start + console.log(`NUMBER: ${passed}ms for ${count} iteration, ${Math.round(passed / count * 1000000)}ms per 1M iterations`) + + start = Date.now() + for (let i = 0; i < count; i++) { + let data = new byte[5] + data[0] = 1 + data[1] = (i >> 24) as byte + data[2] = (i >> 16) as byte + data[3] = (i >> 8) as byte + data[4] = (i >> 0) as byte + NativeModule._TestPerfNumberWithArray(data, data.length) + } + passed = Date.now() - start + console.log(`ARRAY: ${passed}ms for ${count} iteration, ${Math.round(passed / count * 1000000)}ms per 1M iterations`) +} + +export function getNativeLog(): string { + let ptr = NativeModule._GetGroupedLog(1) + let length = NativeModule._StringLength(ptr) + let data = new byte[length] + NativeModule._StringData(ptr, data, length) + NativeModule._InvokeFinalizer(ptr, NativeModule._GetStringFinalizer()) + // TODO: better string decoding. + let result = new StringBuilder() + for (let i = 0; i < length; i++) { + result.append(String.fromCharCode(data[i] as number)) + } + return result.toString() +} + +export function checkResult(name: string, test: () => void, expected: string) { + NativeModule._StartGroupedLog(1) + test() + NativeModule._StopGroupedLog(1) + const actual = getNativeLog() + if (actual != expected) { + console.log(`TEST ${name} FAIL:\n EXPECTED "${expected}"\n ACTUAL "${actual}"`) + hasTestErrors = true + } else { + console.log(`TEST ${name} PASS`) + } +} + +class LabelStyleImpl implements LabelStyle { + _textOverflow: TextOverflow | undefined + _maxLines: number | undefined + _minFontSize: number | ResourceStr | undefined + _maxFontSize: number | ResourceStr | undefined + _heightAdaptivePolicy: TextHeightAdaptivePolicy | undefined + _font: Font | undefined + + constructor(maxLines?: number) { + this._maxLines = maxLines + } + + get overflow(): TextOverflow | undefined { + return this._textOverflow + } + set overflow(arg: TextOverflow | undefined) { + this._textOverflow = arg + } + + get maxLines(): number | undefined { + return this._maxLines + } + set maxLines(arg: number | undefined) { + this._maxLines = arg + } + + get minFontSize(): number | ResourceStr | undefined { + return this._minFontSize + } + set minFontSize(arg: number | ResourceStr | undefined) { + this._minFontSize = arg + } + + get maxFontSize(): number | ResourceStr | undefined { + return this._maxFontSize + } + set maxFontSize(arg: number | ResourceStr | undefined) { + this._maxFontSize = arg + } + + get heightAdaptivePolicy(): TextHeightAdaptivePolicy | undefined { + return this._heightAdaptivePolicy + } + set heightAdaptivePolicy(arg: TextHeightAdaptivePolicy | undefined) { + this._heightAdaptivePolicy = arg + } + + get font(): Font | undefined { + return this._font + } + set font(arg: Font | undefined) { + this._font = arg + } +} + +class SheetTitleOptionsImpl implements SheetTitleOptions { + _title: ResourceStr + _subtitle: ResourceStr | undefined + + constructor(title: ResourceStr) { + this._title = title + } + + get title(): ResourceStr { + return this._title + } + set title(arg: ResourceStr) { + this._title = arg + } + + get subtitle(): ResourceStr | undefined { + return this._subtitle + } + set subtitle(arg: ResourceStr | undefined) { + this._subtitle = arg + } +} + +class SheetOptionsImpl implements SheetOptions { + _title: SheetTitleOptions | CustomBuilder| undefined + _detents: [(SheetSize | Length), (SheetSize | Length) | undefined, (SheetSize | Length) | undefined] | undefined + _height: SheetSize | Length| undefined + _dragBar: boolean| undefined + _maskColor: ResourceColor| undefined + _blurStyle: BlurStyle| undefined + _showClose: boolean | Resource| undefined + _preferType: SheetType| undefined + _shouldDismiss: ((sheetDismiss: SheetDismiss) => void) | undefined + _onWillDismiss: Callback| undefined + _onWillSpringBackWhenDismiss: Callback| undefined + _enableOutsideInteractive: boolean| undefined + _width: Dimension| undefined + _borderWidth: Dimension | EdgeWidths | LocalizedEdgeWidths| undefined + _borderColor: ResourceColor | EdgeColors | LocalizedEdgeColors| undefined + _borderStyle: BorderStyle | EdgeStyles| undefined + _shadow: ShadowOptions | ShadowStyle| undefined + _onHeightDidChange: Callback| undefined + _mode: SheetMode| undefined + _scrollSizeMode?: ScrollSizeMode | undefined + _onDetentsDidChange: Callback| undefined + _onWidthDidChange: Callback| undefined + _onTypeDidChange: Callback| undefined + _uiContext: UIContext| undefined + _backgroundColor: ResourceColor | undefined + _onAppear: (() => void) | undefined + _onDisappear: (() => void) | undefined + _onWillAppear: (() => void) | undefined + _onWillDisappear: (() => void) | undefined + _expandSafeAreaInEmbeddedMode: boolean | undefined + _keyboardAvoidMode: SheetKeyboardAvoidMode | undefined + + constructor(title?: SheetTitleOptions) { + this._title = title + } + + get title(): SheetTitleOptions | CustomBuilder| undefined { + return this._title + } + set title(arg: SheetTitleOptions | CustomBuilder| undefined) { + this._title = arg + } + + get onWillDismiss(): Callback| undefined { + return this._onWillDismiss + } + set onWillDismiss(arg: Callback| undefined) { + this._onWillDismiss = arg + } + + get detents(): [(SheetSize | Length), (SheetSize | Length) | undefined, (SheetSize | Length) | undefined] | undefined { + return this._detents + } + set detents(arg: [(SheetSize | Length), (SheetSize | Length) | undefined, (SheetSize | Length) | undefined] | undefined) { + this._detents = arg + } + + get height(): SheetSize | Length| undefined { + return this._height + } + set height(arg: SheetSize | Length| undefined) { + this._height = arg + } + + get dragBar(): boolean| undefined { + return this._dragBar + } + set dragBar(arg: boolean| undefined) { + this._dragBar = arg + } + + get maskColor(): ResourceColor| undefined { + return this._maskColor + } + set maskColor(arg: ResourceColor| undefined) { + this._maskColor = arg + } + + get blurStyle(): BlurStyle| undefined { + return this._blurStyle + } + set blurStyle(arg: BlurStyle| undefined) { + this._blurStyle = arg + } + + get showClose(): boolean | Resource| undefined { + return this._showClose + } + set showClose(arg: boolean | Resource| undefined) { + this._showClose = arg + } + + get preferType(): SheetType| undefined { + return this._preferType + } + set preferType(arg: SheetType| undefined) { + this._preferType = arg + } + + get shouldDismiss(): ((sheetDismiss: SheetDismiss) => void) | undefined { + return this._shouldDismiss + } + set shouldDismiss(arg: ((sheetDismiss: SheetDismiss) => void) | undefined) { + this._shouldDismiss = arg + } + + get onWillSpringBackWhenDismiss(): Callback| undefined { + return this._onWillSpringBackWhenDismiss + } + set onWillSpringBackWhenDismiss(arg: Callback| undefined) { + this._onWillSpringBackWhenDismiss = arg + } + + get enableOutsideInteractive(): boolean| undefined { + return this._enableOutsideInteractive + } + set enableOutsideInteractive(arg: boolean| undefined) { + this._enableOutsideInteractive = arg + } + + get width(): Dimension| undefined { + return this._width + } + set width(arg: Dimension| undefined) { + this._width = arg + } + + get borderWidth(): Dimension | EdgeWidths | LocalizedEdgeWidths| undefined { + return this._borderWidth + } + set borderWidth(arg: Dimension | EdgeWidths | LocalizedEdgeWidths| undefined) { + this._borderWidth = arg + } + + get borderColor(): ResourceColor | EdgeColors | LocalizedEdgeColors| undefined { + return this._borderColor + } + set borderColor(arg: ResourceColor | EdgeColors | LocalizedEdgeColors| undefined) { + this._borderColor = arg + } + + get borderStyle(): BorderStyle | EdgeStyles| undefined { + return this._borderStyle + } + set borderStyle(arg: BorderStyle | EdgeStyles| undefined) { + this._borderStyle = arg + } + + get shadow(): ShadowOptions | ShadowStyle| undefined { + return this._shadow + } + set shadow(arg: ShadowOptions | ShadowStyle| undefined) { + this._shadow = arg + } + + get onHeightDidChange(): Callback| undefined { + return this._onHeightDidChange + } + set onHeightDidChange(arg: Callback| undefined) { + this._onHeightDidChange = arg + } + + get mode(): SheetMode| undefined { + return this._mode + } + set mode(arg: SheetMode| undefined) { + this._mode = arg + } + + get scrollSizeMode(): ScrollSizeMode| undefined { + return this._scrollSizeMode + } + set scrollSizeMode(arg: ScrollSizeMode| undefined) { + this._scrollSizeMode = arg + } + + get onDetentsDidChange(): Callback| undefined { + return this._onDetentsDidChange + } + set onDetentsDidChange(arg: Callback| undefined) { + this._onDetentsDidChange = arg + } + + get onWidthDidChange(): Callback| undefined { + return this._onWidthDidChange + } + set onWidthDidChange(arg: Callback| undefined) { + this._onWidthDidChange = arg + } + + get onTypeDidChange(): Callback| undefined { + return this._onTypeDidChange + } + set onTypeDidChange(arg: Callback| undefined) { + this._onTypeDidChange = arg + } + + get uiContext(): UIContext| undefined { + return this._uiContext + } + set uiContext(arg: UIContext| undefined) { + this._uiContext = arg + } + + get backgroundColor(): ResourceColor | undefined { + return this._backgroundColor + } + set backgroundColor(arg: ResourceColor | undefined) { + this._backgroundColor = arg + } + + get onAppear(): (() => void) | undefined { + return this._onAppear + } + set onAppear(arg: (() => void) | undefined) { + this._onAppear = arg + } + + get onDisappear(): (() => void) | undefined { + return this._onDisappear + } + set onDisappear(arg: (() => void) | undefined) { + this._onDisappear = arg + } + + get onWillAppear(): (() => void) | undefined { + return this._onWillAppear + } + set onWillAppear(arg: (() => void) | undefined) { + this._onWillAppear = arg + } + + get onWillDisappear(): (() => void) | undefined { + return this._onWillDisappear + } + set onWillDisappear(arg: (() => void) | undefined) { + this._onWillDisappear = arg + } + + get expandSafeAreaInEmbeddedMode(): boolean | undefined { + return this._expandSafeAreaInEmbeddedMode + } + set expandSafeAreaInEmbeddedMode(arg: boolean | undefined) { + this._expandSafeAreaInEmbeddedMode = arg + } + + get keyboardAvoidMode(): SheetKeyboardAvoidMode | undefined { + return this._keyboardAvoidMode + } + set keyboardAvoidMode(arg: SheetKeyboardAvoidMode | undefined) { + this._keyboardAvoidMode = arg + } +} + +class BlurOptionsImpl implements BlurOptions { + _grayscale: [number, number] + + constructor(grayscale: [number, number]) { + this._grayscale = grayscale + } + + get grayscale(): [number, number] { + return this._grayscale + } + set grayscale(arg: [number, number]) { + this._grayscale = arg + } +} + +function checkPerf2(count: number) { + let peer = ArkButtonPeer.create(ArkUINodeType.Button) + let start = Date.now() + for (let i = 0; i < count; i++) { + peer.backdropBlurAttribute(i, i % 2 == 0 ? undefined : new BlurOptionsImpl([1, 2] as [number, number])) + } + let passed = Date.now() - start + console.log(`backdropBlur: ${Math.round(passed)}ms for ${count} iteration, ${Math.round(passed / count * 1_000_000)}ms per 1M iterations`) +} + +function checkPerf3(count: number) { + let peer = ArkButtonPeer.create(ArkUINodeType.Button) + let start = Date.now() + for (let i = 0; i < count; i++) { + peer.widthAttribute(testString1000) + } + let passed = Date.now() - start + console.log(`widthAttributeString: ${Math.round(passed)}ms for ${count} iteration, ${Math.round(passed / count * 1_000_000)}ms per 1M iterations`) +} + +function checkButton() { + let data = new byte[5] + data[0] = 42 + checkResult("TestPerfNumberWithArray", + () => NativeModule._TestPerfNumberWithArray(data, data.length), + "TestPerfNumberWithArray(42, 5)") + let peer = ArkButtonPeer.create(ArkUINodeType.Button) + checkResult("width", () => peer.widthAttribute("42%"), + "width({.type=2, .value=42.000000, .unit=3, .resource=0})") + checkResult("type", () => peer.typeAttribute(ButtonType.of(1)), "type(Ark_ButtonType(1))") + checkResult("labelStyle", () => peer.labelStyleAttribute(new LabelStyleImpl(3)), + "labelStyle({.overflow={.tag=ARK_TAG_UNDEFINED, .value={}}, .maxLines={.tag=ARK_TAG_OBJECT, .value={.tag=102, .i32=3}}, .minFontSize={.tag=ARK_TAG_UNDEFINED, .value={}}, .maxFontSize={.tag=ARK_TAG_UNDEFINED, .value={}}, .heightAdaptivePolicy={.tag=ARK_TAG_UNDEFINED, .value={}}, .font={.tag=ARK_TAG_UNDEFINED, .value={}}})") + checkResult("labelStyle2", () => peer.labelStyleAttribute(new LabelStyleImpl()), + "labelStyle({.overflow={.tag=ARK_TAG_UNDEFINED, .value={}}, .maxLines={.tag=ARK_TAG_UNDEFINED, .value={}}, .minFontSize={.tag=ARK_TAG_UNDEFINED, .value={}}, .maxFontSize={.tag=ARK_TAG_UNDEFINED, .value={}}, .heightAdaptivePolicy={.tag=ARK_TAG_UNDEFINED, .value={}}, .font={.tag=ARK_TAG_UNDEFINED, .value={}}})") + const resource: Resource = { + id: 43, + bundleName: "MyApp", + moduleName: "MyApp" + } + checkResult("height", () => peer.heightAttribute(resource), + "height({.type=3, .value=0.000000, .unit=1, .resource=43})") + checkResult("height", () => peer.heightAttribute(44), + "height({.type=1, .value=44.000000, .unit=1, .resource=0})") + checkResult("bindSheet", () => + peer.bindSheetAttribute(false, (): Object => {}, new SheetOptionsImpl(new SheetTitleOptionsImpl("My App"))), + "bindSheet({.tag=ARK_TAG_OBJECT, .value=false}, {.selector=0, .value0={.id=42}}, {.tag=ARK_TAG_OBJECT, .value={.backgroundColor={.tag=ARK_TAG_UNDEFINED, .value={}}, .onAppear={.tag=ARK_TAG_UNDEFINED, .value={}}, .onDisappear={.tag=ARK_TAG_UNDEFINED, .value={}}, .onWillAppear={.tag=ARK_TAG_UNDEFINED, .value={}}, .onWillDisappear={.tag=ARK_TAG_UNDEFINED, .value={}}, .height={.tag=ARK_TAG_UNDEFINED, .value={}}, .dragBar={.tag=ARK_TAG_UNDEFINED, .value={}}, .maskColor={.tag=ARK_TAG_UNDEFINED, .value={}}, .detents={.tag=ARK_TAG_UNDEFINED, .value={}}, .blurStyle={.tag=ARK_TAG_UNDEFINED, .value={}}, .showClose={.tag=ARK_TAG_UNDEFINED, .value={}}, .preferType={.tag=ARK_TAG_UNDEFINED, .value={}}, .title={.tag=ARK_TAG_OBJECT, .value={.selector=0, .value0={.title={.selector=0, .value0={.chars=\"My App\", .length=6}}, .subtitle={.tag=ARK_TAG_UNDEFINED, .value={}}}}}, .shouldDismiss={.tag=ARK_TAG_UNDEFINED, .value={}}, .onWillDismiss={.tag=ARK_TAG_UNDEFINED, .value={}}, .onWillSpringBackWhenDismiss={.tag=ARK_TAG_UNDEFINED, .value={}}, .enableOutsideInteractive={.tag=ARK_TAG_UNDEFINED, .value={}}, .width={.tag=ARK_TAG_UNDEFINED, .value={}}, .borderWidth={.tag=ARK_TAG_UNDEFINED, .value={}}, .borderColor={.tag=ARK_TAG_UNDEFINED, .value={}}, .borderStyle={.tag=ARK_TAG_UNDEFINED, .value={}}, .shadow={.tag=ARK_TAG_UNDEFINED, .value={}}, .onHeightDidChange={.tag=ARK_TAG_UNDEFINED, .value={}}, .mode={.tag=ARK_TAG_UNDEFINED, .value={}}, .scrollSizeMode={.tag=ARK_TAG_UNDEFINED, .value={}}, .onDetentsDidChange={.tag=ARK_TAG_UNDEFINED, .value={}}, .onWidthDidChange={.tag=ARK_TAG_UNDEFINED, .value={}}, .onTypeDidChange={.tag=ARK_TAG_UNDEFINED, .value={}}, .expandSafeAreaInEmbeddedMode={.tag=ARK_TAG_UNDEFINED, .value={}}, .uiContext={.tag=ARK_TAG_UNDEFINED, .value={}}, .keyboardAvoidMode={.tag=ARK_TAG_UNDEFINED, .value={}}}})" + ) +} + +function checkCallback() { + const id1 = wrapCallback((args: byte[], length: int) => 2024) + const id2 = wrapCallback((args: byte[], length: int) => 2025) + + assertEquals("Call callback 1", 2024, callCallback(id1, [], 0)) + assertEquals("Call callback 2", 2025, callCallback(id2, [], 0)) + assertThrows("Call disposed callback 1", () => { callCallback(id1, [], 0) }) + assertThrows("Call callback 0", () => { callCallback(0, [2, 4, 6, 8], 4) }) +} + +function checkNativeCallback() { + const id1 = wrapCallback((args: byte[], length: int): int => { + return 123456 + }) + assertEquals("NativeCallback without args", 123456, nativeModule()._TestCallIntNoArgs(id1)) + assertThrows("NativeCallback without args called again", () => { callCallback(id1, [], 0) }) + assertThrows("NativeCallback without args called again from native", () => { nativeModule()._TestCallIntNoArgs(id1) }) + + const id2 = wrapCallback((args: byte[], length: int): int => { + const buf = new ArrayBuffer(length) + const view = new DataView(buf) + const args32 = new Int32Array(buf) + for (let i = 0; i < length; i++) { + view.setUint8(i, args[i]); + } + let sum: int = 0 + for (let i = 0; i < args32.length; i++) { + sum += args32[i] + } + return sum + }) + const arr2: int[] = [100, 200, 300, -1000] + assertEquals("NativeCallback Int32Array sum", -400, nativeModule()._TestCallIntIntArraySum(id2, arr2, arr2.length)) + + const id3 = wrapCallback((args: byte[], length: int): int => { + const buf = new ArrayBuffer(length) + const view = new DataView(buf) + const args32 = new Int32Array(buf) + for (let i = 0; i < length; i++) { + view.setUint8(i, args[i]); + } + for (let i = 1; i < args32.length; i++) { + args32[i] += args32[i - 1] + } + for (let i = 0; i < length; i++) { + args[i] = view.getUint8(i) as byte + } + return 0 + }) + const arr3: int[] = [100, 200, 300, -1000] + nativeModule()._TestCallVoidIntArrayPrefixSum(id3, arr3, arr3.length) + assertEquals("NativeCallback Int32Array PrefixSum [0]", 100, arr3[0]) + assertEquals("NativeCallback Int32Array PrefixSum [1]", 300, arr3[1]) + assertEquals("NativeCallback Int32Array PrefixSum [2]", 600, arr3[2]) + assertEquals("NativeCallback Int32Array PrefixSum [3]", -400, arr3[3]) + + const start = Date.now() + const id4 = wrapCallback((args: byte[], length: int): int => { + const buf = new ArrayBuffer(length) + const view = new DataView(buf) + const args32 = new Int32Array(buf) + for (let i = 0; i < length; i++) { + view.setUint8(i, args[i]); + } + args32[1]++ + for (let i = 0; i < length; i++) { + args[i] = view.getUint8(i) as byte + } + if (args32[0] + args32[1] < args32[2]) { + return nativeModule()._TestCallIntRecursiveCallback(id3 + 1, args, args.length) + } + return 1 + }, false) + assertEquals("NativeCallback prepare recursive callback test", id4, id3 + 1) + const depth = 500 + const count = 100 + for (let i = 0; i < count; i++) { + const length = 12 + const args = new byte[length] + const buf = new ArrayBuffer(length) + const view = new DataView(buf) + const args32 = new Int32Array(buf) + args32[2] = depth + for (let i = 0; i < length; i++) { + args[i] = view.getUint8(i) as byte + } + nativeModule()._TestCallIntRecursiveCallback(id4, args, args.length) + for (let i = 0; i < length; i++) { + view.setUint8(i, args[i]); + } + if (i == 0) { + assertEquals("NativeCallback Recursive [0]", Math.ceil(depth / 2), args32[0]) + assertEquals("NativeCallback Recursive [1]", Math.floor(depth / 2), args32[1]) + } + } + const passed = Date.now() - start + console.log(`recursive native callback: ${Math.round(passed)}ms for ${depth * count} callbacks, ${Math.round(passed / (depth * count) * 1000000)}ms per 1M callbacks`) + + const id5 = wrapCallback((args: byte[], length: int): int => { + let sum: int = 0 + for (let i = 0; i < args.length; i++) { + sum += args[i] + } + return sum + }, false) + nativeModule()._TestCallIntMemory(id5, 1000) +} + +function checkNodeAPI() { + console.log("TreeNode tests") + + const root = ArkColumnPeer.create(ArkUINodeType.Column, undefined, 0) + const child1 = ArkButtonPeer.create(ArkUINodeType.Button, undefined, 0) + const child2 = ArkButtonPeer.create(ArkUINodeType.Blank, undefined, 0) + const child3 = ArkButtonPeer.create(ArkUINodeType.List, undefined, 0) + const child4 = ArkButtonPeer.create(ArkUINodeType.Web, undefined, 0) + const child5 = ArkButtonPeer.create(ArkUINodeType.Web, undefined, 0) + + checkResult("BasicNodeAPI addChild", () => root.peer.addChild(child1.peer), + `addChild(0x${root.peer.ptr}, 0x${child1.peer.ptr})`) + checkResult("BasicNodeAPI insertChildAfter", () => root.peer.insertChildAfter(child4.peer, child1.peer), + `insertChildAfter(0x${root.peer.ptr}, 0x${child4.peer.ptr}, 0x${child1.peer.ptr})`) + checkResult("BasicNodeAPI insertChildBefore", () => root.peer.insertChildBefore(child3.peer, child4.peer), + `insertChildBefore(0x${root.peer.ptr}, 0x${child3.peer.ptr}, 0x${child4.peer.ptr})`) + checkResult("BasicNodeAPI insertChildAt", () => root.peer.insertChildAt(child2.peer, 1), + `insertChildAt(0x${root.peer.ptr}, 0x${child2.peer.ptr}, 1)`) + checkResult("BasicNodeAPI insertChildAfter (empty tree case)", () => child4.peer.insertChildAfter(child5.peer, undefined), + `insertChildAfter(0x${child4.peer.ptr}, 0x${child5.peer.ptr}, 0x0)`) + checkResult("BasicNodeAPI removeChild", () => root.peer.removeChild(child2.peer), + `removeChild(0x${root.peer.ptr}, 0x${child2.peer.ptr})`) + checkResult("BasicNodeAPI dispose", () => child2.peer.dispose(), + `disposeNode(0x${child2.peer.ptr})`) + checkResult("BasicNodeAPI dumpTree", () => root.peer.dumpTree(), + `dumpTreeNode(0x${root.peer.ptr})`) + checkResult("BasicNodeAPI measureLayoutAndDraw", () => NativeModule._MeasureLayoutAndDraw(root.peer.ptr), + `measureLayoutAndDraw(0x${root.peer.ptr})`) +} + +export function main(): void { + checkPerf(5 * 1000 * 1000) + checkPerf2(5 * 1000 * 1000) + checkPerf3(5 * 1000 * 1000) + + checkButton() + + checkCallback() + checkNativeCallback() + + checkNodeAPI() + + if (hasTestErrors) { + throw new Error("Tests failed!") + } +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkAbilityComponentPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkAbilityComponentPeer.ts new file mode 100644 index 000000000..562703363 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkAbilityComponentPeer.ts @@ -0,0 +1,66 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { AbilityComponentAttribute, AbilityComponentInterface } from "./../ArkAbilityComponentInterfaces" +import { IMPORT_default_FROM_api_ohos_app_ability_Want, LITERAL_WantIMPORTdefaultFROMapiohosappabilityWant } from "./../SyntheticDeclarations" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkAbilityComponentPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkAbilityComponentPeer { + const _peer = new ArkAbilityComponentPeer(nodeType, flags, "AbilityComponent") + component?.setPeer(_peer) + return _peer + } + setAbilityComponentOptionsAttribute(value: LITERAL_WantIMPORTdefaultFROMapiohosappabilityWant): void { + const thisSerializer = SerializerBase.hold(createSerializer) + const value_want = value.want + thisSerializer.writeCustomObject("default", value_want) + NativeModule._AbilityComponentInterface_setAbilityComponentOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + onConnectAttribute(callback: (() => void)): void { + NativeModule._AbilityComponentAttribute_onConnect(this.peer.ptr, registerCallback(callback)); + } + onDisconnectAttribute(callback: (() => void)): void { + NativeModule._AbilityComponentAttribute_onDisconnect(this.peer.ptr, registerCallback(callback)); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkAbilityComponentAttributes extends ArkCommonMethodAttributes { + onConnect?: (() => void) + onDisconnect?: (() => void) +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkAlphabetIndexerPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkAlphabetIndexerPeer.ts new file mode 100644 index 000000000..d2807d47c --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkAlphabetIndexerPeer.ts @@ -0,0 +1,423 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { AlphabetIndexerAttribute, IndexerAlign, OnAlphabetIndexerSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerPopupSelectCallback, AlphabetIndexerOptions, AlphabetIndexerInterface } from "./../ArkAlphabetIndexerInterfaces" +import { ResourceColor, Resource, Font, Length, Position } from "./../ArkUnitsInterfaces" +import { Color } from "./../ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource } from "./../SyntheticDeclarations" +import { BlurStyle } from "./../ArkCommonInterfaces" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkAlphabetIndexerPeer { + const _peer = new ArkAlphabetIndexerPeer(nodeType, flags, "AlphabetIndexer") + component?.setPeer(_peer) + return _peer + } + setAlphabetIndexerOptionsAttribute(options: AlphabetIndexerOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeAlphabetIndexerOptions(options) + NativeModule._AlphabetIndexerInterface_setAlphabetIndexerOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + onSelectedAttribute(callback: ((index: number) => void)): void { + NativeModule._AlphabetIndexerAttribute_onSelected(this.peer.ptr, registerCallback(callback)); + } + colorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._AlphabetIndexerAttribute_color(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + selectedColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._AlphabetIndexerAttribute_selectedColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + popupColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._AlphabetIndexerAttribute_popupColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + selectedBackgroundColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._AlphabetIndexerAttribute_selectedBackgroundColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + popupBackgroundAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._AlphabetIndexerAttribute_popupBackground(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + popupSelectedColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._AlphabetIndexerAttribute_popupSelectedColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + popupUnselectedColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._AlphabetIndexerAttribute_popupUnselectedColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + popupItemBackgroundColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._AlphabetIndexerAttribute_popupItemBackgroundColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + usingPopupAttribute(value: boolean): void { + NativeModule._AlphabetIndexerAttribute_usingPopup(this.peer.ptr, value ? 1 : 0); + } + selectedFontAttribute(value: Font): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeFont(value) + NativeModule._AlphabetIndexerAttribute_selectedFont(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + popupFontAttribute(value: Font): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeFont(value) + NativeModule._AlphabetIndexerAttribute_popupFont(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + popupItemFontAttribute(value: Font): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeFont(value) + NativeModule._AlphabetIndexerAttribute_popupItemFont(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + itemSizeAttribute(value: string | number): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as string + thisSerializer.writeString(value_0) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + NativeModule._AlphabetIndexerAttribute_itemSize(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + fontAttribute(value: Font): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeFont(value) + NativeModule._AlphabetIndexerAttribute_font(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + alignStyleAttribute(value: IndexerAlign, offset?: Length): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let offset_type = RuntimeType.UNDEFINED + if (offset != undefined) { + offset_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(offset_type as int32) + if ((RuntimeType.UNDEFINED) != (offset_type)) { + const offset_value = offset! + thisSerializer.writeLength(offset_value); + } + NativeModule._AlphabetIndexerAttribute_alignStyle(this.peer.ptr, (value.value as int32), thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + onSelectAttribute(callback: OnAlphabetIndexerSelectCallback): void { + NativeModule._AlphabetIndexerAttribute_onSelect(this.peer.ptr, registerCallback(callback)); + } + onRequestPopupDataAttribute(callback: OnAlphabetIndexerRequestPopupDataCallback): void { + NativeModule._AlphabetIndexerAttribute_onRequestPopupData(this.peer.ptr, registerCallback(callback)); + } + onPopupSelectAttribute(callback: OnAlphabetIndexerPopupSelectCallback): void { + NativeModule._AlphabetIndexerAttribute_onPopupSelect(this.peer.ptr, registerCallback(callback)); + } + selectedAttribute(index: number): void { + NativeModule._AlphabetIndexerAttribute_selected(this.peer.ptr, index); + } + popupPositionAttribute(value: Position): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writePosition(value) + NativeModule._AlphabetIndexerAttribute_popupPosition(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + autoCollapseAttribute(value: boolean): void { + NativeModule._AlphabetIndexerAttribute_autoCollapse(this.peer.ptr, value ? 1 : 0); + } + popupItemBorderRadiusAttribute(value: number): void { + NativeModule._AlphabetIndexerAttribute_popupItemBorderRadius(this.peer.ptr, value); + } + itemBorderRadiusAttribute(value: number): void { + NativeModule._AlphabetIndexerAttribute_itemBorderRadius(this.peer.ptr, value); + } + popupBackgroundBlurStyleAttribute(value: BlurStyle): void { + NativeModule._AlphabetIndexerAttribute_popupBackgroundBlurStyle(this.peer.ptr, (value.value as int32)); + } + popupTitleBackgroundAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._AlphabetIndexerAttribute_popupTitleBackground(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + enableHapticFeedbackAttribute(value: boolean): void { + NativeModule._AlphabetIndexerAttribute_enableHapticFeedback(this.peer.ptr, value ? 1 : 0); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkAlphabetIndexerAttributes extends ArkCommonMethodAttributes { + onSelected?: ((index: number) => void) + color?: ResourceColor + selectedColor?: ResourceColor + popupColor?: ResourceColor + selectedBackgroundColor?: ResourceColor + popupBackground?: ResourceColor + popupSelectedColor?: ResourceColor + popupUnselectedColor?: ResourceColor + popupItemBackgroundColor?: ResourceColor + usingPopup?: boolean + selectedFont?: Font + popupFont?: Font + popupItemFont?: Font + itemSize?: string | number + font?: Font + onSelect?: OnAlphabetIndexerSelectCallback + onRequestPopupData?: OnAlphabetIndexerRequestPopupDataCallback + onPopupSelect?: OnAlphabetIndexerPopupSelectCallback + selected?: number + popupPosition?: Position + autoCollapse?: boolean + popupItemBorderRadius?: number + itemBorderRadius?: number + popupBackgroundBlurStyle?: BlurStyle + popupTitleBackground?: ResourceColor + enableHapticFeedback?: boolean +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkAnimatorPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkAnimatorPeer.ts new file mode 100644 index 000000000..371dc9a42 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkAnimatorPeer.ts @@ -0,0 +1,129 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { AnimationStatus, Curve, FillMode, PlayMode } from "./../ArkEnumsInterfaces" +import { AnimatorAttribute, SpringMotion, FrictionMotion, ScrollMotion, AnimatorInterface, SpringProp } from "./../ArkAnimatorInterfaces" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkAnimatorPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkAnimatorPeer { + const _peer = new ArkAnimatorPeer(nodeType, flags, "Animator") + component?.setPeer(_peer) + return _peer + } + setAnimatorOptionsAttribute(value: string): void { + NativeModule._AnimatorInterface_setAnimatorOptions(this.peer.ptr, value); + } + stateAttribute(value: AnimationStatus): void { + NativeModule._AnimatorAttribute_state(this.peer.ptr, (value.value as int32)); + } + durationAttribute(value: number): void { + NativeModule._AnimatorAttribute_duration(this.peer.ptr, value); + } + curveAttribute(value: Curve): void { + NativeModule._AnimatorAttribute_curve(this.peer.ptr, (value.value as int32)); + } + delayAttribute(value: number): void { + NativeModule._AnimatorAttribute_delay(this.peer.ptr, value); + } + fillModeAttribute(value: FillMode): void { + NativeModule._AnimatorAttribute_fillMode(this.peer.ptr, (value.value as int32)); + } + iterationsAttribute(value: number): void { + NativeModule._AnimatorAttribute_iterations(this.peer.ptr, value); + } + playModeAttribute(value: PlayMode): void { + NativeModule._AnimatorAttribute_playMode(this.peer.ptr, (value.value as int32)); + } + motionAttribute(value: SpringMotion | FrictionMotion | ScrollMotion): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof SpringMotion)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as SpringMotion + thisSerializer.writeSpringMotion(value_0) + } + else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof FrictionMotion)) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as FrictionMotion + thisSerializer.writeFrictionMotion(value_1) + } + else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof ScrollMotion)) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as ScrollMotion + thisSerializer.writeScrollMotion(value_2) + } + NativeModule._AnimatorAttribute_motion(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + onStartAttribute(event: (() => void)): void { + NativeModule._AnimatorAttribute_onStart(this.peer.ptr, registerCallback(event)); + } + onPauseAttribute(event: (() => void)): void { + NativeModule._AnimatorAttribute_onPause(this.peer.ptr, registerCallback(event)); + } + onRepeatAttribute(event: (() => void)): void { + NativeModule._AnimatorAttribute_onRepeat(this.peer.ptr, registerCallback(event)); + } + onCancelAttribute(event: (() => void)): void { + NativeModule._AnimatorAttribute_onCancel(this.peer.ptr, registerCallback(event)); + } + onFinishAttribute(event: (() => void)): void { + NativeModule._AnimatorAttribute_onFinish(this.peer.ptr, registerCallback(event)); + } + onFrameAttribute(event: ((value: number) => void)): void { + NativeModule._AnimatorAttribute_onFrame(this.peer.ptr, registerCallback(event)); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkAnimatorAttributes extends ArkCommonMethodAttributes { + state?: AnimationStatus + duration?: number + curve?: Curve + delay?: number + fillMode?: FillMode + iterations?: number + playMode?: PlayMode + motion?: SpringMotion | FrictionMotion | ScrollMotion + onStart?: (() => void) + onPause?: (() => void) + onRepeat?: (() => void) + onCancel?: (() => void) + onFinish?: (() => void) + onFrame?: ((value: number) => void) +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkBadgePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkBadgePeer.ts new file mode 100644 index 000000000..31dc60d5e --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkBadgePeer.ts @@ -0,0 +1,65 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { BadgeAttribute, BadgeParamWithNumber, BadgeParamWithString, BadgeInterface, BadgeParam, BadgePosition, BadgeStyle } from "./../ArkBadgeInterfaces" +import { Position, ResourceColor, Resource, Length } from "./../ArkUnitsInterfaces" +import { Color, FontWeight } from "./../ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource } from "./../SyntheticDeclarations" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkBadgePeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkBadgePeer { + const _peer = new ArkBadgePeer(nodeType, flags, "Badge") + component?.setPeer(_peer) + return _peer + } + setBadgeOptions0Attribute(value: BadgeParamWithNumber): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeBadgeParamWithNumber(value) + NativeModule._BadgeInterface_setBadgeOptions0(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + setBadgeOptions1Attribute(value: BadgeParamWithString): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeBadgeParamWithString(value) + NativeModule._BadgeInterface_setBadgeOptions1(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkBadgeAttributes extends ArkCommonMethodAttributes { +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkCalendarPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkCalendarPeer.ts new file mode 100644 index 000000000..5c3d82b89 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkCalendarPeer.ts @@ -0,0 +1,147 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { PeerNode } from "./../PeerNode" +import { CalendarAttribute, CurrentDayStyle, NonCurrentDayStyle, TodayStyle, WeekStyle, WorkStateStyle, CalendarSelectedDate, CalendarRequestedData, MonthData, CalendarInterface, CalendarDay } from "./../ArkCalendarInterfaces" +import { Axis, Color } from "./../ArkEnumsInterfaces" +import { LITERAL_YearNumberMonthNumberDayNumber, LITERAL_DateLITERALYearNumberMonthNumberDayNumberCurrentDataMonthDataPreDataMonthDataNextDataMonthDataControllerCalendarController, IMPORT_Resource_FROM_api_global_resource } from "./../SyntheticDeclarations" +import { CalendarController } from "./../ArkCalendarControllerMaterialized" +import { ResourceColor, Resource } from "./../ArkUnitsInterfaces" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkCalendarPeer extends PeerNode { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkCalendarPeer { + const _peer = new ArkCalendarPeer(nodeType, flags, "Calendar") + component?.setPeer(_peer) + return _peer + } + setCalendarOptionsAttribute(value: LITERAL_DateLITERALYearNumberMonthNumberDayNumberCurrentDataMonthDataPreDataMonthDataNextDataMonthDataControllerCalendarController): void { + const thisSerializer = SerializerBase.hold(createSerializer) + const value_date = value.date + const value_date_year = value_date.year + thisSerializer.writeNumber(value_date_year) + const value_date_month = value_date.month + thisSerializer.writeNumber(value_date_month) + const value_date_day = value_date.day + thisSerializer.writeNumber(value_date_day) + const value_currentData = value.currentData + thisSerializer.writeMonthData(value_currentData) + const value_preData = value.preData + thisSerializer.writeMonthData(value_preData) + const value_nextData = value.nextData + thisSerializer.writeMonthData(value_nextData) + const value_controller = value.controller + let value_controller_type = RuntimeType.UNDEFINED + if (value_controller != undefined) { + value_controller_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_controller_type as int32) + if ((RuntimeType.UNDEFINED) != (value_controller_type)) { + const value_controller_value = value_controller! + thisSerializer.writeMaterialized(value_controller_value) + } + NativeModule._CalendarInterface_setCalendarOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + showLunarAttribute(value: boolean): void { + NativeModule._CalendarAttribute_showLunar(this.peer.ptr, value ? 1 : 0); + } + showHolidayAttribute(value: boolean): void { + NativeModule._CalendarAttribute_showHoliday(this.peer.ptr, value ? 1 : 0); + } + needSlideAttribute(value: boolean): void { + NativeModule._CalendarAttribute_needSlide(this.peer.ptr, value ? 1 : 0); + } + startOfWeekAttribute(value: number): void { + NativeModule._CalendarAttribute_startOfWeek(this.peer.ptr, value); + } + offDaysAttribute(value: number): void { + NativeModule._CalendarAttribute_offDays(this.peer.ptr, value); + } + directionAttribute(value: Axis): void { + NativeModule._CalendarAttribute_direction(this.peer.ptr, (value.value as int32)); + } + currentDayStyleAttribute(value: CurrentDayStyle): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeCurrentDayStyle(value) + NativeModule._CalendarAttribute_currentDayStyle(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + nonCurrentDayStyleAttribute(value: NonCurrentDayStyle): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeNonCurrentDayStyle(value) + NativeModule._CalendarAttribute_nonCurrentDayStyle(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + todayStyleAttribute(value: TodayStyle): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeTodayStyle(value) + NativeModule._CalendarAttribute_todayStyle(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + weekStyleAttribute(value: WeekStyle): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeWeekStyle(value) + NativeModule._CalendarAttribute_weekStyle(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + workStateStyleAttribute(value: WorkStateStyle): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeWorkStateStyle(value) + NativeModule._CalendarAttribute_workStateStyle(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + onSelectChangeAttribute(event: ((event: CalendarSelectedDate) => void)): void { + NativeModule._CalendarAttribute_onSelectChange(this.peer.ptr, registerCallback(event)); + } + onRequestDataAttribute(event: ((event: CalendarRequestedData) => void)): void { + NativeModule._CalendarAttribute_onRequestData(this.peer.ptr, registerCallback(event)); + } + applyAttributes(attributes: ArkCalendarAttributes): void {} +} +export interface ArkCalendarAttributes { + showLunar?: boolean + showHoliday?: boolean + needSlide?: boolean + startOfWeek?: number + offDays?: number + direction?: Axis + currentDayStyle?: CurrentDayStyle + nonCurrentDayStyle?: NonCurrentDayStyle + todayStyle?: TodayStyle + weekStyle?: WeekStyle + workStateStyle?: WorkStateStyle + onSelectChange?: ((event: CalendarSelectedDate) => void) + onRequestData?: ((event: CalendarRequestedData) => void) +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkCheckboxPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkCheckboxPeer.ts new file mode 100644 index 000000000..78bc27f7e --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkCheckboxPeer.ts @@ -0,0 +1,151 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CheckboxAttribute, OnCheckboxChangeCallback, CheckBoxConfiguration, CheckboxOptions, CheckboxInterface } from "./../ArkCheckboxInterfaces" +import { ResourceColor, Resource, MarkStyle } from "./../ArkUnitsInterfaces" +import { Color, CheckBoxShape } from "./../ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource } from "./../SyntheticDeclarations" +import { ContentModifier } from "./../ConflictedDeclarations" +import { CommonConfiguration, Callback, CustomBuilder } from "./../ArkCommonInterfaces" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkCheckboxPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkCheckboxPeer { + const _peer = new ArkCheckboxPeer(nodeType, flags, "Checkbox") + component?.setPeer(_peer) + return _peer + } + setCheckboxOptionsAttribute(options?: CheckboxOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeCheckboxOptions(options_value) + } + NativeModule._CheckboxInterface_setCheckboxOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + selectAttribute(value: boolean): void { + NativeModule._CheckboxAttribute_select(this.peer.ptr, value ? 1 : 0); + } + selectedColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._CheckboxAttribute_selectedColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + shapeAttribute(value: CheckBoxShape): void { + NativeModule._CheckboxAttribute_shape(this.peer.ptr, (value.value as int32)); + } + unselectedColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._CheckboxAttribute_unselectedColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + markAttribute(value: MarkStyle): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeMarkStyle(value) + NativeModule._CheckboxAttribute_mark(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + onChangeAttribute(callback: OnCheckboxChangeCallback): void { + NativeModule._CheckboxAttribute_onChange(this.peer.ptr, registerCallback(callback)); + } + contentModifierAttribute(modifier: ContentModifier): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeCustomObject("ContentModifier", modifier) + NativeModule._CheckboxAttribute_contentModifier(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkCheckboxAttributes extends ArkCommonMethodAttributes { + select?: boolean + selectedColor?: ResourceColor + shape?: CheckBoxShape + unselectedColor?: ResourceColor + mark?: MarkStyle + onChange?: OnCheckboxChangeCallback + contentModifier?: ContentModifier +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkCheckboxgroupPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkCheckboxgroupPeer.ts new file mode 100644 index 000000000..65ae30a81 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkCheckboxgroupPeer.ts @@ -0,0 +1,142 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { CheckboxGroupAttribute, OnCheckboxGroupChangeCallback, CheckboxGroupResult, CheckboxGroupOptions, CheckboxGroupInterface, SelectStatus } from "./../ArkCheckboxgroupInterfaces" +import { ResourceColor, Resource, MarkStyle } from "./../ArkUnitsInterfaces" +import { Color, CheckBoxShape } from "./../ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource } from "./../SyntheticDeclarations" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkCheckboxGroupPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkCheckboxGroupPeer { + const _peer = new ArkCheckboxGroupPeer(nodeType, flags, "CheckboxGroup") + component?.setPeer(_peer) + return _peer + } + setCheckboxGroupOptionsAttribute(options?: CheckboxGroupOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeCheckboxGroupOptions(options_value) + } + NativeModule._CheckboxGroupInterface_setCheckboxGroupOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + selectAllAttribute(value: boolean): void { + NativeModule._CheckboxGroupAttribute_selectAll(this.peer.ptr, value ? 1 : 0); + } + selectedColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._CheckboxGroupAttribute_selectedColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + unselectedColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._CheckboxGroupAttribute_unselectedColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + markAttribute(value: MarkStyle): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeMarkStyle(value) + NativeModule._CheckboxGroupAttribute_mark(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + onChangeAttribute(callback: OnCheckboxGroupChangeCallback): void { + NativeModule._CheckboxGroupAttribute_onChange(this.peer.ptr, registerCallback(callback)); + } + checkboxShapeAttribute(value: CheckBoxShape): void { + NativeModule._CheckboxGroupAttribute_checkboxShape(this.peer.ptr, (value.value as int32)); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkCheckboxGroupAttributes extends ArkCommonMethodAttributes { + selectAll?: boolean + selectedColor?: ResourceColor + unselectedColor?: ResourceColor + mark?: MarkStyle + onChange?: OnCheckboxGroupChangeCallback + checkboxShape?: CheckBoxShape +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkCirclePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkCirclePeer.ts new file mode 100644 index 000000000..77f0c6576 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkCirclePeer.ts @@ -0,0 +1,64 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonShapeMethodPeer, ArkCommonShapeMethodAttributes } from "./ArkCommonPeer" +import { CircleAttribute, CircleOptions, CircleInterface } from "./../ArkCircleInterfaces" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkCirclePeer extends ArkCommonShapeMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkCirclePeer { + const _peer = new ArkCirclePeer(nodeType, flags, "Circle") + component?.setPeer(_peer) + return _peer + } + setCircleOptionsAttribute(value?: CircleOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + if (value != undefined) { + value_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_type as int32) + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value! + thisSerializer.writeCircleOptions(value_value) + } + NativeModule._CircleInterface_setCircleOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkCircleAttributes extends ArkCommonShapeMethodAttributes { +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkColumnSplitPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkColumnSplitPeer.ts new file mode 100644 index 000000000..36a5d0967 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkColumnSplitPeer.ts @@ -0,0 +1,76 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { ColumnSplitAttribute, ColumnSplitDividerStyle, ColumnSplitInterface } from "./../ArkColumnSplitInterfaces" +import { Dimension, PX, VP, FP, LPX, Percentage, Resource } from "./../ArkUnitsInterfaces" +import { TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, IMPORT_Resource_FROM_api_global_resource } from "./../SyntheticDeclarations" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkColumnSplitPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkColumnSplitPeer { + const _peer = new ArkColumnSplitPeer(nodeType, flags, "ColumnSplit") + component?.setPeer(_peer) + return _peer + } + setColumnSplitOptionsAttribute(): void { + NativeModule._ColumnSplitInterface_setColumnSplitOptions(this.peer.ptr); + } + resizeableAttribute(value: boolean): void { + NativeModule._ColumnSplitAttribute_resizeable(this.peer.ptr, value ? 1 : 0); + } + dividerAttribute(value: ColumnSplitDividerStyle | null): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (TypeChecker.isColumnSplitDividerStyle(value, false, false)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as ColumnSplitDividerStyle + thisSerializer.writeColumnSplitDividerStyle(value_0) + } + else if (value === null) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as null + } + NativeModule._ColumnSplitAttribute_divider(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkColumnSplitAttributes extends ArkCommonMethodAttributes { + resizeable?: boolean + divider?: ColumnSplitDividerStyle | null +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkComponent3dPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkComponent3dPeer.ts new file mode 100644 index 000000000..1524af0a3 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkComponent3dPeer.ts @@ -0,0 +1,163 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { ResourceStr, Resource, Dimension, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, IMPORT_Scene_FROM_api_ohos_graphics_scene } from "./../SyntheticDeclarations" +import { Component3DAttribute, SceneOptions, Component3DInterface, Scene, ModelType } from "./../ArkComponent3dInterfaces" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkComponent3DPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkComponent3DPeer { + const _peer = new ArkComponent3DPeer(nodeType, flags, "Component3D") + component?.setPeer(_peer) + return _peer + } + setComponent3DOptionsAttribute(sceneOptions?: SceneOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let sceneOptions_type = RuntimeType.UNDEFINED + if (sceneOptions != undefined) { + sceneOptions_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(sceneOptions_type as int32) + if ((RuntimeType.UNDEFINED) != (sceneOptions_type)) { + const sceneOptions_value = sceneOptions! + thisSerializer.writeSceneOptions(sceneOptions_value) + } + NativeModule._Component3DInterface_setComponent3DOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + environmentAttribute(uri: ResourceStr): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let uri_type = RuntimeType.UNDEFINED + uri_type = runtimeType(uri) + if (((RuntimeType.STRING == uri_type))) { + thisSerializer.writeInt8(0 as int32) + const uri_0 = uri as string + thisSerializer.writeString(uri_0) + } + else if (((RuntimeType.OBJECT == uri_type))) { + thisSerializer.writeInt8(1 as int32) + const uri_1 = uri as Resource + thisSerializer.writeResource(uri_1) + } + NativeModule._Component3DAttribute_environment(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + customRenderAttribute(uri: ResourceStr, selfRenderUpdate: boolean): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let uri_type = RuntimeType.UNDEFINED + uri_type = runtimeType(uri) + if (((RuntimeType.STRING == uri_type))) { + thisSerializer.writeInt8(0 as int32) + const uri_0 = uri as string + thisSerializer.writeString(uri_0) + } + else if (((RuntimeType.OBJECT == uri_type))) { + thisSerializer.writeInt8(1 as int32) + const uri_1 = uri as Resource + thisSerializer.writeResource(uri_1) + } + NativeModule._Component3DAttribute_customRender(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length(), selfRenderUpdate ? 1 : 0); + thisSerializer.release(); + } + shaderAttribute(uri: ResourceStr): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let uri_type = RuntimeType.UNDEFINED + uri_type = runtimeType(uri) + if (((RuntimeType.STRING == uri_type))) { + thisSerializer.writeInt8(0 as int32) + const uri_0 = uri as string + thisSerializer.writeString(uri_0) + } + else if (((RuntimeType.OBJECT == uri_type))) { + thisSerializer.writeInt8(1 as int32) + const uri_1 = uri as Resource + thisSerializer.writeResource(uri_1) + } + NativeModule._Component3DAttribute_shader(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + shaderImageTextureAttribute(uri: ResourceStr): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let uri_type = RuntimeType.UNDEFINED + uri_type = runtimeType(uri) + if (((RuntimeType.STRING == uri_type))) { + thisSerializer.writeInt8(0 as int32) + const uri_0 = uri as string + thisSerializer.writeString(uri_0) + } + else if (((RuntimeType.OBJECT == uri_type))) { + thisSerializer.writeInt8(1 as int32) + const uri_1 = uri as Resource + thisSerializer.writeResource(uri_1) + } + NativeModule._Component3DAttribute_shaderImageTexture(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + shaderInputBufferAttribute(buffer: Array): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeInt8(runtimeType(buffer) as int32) + thisSerializer.writeInt32(buffer.length as int32) + for (let i = 0; i < buffer.length; i++) { + const buffer_element = buffer[i] + thisSerializer.writeNumber(buffer_element) + } + NativeModule._Component3DAttribute_shaderInputBuffer(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + renderWidthAttribute(value: Dimension): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeLength(value); + NativeModule._Component3DAttribute_renderWidth(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + renderHeightAttribute(value: Dimension): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeLength(value); + NativeModule._Component3DAttribute_renderHeight(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkComponent3DAttributes extends ArkCommonMethodAttributes { + environment?: ResourceStr + shader?: ResourceStr + shaderImageTexture?: ResourceStr + shaderInputBuffer?: Array + renderWidth?: Dimension + renderHeight?: Dimension +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkContainerSpanPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkContainerSpanPeer.ts new file mode 100644 index 000000000..d48d3ab0e --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkContainerSpanPeer.ts @@ -0,0 +1,61 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { PeerNode } from "./../PeerNode" +import { TextBackgroundStyle } from "./../ArkSpanInterfaces" +import { ContainerSpanAttribute, ContainerSpanInterface } from "./../ArkContainerSpanInterfaces" +import { AttributeModifier } from "./../ArkAttributeModifierMaterialized" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkContainerSpanPeer extends PeerNode { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkContainerSpanPeer { + const _peer = new ArkContainerSpanPeer(nodeType, flags, "ContainerSpan") + component?.setPeer(_peer) + return _peer + } + setContainerSpanOptionsAttribute(): void { + NativeModule._ContainerSpanInterface_setContainerSpanOptions(this.peer.ptr); + } + textBackgroundStyleAttribute(style: TextBackgroundStyle): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeTextBackgroundStyle(style) + NativeModule._ContainerSpanAttribute_textBackgroundStyle(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + applyAttributes(attributes: ArkContainerSpanAttributes): void {} +} +export interface ArkContainerSpanAttributes { + textBackgroundStyle?: TextBackgroundStyle + attributeModifier?: AttributeModifier +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkCounterPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkCounterPeer.ts new file mode 100644 index 000000000..7db69d870 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkCounterPeer.ts @@ -0,0 +1,70 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { VoidCallback } from "./../ArkUnitsInterfaces" +import { CounterAttribute, CounterInterface } from "./../ArkCounterInterfaces" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkCounterPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkCounterPeer { + const _peer = new ArkCounterPeer(nodeType, flags, "Counter") + component?.setPeer(_peer) + return _peer + } + setCounterOptionsAttribute(): void { + NativeModule._CounterInterface_setCounterOptions(this.peer.ptr); + } + onIncAttribute(event: VoidCallback): void { + NativeModule._CounterAttribute_onInc(this.peer.ptr, registerCallback(event)); + } + onDecAttribute(event: VoidCallback): void { + NativeModule._CounterAttribute_onDec(this.peer.ptr, registerCallback(event)); + } + enableDecAttribute(value: boolean): void { + NativeModule._CounterAttribute_enableDec(this.peer.ptr, value ? 1 : 0); + } + enableIncAttribute(value: boolean): void { + NativeModule._CounterAttribute_enableInc(this.peer.ptr, value ? 1 : 0); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkCounterAttributes extends ArkCommonMethodAttributes { + onInc?: VoidCallback + onDec?: VoidCallback + enableDec?: boolean + enableInc?: boolean +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkDataPanelPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkDataPanelPeer.ts new file mode 100644 index 000000000..1fe880558 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkDataPanelPeer.ts @@ -0,0 +1,158 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { DataPanelAttribute, DataPanelShadowOptions, DataPanelConfiguration, DataPanelOptions, DataPanelInterface, DataPanelType } from "./../ArkDataPanelInterfaces" +import { ResourceColor, Resource, Length } from "./../ArkUnitsInterfaces" +import { Color } from "./../ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource } from "./../SyntheticDeclarations" +import { LinearGradient, ContentModifier } from "./../ConflictedDeclarations" +import { MultiShadowOptions, CommonConfiguration } from "./../ArkCommonInterfaces" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkDataPanelPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkDataPanelPeer { + const _peer = new ArkDataPanelPeer(nodeType, flags, "DataPanel") + component?.setPeer(_peer) + return _peer + } + setDataPanelOptionsAttribute(options: DataPanelOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeDataPanelOptions(options) + NativeModule._DataPanelInterface_setDataPanelOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + closeEffectAttribute(value: boolean): void { + NativeModule._DataPanelAttribute_closeEffect(this.peer.ptr, value ? 1 : 0); + } + valueColorsAttribute(value: Array): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeInt8(runtimeType(value) as int32) + thisSerializer.writeInt32(value.length as int32) + for (let i = 0; i < value.length; i++) { + const value_element = value[i] + let value_element_type = RuntimeType.UNDEFINED + value_element_type = runtimeType(value_element) + if (((RuntimeType.OBJECT) == (value_element_type)) && (value_element instanceof LinearGradient)) { + thisSerializer.writeInt8(1 as int32) + const value_element_1 = value_element as Object + thisSerializer.writeCustomObject("LinearGradient", value_element_1) + } + else if (((RuntimeType.OBJECT == value_element_type)) || ((RuntimeType.NUMBER == value_element_type)) || ((RuntimeType.STRING == value_element_type)) || ((RuntimeType.OBJECT == value_element_type))) { + thisSerializer.writeInt8(0 as int32) + const value_element_0 = value_element as ResourceColor + let value_element_0_type = RuntimeType.UNDEFINED + value_element_0_type = runtimeType(value_element_0) + if (((RuntimeType.OBJECT) == (value_element_0_type)) && (value_element_0 instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_element_0_0 = value_element_0 as Color + thisSerializer.writeInt32((value_element_0_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_element_0_type))) { + thisSerializer.writeInt8(1 as int32) + const value_element_0_1 = value_element_0 as number + thisSerializer.writeNumber(value_element_0_1) + } + else if (((RuntimeType.STRING == value_element_0_type))) { + thisSerializer.writeInt8(2 as int32) + const value_element_0_2 = value_element_0 as string + thisSerializer.writeString(value_element_0_2) + } + else if (isResource(value_element_0)) { + thisSerializer.writeInt8(3 as int32) + const value_element_0_3 = value_element_0 as Resource + thisSerializer.writeResource(value_element_0_3) + } + } + } + NativeModule._DataPanelAttribute_valueColors(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + trackBackgroundColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._DataPanelAttribute_trackBackgroundColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + strokeWidthAttribute(value: Length): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeLength(value); + NativeModule._DataPanelAttribute_strokeWidth(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + trackShadowAttribute(value: DataPanelShadowOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeDataPanelShadowOptions(value) + NativeModule._DataPanelAttribute_trackShadow(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + contentModifierAttribute(modifier: ContentModifier): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeCustomObject("ContentModifier", modifier) + NativeModule._DataPanelAttribute_contentModifier(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkDataPanelAttributes extends ArkCommonMethodAttributes { + closeEffect?: boolean + valueColors?: Array + trackBackgroundColor?: ResourceColor + strokeWidth?: Length + trackShadow?: DataPanelShadowOptions + contentModifier?: ContentModifier +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkDatePickerPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkDatePickerPeer.ts new file mode 100644 index 000000000..69b4573cd --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkDatePickerPeer.ts @@ -0,0 +1,98 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { DatePickerAttribute, DatePickerResult, DatePickerOptions, DatePickerInterface } from "./../ArkDatePickerInterfaces" +import { PickerTextStyle, Callback } from "./../ArkCommonInterfaces" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkDatePickerPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkDatePickerPeer { + const _peer = new ArkDatePickerPeer(nodeType, flags, "DatePicker") + component?.setPeer(_peer) + return _peer + } + setDatePickerOptionsAttribute(options?: DatePickerOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeDatePickerOptions(options_value) + } + NativeModule._DatePickerInterface_setDatePickerOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + lunarAttribute(value: boolean): void { + NativeModule._DatePickerAttribute_lunar(this.peer.ptr, value ? 1 : 0); + } + disappearTextStyleAttribute(value: PickerTextStyle): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writePickerTextStyle(value) + NativeModule._DatePickerAttribute_disappearTextStyle(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + textStyleAttribute(value: PickerTextStyle): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writePickerTextStyle(value) + NativeModule._DatePickerAttribute_textStyle(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + selectedTextStyleAttribute(value: PickerTextStyle): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writePickerTextStyle(value) + NativeModule._DatePickerAttribute_selectedTextStyle(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + onChangeAttribute(callback: ((value: DatePickerResult) => void)): void { + NativeModule._DatePickerAttribute_onChange(this.peer.ptr, registerCallback(callback)); + } + onDateChangeAttribute(callback: Callback): void { + NativeModule._DatePickerAttribute_onDateChange(this.peer.ptr, registerCallback(callback)); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkDatePickerAttributes extends ArkCommonMethodAttributes { + lunar?: boolean + disappearTextStyle?: PickerTextStyle + textStyle?: PickerTextStyle + selectedTextStyle?: PickerTextStyle + onChange?: ((value: DatePickerResult) => void) + onDateChange?: Callback +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkDividerPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkDividerPeer.ts new file mode 100644 index 000000000..945930ded --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkDividerPeer.ts @@ -0,0 +1,110 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { DividerAttribute, DividerInterface } from "./../ArkDividerInterfaces" +import { ResourceColor, Resource } from "./../ArkUnitsInterfaces" +import { Color, LineCapStyle } from "./../ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource } from "./../SyntheticDeclarations" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkDividerPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkDividerPeer { + const _peer = new ArkDividerPeer(nodeType, flags, "Divider") + component?.setPeer(_peer) + return _peer + } + setDividerOptionsAttribute(): void { + NativeModule._DividerInterface_setDividerOptions(this.peer.ptr); + } + verticalAttribute(value: boolean): void { + NativeModule._DividerAttribute_vertical(this.peer.ptr, value ? 1 : 0); + } + colorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._DividerAttribute_color(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + strokeWidthAttribute(value: number | string): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as string + thisSerializer.writeString(value_1) + } + NativeModule._DividerAttribute_strokeWidth(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + lineCapAttribute(value: LineCapStyle): void { + NativeModule._DividerAttribute_lineCap(this.peer.ptr, (value.value as int32)); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkDividerAttributes extends ArkCommonMethodAttributes { + vertical?: boolean + color?: ResourceColor + strokeWidth?: number | string + lineCap?: LineCapStyle +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkEffectComponentPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkEffectComponentPeer.ts new file mode 100644 index 000000000..dd7e9184a --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkEffectComponentPeer.ts @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { EffectComponentAttribute, EffectComponentInterface } from "./../ArkEffectComponentInterfaces" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkEffectComponentPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkEffectComponentPeer { + const _peer = new ArkEffectComponentPeer(nodeType, flags, "EffectComponent") + component?.setPeer(_peer) + return _peer + } + setEffectComponentOptionsAttribute(): void { + NativeModule._EffectComponentInterface_setEffectComponentOptions(this.peer.ptr); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkEffectComponentAttributes extends ArkCommonMethodAttributes { +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkEllipsePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkEllipsePeer.ts new file mode 100644 index 000000000..48a8054f8 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkEllipsePeer.ts @@ -0,0 +1,106 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonShapeMethodPeer, ArkCommonShapeMethodAttributes } from "./ArkCommonPeer" +import { EllipseAttribute, EllipseInterface } from "./../ArkEllipseInterfaces" +import { LITERAL_WidthStringnumberHeightStringnumber } from "./../SyntheticDeclarations" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkEllipsePeer extends ArkCommonShapeMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkEllipsePeer { + const _peer = new ArkEllipsePeer(nodeType, flags, "Ellipse") + component?.setPeer(_peer) + return _peer + } + setEllipseOptionsAttribute(value?: LITERAL_WidthStringnumberHeightStringnumber): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + if (value != undefined) { + value_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_type as int32) + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value! + const value_value_width = value_value.width + let value_value_width_type = RuntimeType.UNDEFINED + if (value_value_width != undefined) { + value_value_width_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_value_width_type as int32) + if ((RuntimeType.UNDEFINED) != (value_value_width_type)) { + const value_value_width_value = value_value_width! + let value_value_width_value_type = RuntimeType.UNDEFINED + value_value_width_value_type = runtimeType(value_value_width_value) + if (((RuntimeType.STRING == value_value_width_value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_value_width_value_0 = value_value_width_value as string + thisSerializer.writeString(value_value_width_value_0) + } + else if (((RuntimeType.NUMBER == value_value_width_value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_value_width_value_1 = value_value_width_value as number + thisSerializer.writeNumber(value_value_width_value_1) + } + } + const value_value_height = value_value.height + let value_value_height_type = RuntimeType.UNDEFINED + if (value_value_height != undefined) { + value_value_height_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_value_height_type as int32) + if ((RuntimeType.UNDEFINED) != (value_value_height_type)) { + const value_value_height_value = value_value_height! + let value_value_height_value_type = RuntimeType.UNDEFINED + value_value_height_value_type = runtimeType(value_value_height_value) + if (((RuntimeType.STRING == value_value_height_value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_value_height_value_0 = value_value_height_value as string + thisSerializer.writeString(value_value_height_value_0) + } + else if (((RuntimeType.NUMBER == value_value_height_value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_value_height_value_1 = value_value_height_value as number + thisSerializer.writeNumber(value_value_height_value_1) + } + } + } + NativeModule._EllipseInterface_setEllipseOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkEllipseAttributes extends ArkCommonShapeMethodAttributes { +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkFlexPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkFlexPeer.ts new file mode 100644 index 000000000..abebc09f6 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkFlexPeer.ts @@ -0,0 +1,75 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { PointLightStyle } from "./../ArkCommonInterfaces" +import { FlexAttribute, FlexOptions, FlexInterface, FlexSpaceOptions } from "./../ArkFlexInterfaces" +import { FlexDirection, FlexWrap, FlexAlign, ItemAlign } from "./../ArkEnumsInterfaces" +import { LengthMetrics } from "./../ArkUnitsInterfaces" +import { IMPORT_LengthMetrics_FROM_api_arkui_Graphics } from "./../SyntheticDeclarations" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkFlexPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkFlexPeer { + const _peer = new ArkFlexPeer(nodeType, flags, "Flex") + component?.setPeer(_peer) + return _peer + } + setFlexOptionsAttribute(value?: FlexOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + if (value != undefined) { + value_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_type as int32) + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value! + thisSerializer.writeFlexOptions(value_value) + } + NativeModule._FlexInterface_setFlexOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + pointLightAttribute(value: PointLightStyle): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writePointLightStyle(value) + NativeModule._FlexAttribute_pointLight(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkFlexAttributes extends ArkCommonMethodAttributes { + pointLight?: PointLightStyle +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkFlowItemPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkFlowItemPeer.ts new file mode 100644 index 000000000..e0f2d51a1 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkFlowItemPeer.ts @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { FlowItemAttribute, FlowItemInterface } from "./../ArkFlowItemInterfaces" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkFlowItemPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkFlowItemPeer { + const _peer = new ArkFlowItemPeer(nodeType, flags, "FlowItem") + component?.setPeer(_peer) + return _peer + } + setFlowItemOptionsAttribute(): void { + NativeModule._FlowItemInterface_setFlowItemOptions(this.peer.ptr); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkFlowItemAttributes extends ArkCommonMethodAttributes { +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkFolderStackPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkFolderStackPeer.ts new file mode 100644 index 000000000..3758052ef --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkFolderStackPeer.ts @@ -0,0 +1,86 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { Alignment, FoldStatus, AppRotation } from "./../ArkEnumsInterfaces" +import { FolderStackAttribute, OnFoldStatusChangeCallback, OnFoldStatusChangeInfo, OnHoverStatusChangeCallback, HoverEventParam, FolderStackOptions, FolderStackInterface, WindowStatusType } from "./../ArkFolderStackInterfaces" +import { IMPORT_default_WindowStatusType_FROM_api_ohos_window } from "./../SyntheticDeclarations" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkFolderStackPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkFolderStackPeer { + const _peer = new ArkFolderStackPeer(nodeType, flags, "FolderStack") + component?.setPeer(_peer) + return _peer + } + setFolderStackOptionsAttribute(options?: FolderStackOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeFolderStackOptions(options_value) + } + NativeModule._FolderStackInterface_setFolderStackOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + alignContentAttribute(value: Alignment): void { + NativeModule._FolderStackAttribute_alignContent(this.peer.ptr, (value.value as int32)); + } + onFolderStateChangeAttribute(callback: OnFoldStatusChangeCallback): void { + NativeModule._FolderStackAttribute_onFolderStateChange(this.peer.ptr, registerCallback(callback)); + } + onHoverStatusChangeAttribute(handler: OnHoverStatusChangeCallback): void { + NativeModule._FolderStackAttribute_onHoverStatusChange(this.peer.ptr, registerCallback(handler)); + } + enableAnimationAttribute(value: boolean): void { + NativeModule._FolderStackAttribute_enableAnimation(this.peer.ptr, value ? 1 : 0); + } + autoHalfFoldAttribute(value: boolean): void { + NativeModule._FolderStackAttribute_autoHalfFold(this.peer.ptr, value ? 1 : 0); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkFolderStackAttributes extends ArkCommonMethodAttributes { + alignContent?: Alignment + onFolderStateChange?: OnFoldStatusChangeCallback + onHoverStatusChange?: OnHoverStatusChangeCallback + enableAnimation?: boolean + autoHalfFold?: boolean +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkFormLinkPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkFormLinkPeer.ts new file mode 100644 index 000000000..f59208006 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkFormLinkPeer.ts @@ -0,0 +1,56 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { FormLinkAttribute, FormLinkOptions, FormLinkInterface } from "./../ArkFormLinkInterfaces" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkFormLinkPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkFormLinkPeer { + const _peer = new ArkFormLinkPeer(nodeType, flags, "FormLink") + component?.setPeer(_peer) + return _peer + } + setFormLinkOptionsAttribute(options: FormLinkOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeFormLinkOptions(options) + NativeModule._FormLinkInterface_setFormLinkOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkFormLinkAttributes extends ArkCommonMethodAttributes { +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkGaugePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkGaugePeer.ts new file mode 100644 index 000000000..dc344338c --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkGaugePeer.ts @@ -0,0 +1,217 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { GaugeAttribute, GaugeShadowOptions, GaugeIndicatorOptions, GaugeConfiguration, GaugeOptions, GaugeInterface } from "./../ArkGaugeInterfaces" +import { ResourceColor, Resource, Length, ResourceStr, Dimension, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { Color } from "./../ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, UNION_ResourceColorLinearGradient, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage } from "./../SyntheticDeclarations" +import { LinearGradient, ContentModifier } from "./../ConflictedDeclarations" +import { CustomBuilder, Optional, MultiShadowOptions, CommonConfiguration } from "./../ArkCommonInterfaces" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkGaugePeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkGaugePeer { + const _peer = new ArkGaugePeer(nodeType, flags, "Gauge") + component?.setPeer(_peer) + return _peer + } + setGaugeOptionsAttribute(options: GaugeOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeGaugeOptions(options) + NativeModule._GaugeInterface_setGaugeOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + valueAttribute(value: number): void { + NativeModule._GaugeAttribute_value(this.peer.ptr, value); + } + startAngleAttribute(angle: number): void { + NativeModule._GaugeAttribute_startAngle(this.peer.ptr, angle); + } + endAngleAttribute(angle: number): void { + NativeModule._GaugeAttribute_endAngle(this.peer.ptr, angle); + } + colorsAttribute(colors: ResourceColor | LinearGradient | Array<[UNION_ResourceColorLinearGradient, number]>): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let colors_type = RuntimeType.UNDEFINED + colors_type = runtimeType(colors) + if (((RuntimeType.OBJECT) == (colors_type)) && (colors instanceof LinearGradient)) { + thisSerializer.writeInt8(1 as int32) + const colors_1 = colors as Object + thisSerializer.writeCustomObject("LinearGradient", colors_1) + } + else if (((RuntimeType.OBJECT) == (colors_type)) && (colors instanceof Array<[UNION_ResourceColorLinearGradient, number]>)) { + thisSerializer.writeInt8(2 as int32) + const colors_2 = colors as Array<[UNION_ResourceColorLinearGradient, number]> + thisSerializer.writeInt8(runtimeType(colors_2) as int32) + thisSerializer.writeInt32(colors_2.length as int32) + for (let i = 0; i < colors_2.length; i++) { + const colors_2_element = colors_2[i] + thisSerializer.writeInt8(runtimeType(colors_2_element) as int32) + const colors_2_element_0 = colors_2_element[0] + let colors_2_element_0_type = RuntimeType.UNDEFINED + colors_2_element_0_type = runtimeType(colors_2_element_0) + if (((RuntimeType.OBJECT) == (colors_2_element_0_type)) && (colors_2_element_0 instanceof LinearGradient)) { + thisSerializer.writeInt8(1 as int32) + const colors_2_element_0_1 = colors_2_element_0 as Object + thisSerializer.writeCustomObject("LinearGradient", colors_2_element_0_1) + } + else if (((RuntimeType.OBJECT == colors_2_element_0_type)) || ((RuntimeType.NUMBER == colors_2_element_0_type)) || ((RuntimeType.STRING == colors_2_element_0_type)) || ((RuntimeType.OBJECT == colors_2_element_0_type))) { + thisSerializer.writeInt8(0 as int32) + const colors_2_element_0_0 = colors_2_element_0 as ResourceColor + let colors_2_element_0_0_type = RuntimeType.UNDEFINED + colors_2_element_0_0_type = runtimeType(colors_2_element_0_0) + if (((RuntimeType.OBJECT) == (colors_2_element_0_0_type)) && (colors_2_element_0_0 instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const colors_2_element_0_0_0 = colors_2_element_0_0 as Color + thisSerializer.writeInt32((colors_2_element_0_0_0.value as int32)) + } + else if (((RuntimeType.NUMBER == colors_2_element_0_0_type))) { + thisSerializer.writeInt8(1 as int32) + const colors_2_element_0_0_1 = colors_2_element_0_0 as number + thisSerializer.writeNumber(colors_2_element_0_0_1) + } + else if (((RuntimeType.STRING == colors_2_element_0_0_type))) { + thisSerializer.writeInt8(2 as int32) + const colors_2_element_0_0_2 = colors_2_element_0_0 as string + thisSerializer.writeString(colors_2_element_0_0_2) + } + else if (isResource(colors_2_element_0_0)) { + thisSerializer.writeInt8(3 as int32) + const colors_2_element_0_0_3 = colors_2_element_0_0 as Resource + thisSerializer.writeResource(colors_2_element_0_0_3) + } + } + const colors_2_element_1 = colors_2_element[1] + thisSerializer.writeNumber(colors_2_element_1) + } + } + else if (((RuntimeType.OBJECT == colors_type)) || ((RuntimeType.NUMBER == colors_type)) || ((RuntimeType.STRING == colors_type)) || ((RuntimeType.OBJECT == colors_type))) { + thisSerializer.writeInt8(0 as int32) + const colors_0 = colors as ResourceColor + let colors_0_type = RuntimeType.UNDEFINED + colors_0_type = runtimeType(colors_0) + if (((RuntimeType.OBJECT) == (colors_0_type)) && (colors_0 instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const colors_0_0 = colors_0 as Color + thisSerializer.writeInt32((colors_0_0.value as int32)) + } + else if (((RuntimeType.NUMBER == colors_0_type))) { + thisSerializer.writeInt8(1 as int32) + const colors_0_1 = colors_0 as number + thisSerializer.writeNumber(colors_0_1) + } + else if (((RuntimeType.STRING == colors_0_type))) { + thisSerializer.writeInt8(2 as int32) + const colors_0_2 = colors_0 as string + thisSerializer.writeString(colors_0_2) + } + else if (isResource(colors_0)) { + thisSerializer.writeInt8(3 as int32) + const colors_0_3 = colors_0 as Resource + thisSerializer.writeResource(colors_0_3) + } + } + NativeModule._GaugeAttribute_colors(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + strokeWidthAttribute(length: Length): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeLength(length); + NativeModule._GaugeAttribute_strokeWidth(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + descriptionAttribute(value: CustomBuilder): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.FUNCTION == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Object + thisSerializer.writeFunction(value_0) + } + else if (((RuntimeType.UNDEFINED == value_type))) { + thisSerializer.writeInt8(1 as int32) + } + NativeModule._GaugeAttribute_description(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + trackShadowAttribute(value: GaugeShadowOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeGaugeShadowOptions(value) + NativeModule._GaugeAttribute_trackShadow(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + indicatorAttribute(value: GaugeIndicatorOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeGaugeIndicatorOptions(value) + NativeModule._GaugeAttribute_indicator(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + privacySensitiveAttribute(isPrivacySensitiveMode: boolean | undefined): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let isPrivacySensitiveMode_type = RuntimeType.UNDEFINED + if (isPrivacySensitiveMode != undefined) { + isPrivacySensitiveMode_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(isPrivacySensitiveMode_type as int32) + if ((RuntimeType.UNDEFINED) != (isPrivacySensitiveMode_type)) { + const isPrivacySensitiveMode_value = isPrivacySensitiveMode! + thisSerializer.writeBoolean(isPrivacySensitiveMode_value) + } + NativeModule._GaugeAttribute_privacySensitive(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + contentModifierAttribute(modifier: ContentModifier): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeCustomObject("ContentModifier", modifier) + NativeModule._GaugeAttribute_contentModifier(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkGaugeAttributes extends ArkCommonMethodAttributes { + value?: number + startAngle?: number + endAngle?: number + colors?: ResourceColor | LinearGradient | Array<[UNION_ResourceColorLinearGradient, number]> + strokeWidth?: Length + description?: CustomBuilder + trackShadow?: GaugeShadowOptions + indicator?: GaugeIndicatorOptions + privacySensitive?: boolean | undefined + contentModifier?: ContentModifier +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkGridColPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkGridColPeer.ts new file mode 100644 index 000000000..317cd318e --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkGridColPeer.ts @@ -0,0 +1,118 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { GridColColumnOption, GridColAttribute, GridColOptions, GridColInterface } from "./../ArkGridColInterfaces" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkGridColPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkGridColPeer { + const _peer = new ArkGridColPeer(nodeType, flags, "GridCol") + component?.setPeer(_peer) + return _peer + } + setGridColOptionsAttribute(option?: GridColOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let option_type = RuntimeType.UNDEFINED + if (option != undefined) { + option_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(option_type as int32) + if ((RuntimeType.UNDEFINED) != (option_type)) { + const option_value = option! + thisSerializer.writeGridColOptions(option_value) + } + NativeModule._GridColInterface_setGridColOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + spanAttribute(value: number | GridColColumnOption): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as GridColColumnOption + thisSerializer.writeGridColColumnOption(value_1) + } + NativeModule._GridColAttribute_span(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + gridColOffsetAttribute(value: number | GridColColumnOption): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as GridColColumnOption + thisSerializer.writeGridColColumnOption(value_1) + } + NativeModule._GridColAttribute_gridColOffset(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + orderAttribute(value: number | GridColColumnOption): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as GridColColumnOption + thisSerializer.writeGridColColumnOption(value_1) + } + NativeModule._GridColAttribute_order(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkGridColAttributes extends ArkCommonMethodAttributes { + span?: number | GridColColumnOption + gridColOffset?: number | GridColColumnOption + order?: number | GridColColumnOption +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkGridItemPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkGridItemPeer.ts new file mode 100644 index 000000000..c718cba80 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkGridItemPeer.ts @@ -0,0 +1,96 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { GridItemAttribute, GridItemOptions, GridItemInterface, GridItemStyle } from "./../ArkGridItemInterfaces" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkGridItemPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkGridItemPeer { + const _peer = new ArkGridItemPeer(nodeType, flags, "GridItem") + component?.setPeer(_peer) + return _peer + } + setGridItemOptionsAttribute(value?: GridItemOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + if (value != undefined) { + value_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_type as int32) + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value! + thisSerializer.writeGridItemOptions(value_value) + } + NativeModule._GridItemInterface_setGridItemOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + rowStartAttribute(value: number): void { + NativeModule._GridItemAttribute_rowStart(this.peer.ptr, value); + } + rowEndAttribute(value: number): void { + NativeModule._GridItemAttribute_rowEnd(this.peer.ptr, value); + } + columnStartAttribute(value: number): void { + NativeModule._GridItemAttribute_columnStart(this.peer.ptr, value); + } + columnEndAttribute(value: number): void { + NativeModule._GridItemAttribute_columnEnd(this.peer.ptr, value); + } + forceRebuildAttribute(value: boolean): void { + NativeModule._GridItemAttribute_forceRebuild(this.peer.ptr, value ? 1 : 0); + } + selectableAttribute(value: boolean): void { + NativeModule._GridItemAttribute_selectable(this.peer.ptr, value ? 1 : 0); + } + selectedAttribute(value: boolean): void { + NativeModule._GridItemAttribute_selected(this.peer.ptr, value ? 1 : 0); + } + onSelectAttribute(event: ((isSelected: boolean) => void)): void { + NativeModule._GridItemAttribute_onSelect(this.peer.ptr, registerCallback(event)); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkGridItemAttributes extends ArkCommonMethodAttributes { + rowStart?: number + rowEnd?: number + columnStart?: number + columnEnd?: number + forceRebuild?: boolean + selectable?: boolean + selected?: boolean + onSelect?: ((isSelected: boolean) => void) +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkGridPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkGridPeer.ts new file mode 100644 index 000000000..10bdcc1d1 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkGridPeer.ts @@ -0,0 +1,289 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkScrollableCommonMethodPeer, ArkScrollableCommonMethodAttributes } from "./ArkCommonPeer" +import { BarState, Color, EdgeEffect, ScrollSource } from "./../ArkEnumsInterfaces" +import { EdgeEffectOptions, Optional, FadingEdgeOptions, NestedScrollOptions, ScrollResult, OnScrollCallback, ItemDragInfo } from "./../ArkCommonInterfaces" +import { Resource, Length } from "./../ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, LITERAL_OffsetRemainNumber } from "./../SyntheticDeclarations" +import { ScrollState } from "./../ArkListInterfaces" +import { OnWillScrollCallback } from "./../ConflictedDeclarations" +import { GridAttribute, ComputedBarAttribute, GridDirection, GridItemAlignment, GridLayoutOptions, GridInterface } from "./../ArkGridInterfaces" +import { Scroller } from "./../ArkScrollerMaterialized" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkGridPeer extends ArkScrollableCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkGridPeer { + const _peer = new ArkGridPeer(nodeType, flags, "Grid") + component?.setPeer(_peer) + return _peer + } + setGridOptionsAttribute(scroller?: Scroller, layoutOptions?: GridLayoutOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let scroller_type = RuntimeType.UNDEFINED + if (scroller != undefined) { + scroller_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(scroller_type as int32) + if ((RuntimeType.UNDEFINED) != (scroller_type)) { + const scroller_value = scroller! + thisSerializer.writeMaterialized(scroller_value) + } + let layoutOptions_type = RuntimeType.UNDEFINED + if (layoutOptions != undefined) { + layoutOptions_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(layoutOptions_type as int32) + if ((RuntimeType.UNDEFINED) != (layoutOptions_type)) { + const layoutOptions_value = layoutOptions! + thisSerializer.writeGridLayoutOptions(layoutOptions_value) + } + NativeModule._GridInterface_setGridOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + columnsTemplateAttribute(value: string): void { + NativeModule._GridAttribute_columnsTemplate(this.peer.ptr, value); + } + rowsTemplateAttribute(value: string): void { + NativeModule._GridAttribute_rowsTemplate(this.peer.ptr, value); + } + columnsGapAttribute(value: Length): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeLength(value); + NativeModule._GridAttribute_columnsGap(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + rowsGapAttribute(value: Length): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeLength(value); + NativeModule._GridAttribute_rowsGap(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + scrollBarWidthAttribute(value: number | string): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as string + thisSerializer.writeString(value_1) + } + NativeModule._GridAttribute_scrollBarWidth(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + scrollBarColorAttribute(value: Color | number | string): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((value instanceof Color))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + NativeModule._GridAttribute_scrollBarColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + scrollBarAttribute(value: BarState): void { + NativeModule._GridAttribute_scrollBar(this.peer.ptr, (value.value as int32)); + } + onScrollBarUpdateAttribute(event: ((index: number, offset: number) => ComputedBarAttribute)): void { + NativeModule._GridAttribute_onScrollBarUpdate(this.peer.ptr, registerCallback(event)); + } + onScrollIndexAttribute(event: ((first: number, last: number) => void)): void { + NativeModule._GridAttribute_onScrollIndex(this.peer.ptr, registerCallback(event)); + } + cachedCountAttribute(value: number): void { + NativeModule._GridAttribute_cachedCount(this.peer.ptr, value); + } + editModeAttribute(value: boolean): void { + NativeModule._GridAttribute_editMode(this.peer.ptr, value ? 1 : 0); + } + multiSelectableAttribute(value: boolean): void { + NativeModule._GridAttribute_multiSelectable(this.peer.ptr, value ? 1 : 0); + } + maxCountAttribute(value: number): void { + NativeModule._GridAttribute_maxCount(this.peer.ptr, value); + } + minCountAttribute(value: number): void { + NativeModule._GridAttribute_minCount(this.peer.ptr, value); + } + cellLengthAttribute(value: number): void { + NativeModule._GridAttribute_cellLength(this.peer.ptr, value); + } + layoutDirectionAttribute(value: GridDirection): void { + NativeModule._GridAttribute_layoutDirection(this.peer.ptr, (value.value as int32)); + } + supportAnimationAttribute(value: boolean): void { + NativeModule._GridAttribute_supportAnimation(this.peer.ptr, value ? 1 : 0); + } + onItemDragStartAttribute(event: ((event: ItemDragInfo, itemIndex: number) => ((() => Object)))): void { + NativeModule._GridAttribute_onItemDragStart(this.peer.ptr, registerCallback(event)); + } + onItemDragEnterAttribute(event: ((event: ItemDragInfo) => void)): void { + NativeModule._GridAttribute_onItemDragEnter(this.peer.ptr, registerCallback(event)); + } + onItemDragMoveAttribute(event: ((event: ItemDragInfo, itemIndex: number, insertIndex: number) => void)): void { + NativeModule._GridAttribute_onItemDragMove(this.peer.ptr, registerCallback(event)); + } + onItemDragLeaveAttribute(event: ((event: ItemDragInfo, itemIndex: number) => void)): void { + NativeModule._GridAttribute_onItemDragLeave(this.peer.ptr, registerCallback(event)); + } + onItemDropAttribute(event: ((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => void)): void { + NativeModule._GridAttribute_onItemDrop(this.peer.ptr, registerCallback(event)); + } + edgeEffectAttribute(value: EdgeEffect, options?: EdgeEffectOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeEdgeEffectOptions(options_value) + } + NativeModule._GridAttribute_edgeEffect(this.peer.ptr, (value.value as int32), thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + nestedScrollAttribute(value: NestedScrollOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeNestedScrollOptions(value) + NativeModule._GridAttribute_nestedScroll(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + enableScrollInteractionAttribute(value: boolean): void { + NativeModule._GridAttribute_enableScrollInteraction(this.peer.ptr, value ? 1 : 0); + } + frictionAttribute(value: number | Resource): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as Resource + thisSerializer.writeResource(value_1) + } + NativeModule._GridAttribute_friction(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + alignItemsAttribute(alignment: GridItemAlignment | undefined): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let alignment_type = RuntimeType.UNDEFINED + if (alignment != undefined) { + alignment_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(alignment_type as int32) + if ((RuntimeType.UNDEFINED) != (alignment_type)) { + const alignment_value = alignment! + thisSerializer.writeInt32((alignment_value.value as int32)) + } + NativeModule._GridAttribute_alignItems(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + onScrollAttribute(event: ((scrollOffset: number, scrollState: ScrollState) => void)): void { + NativeModule._GridAttribute_onScroll(this.peer.ptr, registerCallback(event)); + } + onReachStartAttribute(event: (() => void)): void { + NativeModule._GridAttribute_onReachStart(this.peer.ptr, registerCallback(event)); + } + onReachEndAttribute(event: (() => void)): void { + NativeModule._GridAttribute_onReachEnd(this.peer.ptr, registerCallback(event)); + } + onScrollStartAttribute(event: (() => void)): void { + NativeModule._GridAttribute_onScrollStart(this.peer.ptr, registerCallback(event)); + } + onScrollStopAttribute(event: (() => void)): void { + NativeModule._GridAttribute_onScrollStop(this.peer.ptr, registerCallback(event)); + } + onScrollFrameBeginAttribute(event: ((offset: number, state: ScrollState) => LITERAL_OffsetRemainNumber)): void { + NativeModule._GridAttribute_onScrollFrameBegin(this.peer.ptr, registerCallback(event)); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkGridAttributes extends ArkScrollableCommonMethodAttributes { + columnsTemplate?: string + rowsTemplate?: string + columnsGap?: Length + rowsGap?: Length + scrollBarWidth?: number | string + scrollBarColor?: Color | number | string + scrollBar?: BarState + onScrollBarUpdate?: ((index: number, offset: number) => ComputedBarAttribute) + onScrollIndex?: ((first: number, last: number) => void) + cachedCount?: number + editMode?: boolean + multiSelectable?: boolean + maxCount?: number + minCount?: number + cellLength?: number + layoutDirection?: GridDirection + supportAnimation?: boolean + onItemDragStart?: ((event: ItemDragInfo, itemIndex: number) => ((() => Object))) + onItemDragEnter?: ((event: ItemDragInfo) => void) + onItemDragMove?: ((event: ItemDragInfo, itemIndex: number, insertIndex: number) => void) + onItemDragLeave?: ((event: ItemDragInfo, itemIndex: number) => void) + onItemDrop?: ((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => void) + nestedScroll?: NestedScrollOptions + enableScrollInteraction?: boolean + friction?: number | Resource + alignItems?: GridItemAlignment | undefined + onScroll?: ((scrollOffset: number, scrollState: ScrollState) => void) + onReachStart?: (() => void) + onReachEnd?: (() => void) + onScrollStart?: (() => void) + onScrollStop?: (() => void) + onScrollFrameBegin?: ((offset: number, state: ScrollState) => LITERAL_OffsetRemainNumber) +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkGridRowPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkGridRowPeer.ts new file mode 100644 index 000000000..c942c4340 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkGridRowPeer.ts @@ -0,0 +1,75 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { GridRowAttribute, GridRowOptions, GridRowInterface, GutterOption, GridRowColumnOption, BreakPoints, GridRowDirection, GridRowSizeOption, BreakpointsReference } from "./../ArkGridRowInterfaces" +import { ItemAlign } from "./../ArkEnumsInterfaces" +import { Length, Resource } from "./../ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource } from "./../SyntheticDeclarations" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkGridRowPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkGridRowPeer { + const _peer = new ArkGridRowPeer(nodeType, flags, "GridRow") + component?.setPeer(_peer) + return _peer + } + setGridRowOptionsAttribute(option?: GridRowOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let option_type = RuntimeType.UNDEFINED + if (option != undefined) { + option_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(option_type as int32) + if ((RuntimeType.UNDEFINED) != (option_type)) { + const option_value = option! + thisSerializer.writeGridRowOptions(option_value) + } + NativeModule._GridRowInterface_setGridRowOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + onBreakpointChangeAttribute(callback: ((breakpoints: string) => void)): void { + NativeModule._GridRowAttribute_onBreakpointChange(this.peer.ptr, registerCallback(callback)); + } + alignItemsAttribute(value: ItemAlign): void { + NativeModule._GridRowAttribute_alignItems(this.peer.ptr, (value.value as int32)); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkGridRowAttributes extends ArkCommonMethodAttributes { + onBreakpointChange?: ((breakpoints: string) => void) + alignItems?: ItemAlign +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkHyperlinkPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkHyperlinkPeer.ts new file mode 100644 index 000000000..a12305cc0 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkHyperlinkPeer.ts @@ -0,0 +1,118 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { Color } from "./../ArkEnumsInterfaces" +import { Resource } from "./../ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource } from "./../SyntheticDeclarations" +import { HyperlinkAttribute, HyperlinkInterface } from "./../ArkHyperlinkInterfaces" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkHyperlinkPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkHyperlinkPeer { + const _peer = new ArkHyperlinkPeer(nodeType, flags, "Hyperlink") + component?.setPeer(_peer) + return _peer + } + setHyperlinkOptionsAttribute(address: string | Resource, content?: string | Resource): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let address_type = RuntimeType.UNDEFINED + address_type = runtimeType(address) + if (((RuntimeType.STRING == address_type))) { + thisSerializer.writeInt8(0 as int32) + const address_0 = address as string + thisSerializer.writeString(address_0) + } + else if (((RuntimeType.OBJECT == address_type))) { + thisSerializer.writeInt8(1 as int32) + const address_1 = address as Resource + thisSerializer.writeResource(address_1) + } + let content_type = RuntimeType.UNDEFINED + if (content != undefined) { + content_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(content_type as int32) + if ((RuntimeType.UNDEFINED) != (content_type)) { + const content_value = content! + let content_value_type = RuntimeType.UNDEFINED + content_value_type = runtimeType(content_value) + if (((RuntimeType.STRING == content_value_type))) { + thisSerializer.writeInt8(0 as int32) + const content_value_0 = content_value as string + thisSerializer.writeString(content_value_0) + } + else if (((RuntimeType.OBJECT == content_value_type))) { + thisSerializer.writeInt8(1 as int32) + const content_value_1 = content_value as Resource + thisSerializer.writeResource(content_value_1) + } + } + NativeModule._HyperlinkInterface_setHyperlinkOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + colorAttribute(value: Color | number | string | Resource): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._HyperlinkAttribute_color(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkHyperlinkAttributes extends ArkCommonMethodAttributes { + color?: Color | number | string | Resource +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkImageAnimatorPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkImageAnimatorPeer.ts new file mode 100644 index 000000000..dc383f91b --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkImageAnimatorPeer.ts @@ -0,0 +1,117 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { ImageFrameInfo, ImageAnimatorAttribute, ImageAnimatorInterface } from "./../ArkImageAnimatorInterfaces" +import { AnimationStatus, FillMode } from "./../ArkEnumsInterfaces" +import { Resource } from "./../ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image } from "./../SyntheticDeclarations" +import { PixelMap } from "./../ArkCommonInterfaces" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkImageAnimatorPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkImageAnimatorPeer { + const _peer = new ArkImageAnimatorPeer(nodeType, flags, "ImageAnimator") + component?.setPeer(_peer) + return _peer + } + setImageAnimatorOptionsAttribute(): void { + NativeModule._ImageAnimatorInterface_setImageAnimatorOptions(this.peer.ptr); + } + imagesAttribute(value: Array): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeInt8(runtimeType(value) as int32) + thisSerializer.writeInt32(value.length as int32) + for (let i = 0; i < value.length; i++) { + const value_element = value[i] + thisSerializer.writeImageFrameInfo(value_element) + } + NativeModule._ImageAnimatorAttribute_images(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + stateAttribute(value: AnimationStatus): void { + NativeModule._ImageAnimatorAttribute_state(this.peer.ptr, (value.value as int32)); + } + durationAttribute(value: number): void { + NativeModule._ImageAnimatorAttribute_duration(this.peer.ptr, value); + } + reverseAttribute(value: boolean): void { + NativeModule._ImageAnimatorAttribute_reverse(this.peer.ptr, value ? 1 : 0); + } + fixedSizeAttribute(value: boolean): void { + NativeModule._ImageAnimatorAttribute_fixedSize(this.peer.ptr, value ? 1 : 0); + } + preDecodeAttribute(value: number): void { + NativeModule._ImageAnimatorAttribute_preDecode(this.peer.ptr, value); + } + fillModeAttribute(value: FillMode): void { + NativeModule._ImageAnimatorAttribute_fillMode(this.peer.ptr, (value.value as int32)); + } + iterationsAttribute(value: number): void { + NativeModule._ImageAnimatorAttribute_iterations(this.peer.ptr, value); + } + onStartAttribute(event: (() => void)): void { + NativeModule._ImageAnimatorAttribute_onStart(this.peer.ptr, registerCallback(event)); + } + onPauseAttribute(event: (() => void)): void { + NativeModule._ImageAnimatorAttribute_onPause(this.peer.ptr, registerCallback(event)); + } + onRepeatAttribute(event: (() => void)): void { + NativeModule._ImageAnimatorAttribute_onRepeat(this.peer.ptr, registerCallback(event)); + } + onCancelAttribute(event: (() => void)): void { + NativeModule._ImageAnimatorAttribute_onCancel(this.peer.ptr, registerCallback(event)); + } + onFinishAttribute(event: (() => void)): void { + NativeModule._ImageAnimatorAttribute_onFinish(this.peer.ptr, registerCallback(event)); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkImageAnimatorAttributes extends ArkCommonMethodAttributes { + images?: Array + state?: AnimationStatus + duration?: number + reverse?: boolean + fixedSize?: boolean + preDecode?: number + fillMode?: FillMode + iterations?: number + onStart?: (() => void) + onPause?: (() => void) + onRepeat?: (() => void) + onCancel?: (() => void) + onFinish?: (() => void) +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkImageSpanPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkImageSpanPeer.ts new file mode 100644 index 000000000..c70a6d9bd --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkImageSpanPeer.ts @@ -0,0 +1,124 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkBaseSpanPeer, ArkBaseSpanAttributes } from "./ArkSpanPeer" +import { ImageSpanAlignment, ImageFit } from "./../ArkEnumsInterfaces" +import { ImageSpanAttribute, ImageCompleteCallback, ImageLoadResult, ImageSpanInterface } from "./../ArkImageSpanInterfaces" +import { ColorFilter, ResourceStr, Resource } from "./../ArkUnitsInterfaces" +import { DrawingColorFilter, ImageErrorCallback, ImageError } from "./../ArkImageInterfaces" +import { IMPORT_default_ColorFilter_FROM_api_ohos_graphics_drawing, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image, IMPORT_Resource_FROM_api_global_resource } from "./../SyntheticDeclarations" +import { PixelMap } from "./../ArkCommonInterfaces" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkImageSpanPeer extends ArkBaseSpanPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkImageSpanPeer { + const _peer = new ArkImageSpanPeer(nodeType, flags, "ImageSpan") + component?.setPeer(_peer) + return _peer + } + setImageSpanOptionsAttribute(value: ResourceStr | PixelMap): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (isPixelMap(value))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as PixelMap + thisSerializer.writeCustomObject("PixelMap", value_1) + } + else if (((RuntimeType.STRING == value_type)) || ((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as ResourceStr + let value_0_type = RuntimeType.UNDEFINED + value_0_type = runtimeType(value_0) + if (((RuntimeType.STRING == value_0_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0_0 = value_0 as string + thisSerializer.writeString(value_0_0) + } + else if (((RuntimeType.OBJECT == value_0_type))) { + thisSerializer.writeInt8(1 as int32) + const value_0_1 = value_0 as Resource + thisSerializer.writeResource(value_0_1) + } + } + NativeModule._ImageSpanInterface_setImageSpanOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + verticalAlignAttribute(value: ImageSpanAlignment): void { + NativeModule._ImageSpanAttribute_verticalAlign(this.peer.ptr, (value.value as int32)); + } + colorFilterAttribute(filter: ColorFilter | DrawingColorFilter): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let filter_type = RuntimeType.UNDEFINED + filter_type = runtimeType(filter) + if (((RuntimeType.OBJECT) == (filter_type)) && (filter instanceof ColorFilter)) { + thisSerializer.writeInt8(0 as int32) + const filter_0 = filter as ColorFilter + thisSerializer.writeColorFilter(filter_0) + } + else if (((RuntimeType.OBJECT == filter_type))) { + thisSerializer.writeInt8(1 as int32) + const filter_1 = filter as DrawingColorFilter + thisSerializer.writeCustomObject("ColorFilter", filter_1) + } + NativeModule._ImageSpanAttribute_colorFilter(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + objectFitAttribute(value: ImageFit): void { + NativeModule._ImageSpanAttribute_objectFit(this.peer.ptr, (value.value as int32)); + } + onCompleteAttribute(callback: ImageCompleteCallback): void { + NativeModule._ImageSpanAttribute_onComplete(this.peer.ptr, registerCallback(callback)); + } + onErrorAttribute(callback: ImageErrorCallback): void { + NativeModule._ImageSpanAttribute_onError(this.peer.ptr, registerCallback(callback)); + } + altAttribute(value: PixelMap): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeCustomObject("PixelMap", value) + NativeModule._ImageSpanAttribute_alt(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkImageSpanAttributes extends ArkBaseSpanAttributes { + verticalAlign?: ImageSpanAlignment + colorFilter?: ColorFilter | DrawingColorFilter + objectFit?: ImageFit + onComplete?: ImageCompleteCallback + onError?: ImageErrorCallback + alt?: PixelMap +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkLinePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkLinePeer.ts new file mode 100644 index 000000000..bd1b1aa1d --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkLinePeer.ts @@ -0,0 +1,130 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonShapeMethodPeer, ArkCommonShapeMethodAttributes } from "./ArkCommonPeer" +import { LineAttribute, LineInterface } from "./../ArkLineInterfaces" +import { LITERAL_WidthStringnumberHeightStringnumber } from "./../SyntheticDeclarations" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkLinePeer extends ArkCommonShapeMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkLinePeer { + const _peer = new ArkLinePeer(nodeType, flags, "Line") + component?.setPeer(_peer) + return _peer + } + setLineOptionsAttribute(value?: LITERAL_WidthStringnumberHeightStringnumber): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + if (value != undefined) { + value_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_type as int32) + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value! + const value_value_width = value_value.width + let value_value_width_type = RuntimeType.UNDEFINED + if (value_value_width != undefined) { + value_value_width_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_value_width_type as int32) + if ((RuntimeType.UNDEFINED) != (value_value_width_type)) { + const value_value_width_value = value_value_width! + let value_value_width_value_type = RuntimeType.UNDEFINED + value_value_width_value_type = runtimeType(value_value_width_value) + if (((RuntimeType.STRING == value_value_width_value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_value_width_value_0 = value_value_width_value as string + thisSerializer.writeString(value_value_width_value_0) + } + else if (((RuntimeType.NUMBER == value_value_width_value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_value_width_value_1 = value_value_width_value as number + thisSerializer.writeNumber(value_value_width_value_1) + } + } + const value_value_height = value_value.height + let value_value_height_type = RuntimeType.UNDEFINED + if (value_value_height != undefined) { + value_value_height_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_value_height_type as int32) + if ((RuntimeType.UNDEFINED) != (value_value_height_type)) { + const value_value_height_value = value_value_height! + let value_value_height_value_type = RuntimeType.UNDEFINED + value_value_height_value_type = runtimeType(value_value_height_value) + if (((RuntimeType.STRING == value_value_height_value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_value_height_value_0 = value_value_height_value as string + thisSerializer.writeString(value_value_height_value_0) + } + else if (((RuntimeType.NUMBER == value_value_height_value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_value_height_value_1 = value_value_height_value as number + thisSerializer.writeNumber(value_value_height_value_1) + } + } + } + NativeModule._LineInterface_setLineOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + startPointAttribute(value: Array): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeInt8(runtimeType(value) as int32) + thisSerializer.writeInt32(value.length as int32) + for (let i = 0; i < value.length; i++) { + const value_element = value[i] + thisSerializer.writeCustomObject("Any", value_element) + } + NativeModule._LineAttribute_startPoint(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + endPointAttribute(value: Array): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeInt8(runtimeType(value) as int32) + thisSerializer.writeInt32(value.length as int32) + for (let i = 0; i < value.length; i++) { + const value_element = value[i] + thisSerializer.writeCustomObject("Any", value_element) + } + NativeModule._LineAttribute_endPoint(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkLineAttributes extends ArkCommonShapeMethodAttributes { + startPoint?: Array + endPoint?: Array +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkLinearindicatorPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkLinearindicatorPeer.ts new file mode 100644 index 000000000..e5ac705a1 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkLinearindicatorPeer.ts @@ -0,0 +1,122 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { LinearIndicatorStyle, LinearIndicatorAttribute, OnLinearIndicatorChangeCallback, LinearIndicatorInterface, LinearIndicatorStartOptions } from "./../ArkLinearindicatorInterfaces" +import { Optional } from "./../ArkCommonInterfaces" +import { LinearIndicatorController } from "./../ArkLinearIndicatorControllerMaterialized" +import { LengthMetrics, ColorMetrics } from "./../ArkUnitsInterfaces" +import { IMPORT_LengthMetrics_FROM_api_arkui_Graphics, IMPORT_ColorMetrics_FROM_api_arkui_Graphics } from "./../SyntheticDeclarations" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkLinearIndicatorPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkLinearIndicatorPeer { + const _peer = new ArkLinearIndicatorPeer(nodeType, flags, "LinearIndicator") + component?.setPeer(_peer) + return _peer + } + setLinearIndicatorOptionsAttribute(count?: number, controller?: LinearIndicatorController): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let count_type = RuntimeType.UNDEFINED + if (count != undefined) { + count_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(count_type as int32) + if ((RuntimeType.UNDEFINED) != (count_type)) { + const count_value = count! + thisSerializer.writeNumber(count_value) + } + let controller_type = RuntimeType.UNDEFINED + if (controller != undefined) { + controller_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(controller_type as int32) + if ((RuntimeType.UNDEFINED) != (controller_type)) { + const controller_value = controller! + thisSerializer.writeMaterialized(controller_value) + } + NativeModule._LinearIndicatorInterface_setLinearIndicatorOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + indicatorStyleAttribute(style: LinearIndicatorStyle | undefined): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let style_type = RuntimeType.UNDEFINED + if (style != undefined) { + style_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(style_type as int32) + if ((RuntimeType.UNDEFINED) != (style_type)) { + const style_value = style! + thisSerializer.writeLinearIndicatorStyle(style_value) + } + NativeModule._LinearIndicatorAttribute_indicatorStyle(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + indicatorLoopAttribute(loop: boolean | undefined): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let loop_type = RuntimeType.UNDEFINED + if (loop != undefined) { + loop_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(loop_type as int32) + if ((RuntimeType.UNDEFINED) != (loop_type)) { + const loop_value = loop! + thisSerializer.writeBoolean(loop_value) + } + NativeModule._LinearIndicatorAttribute_indicatorLoop(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + onChangeAttribute(callback: OnLinearIndicatorChangeCallback | undefined): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let callback_type = RuntimeType.UNDEFINED + if (callback != undefined) { + callback_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(callback_type as int32) + if ((RuntimeType.UNDEFINED) != (callback_type)) { + const callback_value = callback! + thisSerializer.writeFunction(callback_value) + } + NativeModule._LinearIndicatorAttribute_onChange(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkLinearIndicatorAttributes extends ArkCommonMethodAttributes { + indicatorStyle?: LinearIndicatorStyle | undefined + indicatorLoop?: boolean | undefined + onChange?: OnLinearIndicatorChangeCallback | undefined +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkListItemGroupPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkListItemGroupPeer.ts new file mode 100644 index 000000000..55bbac8b3 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkListItemGroupPeer.ts @@ -0,0 +1,92 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { ListDividerOptions } from "./../ArkListInterfaces" +import { ListItemGroupAttribute, ListItemGroupOptions, ListItemGroupInterface, ListItemGroupStyle } from "./../ArkListItemGroupInterfaces" +import { ChildrenMainSize } from "./../ArkChildrenMainSizeMaterialized" +import { CustomBuilder, ComponentContent } from "./../ArkCommonInterfaces" +import { IMPORT_ComponentContent_T_FROM_api_arkui_ComponentContent } from "./../SyntheticDeclarations" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkListItemGroupPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkListItemGroupPeer { + const _peer = new ArkListItemGroupPeer(nodeType, flags, "ListItemGroup") + component?.setPeer(_peer) + return _peer + } + setListItemGroupOptionsAttribute(options?: ListItemGroupOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeListItemGroupOptions(options_value) + } + NativeModule._ListItemGroupInterface_setListItemGroupOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + dividerAttribute(value: ListDividerOptions | null): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (TypeChecker.isListDividerOptions(value, false, false, false, false)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as ListDividerOptions + thisSerializer.writeListDividerOptions(value_0) + } + else if (value === null) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as null + } + NativeModule._ListItemGroupAttribute_divider(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + childrenMainSizeAttribute(value: ChildrenMainSize): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeMaterialized(value) + NativeModule._ListItemGroupAttribute_childrenMainSize(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkListItemGroupAttributes extends ArkCommonMethodAttributes { + divider?: ListDividerOptions | null + childrenMainSize?: ChildrenMainSize +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkListItemPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkListItemPeer.ts new file mode 100644 index 000000000..11bcf058a --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkListItemPeer.ts @@ -0,0 +1,122 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { Sticky, ListItemAttribute, EditMode, SwipeActionOptions, ListItemOptions, ListItemInterface, SwipeActionItem, SwipeEdgeEffect, SwipeActionState, ListItemStyle } from "./../ArkListItemInterfaces" +import { CustomBuilder } from "./../ArkCommonInterfaces" +import { Length, Resource } from "./../ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource } from "./../SyntheticDeclarations" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkListItemPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkListItemPeer { + const _peer = new ArkListItemPeer(nodeType, flags, "ListItem") + component?.setPeer(_peer) + return _peer + } + setListItemOptions0Attribute(value?: ListItemOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + if (value != undefined) { + value_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_type as int32) + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value! + thisSerializer.writeListItemOptions(value_value) + } + NativeModule._ListItemInterface_setListItemOptions0(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + setListItemOptions1Attribute(value?: string): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + if (value != undefined) { + value_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_type as int32) + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value! + thisSerializer.writeString(value_value) + } + NativeModule._ListItemInterface_setListItemOptions1(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + stickyAttribute(value: Sticky): void { + NativeModule._ListItemAttribute_sticky(this.peer.ptr, (value.value as int32)); + } + editableAttribute(value: boolean | EditMode): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.BOOLEAN == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as boolean + thisSerializer.writeBoolean(value_0) + } + else if (((value instanceof EditMode))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as EditMode + thisSerializer.writeInt32((value_1.value as int32)) + } + NativeModule._ListItemAttribute_editable(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + selectableAttribute(value: boolean): void { + NativeModule._ListItemAttribute_selectable(this.peer.ptr, value ? 1 : 0); + } + selectedAttribute(value: boolean): void { + NativeModule._ListItemAttribute_selected(this.peer.ptr, value ? 1 : 0); + } + swipeActionAttribute(value: SwipeActionOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeSwipeActionOptions(value) + NativeModule._ListItemAttribute_swipeAction(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + onSelectAttribute(event: ((isSelected: boolean) => void)): void { + NativeModule._ListItemAttribute_onSelect(this.peer.ptr, registerCallback(event)); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkListItemAttributes extends ArkCommonMethodAttributes { + sticky?: Sticky + editable?: boolean | EditMode + selectable?: boolean + selected?: boolean + swipeAction?: SwipeActionOptions + onSelect?: ((isSelected: boolean) => void) +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkLoadingProgressPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkLoadingProgressPeer.ts new file mode 100644 index 000000000..f3a3d3473 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkLoadingProgressPeer.ts @@ -0,0 +1,97 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { ResourceColor, Resource } from "./../ArkUnitsInterfaces" +import { Color } from "./../ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource } from "./../SyntheticDeclarations" +import { LoadingProgressAttribute, LoadingProgressConfiguration, LoadingProgressInterface } from "./../ArkLoadingProgressInterfaces" +import { ContentModifier } from "./../ConflictedDeclarations" +import { CommonConfiguration } from "./../ArkCommonInterfaces" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkLoadingProgressPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkLoadingProgressPeer { + const _peer = new ArkLoadingProgressPeer(nodeType, flags, "LoadingProgress") + component?.setPeer(_peer) + return _peer + } + setLoadingProgressOptionsAttribute(): void { + NativeModule._LoadingProgressInterface_setLoadingProgressOptions(this.peer.ptr); + } + colorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._LoadingProgressAttribute_color(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + enableLoadingAttribute(value: boolean): void { + NativeModule._LoadingProgressAttribute_enableLoading(this.peer.ptr, value ? 1 : 0); + } + contentModifierAttribute(modifier: ContentModifier): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeCustomObject("ContentModifier", modifier) + NativeModule._LoadingProgressAttribute_contentModifier(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkLoadingProgressAttributes extends ArkCommonMethodAttributes { + color?: ResourceColor + enableLoading?: boolean + contentModifier?: ContentModifier +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkLocationButtonPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkLocationButtonPeer.ts new file mode 100644 index 000000000..16e87aca6 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkLocationButtonPeer.ts @@ -0,0 +1,65 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkSecurityComponentMethodPeer, ArkSecurityComponentMethodAttributes } from "./ArkSecurityComponentPeer" +import { ClickEvent } from "./../ArkCommonInterfaces" +import { LocationButtonOnClickResult, LocationButtonAttribute, LocationButtonOptions, LocationButtonInterface, LocationIconStyle, LocationDescription } from "./../ArkLocationButtonInterfaces" +import { ButtonType } from "./../ArkButtonInterfaces" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkLocationButtonPeer extends ArkSecurityComponentMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkLocationButtonPeer { + const _peer = new ArkLocationButtonPeer(nodeType, flags, "LocationButton") + component?.setPeer(_peer) + return _peer + } + setLocationButtonOptions0Attribute(): void { + NativeModule._LocationButtonInterface_setLocationButtonOptions0(this.peer.ptr); + } + setLocationButtonOptions1Attribute(options: LocationButtonOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeLocationButtonOptions(options) + NativeModule._LocationButtonInterface_setLocationButtonOptions1(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + onClickAttribute(event: ((event: ClickEvent, result: LocationButtonOnClickResult) => void)): void { + NativeModule._LocationButtonAttribute_onClick(this.peer.ptr, registerCallback(event)); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkLocationButtonAttributes extends ArkSecurityComponentMethodAttributes { + onClick?: ((event: ClickEvent, result: LocationButtonOnClickResult) => void) +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkMarqueePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkMarqueePeer.ts new file mode 100644 index 000000000..907a496c4 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkMarqueePeer.ts @@ -0,0 +1,155 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { ResourceColor, Resource, Length } from "./../ArkUnitsInterfaces" +import { Color, FontWeight, MarqueeUpdateStrategy } from "./../ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource } from "./../SyntheticDeclarations" +import { MarqueeAttribute, MarqueeOptions, MarqueeInterface } from "./../ArkMarqueeInterfaces" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkMarqueePeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkMarqueePeer { + const _peer = new ArkMarqueePeer(nodeType, flags, "Marquee") + component?.setPeer(_peer) + return _peer + } + setMarqueeOptionsAttribute(options: MarqueeOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeMarqueeOptions(options) + NativeModule._MarqueeInterface_setMarqueeOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + fontColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._MarqueeAttribute_fontColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + fontSizeAttribute(value: Length): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeLength(value); + NativeModule._MarqueeAttribute_fontSize(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + allowScaleAttribute(value: boolean): void { + NativeModule._MarqueeAttribute_allowScale(this.peer.ptr, value ? 1 : 0); + } + fontWeightAttribute(value: number | FontWeight | string): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((value instanceof FontWeight))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as FontWeight + thisSerializer.writeInt32((value_1.value as int32)) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + NativeModule._MarqueeAttribute_fontWeight(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + fontFamilyAttribute(value: string | Resource): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as string + thisSerializer.writeString(value_0) + } + else if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as Resource + thisSerializer.writeResource(value_1) + } + NativeModule._MarqueeAttribute_fontFamily(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + marqueeUpdateStrategyAttribute(value: MarqueeUpdateStrategy): void { + NativeModule._MarqueeAttribute_marqueeUpdateStrategy(this.peer.ptr, (value.value as int32)); + } + onStartAttribute(event: (() => void)): void { + NativeModule._MarqueeAttribute_onStart(this.peer.ptr, registerCallback(event)); + } + onBounceAttribute(event: (() => void)): void { + NativeModule._MarqueeAttribute_onBounce(this.peer.ptr, registerCallback(event)); + } + onFinishAttribute(event: (() => void)): void { + NativeModule._MarqueeAttribute_onFinish(this.peer.ptr, registerCallback(event)); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkMarqueeAttributes extends ArkCommonMethodAttributes { + fontColor?: ResourceColor + fontSize?: Length + allowScale?: boolean + fontWeight?: number | FontWeight | string + fontFamily?: string | Resource + marqueeUpdateStrategy?: MarqueeUpdateStrategy + onStart?: (() => void) + onBounce?: (() => void) + onFinish?: (() => void) +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkMediaCachedImagePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkMediaCachedImagePeer.ts new file mode 100644 index 000000000..5e815c85d --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkMediaCachedImagePeer.ts @@ -0,0 +1,92 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkImagePeer, ArkImageAttributes } from "./ArkImagePeer" +import { MediaCachedImageAttribute, ASTCResource, MediaCachedImageInterface } from "./../ArkMediaCachedImageInterfaces" +import { PixelMap } from "./../ArkCommonInterfaces" +import { IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image, IMPORT_Resource_FROM_api_global_resource, IMPORT_DrawableDescriptor_FROM_api_ohos_arkui_drawableDescriptor } from "./../SyntheticDeclarations" +import { ResourceStr, Resource } from "./../ArkUnitsInterfaces" +import { DrawableDescriptor } from "./../ArkImageInterfaces" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkMediaCachedImagePeer extends ArkImagePeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkMediaCachedImagePeer { + const _peer = new ArkMediaCachedImagePeer(nodeType, flags, "MediaCachedImage") + component?.setPeer(_peer) + return _peer + } + setMediaCachedImageOptionsAttribute(src: PixelMap | ResourceStr | DrawableDescriptor | ASTCResource): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let src_type = RuntimeType.UNDEFINED + src_type = runtimeType(src) + if (((RuntimeType.OBJECT) == (src_type)) && (isPixelMap(src))) { + thisSerializer.writeInt8(0 as int32) + const src_0 = src as PixelMap + thisSerializer.writeCustomObject("PixelMap", src_0) + } + else if (((RuntimeType.OBJECT) == (src_type)) && (isInstanceOf("DrawableDescriptor", src))) { + thisSerializer.writeInt8(2 as int32) + const src_2 = src as DrawableDescriptor + thisSerializer.writeCustomObject("DrawableDescriptor", src_2) + } + else if (TypeChecker.isASTCResource(src, false, false)) { + thisSerializer.writeInt8(3 as int32) + const src_3 = src as ASTCResource + thisSerializer.writeASTCResource(src_3) + } + else if (((RuntimeType.STRING == src_type)) || ((RuntimeType.OBJECT == src_type))) { + thisSerializer.writeInt8(1 as int32) + const src_1 = src as ResourceStr + let src_1_type = RuntimeType.UNDEFINED + src_1_type = runtimeType(src_1) + if (((RuntimeType.STRING == src_1_type))) { + thisSerializer.writeInt8(0 as int32) + const src_1_0 = src_1 as string + thisSerializer.writeString(src_1_0) + } + else if (((RuntimeType.OBJECT == src_1_type))) { + thisSerializer.writeInt8(1 as int32) + const src_1_1 = src_1 as Resource + thisSerializer.writeResource(src_1_1) + } + } + NativeModule._MediaCachedImageInterface_setMediaCachedImageOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkMediaCachedImageAttributes extends ArkImageAttributes { +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkMenuItemGroupPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkMenuItemGroupPeer.ts new file mode 100644 index 000000000..7d655a465 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkMenuItemGroupPeer.ts @@ -0,0 +1,67 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { MenuItemGroupAttribute, MenuItemGroupOptions, MenuItemGroupInterface } from "./../ArkMenuItemGroupInterfaces" +import { ResourceStr, Resource } from "./../ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource } from "./../SyntheticDeclarations" +import { CustomBuilder } from "./../ArkCommonInterfaces" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkMenuItemGroupPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkMenuItemGroupPeer { + const _peer = new ArkMenuItemGroupPeer(nodeType, flags, "MenuItemGroup") + component?.setPeer(_peer) + return _peer + } + setMenuItemGroupOptionsAttribute(value?: MenuItemGroupOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + if (value != undefined) { + value_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_type as int32) + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value! + thisSerializer.writeMenuItemGroupOptions(value_value) + } + NativeModule._MenuItemGroupInterface_setMenuItemGroupOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkMenuItemGroupAttributes extends ArkCommonMethodAttributes { +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkMenuItemPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkMenuItemPeer.ts new file mode 100644 index 000000000..16dcad856 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkMenuItemPeer.ts @@ -0,0 +1,200 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { MenuItemAttribute, MenuItemOptions, MenuItemInterface } from "./../ArkMenuItemInterfaces" +import { ResourceStr, Resource, Font, ResourceColor } from "./../ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, IMPORT_SymbolGlyphModifier_FROM_api_arkui_SymbolGlyphModifier } from "./../SyntheticDeclarations" +import { SymbolGlyphModifier, CustomBuilder } from "./../ArkCommonInterfaces" +import { Color } from "./../ArkEnumsInterfaces" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkMenuItemPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkMenuItemPeer { + const _peer = new ArkMenuItemPeer(nodeType, flags, "MenuItem") + component?.setPeer(_peer) + return _peer + } + setMenuItemOptionsAttribute(value?: MenuItemOptions | CustomBuilder): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + if (value != undefined) { + value_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_type as int32) + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value! + let value_value_type = RuntimeType.UNDEFINED + value_value_type = runtimeType(value_value) + if (((RuntimeType.OBJECT == value_value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_value_0 = value_value as MenuItemOptions + thisSerializer.writeMenuItemOptions(value_value_0) + } + else if (((RuntimeType.FUNCTION == value_value_type)) || ((RuntimeType.UNDEFINED == value_value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_value_1 = value_value as CustomBuilder + let value_value_1_type = RuntimeType.UNDEFINED + value_value_1_type = runtimeType(value_value_1) + if (((RuntimeType.FUNCTION == value_value_1_type))) { + thisSerializer.writeInt8(0 as int32) + const value_value_1_0 = value_value_1 as Object + thisSerializer.writeFunction(value_value_1_0) + } + else if (((RuntimeType.UNDEFINED == value_value_1_type))) { + thisSerializer.writeInt8(1 as int32) + } + } + } + NativeModule._MenuItemInterface_setMenuItemOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + selectedAttribute(value: boolean): void { + NativeModule._MenuItemAttribute_selected(this.peer.ptr, value ? 1 : 0); + } + selectIconAttribute(value: boolean | ResourceStr | SymbolGlyphModifier): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.BOOLEAN == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as boolean + thisSerializer.writeBoolean(value_0) + } + else if (((RuntimeType.OBJECT) == (value_type)) && (isInstanceOf("SymbolGlyphModifier", value))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as SymbolGlyphModifier + thisSerializer.writeCustomObject("SymbolGlyphModifier", value_2) + } + else if (((RuntimeType.STRING == value_type)) || ((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as ResourceStr + let value_1_type = RuntimeType.UNDEFINED + value_1_type = runtimeType(value_1) + if (((RuntimeType.STRING == value_1_type))) { + thisSerializer.writeInt8(0 as int32) + const value_1_0 = value_1 as string + thisSerializer.writeString(value_1_0) + } + else if (((RuntimeType.OBJECT == value_1_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1_1 = value_1 as Resource + thisSerializer.writeResource(value_1_1) + } + } + NativeModule._MenuItemAttribute_selectIcon(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + onChangeAttribute(callback: ((selected: boolean) => void)): void { + NativeModule._MenuItemAttribute_onChange(this.peer.ptr, registerCallback(callback)); + } + contentFontAttribute(value: Font): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeFont(value) + NativeModule._MenuItemAttribute_contentFont(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + contentFontColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._MenuItemAttribute_contentFontColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + labelFontAttribute(value: Font): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeFont(value) + NativeModule._MenuItemAttribute_labelFont(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + labelFontColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._MenuItemAttribute_labelFontColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkMenuItemAttributes extends ArkCommonMethodAttributes { + selected?: boolean + selectIcon?: boolean | ResourceStr | SymbolGlyphModifier + onChange?: ((selected: boolean) => void) + contentFont?: Font + contentFontColor?: ResourceColor + labelFont?: Font + labelFontColor?: ResourceColor +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkMenuPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkMenuPeer.ts new file mode 100644 index 000000000..3e17c956c --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkMenuPeer.ts @@ -0,0 +1,191 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { Length, Resource, Font, ResourceColor, Dimension, PX, VP, FP, LPX, Percentage, BorderRadiuses, DividerStyleOptions } from "./../ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, LITERAL_TopLeftLengthTopRightLengthBottomLeftLengthBottomRightLength } from "./../SyntheticDeclarations" +import { MenuAttribute, SubMenuExpandingMode, MenuInterface } from "./../ArkMenuInterfaces" +import { Color } from "./../ArkEnumsInterfaces" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkMenuPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkMenuPeer { + const _peer = new ArkMenuPeer(nodeType, flags, "Menu") + component?.setPeer(_peer) + return _peer + } + setMenuOptionsAttribute(): void { + NativeModule._MenuInterface_setMenuOptions(this.peer.ptr); + } + fontSizeAttribute(value: Length): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeLength(value); + NativeModule._MenuAttribute_fontSize(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + fontAttribute(value: Font): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeFont(value) + NativeModule._MenuAttribute_font(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + fontColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._MenuAttribute_fontColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + radiusAttribute(value: Dimension | BorderRadiuses): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value)))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Dimension + thisSerializer.writeLength(value_0); + } + else if (TypeChecker.isBorderRadiuses(value, false, false, false, false)) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as BorderRadiuses + const value_1_topLeft = value_1.topLeft + let value_1_topLeft_type = RuntimeType.UNDEFINED + if (value_1_topLeft != undefined) { + value_1_topLeft_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_1_topLeft_type as int32) + if ((RuntimeType.UNDEFINED) != (value_1_topLeft_type)) { + const value_1_topLeft_value = value_1_topLeft! + thisSerializer.writeLength(value_1_topLeft_value); + } + const value_1_topRight = value_1.topRight + let value_1_topRight_type = RuntimeType.UNDEFINED + if (value_1_topRight != undefined) { + value_1_topRight_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_1_topRight_type as int32) + if ((RuntimeType.UNDEFINED) != (value_1_topRight_type)) { + const value_1_topRight_value = value_1_topRight! + thisSerializer.writeLength(value_1_topRight_value); + } + const value_1_bottomLeft = value_1.bottomLeft + let value_1_bottomLeft_type = RuntimeType.UNDEFINED + if (value_1_bottomLeft != undefined) { + value_1_bottomLeft_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_1_bottomLeft_type as int32) + if ((RuntimeType.UNDEFINED) != (value_1_bottomLeft_type)) { + const value_1_bottomLeft_value = value_1_bottomLeft! + thisSerializer.writeLength(value_1_bottomLeft_value); + } + const value_1_bottomRight = value_1.bottomRight + let value_1_bottomRight_type = RuntimeType.UNDEFINED + if (value_1_bottomRight != undefined) { + value_1_bottomRight_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_1_bottomRight_type as int32) + if ((RuntimeType.UNDEFINED) != (value_1_bottomRight_type)) { + const value_1_bottomRight_value = value_1_bottomRight! + thisSerializer.writeLength(value_1_bottomRight_value); + } + } + NativeModule._MenuAttribute_radius(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + menuItemDividerAttribute(options: DividerStyleOptions | undefined): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let options_type = RuntimeType.UNDEFINED + options_type = runtimeType(options) + if (((RuntimeType.OBJECT == options_type))) { + thisSerializer.writeInt8(0 as int32) + const options_0 = options as DividerStyleOptions + thisSerializer.writeDividerStyleOptions(options_0) + } + else if (((RuntimeType.UNDEFINED == options_type))) { + thisSerializer.writeInt8(1 as int32) + } + NativeModule._MenuAttribute_menuItemDivider(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + menuItemGroupDividerAttribute(options: DividerStyleOptions | undefined): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let options_type = RuntimeType.UNDEFINED + options_type = runtimeType(options) + if (((RuntimeType.OBJECT == options_type))) { + thisSerializer.writeInt8(0 as int32) + const options_0 = options as DividerStyleOptions + thisSerializer.writeDividerStyleOptions(options_0) + } + else if (((RuntimeType.UNDEFINED == options_type))) { + thisSerializer.writeInt8(1 as int32) + } + NativeModule._MenuAttribute_menuItemGroupDivider(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + subMenuExpandingModeAttribute(mode: SubMenuExpandingMode): void { + NativeModule._MenuAttribute_subMenuExpandingMode(this.peer.ptr, (mode.value as int32)); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkMenuAttributes extends ArkCommonMethodAttributes { + fontSize?: Length + font?: Font + fontColor?: ResourceColor + radius?: Dimension | BorderRadiuses + menuItemDivider?: DividerStyleOptions | undefined + menuItemGroupDivider?: DividerStyleOptions | undefined + subMenuExpandingMode?: SubMenuExpandingMode +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkNavRouterPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkNavRouterPeer.ts new file mode 100644 index 000000000..2e8253e5c --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkNavRouterPeer.ts @@ -0,0 +1,67 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { NavRouterAttribute, NavRouteMode, RouteInfo, NavRouterInterface } from "./../ArkNavRouterInterfaces" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkNavRouterPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkNavRouterPeer { + const _peer = new ArkNavRouterPeer(nodeType, flags, "NavRouter") + component?.setPeer(_peer) + return _peer + } + setNavRouterOptions0Attribute(): void { + NativeModule._NavRouterInterface_setNavRouterOptions0(this.peer.ptr); + } + setNavRouterOptions1Attribute(value: RouteInfo): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeRouteInfo(value) + NativeModule._NavRouterInterface_setNavRouterOptions1(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + onStateChangeAttribute(callback: ((isActivated: boolean) => void)): void { + NativeModule._NavRouterAttribute_onStateChange(this.peer.ptr, registerCallback(callback)); + } + modeAttribute(mode: NavRouteMode): void { + NativeModule._NavRouterAttribute_mode(this.peer.ptr, (mode.value as int32)); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkNavRouterAttributes extends ArkCommonMethodAttributes { + onStateChange?: ((isActivated: boolean) => void) + mode?: NavRouteMode +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkNavigatorPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkNavigatorPeer.ts new file mode 100644 index 000000000..9eced8f16 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkNavigatorPeer.ts @@ -0,0 +1,98 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { NavigatorAttribute, NavigationType, NavigatorInterface } from "./../ArkNavigatorInterfaces" +import { LITERAL_TargetStringTypeNavigationType } from "./../SyntheticDeclarations" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkNavigatorPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkNavigatorPeer { + const _peer = new ArkNavigatorPeer(nodeType, flags, "Navigator") + component?.setPeer(_peer) + return _peer + } + setNavigatorOptions0Attribute(value?: LITERAL_TargetStringTypeNavigationType): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + if (value != undefined) { + value_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_type as int32) + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value! + const value_value_target = value_value.target + thisSerializer.writeString(value_value_target) + const value_value_type = value_value.type + let value_value_type_type = RuntimeType.UNDEFINED + if (value_value_type != undefined) { + value_value_type_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_value_type_type as int32) + if ((RuntimeType.UNDEFINED) != (value_value_type_type)) { + const value_value_type_value = value_value_type! + thisSerializer.writeInt32((value_value_type_value.value as int32)) + } + } + NativeModule._NavigatorInterface_setNavigatorOptions0(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + setNavigatorOptions1Attribute(): void { + NativeModule._NavigatorInterface_setNavigatorOptions1(this.peer.ptr); + } + activeAttribute(value: boolean): void { + NativeModule._NavigatorAttribute_active(this.peer.ptr, value ? 1 : 0); + } + typeAttribute(value: NavigationType): void { + NativeModule._NavigatorAttribute_type(this.peer.ptr, (value.value as int32)); + } + targetAttribute(value: string): void { + NativeModule._NavigatorAttribute_target(this.peer.ptr, value); + } + paramsAttribute(value: Object): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeCustomObject("Object", value) + NativeModule._NavigatorAttribute_params(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkNavigatorAttributes extends ArkCommonMethodAttributes { + active?: boolean + type?: NavigationType + target?: string + params?: Object +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkNodeContainerPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkNodeContainerPeer.ts new file mode 100644 index 000000000..3424152ba --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkNodeContainerPeer.ts @@ -0,0 +1,57 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { NodeContainerAttribute, NodeContainerInterface } from "./../ArkNodeContainerInterfaces" +import { IMPORT_NodeController_FROM_api_ohos_arkui_node } from "./../SyntheticDeclarations" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkNodeContainerPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkNodeContainerPeer { + const _peer = new ArkNodeContainerPeer(nodeType, flags, "NodeContainer") + component?.setPeer(_peer) + return _peer + } + setNodeContainerOptionsAttribute(controller: IMPORT_NodeController_FROM_api_ohos_arkui_node): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeCustomObject("NodeController", controller) + NativeModule._NodeContainerInterface_setNodeContainerOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkNodeContainerAttributes extends ArkCommonMethodAttributes { +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkPanelPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkPanelPeer.ts new file mode 100644 index 000000000..357267a1d --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkPanelPeer.ts @@ -0,0 +1,184 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { PanelMode, PanelAttribute, PanelType, PanelHeight, PanelInterface } from "./../ArkPanelInterfaces" +import { Dimension, PX, VP, FP, LPX, Percentage, Resource, ResourceColor } from "./../ArkUnitsInterfaces" +import { TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, IMPORT_Resource_FROM_api_global_resource } from "./../SyntheticDeclarations" +import { Color } from "./../ArkEnumsInterfaces" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkPanelPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkPanelPeer { + const _peer = new ArkPanelPeer(nodeType, flags, "Panel") + component?.setPeer(_peer) + return _peer + } + setPanelOptionsAttribute(show: boolean): void { + NativeModule._PanelInterface_setPanelOptions(this.peer.ptr, show ? 1 : 0); + } + modeAttribute(value: PanelMode): void { + NativeModule._PanelAttribute_mode(this.peer.ptr, (value.value as int32)); + } + typeAttribute(value: PanelType): void { + NativeModule._PanelAttribute_type(this.peer.ptr, (value.value as int32)); + } + dragBarAttribute(value: boolean): void { + NativeModule._PanelAttribute_dragBar(this.peer.ptr, value ? 1 : 0); + } + customHeightAttribute(value: Dimension | PanelHeight): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value)))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Dimension + thisSerializer.writeLength(value_0); + } + else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof PanelHeight)) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as PanelHeight + thisSerializer.writeInt32((value_1.ordinal as int32)) + } + NativeModule._PanelAttribute_customHeight(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + fullHeightAttribute(value: number | string): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as string + thisSerializer.writeString(value_1) + } + NativeModule._PanelAttribute_fullHeight(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + halfHeightAttribute(value: number | string): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as string + thisSerializer.writeString(value_1) + } + NativeModule._PanelAttribute_halfHeight(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + miniHeightAttribute(value: number | string): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as string + thisSerializer.writeString(value_1) + } + NativeModule._PanelAttribute_miniHeight(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + showAttribute(value: boolean): void { + NativeModule._PanelAttribute_show(this.peer.ptr, value ? 1 : 0); + } + backgroundMaskAttribute(color: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let color_type = RuntimeType.UNDEFINED + color_type = runtimeType(color) + if (((RuntimeType.OBJECT) == (color_type)) && (color instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const color_0 = color as Color + thisSerializer.writeInt32((color_0.value as int32)) + } + else if (((RuntimeType.NUMBER == color_type))) { + thisSerializer.writeInt8(1 as int32) + const color_1 = color as number + thisSerializer.writeNumber(color_1) + } + else if (((RuntimeType.STRING == color_type))) { + thisSerializer.writeInt8(2 as int32) + const color_2 = color as string + thisSerializer.writeString(color_2) + } + else if (isResource(color)) { + thisSerializer.writeInt8(3 as int32) + const color_3 = color as Resource + thisSerializer.writeResource(color_3) + } + NativeModule._PanelAttribute_backgroundMask(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + showCloseIconAttribute(value: boolean): void { + NativeModule._PanelAttribute_showCloseIcon(this.peer.ptr, value ? 1 : 0); + } + onChangeAttribute(event: ((width: number, height: number, mode: PanelMode) => void)): void { + NativeModule._PanelAttribute_onChange(this.peer.ptr, registerCallback(event)); + } + onHeightChangeAttribute(callback: ((value: number) => void)): void { + NativeModule._PanelAttribute_onHeightChange(this.peer.ptr, registerCallback(callback)); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkPanelAttributes extends ArkCommonMethodAttributes { + mode?: PanelMode + type?: PanelType + dragBar?: boolean + customHeight?: Dimension | PanelHeight + fullHeight?: number | string + halfHeight?: number | string + miniHeight?: number | string + show?: boolean + backgroundMask?: ResourceColor + showCloseIcon?: boolean + onChange?: ((width: number, height: number, mode: PanelMode) => void) + onHeightChange?: ((value: number) => void) +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkPasteButtonPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkPasteButtonPeer.ts new file mode 100644 index 000000000..fc05affee --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkPasteButtonPeer.ts @@ -0,0 +1,65 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkSecurityComponentMethodPeer, ArkSecurityComponentMethodAttributes } from "./ArkSecurityComponentPeer" +import { ClickEvent } from "./../ArkCommonInterfaces" +import { PasteButtonOnClickResult, PasteButtonAttribute, PasteButtonOptions, PasteButtonInterface, PasteIconStyle, PasteDescription } from "./../ArkPasteButtonInterfaces" +import { ButtonType } from "./../ArkButtonInterfaces" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkPasteButtonPeer extends ArkSecurityComponentMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkPasteButtonPeer { + const _peer = new ArkPasteButtonPeer(nodeType, flags, "PasteButton") + component?.setPeer(_peer) + return _peer + } + setPasteButtonOptions0Attribute(): void { + NativeModule._PasteButtonInterface_setPasteButtonOptions0(this.peer.ptr); + } + setPasteButtonOptions1Attribute(options: PasteButtonOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writePasteButtonOptions(options) + NativeModule._PasteButtonInterface_setPasteButtonOptions1(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + onClickAttribute(event: ((event: ClickEvent, result: PasteButtonOnClickResult) => void)): void { + NativeModule._PasteButtonAttribute_onClick(this.peer.ptr, registerCallback(event)); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkPasteButtonAttributes extends ArkSecurityComponentMethodAttributes { + onClick?: ((event: ClickEvent, result: PasteButtonOnClickResult) => void) +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkPathPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkPathPeer.ts new file mode 100644 index 000000000..dc5bd9af2 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkPathPeer.ts @@ -0,0 +1,120 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonShapeMethodPeer, ArkCommonShapeMethodAttributes } from "./ArkCommonPeer" +import { PathAttribute, PathInterface } from "./../ArkPathInterfaces" +import { LITERAL_WidthNumberstringHeightNumberstringCommandsString } from "./../SyntheticDeclarations" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkPathPeer extends ArkCommonShapeMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkPathPeer { + const _peer = new ArkPathPeer(nodeType, flags, "Path") + component?.setPeer(_peer) + return _peer + } + setPathOptionsAttribute(value?: LITERAL_WidthNumberstringHeightNumberstringCommandsString): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + if (value != undefined) { + value_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_type as int32) + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value! + const value_value_width = value_value.width + let value_value_width_type = RuntimeType.UNDEFINED + if (value_value_width != undefined) { + value_value_width_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_value_width_type as int32) + if ((RuntimeType.UNDEFINED) != (value_value_width_type)) { + const value_value_width_value = value_value_width! + let value_value_width_value_type = RuntimeType.UNDEFINED + value_value_width_value_type = runtimeType(value_value_width_value) + if (((RuntimeType.NUMBER == value_value_width_value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_value_width_value_0 = value_value_width_value as number + thisSerializer.writeNumber(value_value_width_value_0) + } + else if (((RuntimeType.STRING == value_value_width_value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_value_width_value_1 = value_value_width_value as string + thisSerializer.writeString(value_value_width_value_1) + } + } + const value_value_height = value_value.height + let value_value_height_type = RuntimeType.UNDEFINED + if (value_value_height != undefined) { + value_value_height_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_value_height_type as int32) + if ((RuntimeType.UNDEFINED) != (value_value_height_type)) { + const value_value_height_value = value_value_height! + let value_value_height_value_type = RuntimeType.UNDEFINED + value_value_height_value_type = runtimeType(value_value_height_value) + if (((RuntimeType.NUMBER == value_value_height_value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_value_height_value_0 = value_value_height_value as number + thisSerializer.writeNumber(value_value_height_value_0) + } + else if (((RuntimeType.STRING == value_value_height_value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_value_height_value_1 = value_value_height_value as string + thisSerializer.writeString(value_value_height_value_1) + } + } + const value_value_commands = value_value.commands + let value_value_commands_type = RuntimeType.UNDEFINED + if (value_value_commands != undefined) { + value_value_commands_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_value_commands_type as int32) + if ((RuntimeType.UNDEFINED) != (value_value_commands_type)) { + const value_value_commands_value = value_value_commands! + thisSerializer.writeString(value_value_commands_value) + } + } + NativeModule._PathInterface_setPathOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + commandsAttribute(value: string): void { + NativeModule._PathAttribute_commands(this.peer.ptr, value); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkPathAttributes extends ArkCommonShapeMethodAttributes { + commands?: string +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkPatternLockPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkPatternLockPeer.ts new file mode 100644 index 000000000..f2bf78820 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkPatternLockPeer.ts @@ -0,0 +1,281 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { Length, Resource, SizeOptions, ConstraintSizeOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, ResourceStr, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, PX, VP, FP, LPX, Percentage, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, LengthMetrics } from "./../ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, LITERAL_TopLengthRightLengthBottomLengthLeftLength, LITERAL_AlignAlignment, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image, IMPORT_default_VisualEffect_FROM_api_ohos_graphics_uiEffect, IMPORT_default_Filter_FROM_api_ohos_graphics_uiEffect, LITERAL_TopBorderStyleRightBorderStyleBottomBorderStyleLeftBorderStyle, LITERAL_TopResourceColorRightResourceColorBottomResourceColorLeftResourceColor, LITERAL_TopLeftLengthTopRightLengthBottomLeftLengthBottomRightLength, LITERAL_TopOutlineStyleRightOutlineStyleBottomOutlineStyleLeftOutlineStyle, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, LITERAL_TopDimensionRightDimensionBottomDimensionLeftDimension, LITERAL_TopLeftDimensionTopRightDimensionBottomLeftDimensionBottomRightDimension, LITERAL_SpanNumberOffsetNumber, LITERAL_XsNumberLITERALSpanNumberOffsetNumberSmNumberLITERALSpanNumberOffsetNumberMdNumberLITERALSpanNumberOffsetNumberLgNumberLITERALSpanNumberOffsetNumber, IMPORT_default_UniformDataType_FROM_api_ohos_data_uniformTypeDescriptor, IMPORT_ComponentContent_T_FROM_api_arkui_ComponentContent, LITERAL_AngleNumberstringDirectionGradientDirectionColorsArrayResourceColornumberRepeatingBoolean, LITERAL_CenterLengthLengthStartNumberstringEndNumberstringRotationNumberstringColorsArrayResourceColornumberRepeatingBoolean, LITERAL_CenterLengthLengthRadiusNumberstringColorsArrayResourceColornumberRepeatingBoolean, IMPORT_default_Blender_FROM_api_ohos_graphics_uiEffect, IMPORT_CircleShape_FROM_api_ohos_arkui_shape, IMPORT_EllipseShape_FROM_api_ohos_arkui_shape, IMPORT_PathShape_FROM_api_ohos_arkui_shape, IMPORT_RectShape_FROM_api_ohos_arkui_shape, IMPORT_Callback_number_FROM_api_ohos_base, IMPORT_LengthMetrics_FROM_api_arkui_Graphics } from "./../SyntheticDeclarations" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { Optional, SafeAreaType, SafeAreaEdge, Rectangle, TouchTestInfo, TouchResult, CustomBuilder, PixelRoundPolicy, PixelMap, BlurStyle, BackgroundBlurStyleOptions, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, ForegroundBlurStyleOptions, BorderImageOption, OutlineStyle, ClickEvent, Callback, HoverEvent, AccessibilityCallback, AccessibilityHoverEvent, MouseEvent, TouchEvent, KeyEvent, AnimateParam, TransitionOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, sharedTransitionOptions, AlignRuleOption, LocalizedAlignRuleOptions, ChainStyle, ClickEffect, DragEvent, DragItemInfo, UniformDataType, DragPreviewOptions, DragInteractionOptions, PreDragStatus, ComponentContent, OverlayOptions, MotionPathOptions, ShadowOptions, ShadowStyle, BlendMode, BlendApplyType, Blender, CircleShape, EllipseShape, PathShape, RectShape, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, StateStyles, VisibleAreaChangeCallback, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback } from "./../ArkCommonInterfaces" +import { HitTestMode, Alignment, Color, ImageRepeat, ImageSize, BorderStyle, ColoringStrategy, HoverEffect, Visibility, ItemAlign, Direction, Axis, GradientDirection, ResponseType, FunctionKey, ModifierKey, ObscuredReasons, RenderFit } from "./../ArkEnumsInterfaces" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ConflictedDeclarations" +import { GestureType, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureMask, GestureInfo, BaseGestureEvent, GestureJudgeResult } from "./../ArkGestureInterfaces" +import { CircleAttribute } from "./../ArkCircleInterfaces" +import { EllipseAttribute } from "./../ArkEllipseInterfaces" +import { PathAttribute } from "./../ArkPathInterfaces" +import { RectAttribute } from "./../ArkRectInterfaces" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../ArkAttributeModifierMaterialized" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureRecognizer } from "./../ArkGestureRecognizerMaterialized" +import { PatternLockAttribute, CircleStyleOptions, PatternLockInterface } from "./../ArkPatternLockInterfaces" +import { PatternLockController } from "./../ArkPatternLockControllerMaterialized" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkPatternLockPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkPatternLockPeer { + const _peer = new ArkPatternLockPeer(nodeType, flags, "PatternLock") + component?.setPeer(_peer) + return _peer + } + setPatternLockOptionsAttribute(controller?: PatternLockController): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let controller_type = RuntimeType.UNDEFINED + if (controller != undefined) { + controller_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(controller_type as int32) + if ((RuntimeType.UNDEFINED) != (controller_type)) { + const controller_value = controller! + thisSerializer.writeMaterialized(controller_value) + } + NativeModule._PatternLockInterface_setPatternLockOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + sideLengthAttribute(value: Length): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeLength(value); + NativeModule._PatternLockAttribute_sideLength(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + circleRadiusAttribute(value: Length): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeLength(value); + NativeModule._PatternLockAttribute_circleRadius(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + backgroundColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._PatternLockAttribute_backgroundColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + regularColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._PatternLockAttribute_regularColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + selectedColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._PatternLockAttribute_selectedColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + activeColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._PatternLockAttribute_activeColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + pathColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._PatternLockAttribute_pathColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + pathStrokeWidthAttribute(value: number | string): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as string + thisSerializer.writeString(value_1) + } + NativeModule._PatternLockAttribute_pathStrokeWidth(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + onPatternCompleteAttribute(callback: ((input: Array) => void)): void { + NativeModule._PatternLockAttribute_onPatternComplete(this.peer.ptr, registerCallback(callback)); + } + autoResetAttribute(value: boolean): void { + NativeModule._PatternLockAttribute_autoReset(this.peer.ptr, value ? 1 : 0); + } + onDotConnectAttribute(callback: IMPORT_Callback_number_FROM_api_ohos_base): void { + NativeModule._PatternLockAttribute_onDotConnect(this.peer.ptr, registerCallback(callback)); + } + activateCircleStyleAttribute(options: CircleStyleOptions | undefined): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeCircleStyleOptions(options_value) + } + NativeModule._PatternLockAttribute_activateCircleStyle(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkPatternLockAttributes extends ArkCommonMethodAttributes { + sideLength?: Length + circleRadius?: Length + backgroundColor?: ResourceColor + regularColor?: ResourceColor + selectedColor?: ResourceColor + activeColor?: ResourceColor + pathColor?: ResourceColor + pathStrokeWidth?: number | string + onPatternComplete?: ((input: Array) => void) + autoReset?: boolean + onDotConnect?: IMPORT_Callback_number_FROM_api_ohos_base + activateCircleStyle?: CircleStyleOptions | undefined +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkPluginComponentPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkPluginComponentPeer.ts new file mode 100644 index 000000000..d3adb3d49 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkPluginComponentPeer.ts @@ -0,0 +1,68 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { PluginComponentAttribute, PluginComponentTemplate, PluginComponentInterface } from "./../ArkPluginComponentInterfaces" +import { LITERAL_ErrcodeNumberMsgString, LITERAL_TemplatePluginComponentTemplateDataObject } from "./../SyntheticDeclarations" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkPluginComponentPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkPluginComponentPeer { + const _peer = new ArkPluginComponentPeer(nodeType, flags, "PluginComponent") + component?.setPeer(_peer) + return _peer + } + setPluginComponentOptionsAttribute(value: LITERAL_TemplatePluginComponentTemplateDataObject): void { + const thisSerializer = SerializerBase.hold(createSerializer) + const value_template_ = value.template_ + thisSerializer.writePluginComponentTemplate(value_template_) + const value_data = value.data + thisSerializer.writeCustomObject("Any", value_data) + NativeModule._PluginComponentInterface_setPluginComponentOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + onCompleteAttribute(callback: (() => void)): void { + NativeModule._PluginComponentAttribute_onComplete(this.peer.ptr, registerCallback(callback)); + } + onErrorAttribute(callback: ((info: LITERAL_ErrcodeNumberMsgString) => void)): void { + NativeModule._PluginComponentAttribute_onError(this.peer.ptr, registerCallback(callback)); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkPluginComponentAttributes extends ArkCommonMethodAttributes { + onComplete?: (() => void) + onError?: ((info: LITERAL_ErrcodeNumberMsgString) => void) +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkPolygonPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkPolygonPeer.ts new file mode 100644 index 000000000..8922f58d2 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkPolygonPeer.ts @@ -0,0 +1,118 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonShapeMethodPeer, ArkCommonShapeMethodAttributes } from "./ArkCommonPeer" +import { PolygonAttribute, PolygonInterface } from "./../ArkPolygonInterfaces" +import { LITERAL_WidthStringnumberHeightStringnumber } from "./../SyntheticDeclarations" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkPolygonPeer extends ArkCommonShapeMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkPolygonPeer { + const _peer = new ArkPolygonPeer(nodeType, flags, "Polygon") + component?.setPeer(_peer) + return _peer + } + setPolygonOptionsAttribute(value?: LITERAL_WidthStringnumberHeightStringnumber): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + if (value != undefined) { + value_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_type as int32) + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value! + const value_value_width = value_value.width + let value_value_width_type = RuntimeType.UNDEFINED + if (value_value_width != undefined) { + value_value_width_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_value_width_type as int32) + if ((RuntimeType.UNDEFINED) != (value_value_width_type)) { + const value_value_width_value = value_value_width! + let value_value_width_value_type = RuntimeType.UNDEFINED + value_value_width_value_type = runtimeType(value_value_width_value) + if (((RuntimeType.STRING == value_value_width_value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_value_width_value_0 = value_value_width_value as string + thisSerializer.writeString(value_value_width_value_0) + } + else if (((RuntimeType.NUMBER == value_value_width_value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_value_width_value_1 = value_value_width_value as number + thisSerializer.writeNumber(value_value_width_value_1) + } + } + const value_value_height = value_value.height + let value_value_height_type = RuntimeType.UNDEFINED + if (value_value_height != undefined) { + value_value_height_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_value_height_type as int32) + if ((RuntimeType.UNDEFINED) != (value_value_height_type)) { + const value_value_height_value = value_value_height! + let value_value_height_value_type = RuntimeType.UNDEFINED + value_value_height_value_type = runtimeType(value_value_height_value) + if (((RuntimeType.STRING == value_value_height_value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_value_height_value_0 = value_value_height_value as string + thisSerializer.writeString(value_value_height_value_0) + } + else if (((RuntimeType.NUMBER == value_value_height_value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_value_height_value_1 = value_value_height_value as number + thisSerializer.writeNumber(value_value_height_value_1) + } + } + } + NativeModule._PolygonInterface_setPolygonOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + pointsAttribute(value: Array): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeInt8(runtimeType(value) as int32) + thisSerializer.writeInt32(value.length as int32) + for (let i = 0; i < value.length; i++) { + const value_element = value[i] + thisSerializer.writeCustomObject("Any", value_element) + } + NativeModule._PolygonAttribute_points(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkPolygonAttributes extends ArkCommonShapeMethodAttributes { + points?: Array +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkPolylinePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkPolylinePeer.ts new file mode 100644 index 000000000..6fd770d9e --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkPolylinePeer.ts @@ -0,0 +1,118 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonShapeMethodPeer, ArkCommonShapeMethodAttributes } from "./ArkCommonPeer" +import { PolylineAttribute, PolylineInterface } from "./../ArkPolylineInterfaces" +import { LITERAL_WidthStringnumberHeightStringnumber } from "./../SyntheticDeclarations" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkPolylinePeer extends ArkCommonShapeMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkPolylinePeer { + const _peer = new ArkPolylinePeer(nodeType, flags, "Polyline") + component?.setPeer(_peer) + return _peer + } + setPolylineOptionsAttribute(value?: LITERAL_WidthStringnumberHeightStringnumber): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + if (value != undefined) { + value_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_type as int32) + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value! + const value_value_width = value_value.width + let value_value_width_type = RuntimeType.UNDEFINED + if (value_value_width != undefined) { + value_value_width_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_value_width_type as int32) + if ((RuntimeType.UNDEFINED) != (value_value_width_type)) { + const value_value_width_value = value_value_width! + let value_value_width_value_type = RuntimeType.UNDEFINED + value_value_width_value_type = runtimeType(value_value_width_value) + if (((RuntimeType.STRING == value_value_width_value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_value_width_value_0 = value_value_width_value as string + thisSerializer.writeString(value_value_width_value_0) + } + else if (((RuntimeType.NUMBER == value_value_width_value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_value_width_value_1 = value_value_width_value as number + thisSerializer.writeNumber(value_value_width_value_1) + } + } + const value_value_height = value_value.height + let value_value_height_type = RuntimeType.UNDEFINED + if (value_value_height != undefined) { + value_value_height_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_value_height_type as int32) + if ((RuntimeType.UNDEFINED) != (value_value_height_type)) { + const value_value_height_value = value_value_height! + let value_value_height_value_type = RuntimeType.UNDEFINED + value_value_height_value_type = runtimeType(value_value_height_value) + if (((RuntimeType.STRING == value_value_height_value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_value_height_value_0 = value_value_height_value as string + thisSerializer.writeString(value_value_height_value_0) + } + else if (((RuntimeType.NUMBER == value_value_height_value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_value_height_value_1 = value_value_height_value as number + thisSerializer.writeNumber(value_value_height_value_1) + } + } + } + NativeModule._PolylineInterface_setPolylineOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + pointsAttribute(value: Array): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeInt8(runtimeType(value) as int32) + thisSerializer.writeInt32(value.length as int32) + for (let i = 0; i < value.length; i++) { + const value_element = value[i] + thisSerializer.writeCustomObject("Any", value_element) + } + NativeModule._PolylineAttribute_points(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkPolylineAttributes extends ArkCommonShapeMethodAttributes { + points?: Array +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkQrcodePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkQrcodePeer.ts new file mode 100644 index 000000000..d58495302 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkQrcodePeer.ts @@ -0,0 +1,144 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { Length, Resource, SizeOptions, ConstraintSizeOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, ResourceStr, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, PX, VP, FP, LPX, Percentage, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition } from "./../ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, LITERAL_TopLengthRightLengthBottomLengthLeftLength, LITERAL_AlignAlignment, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image, IMPORT_default_VisualEffect_FROM_api_ohos_graphics_uiEffect, IMPORT_default_Filter_FROM_api_ohos_graphics_uiEffect, LITERAL_TopBorderStyleRightBorderStyleBottomBorderStyleLeftBorderStyle, LITERAL_TopResourceColorRightResourceColorBottomResourceColorLeftResourceColor, LITERAL_TopLeftLengthTopRightLengthBottomLeftLengthBottomRightLength, LITERAL_TopOutlineStyleRightOutlineStyleBottomOutlineStyleLeftOutlineStyle, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, LITERAL_TopDimensionRightDimensionBottomDimensionLeftDimension, LITERAL_TopLeftDimensionTopRightDimensionBottomLeftDimensionBottomRightDimension, LITERAL_SpanNumberOffsetNumber, LITERAL_XsNumberLITERALSpanNumberOffsetNumberSmNumberLITERALSpanNumberOffsetNumberMdNumberLITERALSpanNumberOffsetNumberLgNumberLITERALSpanNumberOffsetNumber, IMPORT_default_UniformDataType_FROM_api_ohos_data_uniformTypeDescriptor, IMPORT_ComponentContent_T_FROM_api_arkui_ComponentContent, LITERAL_AngleNumberstringDirectionGradientDirectionColorsArrayResourceColornumberRepeatingBoolean, LITERAL_CenterLengthLengthStartNumberstringEndNumberstringRotationNumberstringColorsArrayResourceColornumberRepeatingBoolean, LITERAL_CenterLengthLengthRadiusNumberstringColorsArrayResourceColornumberRepeatingBoolean, IMPORT_default_Blender_FROM_api_ohos_graphics_uiEffect, IMPORT_CircleShape_FROM_api_ohos_arkui_shape, IMPORT_EllipseShape_FROM_api_ohos_arkui_shape, IMPORT_PathShape_FROM_api_ohos_arkui_shape, IMPORT_RectShape_FROM_api_ohos_arkui_shape } from "./../SyntheticDeclarations" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { Optional, SafeAreaType, SafeAreaEdge, Rectangle, TouchTestInfo, TouchResult, CustomBuilder, PixelRoundPolicy, PixelMap, BlurStyle, BackgroundBlurStyleOptions, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, ForegroundBlurStyleOptions, BorderImageOption, OutlineStyle, ClickEvent, Callback, HoverEvent, AccessibilityCallback, AccessibilityHoverEvent, MouseEvent, TouchEvent, KeyEvent, AnimateParam, TransitionOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, sharedTransitionOptions, AlignRuleOption, LocalizedAlignRuleOptions, ChainStyle, ClickEffect, DragEvent, DragItemInfo, UniformDataType, DragPreviewOptions, DragInteractionOptions, PreDragStatus, ComponentContent, OverlayOptions, MotionPathOptions, ShadowOptions, ShadowStyle, BlendMode, BlendApplyType, Blender, CircleShape, EllipseShape, PathShape, RectShape, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, StateStyles, VisibleAreaChangeCallback, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback } from "./../ArkCommonInterfaces" +import { HitTestMode, Alignment, Color, ImageRepeat, ImageSize, BorderStyle, ColoringStrategy, HoverEffect, Visibility, ItemAlign, Direction, Axis, GradientDirection, ResponseType, FunctionKey, ModifierKey, ObscuredReasons, RenderFit } from "./../ArkEnumsInterfaces" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ConflictedDeclarations" +import { GestureType, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureMask, GestureInfo, BaseGestureEvent, GestureJudgeResult } from "./../ArkGestureInterfaces" +import { CircleAttribute } from "./../ArkCircleInterfaces" +import { EllipseAttribute } from "./../ArkEllipseInterfaces" +import { PathAttribute } from "./../ArkPathInterfaces" +import { RectAttribute } from "./../ArkRectInterfaces" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../ArkAttributeModifierMaterialized" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureRecognizer } from "./../ArkGestureRecognizerMaterialized" +import { QRCodeAttribute, QRCodeInterface } from "./../ArkQrcodeInterfaces" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkQRCodePeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkQRCodePeer { + const _peer = new ArkQRCodePeer(nodeType, flags, "QRCode") + component?.setPeer(_peer) + return _peer + } + setQRCodeOptionsAttribute(value: string): void { + NativeModule._QRCodeInterface_setQRCodeOptions(this.peer.ptr, value); + } + colorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._QRCodeAttribute_color(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + backgroundColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._QRCodeAttribute_backgroundColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + contentOpacityAttribute(value: number | Resource): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as Resource + thisSerializer.writeResource(value_1) + } + NativeModule._QRCodeAttribute_contentOpacity(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkQRCodeAttributes extends ArkCommonMethodAttributes { + color?: ResourceColor + backgroundColor?: ResourceColor + contentOpacity?: number | Resource +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRadioPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRadioPeer.ts new file mode 100644 index 000000000..16b548269 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRadioPeer.ts @@ -0,0 +1,91 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { RadioAttribute, RadioStyle, RadioConfiguration, RadioOptions, RadioInterface, RadioIndicatorType } from "./../ArkRadioInterfaces" +import { ContentModifier } from "./../ConflictedDeclarations" +import { ResourceColor, Resource } from "./../ArkUnitsInterfaces" +import { Color } from "./../ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource } from "./../SyntheticDeclarations" +import { CommonConfiguration, Callback, CustomBuilder } from "./../ArkCommonInterfaces" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkRadioPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkRadioPeer { + const _peer = new ArkRadioPeer(nodeType, flags, "Radio") + component?.setPeer(_peer) + return _peer + } + setRadioOptionsAttribute(options: RadioOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeRadioOptions(options) + NativeModule._RadioInterface_setRadioOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + checkedAttribute(value: boolean): void { + NativeModule._RadioAttribute_checked(this.peer.ptr, value ? 1 : 0); + } + onChangeAttribute(callback: ((isChecked: boolean) => void)): void { + NativeModule._RadioAttribute_onChange(this.peer.ptr, registerCallback(callback)); + } + radioStyleAttribute(value?: RadioStyle): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + if (value != undefined) { + value_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_type as int32) + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value! + thisSerializer.writeRadioStyle(value_value) + } + NativeModule._RadioAttribute_radioStyle(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + contentModifierAttribute(modifier: ContentModifier): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeCustomObject("ContentModifier", modifier) + NativeModule._RadioAttribute_contentModifier(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkRadioAttributes extends ArkCommonMethodAttributes { + checked?: boolean + onChange?: ((isChecked: boolean) => void) + radioStyle?: RadioStyle + contentModifier?: ContentModifier +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRatingPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRatingPeer.ts new file mode 100644 index 000000000..e8e73beb1 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRatingPeer.ts @@ -0,0 +1,92 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { RatingAttribute, StarStyleOptions, RatingConfiguration, RatingOptions, RatingInterface } from "./../ArkRatingInterfaces" +import { ContentModifier } from "./../ConflictedDeclarations" +import { CommonConfiguration, Callback } from "./../ArkCommonInterfaces" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkRatingPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkRatingPeer { + const _peer = new ArkRatingPeer(nodeType, flags, "Rating") + component?.setPeer(_peer) + return _peer + } + setRatingOptionsAttribute(options?: RatingOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeRatingOptions(options_value) + } + NativeModule._RatingInterface_setRatingOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + starsAttribute(value: number): void { + NativeModule._RatingAttribute_stars(this.peer.ptr, value); + } + stepSizeAttribute(value: number): void { + NativeModule._RatingAttribute_stepSize(this.peer.ptr, value); + } + starStyleAttribute(options: StarStyleOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeStarStyleOptions(options) + NativeModule._RatingAttribute_starStyle(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + onChangeAttribute(callback: ((value: number) => void)): void { + NativeModule._RatingAttribute_onChange(this.peer.ptr, registerCallback(callback)); + } + contentModifierAttribute(modifier: ContentModifier): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeCustomObject("ContentModifier", modifier) + NativeModule._RatingAttribute_contentModifier(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkRatingAttributes extends ArkCommonMethodAttributes { + stars?: number + stepSize?: number + starStyle?: StarStyleOptions + onChange?: ((value: number) => void) + contentModifier?: ContentModifier +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRefreshPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRefreshPeer.ts new file mode 100644 index 000000000..9c769eac7 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRefreshPeer.ts @@ -0,0 +1,94 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { RefreshStatus, RefreshAttribute, RefreshOptions, RefreshInterface } from "./../ArkRefreshInterfaces" +import { Callback, Optional, CustomBuilder, ComponentContent } from "./../ArkCommonInterfaces" +import { ResourceStr, Resource } from "./../ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, IMPORT_ComponentContent_T_FROM_api_arkui_ComponentContent } from "./../SyntheticDeclarations" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkRefreshPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkRefreshPeer { + const _peer = new ArkRefreshPeer(nodeType, flags, "Refresh") + component?.setPeer(_peer) + return _peer + } + setRefreshOptionsAttribute(value: RefreshOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeRefreshOptions(value) + NativeModule._RefreshInterface_setRefreshOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + onStateChangeAttribute(callback: ((state: RefreshStatus) => void)): void { + NativeModule._RefreshAttribute_onStateChange(this.peer.ptr, registerCallback(callback)); + } + onRefreshingAttribute(callback: (() => void)): void { + NativeModule._RefreshAttribute_onRefreshing(this.peer.ptr, registerCallback(callback)); + } + refreshOffsetAttribute(value: number): void { + NativeModule._RefreshAttribute_refreshOffset(this.peer.ptr, value); + } + pullToRefreshAttribute(value: boolean): void { + NativeModule._RefreshAttribute_pullToRefresh(this.peer.ptr, value ? 1 : 0); + } + onOffsetChangeAttribute(callback: Callback): void { + NativeModule._RefreshAttribute_onOffsetChange(this.peer.ptr, registerCallback(callback)); + } + pullDownRatioAttribute(ratio: number | undefined): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let ratio_type = RuntimeType.UNDEFINED + if (ratio != undefined) { + ratio_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(ratio_type as int32) + if ((RuntimeType.UNDEFINED) != (ratio_type)) { + const ratio_value = ratio! + thisSerializer.writeNumber(ratio_value) + } + NativeModule._RefreshAttribute_pullDownRatio(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkRefreshAttributes extends ArkCommonMethodAttributes { + onStateChange?: ((state: RefreshStatus) => void) + onRefreshing?: (() => void) + refreshOffset?: number + pullToRefresh?: boolean + onOffsetChange?: Callback + pullDownRatio?: number | undefined +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRelativeContainerPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRelativeContainerPeer.ts new file mode 100644 index 000000000..44ea07732 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRelativeContainerPeer.ts @@ -0,0 +1,91 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { GuideLineStyle, RelativeContainerAttribute, BarrierStyle, LocalizedBarrierStyle, RelativeContainerInterface, GuideLinePosition, BarrierDirection, LocalizedBarrierDirection } from "./../ArkRelativeContainerInterfaces" +import { Axis } from "./../ArkEnumsInterfaces" +import { Dimension, PX, VP, FP, LPX, Percentage, Resource } from "./../ArkUnitsInterfaces" +import { TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, IMPORT_Resource_FROM_api_global_resource } from "./../SyntheticDeclarations" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkRelativeContainerPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkRelativeContainerPeer { + const _peer = new ArkRelativeContainerPeer(nodeType, flags, "RelativeContainer") + component?.setPeer(_peer) + return _peer + } + setRelativeContainerOptionsAttribute(): void { + NativeModule._RelativeContainerInterface_setRelativeContainerOptions(this.peer.ptr); + } + guideLineAttribute(value: Array): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeInt8(runtimeType(value) as int32) + thisSerializer.writeInt32(value.length as int32) + for (let i = 0; i < value.length; i++) { + const value_element = value[i] + thisSerializer.writeGuideLineStyle(value_element) + } + NativeModule._RelativeContainerAttribute_guideLine(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + barrier0Attribute(value: Array): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeInt8(runtimeType(value) as int32) + thisSerializer.writeInt32(value.length as int32) + for (let i = 0; i < value.length; i++) { + const value_element = value[i] + thisSerializer.writeBarrierStyle(value_element) + } + NativeModule._RelativeContainerAttribute_barrier0(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + barrier1Attribute(barrierStyle: Array): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeInt8(runtimeType(barrierStyle) as int32) + thisSerializer.writeInt32(barrierStyle.length as int32) + for (let i = 0; i < barrierStyle.length; i++) { + const barrierStyle_element = barrierStyle[i] + thisSerializer.writeLocalizedBarrierStyle(barrierStyle_element) + } + NativeModule._RelativeContainerAttribute_barrier1(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkRelativeContainerAttributes extends ArkCommonMethodAttributes { + guideLine?: Array + barrier?: Array +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRemoteWindowPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRemoteWindowPeer.ts new file mode 100644 index 000000000..3dd185954 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRemoteWindowPeer.ts @@ -0,0 +1,56 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { RemoteWindowAttribute, WindowAnimationTarget, RemoteWindowInterface, RRect } from "./../ArkRemoteWindowInterfaces" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkRemoteWindowPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkRemoteWindowPeer { + const _peer = new ArkRemoteWindowPeer(nodeType, flags, "RemoteWindow") + component?.setPeer(_peer) + return _peer + } + setRemoteWindowOptionsAttribute(target: WindowAnimationTarget): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeWindowAnimationTarget(target) + NativeModule._RemoteWindowInterface_setRemoteWindowOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkRemoteWindowAttributes extends ArkCommonMethodAttributes { +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRichEditorPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRichEditorPeer.ts new file mode 100644 index 000000000..98a52b5ba --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRichEditorPeer.ts @@ -0,0 +1,318 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { Callback, CustomBuilder, ShadowOptions, PixelMap, ClickEvent } from "./../ArkCommonInterfaces" +import { RichEditorAttribute, RichEditorSelection, RichEditorRange, RichEditorInsertValue, RichEditorTextSpanResult, RichEditorDeleteValue, RichEditorSpanType, RichEditorResponseType, SelectionMenuOptions, KeyboardOptions, PasteEventCallback, PasteEvent, PlaceholderStyle, SubmitCallback, RichEditorChangeValue, CutEvent, CopyEvent, RichEditorOptions, RichEditorStyledStringOptions, RichEditorInterface, RichEditorImageSpanResult, RichEditorSpanPosition, RichEditorTextStyleResult, RichEditorSymbolSpanStyle, RichEditorParagraphStyle, LeadingMarginPlaceholder, RichEditorImageSpanStyleResult, RichEditorLayoutStyle, RichEditorDeleteDirection, MenuOnAppearCallback, RichEditorTextStyle, RichEditorGesture, RichEditorTextSpanOptions, RichEditorImageSpanStyle, RichEditorImageSpanOptions, RichEditorBuilderSpanOptions, RichEditorSymbolSpanOptions, RichEditorSpanStyleOptions, RichEditorUpdateTextSpanStyleOptions, RichEditorUpdateImageSpanStyleOptions, RichEditorUpdateSymbolSpanStyleOptions, RichEditorParagraphStyleOptions, RichEditorParagraphResult, RichEditorSpan } from "./../ArkRichEditorInterfaces" +import { TextRange, TextDataDetectorConfig, OnDidChangeCallback, DecorationStyleResult, MenuType } from "./../ArkTextCommonInterfaces" +import { CopyOptions, ResponseType, Color, BarState, FontStyle, FontWeight, TextAlign, WordBreak, LineBreakStrategy, ImageSpanAlignment, ImageFit } from "./../ArkEnumsInterfaces" +import { ResourceStr, Resource, ResourceColor, Dimension, PX, VP, FP, LPX, Percentage, Margin, Padding, Length, BorderRadiuses, Font } from "./../ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image, LITERAL_TopLengthRightLengthBottomLengthLeftLength, LITERAL_TopLeftLengthTopRightLengthBottomLeftLengthBottomRightLength } from "./../SyntheticDeclarations" +import { EnterKeyType, SubmitEvent } from "./../ArkTextInputInterfaces" +import { EditMenuOptions } from "./../ArkEditMenuOptionsMaterialized" +import { SymbolEffectStrategy, SymbolRenderingStrategy } from "./../ArkSymbolglyphInterfaces" +import { RichEditorController } from "./../ArkRichEditorControllerMaterialized" +import { DecorationStyleInterface } from "./../ArkStyledStringInterfaces" +import { GestureEvent } from "./../ArkGestureInterfaces" +import { RichEditorStyledStringController } from "./../ArkRichEditorStyledStringControllerMaterialized" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkRichEditorPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkRichEditorPeer { + const _peer = new ArkRichEditorPeer(nodeType, flags, "RichEditor") + component?.setPeer(_peer) + return _peer + } + setRichEditorOptions0Attribute(value: RichEditorOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeRichEditorOptions(value) + NativeModule._RichEditorInterface_setRichEditorOptions0(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + setRichEditorOptions1Attribute(options: RichEditorStyledStringOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeRichEditorStyledStringOptions(options) + NativeModule._RichEditorInterface_setRichEditorOptions1(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + onReadyAttribute(callback: Callback): void { + NativeModule._RichEditorAttribute_onReady(this.peer.ptr, registerCallback(callback)); + } + onSelectAttribute(callback: Callback): void { + NativeModule._RichEditorAttribute_onSelect(this.peer.ptr, registerCallback(callback)); + } + onSelectionChangeAttribute(callback: Callback): void { + NativeModule._RichEditorAttribute_onSelectionChange(this.peer.ptr, registerCallback(callback)); + } + aboutToIMEInputAttribute(callback: Callback): void { + NativeModule._RichEditorAttribute_aboutToIMEInput(this.peer.ptr, registerCallback(callback)); + } + onIMEInputCompleteAttribute(callback: Callback): void { + NativeModule._RichEditorAttribute_onIMEInputComplete(this.peer.ptr, registerCallback(callback)); + } + onDidIMEInputAttribute(callback: Callback): void { + NativeModule._RichEditorAttribute_onDidIMEInput(this.peer.ptr, registerCallback(callback)); + } + aboutToDeleteAttribute(callback: Callback): void { + NativeModule._RichEditorAttribute_aboutToDelete(this.peer.ptr, registerCallback(callback)); + } + onDeleteCompleteAttribute(callback: Callback): void { + NativeModule._RichEditorAttribute_onDeleteComplete(this.peer.ptr, registerCallback(callback)); + } + copyOptionsAttribute(value: CopyOptions): void { + NativeModule._RichEditorAttribute_copyOptions(this.peer.ptr, (value.value as int32)); + } + bindSelectionMenuAttribute(spanType: RichEditorSpanType, content: CustomBuilder, responseType: ResponseType | RichEditorResponseType, options?: SelectionMenuOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let content_type = RuntimeType.UNDEFINED + content_type = runtimeType(content) + if (((RuntimeType.FUNCTION == content_type))) { + thisSerializer.writeInt8(0 as int32) + const content_0 = content as Object + thisSerializer.writeFunction(content_0) + } + else if (((RuntimeType.UNDEFINED == content_type))) { + thisSerializer.writeInt8(1 as int32) + } + let responseType_type = RuntimeType.UNDEFINED + responseType_type = runtimeType(responseType) + if (((RuntimeType.OBJECT) == (responseType_type)) && (responseType instanceof ResponseType)) { + thisSerializer.writeInt8(0 as int32) + const responseType_0 = responseType as ResponseType + thisSerializer.writeInt32((responseType_0.value as int32)) + } + else if (((RuntimeType.OBJECT) == (responseType_type)) && (responseType instanceof RichEditorResponseType)) { + thisSerializer.writeInt8(1 as int32) + const responseType_1 = responseType as RichEditorResponseType + thisSerializer.writeInt32((responseType_1.value as int32)) + } + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeSelectionMenuOptions(options_value) + } + NativeModule._RichEditorAttribute_bindSelectionMenu(this.peer.ptr, (spanType.value as int32), thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + customKeyboardAttribute(value: CustomBuilder, options?: KeyboardOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.FUNCTION == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Object + thisSerializer.writeFunction(value_0) + } + else if (((RuntimeType.UNDEFINED == value_type))) { + thisSerializer.writeInt8(1 as int32) + } + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeKeyboardOptions(options_value) + } + NativeModule._RichEditorAttribute_customKeyboard(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + onPasteAttribute(callback: PasteEventCallback): void { + NativeModule._RichEditorAttribute_onPaste(this.peer.ptr, registerCallback(callback)); + } + enableDataDetectorAttribute(enable: boolean): void { + NativeModule._RichEditorAttribute_enableDataDetector(this.peer.ptr, enable ? 1 : 0); + } + enablePreviewTextAttribute(enable: boolean): void { + NativeModule._RichEditorAttribute_enablePreviewText(this.peer.ptr, enable ? 1 : 0); + } + dataDetectorConfigAttribute(config: TextDataDetectorConfig): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeTextDataDetectorConfig(config) + NativeModule._RichEditorAttribute_dataDetectorConfig(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + placeholderAttribute(value: ResourceStr, style?: PlaceholderStyle): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as string + thisSerializer.writeString(value_0) + } + else if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as Resource + thisSerializer.writeResource(value_1) + } + let style_type = RuntimeType.UNDEFINED + if (style != undefined) { + style_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(style_type as int32) + if ((RuntimeType.UNDEFINED) != (style_type)) { + const style_value = style! + thisSerializer.writePlaceholderStyle(style_value) + } + NativeModule._RichEditorAttribute_placeholder(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + caretColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._RichEditorAttribute_caretColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + selectedBackgroundColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._RichEditorAttribute_selectedBackgroundColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + onEditingChangeAttribute(callback: Callback): void { + NativeModule._RichEditorAttribute_onEditingChange(this.peer.ptr, registerCallback(callback)); + } + enterKeyTypeAttribute(value: EnterKeyType): void { + NativeModule._RichEditorAttribute_enterKeyType(this.peer.ptr, (value.value as int32)); + } + onSubmitAttribute(callback: SubmitCallback): void { + NativeModule._RichEditorAttribute_onSubmit(this.peer.ptr, registerCallback(callback)); + } + onWillChangeAttribute(callback: Callback): void { + NativeModule._RichEditorAttribute_onWillChange(this.peer.ptr, registerCallback(callback)); + } + onDidChangeAttribute(callback: OnDidChangeCallback): void { + NativeModule._RichEditorAttribute_onDidChange(this.peer.ptr, registerCallback(callback)); + } + onCutAttribute(callback: Callback): void { + NativeModule._RichEditorAttribute_onCut(this.peer.ptr, registerCallback(callback)); + } + onCopyAttribute(callback: Callback): void { + NativeModule._RichEditorAttribute_onCopy(this.peer.ptr, registerCallback(callback)); + } + editMenuOptionsAttribute(editMenu: EditMenuOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeMaterialized(editMenu) + NativeModule._RichEditorAttribute_editMenuOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + enableKeyboardOnFocusAttribute(isEnabled: boolean): void { + NativeModule._RichEditorAttribute_enableKeyboardOnFocus(this.peer.ptr, isEnabled ? 1 : 0); + } + enableHapticFeedbackAttribute(isEnabled: boolean): void { + NativeModule._RichEditorAttribute_enableHapticFeedback(this.peer.ptr, isEnabled ? 1 : 0); + } + barStateAttribute(state: BarState): void { + NativeModule._RichEditorAttribute_barState(this.peer.ptr, (state.value as int32)); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkRichEditorAttributes extends ArkCommonMethodAttributes { + onReady?: Callback + onSelect?: Callback + onSelectionChange?: Callback + aboutToIMEInput?: Callback + onIMEInputComplete?: Callback + onDidIMEInput?: Callback + aboutToDelete?: Callback + onDeleteComplete?: Callback + copyOptions?: CopyOptions + onPaste?: PasteEventCallback + enableDataDetector?: boolean + enablePreviewText?: boolean + dataDetectorConfig?: TextDataDetectorConfig + caretColor?: ResourceColor + selectedBackgroundColor?: ResourceColor + onEditingChange?: Callback + enterKeyType?: EnterKeyType + onSubmit?: SubmitCallback + onWillChange?: Callback + onDidChange?: OnDidChangeCallback + onCut?: Callback + onCopy?: Callback + editMenuOptions?: EditMenuOptions + enableKeyboardOnFocus?: boolean + enableHapticFeedback?: boolean + barState?: BarState +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRichTextPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRichTextPeer.ts new file mode 100644 index 000000000..1f1dbd5d9 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRichTextPeer.ts @@ -0,0 +1,61 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { RichTextAttribute, RichTextInterface } from "./../ArkRichTextInterfaces" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkRichTextPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkRichTextPeer { + const _peer = new ArkRichTextPeer(nodeType, flags, "RichText") + component?.setPeer(_peer) + return _peer + } + setRichTextOptionsAttribute(content: string): void { + NativeModule._RichTextInterface_setRichTextOptions(this.peer.ptr, content); + } + onStartAttribute(callback: (() => void)): void { + NativeModule._RichTextAttribute_onStart(this.peer.ptr, registerCallback(callback)); + } + onCompleteAttribute(callback: (() => void)): void { + NativeModule._RichTextAttribute_onComplete(this.peer.ptr, registerCallback(callback)); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkRichTextAttributes extends ArkCommonMethodAttributes { + onStart?: (() => void) + onComplete?: (() => void) +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRootScenePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRootScenePeer.ts new file mode 100644 index 000000000..c12dd4248 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRootScenePeer.ts @@ -0,0 +1,56 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { RootSceneAttribute, RootSceneSession, RootSceneInterface } from "./../ArkRootSceneInterfaces" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkRootScenePeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkRootScenePeer { + const _peer = new ArkRootScenePeer(nodeType, flags, "RootScene") + component?.setPeer(_peer) + return _peer + } + setRootSceneOptionsAttribute(session: RootSceneSession): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeRootSceneSession(session) + NativeModule._RootSceneInterface_setRootSceneOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkRootSceneAttributes extends ArkCommonMethodAttributes { +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRowPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRowPeer.ts new file mode 100644 index 000000000..4bf305641 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRowPeer.ts @@ -0,0 +1,96 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { VerticalAlign, FlexAlign } from "./../ArkEnumsInterfaces" +import { RowAttribute, RowOptions, RowInterface } from "./../ArkRowInterfaces" +import { PointLightStyle, Optional } from "./../ArkCommonInterfaces" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkRowPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkRowPeer { + const _peer = new ArkRowPeer(nodeType, flags, "Row") + component?.setPeer(_peer) + return _peer + } + setRowOptionsAttribute(options?: RowOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeRowOptions(options_value) + } + NativeModule._RowInterface_setRowOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + alignItemsAttribute(value: VerticalAlign): void { + NativeModule._RowAttribute_alignItems(this.peer.ptr, (value.value as int32)); + } + justifyContentAttribute(value: FlexAlign): void { + NativeModule._RowAttribute_justifyContent(this.peer.ptr, (value.value as int32)); + } + pointLightAttribute(value: PointLightStyle): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writePointLightStyle(value) + NativeModule._RowAttribute_pointLight(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + reverseAttribute(isReversed: boolean | undefined): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let isReversed_type = RuntimeType.UNDEFINED + if (isReversed != undefined) { + isReversed_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(isReversed_type as int32) + if ((RuntimeType.UNDEFINED) != (isReversed_type)) { + const isReversed_value = isReversed! + thisSerializer.writeBoolean(isReversed_value) + } + NativeModule._RowAttribute_reverse(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkRowAttributes extends ArkCommonMethodAttributes { + alignItems?: VerticalAlign + justifyContent?: FlexAlign + pointLight?: PointLightStyle + reverse?: boolean | undefined +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRowSplitPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRowSplitPeer.ts new file mode 100644 index 000000000..e7da28112 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRowSplitPeer.ts @@ -0,0 +1,57 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { RowSplitAttribute, RowSplitInterface } from "./../ArkRowSplitInterfaces" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkRowSplitPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkRowSplitPeer { + const _peer = new ArkRowSplitPeer(nodeType, flags, "RowSplit") + component?.setPeer(_peer) + return _peer + } + setRowSplitOptionsAttribute(): void { + NativeModule._RowSplitInterface_setRowSplitOptions(this.peer.ptr); + } + resizeableAttribute(value: boolean): void { + NativeModule._RowSplitAttribute_resizeable(this.peer.ptr, value ? 1 : 0); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkRowSplitAttributes extends ArkCommonMethodAttributes { + resizeable?: boolean +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkSaveButtonPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkSaveButtonPeer.ts new file mode 100644 index 000000000..54f013497 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkSaveButtonPeer.ts @@ -0,0 +1,65 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkSecurityComponentMethodPeer, ArkSecurityComponentMethodAttributes } from "./ArkSecurityComponentPeer" +import { ClickEvent } from "./../ArkCommonInterfaces" +import { SaveButtonOnClickResult, SaveButtonAttribute, SaveButtonOptions, SaveButtonInterface, SaveIconStyle, SaveDescription } from "./../ArkSaveButtonInterfaces" +import { ButtonType } from "./../ArkButtonInterfaces" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkSaveButtonPeer extends ArkSecurityComponentMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkSaveButtonPeer { + const _peer = new ArkSaveButtonPeer(nodeType, flags, "SaveButton") + component?.setPeer(_peer) + return _peer + } + setSaveButtonOptions0Attribute(): void { + NativeModule._SaveButtonInterface_setSaveButtonOptions0(this.peer.ptr); + } + setSaveButtonOptions1Attribute(options: SaveButtonOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeSaveButtonOptions(options) + NativeModule._SaveButtonInterface_setSaveButtonOptions1(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + onClickAttribute(event: ((event: ClickEvent, result: SaveButtonOnClickResult) => void)): void { + NativeModule._SaveButtonAttribute_onClick(this.peer.ptr, registerCallback(event)); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkSaveButtonAttributes extends ArkSecurityComponentMethodAttributes { + onClick?: ((event: ClickEvent, result: SaveButtonOnClickResult) => void) +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkScreenPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkScreenPeer.ts new file mode 100644 index 000000000..2cf042a1d --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkScreenPeer.ts @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { ScreenAttribute, ScreenInterface } from "./../ArkScreenInterfaces" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkScreenPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkScreenPeer { + const _peer = new ArkScreenPeer(nodeType, flags, "Screen") + component?.setPeer(_peer) + return _peer + } + setScreenOptionsAttribute(screenId: number): void { + NativeModule._ScreenInterface_setScreenOptions(this.peer.ptr, screenId); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkScreenAttributes extends ArkCommonMethodAttributes { +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkScrollBarPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkScrollBarPeer.ts new file mode 100644 index 000000000..c4261b2f2 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkScrollBarPeer.ts @@ -0,0 +1,74 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { Optional } from "./../ArkCommonInterfaces" +import { ScrollBarAttribute, ScrollBarOptions, ScrollBarInterface, ScrollBarDirection } from "./../ArkScrollBarInterfaces" +import { Scroller } from "./../ArkScrollerMaterialized" +import { BarState } from "./../ArkEnumsInterfaces" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkScrollBarPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkScrollBarPeer { + const _peer = new ArkScrollBarPeer(nodeType, flags, "ScrollBar") + component?.setPeer(_peer) + return _peer + } + setScrollBarOptionsAttribute(value: ScrollBarOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeScrollBarOptions(value) + NativeModule._ScrollBarInterface_setScrollBarOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + enableNestedScrollAttribute(enabled: boolean | undefined): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let enabled_type = RuntimeType.UNDEFINED + if (enabled != undefined) { + enabled_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(enabled_type as int32) + if ((RuntimeType.UNDEFINED) != (enabled_type)) { + const enabled_value = enabled! + thisSerializer.writeBoolean(enabled_value) + } + NativeModule._ScrollBarAttribute_enableNestedScroll(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkScrollBarAttributes extends ArkCommonMethodAttributes { + enableNestedScroll?: boolean | undefined +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkSearchPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkSearchPeer.ts new file mode 100644 index 000000000..8da186d31 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkSearchPeer.ts @@ -0,0 +1,545 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { SearchButtonOptions, SearchAttribute, IconOptions, CancelButtonOptions, CancelButtonSymbolOptions, SearchType, SearchInterface, CancelButtonStyle } from "./../ArkSearchInterfaces" +import { ResourceColor, Resource, Dimension, PX, VP, FP, LPX, Percentage, ResourceStr, Font, Length } from "./../ArkUnitsInterfaces" +import { Color, CopyOptions, TextAlign } from "./../ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, IMPORT_SymbolGlyphModifier_FROM_api_arkui_SymbolGlyphModifier, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, LITERAL_ValueStringPlaceholderResourceStrIconStringControllerSearchController } from "./../SyntheticDeclarations" +import { SymbolGlyphModifier, Callback, CustomBuilder, TextDecorationOptions } from "./../ArkCommonInterfaces" +import { CaretStyle, EditableTextOnChangeCallback, PreviewText, InsertValue, DeleteValue } from "./../ArkTextCommonInterfaces" +import { EnterKeyType } from "./../ArkTextInputInterfaces" +import { PasteEvent, KeyboardOptions } from "./../ArkRichEditorInterfaces" +import { EditMenuOptions } from "./../ArkEditMenuOptionsMaterialized" +import { SearchController } from "./../ArkSearchControllerMaterialized" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkSearchPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkSearchPeer { + const _peer = new ArkSearchPeer(nodeType, flags, "Search") + component?.setPeer(_peer) + return _peer + } + setSearchOptionsAttribute(options?: LITERAL_ValueStringPlaceholderResourceStrIconStringControllerSearchController): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + const options_value_value = options_value.value + let options_value_value_type = RuntimeType.UNDEFINED + if (options_value_value != undefined) { + options_value_value_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_value_value_type as int32) + if ((RuntimeType.UNDEFINED) != (options_value_value_type)) { + const options_value_value_value = options_value_value! + thisSerializer.writeString(options_value_value_value) + } + const options_value_placeholder = options_value.placeholder + let options_value_placeholder_type = RuntimeType.UNDEFINED + if (options_value_placeholder != undefined) { + options_value_placeholder_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_value_placeholder_type as int32) + if ((RuntimeType.UNDEFINED) != (options_value_placeholder_type)) { + const options_value_placeholder_value = options_value_placeholder! + let options_value_placeholder_value_type = RuntimeType.UNDEFINED + options_value_placeholder_value_type = runtimeType(options_value_placeholder_value) + if (((RuntimeType.STRING == options_value_placeholder_value_type))) { + thisSerializer.writeInt8(0 as int32) + const options_value_placeholder_value_0 = options_value_placeholder_value as string + thisSerializer.writeString(options_value_placeholder_value_0) + } + else if (((RuntimeType.OBJECT == options_value_placeholder_value_type))) { + thisSerializer.writeInt8(1 as int32) + const options_value_placeholder_value_1 = options_value_placeholder_value as Resource + thisSerializer.writeResource(options_value_placeholder_value_1) + } + } + const options_value_icon = options_value.icon + let options_value_icon_type = RuntimeType.UNDEFINED + if (options_value_icon != undefined) { + options_value_icon_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_value_icon_type as int32) + if ((RuntimeType.UNDEFINED) != (options_value_icon_type)) { + const options_value_icon_value = options_value_icon! + thisSerializer.writeString(options_value_icon_value) + } + const options_value_controller = options_value.controller + let options_value_controller_type = RuntimeType.UNDEFINED + if (options_value_controller != undefined) { + options_value_controller_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_value_controller_type as int32) + if ((RuntimeType.UNDEFINED) != (options_value_controller_type)) { + const options_value_controller_value = options_value_controller! + thisSerializer.writeMaterialized(options_value_controller_value) + } + } + NativeModule._SearchInterface_setSearchOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + searchButtonAttribute(value: string, option?: SearchButtonOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let option_type = RuntimeType.UNDEFINED + if (option != undefined) { + option_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(option_type as int32) + if ((RuntimeType.UNDEFINED) != (option_type)) { + const option_value = option! + thisSerializer.writeSearchButtonOptions(option_value) + } + NativeModule._SearchAttribute_searchButton(this.peer.ptr, value, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + fontColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._SearchAttribute_fontColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + searchIconAttribute(value: IconOptions | SymbolGlyphModifier): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (TypeChecker.isIconOptions(value, false, false, false)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as IconOptions + thisSerializer.writeIconOptions(value_0) + } + else if (((RuntimeType.OBJECT) == (value_type)) && (isInstanceOf("SymbolGlyphModifier", value))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as SymbolGlyphModifier + thisSerializer.writeCustomObject("SymbolGlyphModifier", value_1) + } + NativeModule._SearchAttribute_searchIcon(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + cancelButtonAttribute(value: CancelButtonOptions | CancelButtonSymbolOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (TypeChecker.isCancelButtonOptions(value, true, true)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as CancelButtonOptions + thisSerializer.writeCancelButtonOptions(value_0) + } + else if (TypeChecker.isCancelButtonSymbolOptions(value, true, true)) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as CancelButtonSymbolOptions + thisSerializer.writeCancelButtonSymbolOptions(value_1) + } + NativeModule._SearchAttribute_cancelButton(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + textIndentAttribute(value: Dimension): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeLength(value); + NativeModule._SearchAttribute_textIndent(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + inputFilterAttribute(value: ResourceStr, error?: Callback): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as string + thisSerializer.writeString(value_0) + } + else if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as Resource + thisSerializer.writeResource(value_1) + } + let error_type = RuntimeType.UNDEFINED + if (error != undefined) { + error_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(error_type as int32) + if ((RuntimeType.UNDEFINED) != (error_type)) { + const error_value = error! + thisSerializer.writeFunction(error_value) + } + NativeModule._SearchAttribute_inputFilter(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + onEditChangeAttribute(callback: Callback): void { + NativeModule._SearchAttribute_onEditChange(this.peer.ptr, registerCallback(callback)); + } + selectedBackgroundColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._SearchAttribute_selectedBackgroundColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + caretStyleAttribute(value: CaretStyle): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeCaretStyle(value) + NativeModule._SearchAttribute_caretStyle(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + placeholderColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._SearchAttribute_placeholderColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + placeholderFontAttribute(value?: Font): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + if (value != undefined) { + value_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_type as int32) + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value! + thisSerializer.writeFont(value_value) + } + NativeModule._SearchAttribute_placeholderFont(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + textFontAttribute(value?: Font): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + if (value != undefined) { + value_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_type as int32) + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value! + thisSerializer.writeFont(value_value) + } + NativeModule._SearchAttribute_textFont(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + enterKeyTypeAttribute(value: EnterKeyType): void { + NativeModule._SearchAttribute_enterKeyType(this.peer.ptr, (value.value as int32)); + } + onSubmitAttribute(callback: ((value: string) => void)): void { + NativeModule._SearchAttribute_onSubmit(this.peer.ptr, registerCallback(callback)); + } + onChangeAttribute(callback: EditableTextOnChangeCallback): void { + NativeModule._SearchAttribute_onChange(this.peer.ptr, registerCallback(callback)); + } + onTextSelectionChangeAttribute(callback: ((selectionStart: number, selectionEnd: number) => void)): void { + NativeModule._SearchAttribute_onTextSelectionChange(this.peer.ptr, registerCallback(callback)); + } + onContentScrollAttribute(callback: ((totalOffsetX: number, totalOffsetY: number) => void)): void { + NativeModule._SearchAttribute_onContentScroll(this.peer.ptr, registerCallback(callback)); + } + onCopyAttribute(callback: ((value: string) => void)): void { + NativeModule._SearchAttribute_onCopy(this.peer.ptr, registerCallback(callback)); + } + onCutAttribute(callback: ((value: string) => void)): void { + NativeModule._SearchAttribute_onCut(this.peer.ptr, registerCallback(callback)); + } + onPasteAttribute(callback: ((value: string, event: PasteEvent) => void)): void { + NativeModule._SearchAttribute_onPaste(this.peer.ptr, registerCallback(callback)); + } + copyOptionAttribute(value: CopyOptions): void { + NativeModule._SearchAttribute_copyOption(this.peer.ptr, (value.value as int32)); + } + maxLengthAttribute(value: number): void { + NativeModule._SearchAttribute_maxLength(this.peer.ptr, value); + } + textAlignAttribute(value: TextAlign): void { + NativeModule._SearchAttribute_textAlign(this.peer.ptr, (value.value as int32)); + } + enableKeyboardOnFocusAttribute(value: boolean): void { + NativeModule._SearchAttribute_enableKeyboardOnFocus(this.peer.ptr, value ? 1 : 0); + } + selectionMenuHiddenAttribute(value: boolean): void { + NativeModule._SearchAttribute_selectionMenuHidden(this.peer.ptr, value ? 1 : 0); + } + minFontSizeAttribute(value: number | string | Resource): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as string + thisSerializer.writeString(value_1) + } + else if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as Resource + thisSerializer.writeResource(value_2) + } + NativeModule._SearchAttribute_minFontSize(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + maxFontSizeAttribute(value: number | string | Resource): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as string + thisSerializer.writeString(value_1) + } + else if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as Resource + thisSerializer.writeResource(value_2) + } + NativeModule._SearchAttribute_maxFontSize(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + customKeyboardAttribute(value: CustomBuilder, options?: KeyboardOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.FUNCTION == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Object + thisSerializer.writeFunction(value_0) + } + else if (((RuntimeType.UNDEFINED == value_type))) { + thisSerializer.writeInt8(1 as int32) + } + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeKeyboardOptions(options_value) + } + NativeModule._SearchAttribute_customKeyboard(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + decorationAttribute(value: TextDecorationOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeTextDecorationOptions(value) + NativeModule._SearchAttribute_decoration(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + letterSpacingAttribute(value: number | string | Resource): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as string + thisSerializer.writeString(value_1) + } + else if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as Resource + thisSerializer.writeResource(value_2) + } + NativeModule._SearchAttribute_letterSpacing(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + lineHeightAttribute(value: number | string | Resource): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as string + thisSerializer.writeString(value_1) + } + else if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as Resource + thisSerializer.writeResource(value_2) + } + NativeModule._SearchAttribute_lineHeight(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + typeAttribute(value: SearchType): void { + NativeModule._SearchAttribute_type(this.peer.ptr, (value.value as int32)); + } + fontFeatureAttribute(value: string): void { + NativeModule._SearchAttribute_fontFeature(this.peer.ptr, value); + } + onWillInsertAttribute(callback: Callback): void { + NativeModule._SearchAttribute_onWillInsert(this.peer.ptr, registerCallback(callback)); + } + onDidInsertAttribute(callback: Callback): void { + NativeModule._SearchAttribute_onDidInsert(this.peer.ptr, registerCallback(callback)); + } + onWillDeleteAttribute(callback: Callback): void { + NativeModule._SearchAttribute_onWillDelete(this.peer.ptr, registerCallback(callback)); + } + onDidDeleteAttribute(callback: Callback): void { + NativeModule._SearchAttribute_onDidDelete(this.peer.ptr, registerCallback(callback)); + } + editMenuOptionsAttribute(editMenu: EditMenuOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeMaterialized(editMenu) + NativeModule._SearchAttribute_editMenuOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + enablePreviewTextAttribute(enable: boolean): void { + NativeModule._SearchAttribute_enablePreviewText(this.peer.ptr, enable ? 1 : 0); + } + enableHapticFeedbackAttribute(isEnabled: boolean): void { + NativeModule._SearchAttribute_enableHapticFeedback(this.peer.ptr, isEnabled ? 1 : 0); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkSearchAttributes extends ArkCommonMethodAttributes { + fontColor?: ResourceColor + searchIcon?: IconOptions | SymbolGlyphModifier + cancelButton?: CancelButtonOptions | CancelButtonSymbolOptions + textIndent?: Dimension + onEditChange?: Callback + selectedBackgroundColor?: ResourceColor + caretStyle?: CaretStyle + placeholderColor?: ResourceColor + placeholderFont?: Font + textFont?: Font + enterKeyType?: EnterKeyType + onSubmit?: ((value: string) => void) + onChange?: EditableTextOnChangeCallback + onTextSelectionChange?: ((selectionStart: number, selectionEnd: number) => void) + onContentScroll?: ((totalOffsetX: number, totalOffsetY: number) => void) + onCopy?: ((value: string) => void) + onCut?: ((value: string) => void) + onPaste?: ((value: string, event: PasteEvent) => void) + copyOption?: CopyOptions + maxLength?: number + textAlign?: TextAlign + enableKeyboardOnFocus?: boolean + selectionMenuHidden?: boolean + minFontSize?: number | string | Resource + maxFontSize?: number | string | Resource + decoration?: TextDecorationOptions + letterSpacing?: number | string | Resource + lineHeight?: number | string | Resource + type?: SearchType + fontFeature?: string + onWillInsert?: Callback + onDidInsert?: Callback + onWillDelete?: Callback + onDidDelete?: Callback + editMenuOptions?: EditMenuOptions + enablePreviewText?: boolean + enableHapticFeedback?: boolean +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkSecurityComponentPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkSecurityComponentPeer.ts new file mode 100644 index 000000000..14b8b20b5 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkSecurityComponentPeer.ts @@ -0,0 +1,377 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { PeerNode } from "./../PeerNode" +import { Dimension, PX, VP, FP, LPX, Percentage, Resource, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions } from "./../ArkUnitsInterfaces" +import { TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, IMPORT_Resource_FROM_api_global_resource, LITERAL_TopLengthRightLengthBottomLengthLeftLength } from "./../SyntheticDeclarations" +import { SecurityComponentLayoutDirection, SecurityComponentMethod } from "./../ArkSecurityComponentInterfaces" +import { FontStyle, FontWeight, Color, BorderStyle } from "./../ArkEnumsInterfaces" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkSecurityComponentMethodPeer extends PeerNode { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkSecurityComponentMethodPeer { + const _peer = new ArkSecurityComponentMethodPeer(nodeType, flags, "SecurityComponentMethod") + component?.setPeer(_peer) + return _peer + } + iconSizeAttribute(value: Dimension): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeLength(value); + NativeModule._SecurityComponentMethod_iconSize(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + layoutDirectionAttribute(value: SecurityComponentLayoutDirection): void { + NativeModule._SecurityComponentMethod_layoutDirection(this.peer.ptr, (value.value as int32)); + } + positionAttribute(value: Position): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writePosition(value) + NativeModule._SecurityComponentMethod_position(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + markAnchorAttribute(value: Position): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writePosition(value) + NativeModule._SecurityComponentMethod_markAnchor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + offsetAttribute(value: Position | Edges | LocalizedEdges): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (TypeChecker.isPosition(value, false, false)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Position + thisSerializer.writePosition(value_0) + } + else if (TypeChecker.isEdges(value, true, false, true, false)) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as Edges + thisSerializer.writeEdges(value_1) + } + else if (TypeChecker.isLocalizedEdges(value, true, false, true, false)) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as LocalizedEdges + thisSerializer.writeLocalizedEdges(value_2) + } + NativeModule._SecurityComponentMethod_offset(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + fontSizeAttribute(value: Dimension): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeLength(value); + NativeModule._SecurityComponentMethod_fontSize(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + fontStyleAttribute(value: FontStyle): void { + NativeModule._SecurityComponentMethod_fontStyle(this.peer.ptr, (value.value as int32)); + } + fontWeightAttribute(value: number | FontWeight | string): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((value instanceof FontWeight))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as FontWeight + thisSerializer.writeInt32((value_1.value as int32)) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + NativeModule._SecurityComponentMethod_fontWeight(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + fontFamilyAttribute(value: string | Resource): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as string + thisSerializer.writeString(value_0) + } + else if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as Resource + thisSerializer.writeResource(value_1) + } + NativeModule._SecurityComponentMethod_fontFamily(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + fontColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._SecurityComponentMethod_fontColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + iconColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._SecurityComponentMethod_iconColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + backgroundColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._SecurityComponentMethod_backgroundColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + borderStyleAttribute(value: BorderStyle): void { + NativeModule._SecurityComponentMethod_borderStyle(this.peer.ptr, (value.value as int32)); + } + borderWidthAttribute(value: Dimension): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeLength(value); + NativeModule._SecurityComponentMethod_borderWidth(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + borderColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._SecurityComponentMethod_borderColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + borderRadiusAttribute(value: Dimension): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeLength(value); + NativeModule._SecurityComponentMethod_borderRadius(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + paddingAttribute(value: Padding | Dimension): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (TypeChecker.isPadding(value, false, false, false, false)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Padding + const value_0_top = value_0.top + let value_0_top_type = RuntimeType.UNDEFINED + if (value_0_top != undefined) { + value_0_top_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_0_top_type as int32) + if ((RuntimeType.UNDEFINED) != (value_0_top_type)) { + const value_0_top_value = value_0_top! + thisSerializer.writeLength(value_0_top_value); + } + const value_0_right = value_0.right + let value_0_right_type = RuntimeType.UNDEFINED + if (value_0_right != undefined) { + value_0_right_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_0_right_type as int32) + if ((RuntimeType.UNDEFINED) != (value_0_right_type)) { + const value_0_right_value = value_0_right! + thisSerializer.writeLength(value_0_right_value); + } + const value_0_bottom = value_0.bottom + let value_0_bottom_type = RuntimeType.UNDEFINED + if (value_0_bottom != undefined) { + value_0_bottom_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_0_bottom_type as int32) + if ((RuntimeType.UNDEFINED) != (value_0_bottom_type)) { + const value_0_bottom_value = value_0_bottom! + thisSerializer.writeLength(value_0_bottom_value); + } + const value_0_left = value_0.left + let value_0_left_type = RuntimeType.UNDEFINED + if (value_0_left != undefined) { + value_0_left_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_0_left_type as int32) + if ((RuntimeType.UNDEFINED) != (value_0_left_type)) { + const value_0_left_value = value_0_left! + thisSerializer.writeLength(value_0_left_value); + } + } + else if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value)))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as Dimension + thisSerializer.writeLength(value_1); + } + NativeModule._SecurityComponentMethod_padding(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + textIconSpaceAttribute(value: Dimension): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeLength(value); + NativeModule._SecurityComponentMethod_textIconSpace(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + keyAttribute(value: string): void { + NativeModule._SecurityComponentMethod_key(this.peer.ptr, value); + } + widthAttribute(value: Length): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeLength(value); + NativeModule._SecurityComponentMethod_width(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + heightAttribute(value: Length): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeLength(value); + NativeModule._SecurityComponentMethod_height(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + sizeAttribute(value: SizeOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeSizeOptions(value) + NativeModule._SecurityComponentMethod_size(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + constraintSizeAttribute(value: ConstraintSizeOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeConstraintSizeOptions(value) + NativeModule._SecurityComponentMethod_constraintSize(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + applyAttributes(attributes: ArkSecurityComponentMethodAttributes): void {} +} +export interface ArkSecurityComponentMethodAttributes { + iconSize?: Dimension + layoutDirection?: SecurityComponentLayoutDirection + position?: Position + markAnchor?: Position + offset?: Position | Edges | LocalizedEdges + fontSize?: Dimension + fontStyle?: FontStyle + fontWeight?: number | FontWeight | string + fontFamily?: string | Resource + fontColor?: ResourceColor + iconColor?: ResourceColor + backgroundColor?: ResourceColor + borderStyle?: BorderStyle + borderWidth?: Dimension + borderColor?: ResourceColor + borderRadius?: Dimension + padding?: Padding | Dimension + textIconSpace?: Dimension + key?: string + width?: Length + height?: Length + size?: SizeOptions + constraintSize?: ConstraintSizeOptions +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkSliderPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkSliderPeer.ts new file mode 100644 index 000000000..b341d1f2a --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkSliderPeer.ts @@ -0,0 +1,336 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { ResourceColor, Resource, ResourceStr, Length, Dimension, PX, VP, FP, LPX, Percentage, SizeOptions } from "./../ArkUnitsInterfaces" +import { Color, Axis } from "./../ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage } from "./../SyntheticDeclarations" +import { SliderAttribute, SliderChangeMode, SliderBlockStyle, SliderInteraction, SliderConfiguration, SlideRange, SliderOptions, SliderInterface, SliderBlockType, SliderTriggerChangeCallback, SliderStyle } from "./../ArkSliderInterfaces" +import { LinearGradient, ContentModifier } from "./../ConflictedDeclarations" +import { CircleAttribute } from "./../ArkCircleInterfaces" +import { EllipseAttribute } from "./../ArkEllipseInterfaces" +import { PathAttribute } from "./../ArkPathInterfaces" +import { RectAttribute } from "./../ArkRectInterfaces" +import { CommonConfiguration } from "./../ArkCommonInterfaces" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkSliderPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkSliderPeer { + const _peer = new ArkSliderPeer(nodeType, flags, "Slider") + component?.setPeer(_peer) + return _peer + } + setSliderOptionsAttribute(options?: SliderOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeSliderOptions(options_value) + } + NativeModule._SliderInterface_setSliderOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + blockColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._SliderAttribute_blockColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + trackColorAttribute(value: ResourceColor | LinearGradient): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof LinearGradient)) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as Object + thisSerializer.writeCustomObject("LinearGradient", value_1) + } + else if (((RuntimeType.OBJECT == value_type)) || ((RuntimeType.NUMBER == value_type)) || ((RuntimeType.STRING == value_type)) || ((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as ResourceColor + let value_0_type = RuntimeType.UNDEFINED + value_0_type = runtimeType(value_0) + if (((RuntimeType.OBJECT) == (value_0_type)) && (value_0 instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0_0 = value_0 as Color + thisSerializer.writeInt32((value_0_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_0_type))) { + thisSerializer.writeInt8(1 as int32) + const value_0_1 = value_0 as number + thisSerializer.writeNumber(value_0_1) + } + else if (((RuntimeType.STRING == value_0_type))) { + thisSerializer.writeInt8(2 as int32) + const value_0_2 = value_0 as string + thisSerializer.writeString(value_0_2) + } + else if (isResource(value_0)) { + thisSerializer.writeInt8(3 as int32) + const value_0_3 = value_0 as Resource + thisSerializer.writeResource(value_0_3) + } + } + NativeModule._SliderAttribute_trackColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + selectedColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._SliderAttribute_selectedColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + minLabelAttribute(value: string): void { + NativeModule._SliderAttribute_minLabel(this.peer.ptr, value); + } + maxLabelAttribute(value: string): void { + NativeModule._SliderAttribute_maxLabel(this.peer.ptr, value); + } + showStepsAttribute(value: boolean): void { + NativeModule._SliderAttribute_showSteps(this.peer.ptr, value ? 1 : 0); + } + showTipsAttribute(value: boolean, content?: ResourceStr): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let content_type = RuntimeType.UNDEFINED + if (content != undefined) { + content_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(content_type as int32) + if ((RuntimeType.UNDEFINED) != (content_type)) { + const content_value = content! + let content_value_type = RuntimeType.UNDEFINED + content_value_type = runtimeType(content_value) + if (((RuntimeType.STRING == content_value_type))) { + thisSerializer.writeInt8(0 as int32) + const content_value_0 = content_value as string + thisSerializer.writeString(content_value_0) + } + else if (((RuntimeType.OBJECT == content_value_type))) { + thisSerializer.writeInt8(1 as int32) + const content_value_1 = content_value as Resource + thisSerializer.writeResource(content_value_1) + } + } + NativeModule._SliderAttribute_showTips(this.peer.ptr, value ? 1 : 0, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + trackThicknessAttribute(value: Length): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeLength(value); + NativeModule._SliderAttribute_trackThickness(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + onChangeAttribute(callback: ((value: number, mode: SliderChangeMode) => void)): void { + NativeModule._SliderAttribute_onChange(this.peer.ptr, registerCallback(callback)); + } + blockBorderColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._SliderAttribute_blockBorderColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + blockBorderWidthAttribute(value: Length): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeLength(value); + NativeModule._SliderAttribute_blockBorderWidth(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + stepColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._SliderAttribute_stepColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + trackBorderRadiusAttribute(value: Length): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeLength(value); + NativeModule._SliderAttribute_trackBorderRadius(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + selectedBorderRadiusAttribute(value: Dimension): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeLength(value); + NativeModule._SliderAttribute_selectedBorderRadius(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + blockSizeAttribute(value: SizeOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeSizeOptions(value) + NativeModule._SliderAttribute_blockSize(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + blockStyleAttribute(value: SliderBlockStyle): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeSliderBlockStyle(value) + NativeModule._SliderAttribute_blockStyle(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + stepSizeAttribute(value: Length): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeLength(value); + NativeModule._SliderAttribute_stepSize(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + sliderInteractionModeAttribute(value: SliderInteraction): void { + NativeModule._SliderAttribute_sliderInteractionMode(this.peer.ptr, (value.value as int32)); + } + minResponsiveDistanceAttribute(value: number): void { + NativeModule._SliderAttribute_minResponsiveDistance(this.peer.ptr, value); + } + contentModifierAttribute(modifier: ContentModifier): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeCustomObject("ContentModifier", modifier) + NativeModule._SliderAttribute_contentModifier(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + slideRangeAttribute(value: SlideRange): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeSlideRange(value) + NativeModule._SliderAttribute_slideRange(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkSliderAttributes extends ArkCommonMethodAttributes { + blockColor?: ResourceColor + trackColor?: ResourceColor | LinearGradient + selectedColor?: ResourceColor + minLabel?: string + maxLabel?: string + showSteps?: boolean + trackThickness?: Length + onChange?: ((value: number, mode: SliderChangeMode) => void) + blockBorderColor?: ResourceColor + blockBorderWidth?: Length + stepColor?: ResourceColor + trackBorderRadius?: Length + selectedBorderRadius?: Dimension + blockSize?: SizeOptions + blockStyle?: SliderBlockStyle + stepSize?: Length + sliderInteractionMode?: SliderInteraction + minResponsiveDistance?: number + contentModifier?: ContentModifier + slideRange?: SlideRange +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkSpanPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkSpanPeer.ts new file mode 100644 index 000000000..e6b481f0f --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkSpanPeer.ts @@ -0,0 +1,263 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { TextBackgroundStyle, BaseSpan, SpanAttribute, SpanInterface } from "./../ArkSpanInterfaces" +import { LengthMetrics, Font, ResourceColor, Resource, Length, Dimension, PX, VP, FP, LPX, Percentage, BorderRadiuses } from "./../ArkUnitsInterfaces" +import { IMPORT_LengthMetrics_FROM_api_arkui_Graphics, IMPORT_Resource_FROM_api_global_resource, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, LITERAL_TopLeftLengthTopRightLengthBottomLeftLengthBottomRightLength } from "./../SyntheticDeclarations" +import { Color, FontStyle, FontWeight, TextCase } from "./../ArkEnumsInterfaces" +import { DecorationStyleInterface } from "./../ArkStyledStringInterfaces" +import { ShadowOptions } from "./../ArkCommonInterfaces" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkBaseSpanPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkBaseSpanPeer { + const _peer = new ArkBaseSpanPeer(nodeType, flags, "BaseSpan") + component?.setPeer(_peer) + return _peer + } + textBackgroundStyleAttribute(style: TextBackgroundStyle): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeTextBackgroundStyle(style) + NativeModule._BaseSpan_textBackgroundStyle(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + baselineOffsetAttribute(value: LengthMetrics): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeCustomObject("LengthMetrics", value) + NativeModule._BaseSpan_baselineOffset(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkBaseSpanAttributes extends ArkCommonMethodAttributes { + textBackgroundStyle?: TextBackgroundStyle + baselineOffset?: LengthMetrics +} +export class ArkSpanPeer extends ArkBaseSpanPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkSpanPeer { + const _peer = new ArkSpanPeer(nodeType, flags, "Span") + component?.setPeer(_peer) + return _peer + } + setSpanOptionsAttribute(value: string | Resource): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as string + thisSerializer.writeString(value_0) + } + else if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as Resource + thisSerializer.writeResource(value_1) + } + NativeModule._SpanInterface_setSpanOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + fontAttribute(value: Font): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeFont(value) + NativeModule._SpanAttribute_font(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + fontColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._SpanAttribute_fontColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + fontSizeAttribute(value: number | string | Resource): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as string + thisSerializer.writeString(value_1) + } + else if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as Resource + thisSerializer.writeResource(value_2) + } + NativeModule._SpanAttribute_fontSize(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + fontStyleAttribute(value: FontStyle): void { + NativeModule._SpanAttribute_fontStyle(this.peer.ptr, (value.value as int32)); + } + fontWeightAttribute(value: number | FontWeight | string): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((value instanceof FontWeight))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as FontWeight + thisSerializer.writeInt32((value_1.value as int32)) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + NativeModule._SpanAttribute_fontWeight(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + fontFamilyAttribute(value: string | Resource): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as string + thisSerializer.writeString(value_0) + } + else if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as Resource + thisSerializer.writeResource(value_1) + } + NativeModule._SpanAttribute_fontFamily(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + decorationAttribute(value: DecorationStyleInterface): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeDecorationStyleInterface(value) + NativeModule._SpanAttribute_decoration(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + letterSpacingAttribute(value: number | string): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as string + thisSerializer.writeString(value_1) + } + NativeModule._SpanAttribute_letterSpacing(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + textCaseAttribute(value: TextCase): void { + NativeModule._SpanAttribute_textCase(this.peer.ptr, (value.value as int32)); + } + lineHeightAttribute(value: Length): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeLength(value); + NativeModule._SpanAttribute_lineHeight(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + textShadowAttribute(value: ShadowOptions | Array): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (TypeChecker.isShadowOptions(value, false, false, false, false, false, false)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as ShadowOptions + thisSerializer.writeShadowOptions(value_0) + } + else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Array)) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as Array + thisSerializer.writeInt8(runtimeType(value_1) as int32) + thisSerializer.writeInt32(value_1.length as int32) + for (let i = 0; i < value_1.length; i++) { + const value_1_element = value_1[i] + thisSerializer.writeShadowOptions(value_1_element) + } + } + NativeModule._SpanAttribute_textShadow(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkSpanAttributes extends ArkBaseSpanAttributes { + font?: Font + fontColor?: ResourceColor + fontSize?: number | string | Resource + fontStyle?: FontStyle + fontWeight?: number | FontWeight | string + fontFamily?: string | Resource + decoration?: DecorationStyleInterface + letterSpacing?: number | string + textCase?: TextCase + lineHeight?: Length + textShadow?: ShadowOptions | Array +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkStackPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkStackPeer.ts new file mode 100644 index 000000000..3761f45db --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkStackPeer.ts @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { Alignment } from "./../ArkEnumsInterfaces" +import { StackAttribute, StackOptions, StackInterface } from "./../ArkStackInterfaces" +import { PointLightStyle } from "./../ArkCommonInterfaces" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkStackPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkStackPeer { + const _peer = new ArkStackPeer(nodeType, flags, "Stack") + component?.setPeer(_peer) + return _peer + } + setStackOptionsAttribute(options?: StackOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeStackOptions(options_value) + } + NativeModule._StackInterface_setStackOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + alignContentAttribute(value: Alignment): void { + NativeModule._StackAttribute_alignContent(this.peer.ptr, (value.value as int32)); + } + pointLightAttribute(value: PointLightStyle): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writePointLightStyle(value) + NativeModule._StackAttribute_pointLight(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkStackAttributes extends ArkCommonMethodAttributes { + alignContent?: Alignment + pointLight?: PointLightStyle +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkStepperItemPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkStepperItemPeer.ts new file mode 100644 index 000000000..50ac3d847 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkStepperItemPeer.ts @@ -0,0 +1,76 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { StepperItemAttribute, ItemState, StepperItemInterface } from "./../ArkStepperItemInterfaces" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkStepperItemPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkStepperItemPeer { + const _peer = new ArkStepperItemPeer(nodeType, flags, "StepperItem") + component?.setPeer(_peer) + return _peer + } + setStepperItemOptionsAttribute(): void { + NativeModule._StepperItemInterface_setStepperItemOptions(this.peer.ptr); + } + prevLabelAttribute(value: string): void { + NativeModule._StepperItemAttribute_prevLabel(this.peer.ptr, value); + } + nextLabelAttribute(value: string): void { + NativeModule._StepperItemAttribute_nextLabel(this.peer.ptr, value); + } + statusAttribute(value?: ItemState): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + if (value != undefined) { + value_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_type as int32) + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value! + thisSerializer.writeInt32((value_value.value as int32)) + } + NativeModule._StepperItemAttribute_status(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkStepperItemAttributes extends ArkCommonMethodAttributes { + prevLabel?: string + nextLabel?: string + status?: ItemState +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkStepperPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkStepperPeer.ts new file mode 100644 index 000000000..0091b8635 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkStepperPeer.ts @@ -0,0 +1,94 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { StepperAttribute, StepperInterface } from "./../ArkStepperInterfaces" +import { LITERAL_IndexNumber } from "./../SyntheticDeclarations" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkStepperPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkStepperPeer { + const _peer = new ArkStepperPeer(nodeType, flags, "Stepper") + component?.setPeer(_peer) + return _peer + } + setStepperOptionsAttribute(value?: LITERAL_IndexNumber): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + if (value != undefined) { + value_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_type as int32) + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value! + const value_value_index = value_value.index + let value_value_index_type = RuntimeType.UNDEFINED + if (value_value_index != undefined) { + value_value_index_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_value_index_type as int32) + if ((RuntimeType.UNDEFINED) != (value_value_index_type)) { + const value_value_index_value = value_value_index! + thisSerializer.writeNumber(value_value_index_value) + } + } + NativeModule._StepperInterface_setStepperOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + onFinishAttribute(callback: (() => void)): void { + NativeModule._StepperAttribute_onFinish(this.peer.ptr, registerCallback(callback)); + } + onSkipAttribute(callback: (() => void)): void { + NativeModule._StepperAttribute_onSkip(this.peer.ptr, registerCallback(callback)); + } + onChangeAttribute(callback: ((prevIndex: number, index: number) => void)): void { + NativeModule._StepperAttribute_onChange(this.peer.ptr, registerCallback(callback)); + } + onNextAttribute(callback: ((index: number, pendingIndex: number) => void)): void { + NativeModule._StepperAttribute_onNext(this.peer.ptr, registerCallback(callback)); + } + onPreviousAttribute(callback: ((index: number, pendingIndex: number) => void)): void { + NativeModule._StepperAttribute_onPrevious(this.peer.ptr, registerCallback(callback)); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkStepperAttributes extends ArkCommonMethodAttributes { + onFinish?: (() => void) + onSkip?: (() => void) + onChange?: ((prevIndex: number, index: number) => void) + onNext?: ((index: number, pendingIndex: number) => void) + onPrevious?: ((index: number, pendingIndex: number) => void) +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkSymbolSpanPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkSymbolSpanPeer.ts new file mode 100644 index 000000000..4ee262078 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkSymbolSpanPeer.ts @@ -0,0 +1,162 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { Length, Resource, SizeOptions, ConstraintSizeOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, ResourceStr, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, PX, VP, FP, LPX, Percentage, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition } from "./../ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, LITERAL_TopLengthRightLengthBottomLengthLeftLength, LITERAL_AlignAlignment, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image, IMPORT_default_VisualEffect_FROM_api_ohos_graphics_uiEffect, IMPORT_default_Filter_FROM_api_ohos_graphics_uiEffect, LITERAL_TopBorderStyleRightBorderStyleBottomBorderStyleLeftBorderStyle, LITERAL_TopResourceColorRightResourceColorBottomResourceColorLeftResourceColor, LITERAL_TopLeftLengthTopRightLengthBottomLeftLengthBottomRightLength, LITERAL_TopOutlineStyleRightOutlineStyleBottomOutlineStyleLeftOutlineStyle, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, LITERAL_TopDimensionRightDimensionBottomDimensionLeftDimension, LITERAL_TopLeftDimensionTopRightDimensionBottomLeftDimensionBottomRightDimension, LITERAL_SpanNumberOffsetNumber, LITERAL_XsNumberLITERALSpanNumberOffsetNumberSmNumberLITERALSpanNumberOffsetNumberMdNumberLITERALSpanNumberOffsetNumberLgNumberLITERALSpanNumberOffsetNumber, IMPORT_default_UniformDataType_FROM_api_ohos_data_uniformTypeDescriptor, IMPORT_ComponentContent_T_FROM_api_arkui_ComponentContent, LITERAL_AngleNumberstringDirectionGradientDirectionColorsArrayResourceColornumberRepeatingBoolean, LITERAL_CenterLengthLengthStartNumberstringEndNumberstringRotationNumberstringColorsArrayResourceColornumberRepeatingBoolean, LITERAL_CenterLengthLengthRadiusNumberstringColorsArrayResourceColornumberRepeatingBoolean, IMPORT_default_Blender_FROM_api_ohos_graphics_uiEffect, IMPORT_CircleShape_FROM_api_ohos_arkui_shape, IMPORT_EllipseShape_FROM_api_ohos_arkui_shape, IMPORT_PathShape_FROM_api_ohos_arkui_shape, IMPORT_RectShape_FROM_api_ohos_arkui_shape } from "./../SyntheticDeclarations" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { Optional, SafeAreaType, SafeAreaEdge, Rectangle, TouchTestInfo, TouchResult, CustomBuilder, PixelRoundPolicy, PixelMap, BlurStyle, BackgroundBlurStyleOptions, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, ForegroundBlurStyleOptions, BorderImageOption, OutlineStyle, ClickEvent, Callback, HoverEvent, AccessibilityCallback, AccessibilityHoverEvent, MouseEvent, TouchEvent, KeyEvent, AnimateParam, TransitionOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, sharedTransitionOptions, AlignRuleOption, LocalizedAlignRuleOptions, ChainStyle, ClickEffect, DragEvent, DragItemInfo, UniformDataType, DragPreviewOptions, DragInteractionOptions, PreDragStatus, ComponentContent, OverlayOptions, MotionPathOptions, ShadowOptions, ShadowStyle, BlendMode, BlendApplyType, Blender, CircleShape, EllipseShape, PathShape, RectShape, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, StateStyles, VisibleAreaChangeCallback, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback } from "./../ArkCommonInterfaces" +import { HitTestMode, Alignment, Color, ImageRepeat, ImageSize, BorderStyle, ColoringStrategy, HoverEffect, Visibility, ItemAlign, Direction, Axis, GradientDirection, ResponseType, FunctionKey, ModifierKey, ObscuredReasons, RenderFit, FontWeight } from "./../ArkEnumsInterfaces" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ConflictedDeclarations" +import { GestureType, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureMask, GestureInfo, BaseGestureEvent, GestureJudgeResult } from "./../ArkGestureInterfaces" +import { CircleAttribute } from "./../ArkCircleInterfaces" +import { EllipseAttribute } from "./../ArkEllipseInterfaces" +import { PathAttribute } from "./../ArkPathInterfaces" +import { RectAttribute } from "./../ArkRectInterfaces" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../ArkAttributeModifierMaterialized" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureRecognizer } from "./../ArkGestureRecognizerMaterialized" +import { SymbolSpanAttribute, SymbolSpanInterface } from "./../ArkSymbolSpanInterfaces" +import { SymbolEffectStrategy, SymbolRenderingStrategy } from "./../ArkSymbolglyphInterfaces" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkSymbolSpanPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkSymbolSpanPeer { + const _peer = new ArkSymbolSpanPeer(nodeType, flags, "SymbolSpan") + component?.setPeer(_peer) + return _peer + } + setSymbolSpanOptionsAttribute(value: Resource): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeResource(value) + NativeModule._SymbolSpanInterface_setSymbolSpanOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + fontSizeAttribute(value: number | string | Resource): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as string + thisSerializer.writeString(value_1) + } + else if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as Resource + thisSerializer.writeResource(value_2) + } + NativeModule._SymbolSpanAttribute_fontSize(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + fontColorAttribute(value: Array): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeInt8(runtimeType(value) as int32) + thisSerializer.writeInt32(value.length as int32) + for (let i = 0; i < value.length; i++) { + const value_element = value[i] + let value_element_type = RuntimeType.UNDEFINED + value_element_type = runtimeType(value_element) + if (((RuntimeType.OBJECT) == (value_element_type)) && (value_element instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_element_0 = value_element as Color + thisSerializer.writeInt32((value_element_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_element_type))) { + thisSerializer.writeInt8(1 as int32) + const value_element_1 = value_element as number + thisSerializer.writeNumber(value_element_1) + } + else if (((RuntimeType.STRING == value_element_type))) { + thisSerializer.writeInt8(2 as int32) + const value_element_2 = value_element as string + thisSerializer.writeString(value_element_2) + } + else if (isResource(value_element)) { + thisSerializer.writeInt8(3 as int32) + const value_element_3 = value_element as Resource + thisSerializer.writeResource(value_element_3) + } + } + NativeModule._SymbolSpanAttribute_fontColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + fontWeightAttribute(value: number | FontWeight | string): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((value instanceof FontWeight))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as FontWeight + thisSerializer.writeInt32((value_1.value as int32)) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + NativeModule._SymbolSpanAttribute_fontWeight(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + effectStrategyAttribute(value: SymbolEffectStrategy): void { + NativeModule._SymbolSpanAttribute_effectStrategy(this.peer.ptr, (value.value as int32)); + } + renderingStrategyAttribute(value: SymbolRenderingStrategy): void { + NativeModule._SymbolSpanAttribute_renderingStrategy(this.peer.ptr, (value.value as int32)); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkSymbolSpanAttributes extends ArkCommonMethodAttributes { + fontSize?: number | string | Resource + fontColor?: Array + fontWeight?: number | FontWeight | string + effectStrategy?: SymbolEffectStrategy + renderingStrategy?: SymbolRenderingStrategy + attributeModifier?: AttributeModifier +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkTextAreaPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkTextAreaPeer.ts new file mode 100644 index 000000000..b689dc157 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkTextAreaPeer.ts @@ -0,0 +1,559 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { ResourceColor, Resource, Font, Length, ResourceStr, Dimension, PX, VP, FP, LPX, Percentage, LengthMetrics } from "./../ArkUnitsInterfaces" +import { Color, TextAlign, FontStyle, FontWeight, TextOverflow, CopyOptions, TextContentStyle, BarState, TextHeightAdaptivePolicy, WordBreak, LineBreakStrategy } from "./../ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, IMPORT_LengthMetrics_FROM_api_arkui_Graphics } from "./../SyntheticDeclarations" +import { TextAreaAttribute, TextAreaType, ContentType, TextAreaOptions, TextAreaInterface } from "./../ArkTextAreaInterfaces" +import { EnterKeyType } from "./../ArkTextInputInterfaces" +import { CaretStyle, EditableTextOnChangeCallback, PreviewText, InsertValue, DeleteValue } from "./../ArkTextCommonInterfaces" +import { PasteEvent, KeyboardOptions } from "./../ArkRichEditorInterfaces" +import { InputCounterOptions, CustomBuilder, TextDecorationOptions, Callback } from "./../ArkCommonInterfaces" +import { EditMenuOptions } from "./../ArkEditMenuOptionsMaterialized" +import { TextAreaController } from "./../ArkTextAreaControllerMaterialized" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkTextAreaPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkTextAreaPeer { + const _peer = new ArkTextAreaPeer(nodeType, flags, "TextArea") + component?.setPeer(_peer) + return _peer + } + setTextAreaOptionsAttribute(value?: TextAreaOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + if (value != undefined) { + value_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_type as int32) + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value! + thisSerializer.writeTextAreaOptions(value_value) + } + NativeModule._TextAreaInterface_setTextAreaOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + placeholderColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._TextAreaAttribute_placeholderColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + placeholderFontAttribute(value: Font): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeFont(value) + NativeModule._TextAreaAttribute_placeholderFont(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + enterKeyTypeAttribute(value: EnterKeyType): void { + NativeModule._TextAreaAttribute_enterKeyType(this.peer.ptr, (value.value as int32)); + } + textAlignAttribute(value: TextAlign): void { + NativeModule._TextAreaAttribute_textAlign(this.peer.ptr, (value.value as int32)); + } + caretColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._TextAreaAttribute_caretColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + fontColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._TextAreaAttribute_fontColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + fontSizeAttribute(value: Length): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeLength(value); + NativeModule._TextAreaAttribute_fontSize(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + fontStyleAttribute(value: FontStyle): void { + NativeModule._TextAreaAttribute_fontStyle(this.peer.ptr, (value.value as int32)); + } + fontWeightAttribute(value: number | FontWeight | string): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((value instanceof FontWeight))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as FontWeight + thisSerializer.writeInt32((value_1.value as int32)) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + NativeModule._TextAreaAttribute_fontWeight(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + fontFamilyAttribute(value: ResourceStr): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as string + thisSerializer.writeString(value_0) + } + else if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as Resource + thisSerializer.writeResource(value_1) + } + NativeModule._TextAreaAttribute_fontFamily(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + textOverflowAttribute(value: TextOverflow): void { + NativeModule._TextAreaAttribute_textOverflow(this.peer.ptr, (value.value as int32)); + } + textIndentAttribute(value: Dimension): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeLength(value); + NativeModule._TextAreaAttribute_textIndent(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + inputFilterAttribute(value: ResourceStr, error?: ((value: string) => void)): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as string + thisSerializer.writeString(value_0) + } + else if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as Resource + thisSerializer.writeResource(value_1) + } + let error_type = RuntimeType.UNDEFINED + if (error != undefined) { + error_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(error_type as int32) + if ((RuntimeType.UNDEFINED) != (error_type)) { + const error_value = error! + thisSerializer.writeFunction(error_value) + } + NativeModule._TextAreaAttribute_inputFilter(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + caretStyleAttribute(value: CaretStyle): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeCaretStyle(value) + NativeModule._TextAreaAttribute_caretStyle(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + selectedBackgroundColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._TextAreaAttribute_selectedBackgroundColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + onSubmitAttribute(callback: ((enterKey: EnterKeyType) => void)): void { + NativeModule._TextAreaAttribute_onSubmit(this.peer.ptr, registerCallback(callback)); + } + onChangeAttribute(callback: EditableTextOnChangeCallback): void { + NativeModule._TextAreaAttribute_onChange(this.peer.ptr, registerCallback(callback)); + } + onTextSelectionChangeAttribute(callback: ((selectionStart: number, selectionEnd: number) => void)): void { + NativeModule._TextAreaAttribute_onTextSelectionChange(this.peer.ptr, registerCallback(callback)); + } + onContentScrollAttribute(callback: ((totalOffsetX: number, totalOffsetY: number) => void)): void { + NativeModule._TextAreaAttribute_onContentScroll(this.peer.ptr, registerCallback(callback)); + } + onEditChangeAttribute(callback: ((isEditing: boolean) => void)): void { + NativeModule._TextAreaAttribute_onEditChange(this.peer.ptr, registerCallback(callback)); + } + onCopyAttribute(callback: ((value: string) => void)): void { + NativeModule._TextAreaAttribute_onCopy(this.peer.ptr, registerCallback(callback)); + } + onCutAttribute(callback: ((value: string) => void)): void { + NativeModule._TextAreaAttribute_onCut(this.peer.ptr, registerCallback(callback)); + } + onPasteAttribute(callback: ((value: string, event: PasteEvent) => void)): void { + NativeModule._TextAreaAttribute_onPaste(this.peer.ptr, registerCallback(callback)); + } + copyOptionAttribute(value: CopyOptions): void { + NativeModule._TextAreaAttribute_copyOption(this.peer.ptr, (value.value as int32)); + } + enableKeyboardOnFocusAttribute(value: boolean): void { + NativeModule._TextAreaAttribute_enableKeyboardOnFocus(this.peer.ptr, value ? 1 : 0); + } + maxLengthAttribute(value: number): void { + NativeModule._TextAreaAttribute_maxLength(this.peer.ptr, value); + } + showCounterAttribute(value: boolean, options?: InputCounterOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeInputCounterOptions(options_value) + } + NativeModule._TextAreaAttribute_showCounter(this.peer.ptr, value ? 1 : 0, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + styleAttribute(value: TextContentStyle): void { + NativeModule._TextAreaAttribute_style(this.peer.ptr, (value.value as int32)); + } + barStateAttribute(value: BarState): void { + NativeModule._TextAreaAttribute_barState(this.peer.ptr, (value.value as int32)); + } + selectionMenuHiddenAttribute(value: boolean): void { + NativeModule._TextAreaAttribute_selectionMenuHidden(this.peer.ptr, value ? 1 : 0); + } + minFontSizeAttribute(value: number | string | Resource): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as string + thisSerializer.writeString(value_1) + } + else if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as Resource + thisSerializer.writeResource(value_2) + } + NativeModule._TextAreaAttribute_minFontSize(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + maxFontSizeAttribute(value: number | string | Resource): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as string + thisSerializer.writeString(value_1) + } + else if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as Resource + thisSerializer.writeResource(value_2) + } + NativeModule._TextAreaAttribute_maxFontSize(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + heightAdaptivePolicyAttribute(value: TextHeightAdaptivePolicy): void { + NativeModule._TextAreaAttribute_heightAdaptivePolicy(this.peer.ptr, (value.value as int32)); + } + maxLinesAttribute(value: number): void { + NativeModule._TextAreaAttribute_maxLines(this.peer.ptr, value); + } + wordBreakAttribute(value: WordBreak): void { + NativeModule._TextAreaAttribute_wordBreak(this.peer.ptr, (value.value as int32)); + } + lineBreakStrategyAttribute(strategy: LineBreakStrategy): void { + NativeModule._TextAreaAttribute_lineBreakStrategy(this.peer.ptr, (strategy.value as int32)); + } + customKeyboardAttribute(value: CustomBuilder, options?: KeyboardOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.FUNCTION == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Object + thisSerializer.writeFunction(value_0) + } + else if (((RuntimeType.UNDEFINED == value_type))) { + thisSerializer.writeInt8(1 as int32) + } + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeKeyboardOptions(options_value) + } + NativeModule._TextAreaAttribute_customKeyboard(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + decorationAttribute(value: TextDecorationOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeTextDecorationOptions(value) + NativeModule._TextAreaAttribute_decoration(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + letterSpacingAttribute(value: number | string | Resource): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as string + thisSerializer.writeString(value_1) + } + else if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as Resource + thisSerializer.writeResource(value_2) + } + NativeModule._TextAreaAttribute_letterSpacing(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + lineSpacingAttribute(value: LengthMetrics): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeCustomObject("LengthMetrics", value) + NativeModule._TextAreaAttribute_lineSpacing(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + lineHeightAttribute(value: number | string | Resource): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as string + thisSerializer.writeString(value_1) + } + else if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as Resource + thisSerializer.writeResource(value_2) + } + NativeModule._TextAreaAttribute_lineHeight(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + typeAttribute(value: TextAreaType): void { + NativeModule._TextAreaAttribute_type(this.peer.ptr, (value.value as int32)); + } + enableAutoFillAttribute(value: boolean): void { + NativeModule._TextAreaAttribute_enableAutoFill(this.peer.ptr, value ? 1 : 0); + } + contentTypeAttribute(contentType: ContentType): void { + NativeModule._TextAreaAttribute_contentType(this.peer.ptr, (contentType.value as int32)); + } + fontFeatureAttribute(value: string): void { + NativeModule._TextAreaAttribute_fontFeature(this.peer.ptr, value); + } + onWillInsertAttribute(callback: Callback): void { + NativeModule._TextAreaAttribute_onWillInsert(this.peer.ptr, registerCallback(callback)); + } + onDidInsertAttribute(callback: Callback): void { + NativeModule._TextAreaAttribute_onDidInsert(this.peer.ptr, registerCallback(callback)); + } + onWillDeleteAttribute(callback: Callback): void { + NativeModule._TextAreaAttribute_onWillDelete(this.peer.ptr, registerCallback(callback)); + } + onDidDeleteAttribute(callback: Callback): void { + NativeModule._TextAreaAttribute_onDidDelete(this.peer.ptr, registerCallback(callback)); + } + editMenuOptionsAttribute(editMenu: EditMenuOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeMaterialized(editMenu) + NativeModule._TextAreaAttribute_editMenuOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + enablePreviewTextAttribute(enable: boolean): void { + NativeModule._TextAreaAttribute_enablePreviewText(this.peer.ptr, enable ? 1 : 0); + } + enableHapticFeedbackAttribute(isEnabled: boolean): void { + NativeModule._TextAreaAttribute_enableHapticFeedback(this.peer.ptr, isEnabled ? 1 : 0); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkTextAreaAttributes extends ArkCommonMethodAttributes { + placeholderColor?: ResourceColor + placeholderFont?: Font + enterKeyType?: EnterKeyType + textAlign?: TextAlign + caretColor?: ResourceColor + fontColor?: ResourceColor + fontSize?: Length + fontStyle?: FontStyle + fontWeight?: number | FontWeight | string + fontFamily?: ResourceStr + textOverflow?: TextOverflow + textIndent?: Dimension + caretStyle?: CaretStyle + selectedBackgroundColor?: ResourceColor + onSubmit?: ((enterKey: EnterKeyType) => void) + onChange?: EditableTextOnChangeCallback + onTextSelectionChange?: ((selectionStart: number, selectionEnd: number) => void) + onContentScroll?: ((totalOffsetX: number, totalOffsetY: number) => void) + onEditChange?: ((isEditing: boolean) => void) + onCopy?: ((value: string) => void) + onCut?: ((value: string) => void) + onPaste?: ((value: string, event: PasteEvent) => void) + copyOption?: CopyOptions + enableKeyboardOnFocus?: boolean + maxLength?: number + style?: TextContentStyle + barState?: BarState + selectionMenuHidden?: boolean + minFontSize?: number | string | Resource + maxFontSize?: number | string | Resource + heightAdaptivePolicy?: TextHeightAdaptivePolicy + maxLines?: number + wordBreak?: WordBreak + lineBreakStrategy?: LineBreakStrategy + decoration?: TextDecorationOptions + letterSpacing?: number | string | Resource + lineSpacing?: LengthMetrics + lineHeight?: number | string | Resource + type?: TextAreaType + enableAutoFill?: boolean + contentType?: ContentType + fontFeature?: string + onWillInsert?: Callback + onDidInsert?: Callback + onWillDelete?: Callback + onDidDelete?: Callback + editMenuOptions?: EditMenuOptions + enablePreviewText?: boolean + enableHapticFeedback?: boolean +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkTextClockPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkTextClockPeer.ts new file mode 100644 index 000000000..86b13760f --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkTextClockPeer.ts @@ -0,0 +1,208 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { TextClockAttribute, TextClockConfiguration, TextClockOptions, TextClockInterface } from "./../ArkTextClockInterfaces" +import { ResourceColor, Resource, Length, ResourceStr } from "./../ArkUnitsInterfaces" +import { Color, FontStyle, FontWeight } from "./../ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, IMPORT_default_DateTimeOptions_FROM_api_ohos_intl } from "./../SyntheticDeclarations" +import { ShadowOptions, Optional, CommonConfiguration } from "./../ArkCommonInterfaces" +import { ContentModifier } from "./../ConflictedDeclarations" +import { DateTimeOptions } from "./../ArkTimePickerInterfaces" +import { TextClockController } from "./../ArkTextClockControllerMaterialized" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkTextClockPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkTextClockPeer { + const _peer = new ArkTextClockPeer(nodeType, flags, "TextClock") + component?.setPeer(_peer) + return _peer + } + setTextClockOptionsAttribute(options?: TextClockOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeTextClockOptions(options_value) + } + NativeModule._TextClockInterface_setTextClockOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + formatAttribute(value: string): void { + NativeModule._TextClockAttribute_format(this.peer.ptr, value); + } + onDateChangeAttribute(event: ((value: number) => void)): void { + NativeModule._TextClockAttribute_onDateChange(this.peer.ptr, registerCallback(event)); + } + fontColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._TextClockAttribute_fontColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + fontSizeAttribute(value: Length): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeLength(value); + NativeModule._TextClockAttribute_fontSize(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + fontStyleAttribute(value: FontStyle): void { + NativeModule._TextClockAttribute_fontStyle(this.peer.ptr, (value.value as int32)); + } + fontWeightAttribute(value: number | FontWeight | string): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((value instanceof FontWeight))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as FontWeight + thisSerializer.writeInt32((value_1.value as int32)) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + NativeModule._TextClockAttribute_fontWeight(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + fontFamilyAttribute(value: ResourceStr): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as string + thisSerializer.writeString(value_0) + } + else if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as Resource + thisSerializer.writeResource(value_1) + } + NativeModule._TextClockAttribute_fontFamily(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + textShadowAttribute(value: ShadowOptions | Array): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (TypeChecker.isShadowOptions(value, false, false, false, false, false, false)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as ShadowOptions + thisSerializer.writeShadowOptions(value_0) + } + else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Array)) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as Array + thisSerializer.writeInt8(runtimeType(value_1) as int32) + thisSerializer.writeInt32(value_1.length as int32) + for (let i = 0; i < value_1.length; i++) { + const value_1_element = value_1[i] + thisSerializer.writeShadowOptions(value_1_element) + } + } + NativeModule._TextClockAttribute_textShadow(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + fontFeatureAttribute(value: string): void { + NativeModule._TextClockAttribute_fontFeature(this.peer.ptr, value); + } + contentModifierAttribute(modifier: ContentModifier): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeCustomObject("ContentModifier", modifier) + NativeModule._TextClockAttribute_contentModifier(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + dateTimeOptionsAttribute(dateTimeOptions: DateTimeOptions | undefined): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let dateTimeOptions_type = RuntimeType.UNDEFINED + if (dateTimeOptions != undefined) { + dateTimeOptions_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(dateTimeOptions_type as int32) + if ((RuntimeType.UNDEFINED) != (dateTimeOptions_type)) { + const dateTimeOptions_value = dateTimeOptions! + thisSerializer.writeCustomObject("DateTimeOptions", dateTimeOptions_value) + } + NativeModule._TextClockAttribute_dateTimeOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkTextClockAttributes extends ArkCommonMethodAttributes { + format?: string + onDateChange?: ((value: number) => void) + fontColor?: ResourceColor + fontSize?: Length + fontStyle?: FontStyle + fontWeight?: number | FontWeight | string + fontFamily?: ResourceStr + textShadow?: ShadowOptions | Array + fontFeature?: string + contentModifier?: ContentModifier + dateTimeOptions?: DateTimeOptions | undefined +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkTextTimerPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkTextTimerPeer.ts new file mode 100644 index 000000000..828d8404a --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkTextTimerPeer.ts @@ -0,0 +1,188 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { TextTimerAttribute, TextTimerConfiguration, TextTimerOptions, TextTimerInterface } from "./../ArkTextTimerInterfaces" +import { ResourceColor, Resource, Length, ResourceStr } from "./../ArkUnitsInterfaces" +import { Color, FontStyle, FontWeight } from "./../ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource } from "./../SyntheticDeclarations" +import { ShadowOptions, CommonConfiguration } from "./../ArkCommonInterfaces" +import { ContentModifier } from "./../ConflictedDeclarations" +import { TextTimerController } from "./../ArkTextTimerControllerMaterialized" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkTextTimerPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkTextTimerPeer { + const _peer = new ArkTextTimerPeer(nodeType, flags, "TextTimer") + component?.setPeer(_peer) + return _peer + } + setTextTimerOptionsAttribute(options?: TextTimerOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeTextTimerOptions(options_value) + } + NativeModule._TextTimerInterface_setTextTimerOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + formatAttribute(value: string): void { + NativeModule._TextTimerAttribute_format(this.peer.ptr, value); + } + fontColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._TextTimerAttribute_fontColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + fontSizeAttribute(value: Length): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeLength(value); + NativeModule._TextTimerAttribute_fontSize(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + fontStyleAttribute(value: FontStyle): void { + NativeModule._TextTimerAttribute_fontStyle(this.peer.ptr, (value.value as int32)); + } + fontWeightAttribute(value: number | FontWeight | string): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((value instanceof FontWeight))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as FontWeight + thisSerializer.writeInt32((value_1.value as int32)) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + NativeModule._TextTimerAttribute_fontWeight(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + fontFamilyAttribute(value: ResourceStr): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as string + thisSerializer.writeString(value_0) + } + else if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as Resource + thisSerializer.writeResource(value_1) + } + NativeModule._TextTimerAttribute_fontFamily(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + onTimerAttribute(event: ((utc: number, elapsedTime: number) => void)): void { + NativeModule._TextTimerAttribute_onTimer(this.peer.ptr, registerCallback(event)); + } + textShadowAttribute(value: ShadowOptions | Array): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (TypeChecker.isShadowOptions(value, false, false, false, false, false, false)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as ShadowOptions + thisSerializer.writeShadowOptions(value_0) + } + else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Array)) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as Array + thisSerializer.writeInt8(runtimeType(value_1) as int32) + thisSerializer.writeInt32(value_1.length as int32) + for (let i = 0; i < value_1.length; i++) { + const value_1_element = value_1[i] + thisSerializer.writeShadowOptions(value_1_element) + } + } + NativeModule._TextTimerAttribute_textShadow(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + contentModifierAttribute(modifier: ContentModifier): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeCustomObject("ContentModifier", modifier) + NativeModule._TextTimerAttribute_contentModifier(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkTextTimerAttributes extends ArkCommonMethodAttributes { + format?: string + fontColor?: ResourceColor + fontSize?: Length + fontStyle?: FontStyle + fontWeight?: number | FontWeight | string + fontFamily?: ResourceStr + onTimer?: ((utc: number, elapsedTime: number) => void) + textShadow?: ShadowOptions | Array + contentModifier?: ContentModifier +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkTimePickerPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkTimePickerPeer.ts new file mode 100644 index 000000000..2cdbf6dea --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkTimePickerPeer.ts @@ -0,0 +1,110 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { TimePickerAttribute, DateTimeOptions, TimePickerResult, TimePickerOptions, TimePickerInterface, TimePickerFormat } from "./../ArkTimePickerInterfaces" +import { PickerTextStyle } from "./../ArkCommonInterfaces" +import { IMPORT_default_DateTimeOptions_FROM_api_ohos_intl } from "./../SyntheticDeclarations" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkTimePickerPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkTimePickerPeer { + const _peer = new ArkTimePickerPeer(nodeType, flags, "TimePicker") + component?.setPeer(_peer) + return _peer + } + setTimePickerOptionsAttribute(options?: TimePickerOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeTimePickerOptions(options_value) + } + NativeModule._TimePickerInterface_setTimePickerOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + useMilitaryTimeAttribute(value: boolean): void { + NativeModule._TimePickerAttribute_useMilitaryTime(this.peer.ptr, value ? 1 : 0); + } + loopAttribute(value: boolean): void { + NativeModule._TimePickerAttribute_loop(this.peer.ptr, value ? 1 : 0); + } + disappearTextStyleAttribute(value: PickerTextStyle): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writePickerTextStyle(value) + NativeModule._TimePickerAttribute_disappearTextStyle(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + textStyleAttribute(value: PickerTextStyle): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writePickerTextStyle(value) + NativeModule._TimePickerAttribute_textStyle(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + selectedTextStyleAttribute(value: PickerTextStyle): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writePickerTextStyle(value) + NativeModule._TimePickerAttribute_selectedTextStyle(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + dateTimeOptionsAttribute(value: DateTimeOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeCustomObject("DateTimeOptions", value) + NativeModule._TimePickerAttribute_dateTimeOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + onChangeAttribute(callback: ((value: TimePickerResult) => void)): void { + NativeModule._TimePickerAttribute_onChange(this.peer.ptr, registerCallback(callback)); + } + enableHapticFeedbackAttribute(enable: boolean): void { + NativeModule._TimePickerAttribute_enableHapticFeedback(this.peer.ptr, enable ? 1 : 0); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkTimePickerAttributes extends ArkCommonMethodAttributes { + useMilitaryTime?: boolean + loop?: boolean + disappearTextStyle?: PickerTextStyle + textStyle?: PickerTextStyle + selectedTextStyle?: PickerTextStyle + dateTimeOptions?: DateTimeOptions + onChange?: ((value: TimePickerResult) => void) + enableHapticFeedback?: boolean +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkTogglePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkTogglePeer.ts new file mode 100644 index 000000000..675fbeb4e --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkTogglePeer.ts @@ -0,0 +1,135 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { ToggleAttribute, ToggleConfiguration, SwitchStyle, ToggleOptions, ToggleInterface, ToggleType } from "./../ArkToggleInterfaces" +import { ContentModifier } from "./../ConflictedDeclarations" +import { ResourceColor, Resource } from "./../ArkUnitsInterfaces" +import { Color } from "./../ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource } from "./../SyntheticDeclarations" +import { CommonConfiguration, Callback } from "./../ArkCommonInterfaces" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkTogglePeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkTogglePeer { + const _peer = new ArkTogglePeer(nodeType, flags, "Toggle") + component?.setPeer(_peer) + return _peer + } + setToggleOptionsAttribute(options: ToggleOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeToggleOptions(options) + NativeModule._ToggleInterface_setToggleOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + onChangeAttribute(callback: ((isOn: boolean) => void)): void { + NativeModule._ToggleAttribute_onChange(this.peer.ptr, registerCallback(callback)); + } + contentModifierAttribute(modifier: ContentModifier): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeCustomObject("ContentModifier", modifier) + NativeModule._ToggleAttribute_contentModifier(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + selectedColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._ToggleAttribute_selectedColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + switchPointColorAttribute(color: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let color_type = RuntimeType.UNDEFINED + color_type = runtimeType(color) + if (((RuntimeType.OBJECT) == (color_type)) && (color instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const color_0 = color as Color + thisSerializer.writeInt32((color_0.value as int32)) + } + else if (((RuntimeType.NUMBER == color_type))) { + thisSerializer.writeInt8(1 as int32) + const color_1 = color as number + thisSerializer.writeNumber(color_1) + } + else if (((RuntimeType.STRING == color_type))) { + thisSerializer.writeInt8(2 as int32) + const color_2 = color as string + thisSerializer.writeString(color_2) + } + else if (isResource(color)) { + thisSerializer.writeInt8(3 as int32) + const color_3 = color as Resource + thisSerializer.writeResource(color_3) + } + NativeModule._ToggleAttribute_switchPointColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + switchStyleAttribute(value: SwitchStyle): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeSwitchStyle(value) + NativeModule._ToggleAttribute_switchStyle(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkToggleAttributes extends ArkCommonMethodAttributes { + onChange?: ((isOn: boolean) => void) + contentModifier?: ContentModifier + selectedColor?: ResourceColor + switchPointColor?: ResourceColor + switchStyle?: SwitchStyle +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkVideoPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkVideoPeer.ts new file mode 100644 index 000000000..3eee43812 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkVideoPeer.ts @@ -0,0 +1,133 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { VideoAttribute, VideoOptions, VideoInterface, PlaybackSpeed } from "./../ArkVideoInterfaces" +import { ImageFit } from "./../ArkEnumsInterfaces" +import { LITERAL_FullscreenBoolean, LITERAL_DurationNumber, LITERAL_TimeNumber, IMPORT_Resource_FROM_api_global_resource, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image } from "./../SyntheticDeclarations" +import { Callback, PixelMap } from "./../ArkCommonInterfaces" +import { ImageAnalyzerConfig, ImageAIOptions } from "./../ArkImageCommonInterfaces" +import { Resource } from "./../ArkUnitsInterfaces" +import { VideoController } from "./../ArkVideoControllerMaterialized" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkVideoPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkVideoPeer { + const _peer = new ArkVideoPeer(nodeType, flags, "Video") + component?.setPeer(_peer) + return _peer + } + setVideoOptionsAttribute(value: VideoOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeVideoOptions(value) + NativeModule._VideoInterface_setVideoOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + mutedAttribute(value: boolean): void { + NativeModule._VideoAttribute_muted(this.peer.ptr, value ? 1 : 0); + } + autoPlayAttribute(value: boolean): void { + NativeModule._VideoAttribute_autoPlay(this.peer.ptr, value ? 1 : 0); + } + controlsAttribute(value: boolean): void { + NativeModule._VideoAttribute_controls(this.peer.ptr, value ? 1 : 0); + } + loopAttribute(value: boolean): void { + NativeModule._VideoAttribute_loop(this.peer.ptr, value ? 1 : 0); + } + objectFitAttribute(value: ImageFit): void { + NativeModule._VideoAttribute_objectFit(this.peer.ptr, (value.value as int32)); + } + onStartAttribute(event: (() => void)): void { + NativeModule._VideoAttribute_onStart(this.peer.ptr, registerCallback(event)); + } + onPauseAttribute(event: (() => void)): void { + NativeModule._VideoAttribute_onPause(this.peer.ptr, registerCallback(event)); + } + onFinishAttribute(event: (() => void)): void { + NativeModule._VideoAttribute_onFinish(this.peer.ptr, registerCallback(event)); + } + onFullscreenChangeAttribute(callback: ((event: LITERAL_FullscreenBoolean) => void)): void { + NativeModule._VideoAttribute_onFullscreenChange(this.peer.ptr, registerCallback(callback)); + } + onPreparedAttribute(callback: ((event: LITERAL_DurationNumber) => void)): void { + NativeModule._VideoAttribute_onPrepared(this.peer.ptr, registerCallback(callback)); + } + onSeekingAttribute(callback: ((event: LITERAL_TimeNumber) => void)): void { + NativeModule._VideoAttribute_onSeeking(this.peer.ptr, registerCallback(callback)); + } + onSeekedAttribute(callback: ((event: LITERAL_TimeNumber) => void)): void { + NativeModule._VideoAttribute_onSeeked(this.peer.ptr, registerCallback(callback)); + } + onUpdateAttribute(callback: ((event: LITERAL_TimeNumber) => void)): void { + NativeModule._VideoAttribute_onUpdate(this.peer.ptr, registerCallback(callback)); + } + onErrorAttribute(event: (() => void)): void { + NativeModule._VideoAttribute_onError(this.peer.ptr, registerCallback(event)); + } + onStopAttribute(event: Callback): void { + NativeModule._VideoAttribute_onStop(this.peer.ptr, registerCallback(event)); + } + enableAnalyzerAttribute(enable: boolean): void { + NativeModule._VideoAttribute_enableAnalyzer(this.peer.ptr, enable ? 1 : 0); + } + analyzerConfigAttribute(config: ImageAnalyzerConfig): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeImageAnalyzerConfig(config) + NativeModule._VideoAttribute_analyzerConfig(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkVideoAttributes extends ArkCommonMethodAttributes { + muted?: boolean + autoPlay?: boolean + controls?: boolean + loop?: boolean + objectFit?: ImageFit + onStart?: (() => void) + onPause?: (() => void) + onFinish?: (() => void) + onFullscreenChange?: ((event: LITERAL_FullscreenBoolean) => void) + onPrepared?: ((event: LITERAL_DurationNumber) => void) + onSeeking?: ((event: LITERAL_TimeNumber) => void) + onSeeked?: ((event: LITERAL_TimeNumber) => void) + onUpdate?: ((event: LITERAL_TimeNumber) => void) + onError?: (() => void) + onStop?: Callback + enableAnalyzer?: boolean + analyzerConfig?: ImageAnalyzerConfig +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkWaterFlowPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkWaterFlowPeer.ts new file mode 100644 index 000000000..f63a34744 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkWaterFlowPeer.ts @@ -0,0 +1,154 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkScrollableCommonMethodPeer, ArkScrollableCommonMethodAttributes } from "./ArkCommonPeer" +import { BarState, Color, EdgeEffect, ScrollSource, FlexDirection } from "./../ArkEnumsInterfaces" +import { EdgeEffectOptions, Optional, FadingEdgeOptions, NestedScrollOptions, ScrollResult, OnScrollCallback, CustomBuilder } from "./../ArkCommonInterfaces" +import { Resource, ConstraintSizeOptions, Length, Dimension, PX, VP, FP, LPX, Percentage, Margin, Padding } from "./../ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, LITERAL_OffsetRemainNumber, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, LITERAL_TopLengthRightLengthBottomLengthLeftLength } from "./../SyntheticDeclarations" +import { ScrollState } from "./../ArkListInterfaces" +import { OnWillScrollCallback } from "./../ConflictedDeclarations" +import { WaterFlowAttribute, WaterFlowOptions, WaterFlowInterface, WaterFlowLayoutMode, GetItemMainSizeByIndex, SectionOptions } from "./../ArkWaterFlowInterfaces" +import { Scroller } from "./../ArkScrollerMaterialized" +import { WaterFlowSections } from "./../ArkWaterFlowSectionsMaterialized" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkWaterFlowPeer extends ArkScrollableCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkWaterFlowPeer { + const _peer = new ArkWaterFlowPeer(nodeType, flags, "WaterFlow") + component?.setPeer(_peer) + return _peer + } + setWaterFlowOptionsAttribute(options?: WaterFlowOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeWaterFlowOptions(options_value) + } + NativeModule._WaterFlowInterface_setWaterFlowOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + columnsTemplateAttribute(value: string): void { + NativeModule._WaterFlowAttribute_columnsTemplate(this.peer.ptr, value); + } + itemConstraintSizeAttribute(value: ConstraintSizeOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeConstraintSizeOptions(value) + NativeModule._WaterFlowAttribute_itemConstraintSize(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + rowsTemplateAttribute(value: string): void { + NativeModule._WaterFlowAttribute_rowsTemplate(this.peer.ptr, value); + } + columnsGapAttribute(value: Length): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeLength(value); + NativeModule._WaterFlowAttribute_columnsGap(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + rowsGapAttribute(value: Length): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeLength(value); + NativeModule._WaterFlowAttribute_rowsGap(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + layoutDirectionAttribute(value: FlexDirection): void { + NativeModule._WaterFlowAttribute_layoutDirection(this.peer.ptr, (value.value as int32)); + } + nestedScrollAttribute(value: NestedScrollOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeNestedScrollOptions(value) + NativeModule._WaterFlowAttribute_nestedScroll(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + enableScrollInteractionAttribute(value: boolean): void { + NativeModule._WaterFlowAttribute_enableScrollInteraction(this.peer.ptr, value ? 1 : 0); + } + frictionAttribute(value: number | Resource): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as Resource + thisSerializer.writeResource(value_1) + } + NativeModule._WaterFlowAttribute_friction(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + cachedCountAttribute(value: number): void { + NativeModule._WaterFlowAttribute_cachedCount(this.peer.ptr, value); + } + onReachStartAttribute(event: (() => void)): void { + NativeModule._WaterFlowAttribute_onReachStart(this.peer.ptr, registerCallback(event)); + } + onReachEndAttribute(event: (() => void)): void { + NativeModule._WaterFlowAttribute_onReachEnd(this.peer.ptr, registerCallback(event)); + } + onScrollFrameBeginAttribute(event: ((offset: number, state: ScrollState) => LITERAL_OffsetRemainNumber)): void { + NativeModule._WaterFlowAttribute_onScrollFrameBegin(this.peer.ptr, registerCallback(event)); + } + onScrollIndexAttribute(event: ((first: number, last: number) => void)): void { + NativeModule._WaterFlowAttribute_onScrollIndex(this.peer.ptr, registerCallback(event)); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkWaterFlowAttributes extends ArkScrollableCommonMethodAttributes { + columnsTemplate?: string + itemConstraintSize?: ConstraintSizeOptions + rowsTemplate?: string + columnsGap?: Length + rowsGap?: Length + layoutDirection?: FlexDirection + nestedScroll?: NestedScrollOptions + enableScrollInteraction?: boolean + friction?: number | Resource + cachedCount?: number + onReachStart?: (() => void) + onReachEnd?: (() => void) + onScrollFrameBegin?: ((offset: number, state: ScrollState) => LITERAL_OffsetRemainNumber) + onScrollIndex?: ((first: number, last: number) => void) +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkWindowScenePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkWindowScenePeer.ts new file mode 100644 index 000000000..00537b88e --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkWindowScenePeer.ts @@ -0,0 +1,60 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { Position } from "./../ArkUnitsInterfaces" +import { WindowSceneAttribute, WindowSceneInterface } from "./../ArkWindowSceneInterfaces" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkWindowScenePeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkWindowScenePeer { + const _peer = new ArkWindowScenePeer(nodeType, flags, "WindowScene") + component?.setPeer(_peer) + return _peer + } + setWindowSceneOptionsAttribute(persistentId: number): void { + NativeModule._WindowSceneInterface_setWindowSceneOptions(this.peer.ptr, persistentId); + } + attractionEffectAttribute(destination: Position, fraction: number): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writePosition(destination) + NativeModule._WindowSceneAttribute_attractionEffect(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length(), fraction); + thisSerializer.release(); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkWindowSceneAttributes extends ArkCommonMethodAttributes { +} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkXcomponentPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkXcomponentPeer.ts new file mode 100644 index 000000000..cec04ca31 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/peers/ArkXcomponentPeer.ts @@ -0,0 +1,134 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32 } from "@koalaui/common" +import { nullptr, KPointer, KInt } from "@koalaui/interop" +import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" +import { createSerializer, Serializer } from "./Serializer" +import { ArkUINodeType } from "./ArkUINodeType" +import { ComponentBase } from "../ComponentBase" +import { NativeModule } from "#components" +import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { XComponentAttribute, XComponentOptions, XComponentInterface, SurfaceRect, SurfaceRotationOptions } from "./../ArkXcomponentInterfaces" +import { XComponentController } from "./../ArkXComponentControllerMaterialized" +import { LITERAL_IdStringTypeStringLibrarynameStringControllerXComponentController, LITERAL_IdStringTypeXComponentTypeLibrarynameStringControllerXComponentController } from "./../SyntheticDeclarations" +import { XComponentType } from "./../ArkEnumsInterfaces" +import { ImageAIOptions } from "./../ArkImageCommonInterfaces" +import { GestureName, GestureComponent } from "./../shared/generated-utils" +import { TypeChecker } from "#components" +import { registerCallback } from "./SerializerBase" +import { wrapCallback } from "@koalaui/interop" +import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" +import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" +export class ArkXComponentPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkXComponentPeer { + const _peer = new ArkXComponentPeer(nodeType, flags, "XComponent") + component?.setPeer(_peer) + return _peer + } + setXComponentOptions0Attribute(value: LITERAL_IdStringTypeStringLibrarynameStringControllerXComponentController): void { + const thisSerializer = SerializerBase.hold(createSerializer) + const value_id = value.id + thisSerializer.writeString(value_id) + const value_type = value.type + thisSerializer.writeString(value_type) + const value_libraryname = value.libraryname + let value_libraryname_type = RuntimeType.UNDEFINED + if (value_libraryname != undefined) { + value_libraryname_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_libraryname_type as int32) + if ((RuntimeType.UNDEFINED) != (value_libraryname_type)) { + const value_libraryname_value = value_libraryname! + thisSerializer.writeString(value_libraryname_value) + } + const value_controller = value.controller + let value_controller_type = RuntimeType.UNDEFINED + if (value_controller != undefined) { + value_controller_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_controller_type as int32) + if ((RuntimeType.UNDEFINED) != (value_controller_type)) { + const value_controller_value = value_controller! + thisSerializer.writeMaterialized(value_controller_value) + } + NativeModule._XComponentInterface_setXComponentOptions0(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + setXComponentOptions1Attribute(value: LITERAL_IdStringTypeXComponentTypeLibrarynameStringControllerXComponentController): void { + const thisSerializer = SerializerBase.hold(createSerializer) + const value_id = value.id + thisSerializer.writeString(value_id) + const value_type = value.type + thisSerializer.writeInt32((value_type.value as int32)) + const value_libraryname = value.libraryname + let value_libraryname_type = RuntimeType.UNDEFINED + if (value_libraryname != undefined) { + value_libraryname_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_libraryname_type as int32) + if ((RuntimeType.UNDEFINED) != (value_libraryname_type)) { + const value_libraryname_value = value_libraryname! + thisSerializer.writeString(value_libraryname_value) + } + const value_controller = value.controller + let value_controller_type = RuntimeType.UNDEFINED + if (value_controller != undefined) { + value_controller_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_controller_type as int32) + if ((RuntimeType.UNDEFINED) != (value_controller_type)) { + const value_controller_value = value_controller! + thisSerializer.writeMaterialized(value_controller_value) + } + NativeModule._XComponentInterface_setXComponentOptions1(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + setXComponentOptions2Attribute(options: XComponentOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeXComponentOptions(options) + NativeModule._XComponentInterface_setXComponentOptions2(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + onLoadAttribute(callback: ((event: Object|undefined) => void)): void { + NativeModule._XComponentAttribute_onLoad(this.peer.ptr, registerCallback(callback)); + } + onDestroyAttribute(event: (() => void)): void { + NativeModule._XComponentAttribute_onDestroy(this.peer.ptr, registerCallback(event)); + } + enableAnalyzerAttribute(enable: boolean): void { + NativeModule._XComponentAttribute_enableAnalyzer(this.peer.ptr, enable ? 1 : 0); + } + enableSecureAttribute(isSecure: boolean): void { + NativeModule._XComponentAttribute_enableSecure(this.peer.ptr, isSecure ? 1 : 0); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkXComponentAttributes extends ArkCommonMethodAttributes { + onLoad?: ((event: Object|undefined) => void) + onDestroy?: (() => void) + enableAnalyzer?: boolean + enableSecure?: boolean +} diff --git a/arkoala-arkts/arkui/src/generated/test_utils.ts b/arkoala-arkts/arkui/src/generated/test_utils.ts new file mode 100644 index 000000000..456963588 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/test_utils.ts @@ -0,0 +1,36 @@ +/* + * Copyright (c) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +export function assertEquals(name: String, expected: E, actual: A) { + if (expected != actual) { + console.log(`TEST ${name} FAIL:\n EXPECTED "${expected}"\n ACTUAL "${actual}"`) + } else { + console.log(`TEST ${name} PASS`) + } +} + +export function assertThrows(name: String, fn: () => void) { + let caught = false + try { + fn() + } catch (e) { + caught = true + } + if (!caught) { + console.log(`TEST ${name} FAIL:\n No exception thrown`) + } else { + console.log(`TEST ${name} PASS`) + } +} -- Gitee From d39096e63986bd41c0b0030ac29f2a3ff4d006a4 Mon Sep 17 00:00:00 2001 From: naumovdmitrii Date: Tue, 22 Oct 2024 18:45:43 +0300 Subject: [PATCH 02/14] generate full sdk Signed-off-by: naumovdmitrii --- arkoala-arkts/arkui/src/generated/ArkBlank.ts | 2 +- .../arkui/src/generated/ArkBlankInterfaces.ts | 2 +- .../generated/ArkBottomTabBarStyleBuilder.ts | 38 +- .../arkui/src/generated/ArkButton.ts | 135 +- .../src/generated/ArkButtonInterfaces.ts | 388 +- .../arkui/src/generated/ArkCalendarPicker.ts | 41 +- .../generated/ArkCalendarPickerInterfaces.ts | 84 +- .../arkui/src/generated/ArkCanvas.ts | 38 +- .../src/generated/ArkCanvasInterfaces.ts | 27 +- .../generated/ArkCanvasPathMaterialized.ts | 95 +- .../ArkCanvasRendererMaterialized.ts | 1114 +- ...ArkCanvasRenderingContext2DMaterialized.ts | 67 +- .../arkui/src/generated/ArkColumn.ts | 43 +- .../src/generated/ArkColumnInterfaces.ts | 76 +- .../arkui/src/generated/ArkCommon.ts | 2086 +- .../src/generated/ArkCommonInterfaces.ts | 4563 +++- .../src/generated/ArkDotIndicatorBuilder.ts | 39 +- .../ArkDrawingRenderingContextMaterialized.ts | 2 +- .../arkui/src/generated/ArkEnumsInterfaces.ts | 10527 ++++++++- .../arkui/src/generated/ArkFormComponent.ts | 108 +- .../generated/ArkFormComponentInterfaces.ts | 230 +- .../src/generated/ArkGestureInterfaces.ts | 796 +- .../ArkGestureModifierMaterialized.ts | 23 +- .../ArkGestureRecognizerMaterialized.ts | 7 + arkoala-arkts/arkui/src/generated/ArkImage.ts | 273 +- .../arkui/src/generated/ArkImageInterfaces.ts | 416 +- .../src/generated/ArkIndicatorBuilder.ts | 3 +- arkoala-arkts/arkui/src/generated/ArkList.ts | 334 +- .../arkui/src/generated/ArkListInterfaces.ts | 672 +- .../arkui/src/generated/ArkNavDestination.ts | 55 +- .../generated/ArkNavDestinationInterfaces.ts | 83 +- .../arkui/src/generated/ArkNavigation.ts | 61 +- .../src/generated/ArkNavigationInterfaces.ts | 21 +- .../arkui/src/generated/ArkScroll.ts | 176 +- .../src/generated/ArkScrollInterfaces.ts | 297 +- .../src/generated/ArkScrollerMaterialized.ts | 184 +- .../ArkSecurityComponentInterfaces.ts | 106 +- .../arkui/src/generated/ArkSelect.ts | 196 +- .../src/generated/ArkSelectInterfaces.ts | 175 +- arkoala-arkts/arkui/src/generated/ArkShape.ts | 145 +- .../arkui/src/generated/ArkShapeInterfaces.ts | 17 + .../arkui/src/generated/ArkSidebar.ts | 129 +- .../src/generated/ArkSidebarInterfaces.ts | 224 +- .../src/generated/ArkSliderInterfaces.ts | 522 +- .../arkui/src/generated/ArkSpanInterfaces.ts | 30 +- .../generated/ArkStyledStringInterfaces.ts | 282 +- .../generated/ArkStyledStringMaterialized.ts | 93 +- .../src/generated/ArkSubTabBarStyleBuilder.ts | 9 +- .../arkui/src/generated/ArkSwiper.ts | 249 +- .../src/generated/ArkSwiperInterfaces.ts | 210 +- .../arkui/src/generated/ArkSymbolglyph.ts | 70 +- .../src/generated/ArkSymbolglyphInterfaces.ts | 186 +- .../arkui/src/generated/ArkTabContent.ts | 33 +- .../src/generated/ArkTabContentInterfaces.ts | 153 +- arkoala-arkts/arkui/src/generated/ArkTabs.ts | 239 +- .../arkui/src/generated/ArkTabsInterfaces.ts | 347 +- arkoala-arkts/arkui/src/generated/ArkText.ts | 403 +- .../ArkTextControllerMaterialized.ts | 8 + .../arkui/src/generated/ArkTextInput.ts | 583 +- .../src/generated/ArkTextInputInterfaces.ts | 600 +- .../arkui/src/generated/ArkTextInterfaces.ts | 230 +- .../arkui/src/generated/ArkTextPicker.ts | 30 +- .../src/generated/ArkTextPickerInterfaces.ts | 6 +- .../ArkUIExtensionProxyMaterialized.ts | 16 +- .../src/generated/ArkUiExtensionComponent.ts | 2 +- .../ArkUiExtensionComponentInterfaces.ts | 29 +- .../arkui/src/generated/ArkUnitsInterfaces.ts | 168 +- arkoala-arkts/arkui/src/generated/ArkWeb.ts | 1099 +- .../arkui/src/generated/ArkWebInterfaces.ts | 1981 +- .../ArkWebResourceResponseMaterialized.ts | 109 +- .../src/generated/ConflictedDeclarations.ts | 6 + .../src/generated/SyntheticDeclarations.ts | 481 +- .../arkui/src/generated/arkts/NativeModule.ts | 1918 +- .../arkui/src/generated/arkts/type_check.ts | 2017 +- arkoala-arkts/arkui/src/generated/index.ts | 268 +- .../arkui/src/generated/peer_events.ts | 2600 ++- .../arkui/src/generated/peers/ArkBlankPeer.ts | 3 +- .../src/generated/peers/ArkButtonPeer.ts | 150 +- .../generated/peers/ArkCalendarPickerPeer.ts | 45 +- .../src/generated/peers/ArkCanvasPeer.ts | 28 +- .../src/generated/peers/ArkColumnPeer.ts | 46 +- .../src/generated/peers/ArkCommonPeer.ts | 3396 ++- .../peers/ArkEmbeddedComponentPeer.ts | 1 + .../generated/peers/ArkFormComponentPeer.ts | 69 +- .../generated/peers/ArkGridContainerPeer.ts | 1 + .../arkui/src/generated/peers/ArkImagePeer.ts | 298 +- .../arkui/src/generated/peers/ArkListPeer.ts | 237 +- .../generated/peers/ArkNavDestinationPeer.ts | 45 +- .../src/generated/peers/ArkNavigationPeer.ts | 48 +- .../arkui/src/generated/peers/ArkRectPeer.ts | 1 + .../src/generated/peers/ArkScrollPeer.ts | 149 +- .../src/generated/peers/ArkSelectPeer.ts | 327 +- .../arkui/src/generated/peers/ArkShapePeer.ts | 302 +- .../src/generated/peers/ArkSidebarPeer.ts | 100 +- .../src/generated/peers/ArkSwiperPeer.ts | 257 +- .../src/generated/peers/ArkSymbolglyphPeer.ts | 102 +- .../src/generated/peers/ArkTabContentPeer.ts | 94 +- .../arkui/src/generated/peers/ArkTabsPeer.ts | 229 +- .../src/generated/peers/ArkTextInputPeer.ts | 666 +- .../arkui/src/generated/peers/ArkTextPeer.ts | 446 +- .../src/generated/peers/ArkTextPickerPeer.ts | 30 +- .../src/generated/peers/ArkUINodeType.ts | 84 +- .../peers/ArkUiExtensionComponentPeer.ts | 3 +- .../arkui/src/generated/peers/ArkWebPeer.ts | 562 +- .../arkui/src/generated/peers/Serializer.ts | 19340 ++++++++++++++-- arkoala-arkts/arkui/src/generated/ts/index.ts | 2 +- .../arkui/src/generated/ts/type_check.ts | 7458 +++++- 107 files changed, 68634 insertions(+), 4960 deletions(-) diff --git a/arkoala-arkts/arkui/src/generated/ArkBlank.ts b/arkoala-arkts/arkui/src/generated/ArkBlank.ts index b916acb12..b18b1db57 100644 --- a/arkoala-arkts/arkui/src/generated/ArkBlank.ts +++ b/arkoala-arkts/arkui/src/generated/ArkBlank.ts @@ -25,7 +25,7 @@ import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkBlankPeer } from "./peers/ArkBlankPeer" import { ResourceColor, Resource } from "./ArkUnitsInterfaces" import { Color } from "./ArkEnumsInterfaces" -import { IMPORT_Resource_FROM_resource_resource } from "./SyntheticDeclarations" +import { IMPORT_Resource_FROM_api_global_resource } from "./SyntheticDeclarations" import { BlankAttribute, BlankInterface } from "./ArkBlankInterfaces" /** @memo:stable */ export class ArkBlankComponent extends ArkCommonMethodComponent { diff --git a/arkoala-arkts/arkui/src/generated/ArkBlankInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkBlankInterfaces.ts index 6e38c54fd..cb0d9256e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkBlankInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkBlankInterfaces.ts @@ -1,6 +1,6 @@ import { ResourceColor, Resource } from "./ArkUnitsInterfaces" import { Color } from "./ArkEnumsInterfaces" -import { IMPORT_Resource_FROM_resource_resource } from "./SyntheticDeclarations" +import { IMPORT_Resource_FROM_api_global_resource } from "./SyntheticDeclarations" import { KInt } from "@koalaui/interop" export interface BlankAttribute { color(value: ResourceColor): BlankAttribute; diff --git a/arkoala-arkts/arkui/src/generated/ArkBottomTabBarStyleBuilder.ts b/arkoala-arkts/arkui/src/generated/ArkBottomTabBarStyleBuilder.ts index a03689aea..d77e207d4 100644 --- a/arkoala-arkts/arkui/src/generated/ArkBottomTabBarStyleBuilder.ts +++ b/arkoala-arkts/arkui/src/generated/ArkBottomTabBarStyleBuilder.ts @@ -1,14 +1,18 @@ -import { ResourceStr, Resource, Length, Dimension, PX, VP, FP, LPX, Percentage, LocalizedPadding } from "./ArkUnitsInterfaces" -import { IMPORT_Resource_FROM_resource_resource, LITERAL_TopLengthRightLengthBottomLengthLeftLength, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage } from "./SyntheticDeclarations" -import { TabBarSymbol } from "./ArkTabContentInterfaces" +import { ResourceStr, Resource, Padding, Length, Dimension, PX, VP, FP, LPX, Percentage, LocalizedPadding } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, LITERAL_TopLengthRightLengthBottomLengthLeftLength, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage } from "./SyntheticDeclarations" +import { TabBarSymbol, LayoutMode, TabBarIconStyle } from "./ArkTabContentInterfaces" import { LabelStyle } from "./ArkButtonInterfaces" -import { Padding } from "./ArkCommonInterfaces" +import { VerticalAlign } from "./ArkEnumsInterfaces" export class BottomTabBarStyle { _icon?: ResourceStr | TabBarSymbol _text?: ResourceStr - _id?: string _labelStyle?: LabelStyle _padding?: Padding | Dimension | LocalizedPadding + _layoutMode?: LayoutMode + _verticalAlign?: VerticalAlign + _symmetricExtensible?: boolean + _id?: string + _iconStyle?: TabBarIconStyle constructor(icon: ResourceStr | TabBarSymbol, text: ResourceStr) { this._icon = icon this._text = text @@ -16,10 +20,6 @@ export class BottomTabBarStyle { static of(icon: ResourceStr | TabBarSymbol, text: ResourceStr): BottomTabBarStyle { return new BottomTabBarStyle(icon, text) } - id(value: string): this { - this._id = value - return this - } labelStyle(value: LabelStyle): this { this._labelStyle = value return this @@ -28,4 +28,24 @@ export class BottomTabBarStyle { this._padding = value return this } + layoutMode(value: LayoutMode): this { + this._layoutMode = value + return this + } + verticalAlign(value: VerticalAlign): this { + this._verticalAlign = value + return this + } + symmetricExtensible(value: boolean): this { + this._symmetricExtensible = value + return this + } + id(value: string): this { + this._id = value + return this + } + iconStyle(style: TabBarIconStyle): this { + this._iconStyle = style + return this + } } \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkButton.ts b/arkoala-arkts/arkui/src/generated/ArkButton.ts index 96946704d..52084123d 100644 --- a/arkoala-arkts/arkui/src/generated/ArkButton.ts +++ b/arkoala-arkts/arkui/src/generated/ArkButton.ts @@ -23,18 +23,45 @@ import { ComponentBase } from "./ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkButtonPeer } from "./peers/ArkButtonPeer" -import { ButtonType, ButtonAttribute, LabelStyle, ButtonInterface } from "./ArkButtonInterfaces" -import { TextOverflow, TextHeightAdaptivePolicy } from "./ArkEnumsInterfaces" -import { ResourceStr, Resource, Font } from "./ArkUnitsInterfaces" -import { IMPORT_Resource_FROM_resource_resource } from "./SyntheticDeclarations" +import { ButtonType, ButtonAttribute, ButtonStyleMode, ControlSize, ButtonRole, ButtonConfiguration, LabelStyle, ButtonOptions, ButtonInterface, ButtonTriggerClickCallback } from "./ArkButtonInterfaces" +import { ResourceColor, Resource, Length, ResourceStr, Font } from "./ArkUnitsInterfaces" +import { Color, FontWeight, FontStyle, TextOverflow, TextHeightAdaptivePolicy } from "./ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource } from "./SyntheticDeclarations" +import { ContentModifier } from "./ConflictedDeclarations" +import { CommonConfiguration } from "./ArkCommonInterfaces" /** @memo:stable */ export class ArkButtonComponent extends ArkCommonMethodComponent { protected peer?: ArkButtonPeer /** @memo */ - setButtonOptions(): this { + setButtonOptions(label?: ResourceStr | ButtonOptions, options?: ButtonOptions): this { if (this.checkPriority("setButtonOptions")) { - this.peer?.setButtonOptionsAttribute() - return this + const label_type = runtimeType(label) + const options_type = runtimeType(options) + if ((((RuntimeType.STRING == label_type)) || ((RuntimeType.OBJECT == label_type))) && (((RuntimeType.OBJECT == options_type)) || ((RuntimeType.UNDEFINED == options_type)))) { + if ((label) == (undefined)) { + throw new Error("Arg 'label' is null"); + } + const label_casted = label as (ResourceStr) + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (ButtonOptions) + this.peer?.setButtonOptions2Attribute(label_casted, options_casted) + return this + } + if ((TypeChecker.isButtonOptions(label, false, false, false, false, false)) && (((RuntimeType.UNDEFINED == options_type)))) { + if ((label) == (undefined)) { + throw new Error("Arg 'label' is null"); + } + const label_casted = label as (ButtonOptions) + this.peer?.setButtonOptions1Attribute(label_casted) + return this + } + if ((((RuntimeType.UNDEFINED == label_type))) && (((RuntimeType.UNDEFINED == options_type)))) { + this.peer?.setButtonOptions0Attribute() + return this + } + throw new Error("Can not select appropriate overload") } return this } @@ -48,6 +75,96 @@ export class ArkButtonComponent extends ArkCommonMethodComponent { return this } /** @memo */ + stateEffect(value: boolean): this { + if (this.checkPriority("stateEffect")) { + const value_casted = value as (boolean) + this.peer?.stateEffectAttribute(value_casted) + return this + } + return this + } + /** @memo */ + buttonStyle(value: ButtonStyleMode): this { + if (this.checkPriority("buttonStyle")) { + const value_casted = value as (ButtonStyleMode) + this.peer?.buttonStyleAttribute(value_casted) + return this + } + return this + } + /** @memo */ + controlSize(value: ControlSize): this { + if (this.checkPriority("controlSize")) { + const value_casted = value as (ControlSize) + this.peer?.controlSizeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + role(value: ButtonRole): this { + if (this.checkPriority("role")) { + const value_casted = value as (ButtonRole) + this.peer?.roleAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fontColor(value: ResourceColor): this { + if (this.checkPriority("fontColor")) { + const value_casted = value as (ResourceColor) + this.peer?.fontColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fontSize(value: Length): this { + if (this.checkPriority("fontSize")) { + const value_casted = value as (Length) + this.peer?.fontSizeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fontWeight(value: number | FontWeight | string): this { + if (this.checkPriority("fontWeight")) { + const value_casted = value as (number | FontWeight | string) + this.peer?.fontWeightAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fontStyle(value: FontStyle): this { + if (this.checkPriority("fontStyle")) { + const value_casted = value as (FontStyle) + this.peer?.fontStyleAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fontFamily(value: string | Resource): this { + if (this.checkPriority("fontFamily")) { + const value_casted = value as (string | Resource) + this.peer?.fontFamilyAttribute(value_casted) + return this + } + return this + } + /** @memo */ + contentModifier(modifier: ContentModifier): this { + if (this.checkPriority("contentModifier")) { + const modifier_casted = modifier as (ContentModifier) + this.peer?.contentModifierAttribute(modifier_casted) + return this + } + return this + } + /** @memo */ labelStyle(value: LabelStyle): this { if (this.checkPriority("labelStyle")) { const value_casted = value as (LabelStyle) @@ -68,13 +185,13 @@ export function ArkButton( style: ((attributes: ArkButtonComponent) => void) | undefined, /** @memo */ content_: (() => void) | undefined, - + label?: ButtonOptions | ResourceStr, options?: ButtonOptions ) { const receiver = remember(() => { return new ArkButtonComponent() }) NodeAttach((): ArkButtonPeer => ArkButtonPeer.create(ArkUINodeType.Button, receiver), (_: ArkButtonPeer) => { - receiver.setButtonOptions() + receiver.setButtonOptions(label,options) style?.(receiver) content_?.() receiver.applyAttributesFinish() diff --git a/arkoala-arkts/arkui/src/generated/ArkButtonInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkButtonInterfaces.ts index 493ec8f76..e4df4f18d 100644 --- a/arkoala-arkts/arkui/src/generated/ArkButtonInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkButtonInterfaces.ts @@ -1,9 +1,11 @@ -import { TextOverflow, TextHeightAdaptivePolicy } from "./ArkEnumsInterfaces" -import { ResourceStr, Resource, Font } from "./ArkUnitsInterfaces" -import { IMPORT_Resource_FROM_resource_resource } from "./SyntheticDeclarations" +import { ResourceColor, Resource, Length, ResourceStr, Font } from "./ArkUnitsInterfaces" +import { Color, FontWeight, FontStyle, TextOverflow, TextHeightAdaptivePolicy } from "./ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource } from "./SyntheticDeclarations" +import { ContentModifier } from "./ConflictedDeclarations" +import { CommonConfiguration } from "./ArkCommonInterfaces" import { KInt } from "@koalaui/interop" /* - * Copyright (c) 2024 Huawei Device Co., Ltd. + * Copyright (c) 2021-2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -16,9 +18,148 @@ import { KInt } from "@koalaui/interop" * See the License for the specific language governing permissions and * limitations under the License. */ +/** + * @file + * @kit ArkUI + */ +/** + * Provides a button component. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Provides a button component. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Provides a button component. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Provides a button component. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ export class ButtonType { + /** + * Capsule button (rounded corners default to half the height). + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Capsule button (rounded corners default to half the height). + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Capsule button (rounded corners default to half the height). + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Capsule button (rounded corners default to half the height). + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ static readonly Capsule: ButtonType = new ButtonType(0) + /** + * Round buttons. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Round buttons. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Round buttons. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Round buttons. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ static readonly Circle: ButtonType = new ButtonType(1) + /** + * Common button (no rounded corners by default). + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Common button (no rounded corners by default). + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Common button (no rounded corners by default). + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Common button (no rounded corners by default). + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Normal: ButtonType = new ButtonType(2) + /** + * Rounded rectangle button. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 13 + */ + static readonly ROUNDED_RECTANGLE: ButtonType = new ButtonType(3) constructor(value: KInt) { this.value = value } @@ -30,15 +171,247 @@ export class ButtonType { if ((arg0) == (ButtonType.Circle.value)) { return ButtonType.Circle } + if ((arg0) == (ButtonType.Normal.value)) { + return ButtonType.Normal + } + if ((arg0) == (ButtonType.ROUNDED_RECTANGLE.value)) { + return ButtonType.ROUNDED_RECTANGLE + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Enum for button style type. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * Enum for button style type. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ +export class ButtonStyleMode { + /** + * Normal button (with normal background color). + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * Normal button (with normal background color). + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly NORMAL: ButtonStyleMode = new ButtonStyleMode(0) + /** + * Emphasized button (with emphasized background color). + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * Emphasized button (with emphasized background color). + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly EMPHASIZED: ButtonStyleMode = new ButtonStyleMode(1) + /** + * Textual button (with none background color). + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * Textual button (with none background color). + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly TEXTUAL: ButtonStyleMode = new ButtonStyleMode(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): ButtonStyleMode { + if ((arg0) == (ButtonStyleMode.NORMAL.value)) { + return ButtonStyleMode.NORMAL + } + if ((arg0) == (ButtonStyleMode.EMPHASIZED.value)) { + return ButtonStyleMode.EMPHASIZED + } + if ((arg0) == (ButtonStyleMode.TEXTUAL.value)) { + return ButtonStyleMode.TEXTUAL + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Enum for Control Size. + * + * @enum { string } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * Enum for Control Size. + * + * @enum { string } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ +export class ControlSize { + /** + * The component size is small. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * The component size is small. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly SMALL: ControlSize = new ControlSize("small",0) + /** + * The component size is normal. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * The component size is normal. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly NORMAL: ControlSize = new ControlSize("normal",1) + constructor(value: string, ordinal: KInt) { + this.value = value + this.ordinal = ordinal + } + public readonly value: string + public readonly ordinal: KInt + public static of(arg0: string): ControlSize { + if ((arg0) == (ControlSize.SMALL.value)) { + return ControlSize.SMALL + } + if ((arg0) == (ControlSize.NORMAL.value)) { + return ControlSize.NORMAL + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Enum for button role. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ +export class ButtonRole { + /** + * Normal button. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly NORMAL: ButtonRole = new ButtonRole(0) + /** + * Error button. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly ERROR: ButtonRole = new ButtonRole(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): ButtonRole { + if ((arg0) == (ButtonRole.NORMAL.value)) { + return ButtonRole.NORMAL + } + if ((arg0) == (ButtonRole.ERROR.value)) { + return ButtonRole.ERROR + } throw new Error(`Enum member '${arg0}' not found`) } } export interface ButtonAttribute { type(value: ButtonType): ButtonAttribute; + stateEffect(value: boolean): ButtonAttribute; + buttonStyle(value: ButtonStyleMode): ButtonAttribute; + controlSize(value: ControlSize): ButtonAttribute; + role(value: ButtonRole): ButtonAttribute; + fontColor(value: ResourceColor): ButtonAttribute; + fontSize(value: Length): ButtonAttribute; + fontWeight(value: number | FontWeight | string): ButtonAttribute; + fontStyle(value: FontStyle): ButtonAttribute; + fontFamily(value: string | Resource): ButtonAttribute; + contentModifier(modifier: ContentModifier): ButtonAttribute; labelStyle(value: LabelStyle): ButtonAttribute; } export interface ButtonInterface { } +export interface ButtonConfiguration { + enabled: boolean + contentModifier: ContentModifier + label: string + pressed: boolean + triggerClick: ButtonTriggerClickCallback +} +export declare type ButtonTriggerClickCallback = ((xPos: number, yPos: number) => void) export interface LabelStyle { overflow?: TextOverflow maxLines?: number @@ -46,4 +419,11 @@ export interface LabelStyle { maxFontSize?: number | ResourceStr heightAdaptivePolicy?: TextHeightAdaptivePolicy font?: Font +} +export interface ButtonOptions { + type?: ButtonType + stateEffect?: boolean + buttonStyle?: ButtonStyleMode + controlSize?: ControlSize + role?: ButtonRole } \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkCalendarPicker.ts b/arkoala-arkts/arkui/src/generated/ArkCalendarPicker.ts index 6659def82..4808f7c0f 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCalendarPicker.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCalendarPicker.ts @@ -23,16 +23,22 @@ import { ComponentBase } from "./ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkCalendarPickerPeer } from "./peers/ArkCalendarPickerPeer" -import { CalendarAlign, CalendarPickerAttribute, CalendarPickerInterface } from "./ArkCalendarPickerInterfaces" -import { Offset, Length, Resource, AltOffset } from "./ArkUnitsInterfaces" -import { IMPORT_Resource_FROM_resource_resource, LITERAL_DxLengthDyLength, LITERAL_Dx1LengthDy2Length } from "./SyntheticDeclarations" +import { UseEventsProperties } from "./use_properties" +import { CalendarAlign, CalendarPickerAttribute, CalendarOptions, CalendarPickerInterface } from "./ArkCalendarPickerInterfaces" +import { Offset, Length, Resource } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, LITERAL_DxLengthDyLength } from "./SyntheticDeclarations" +import { PickerTextStyle, Callback } from "./ArkCommonInterfaces" /** @memo:stable */ export class ArkCalendarPickerComponent extends ArkCommonMethodComponent { protected peer?: ArkCalendarPickerPeer /** @memo */ - setCalendarPickerOptions(): this { + setCalendarPickerOptions(options?: CalendarOptions): this { if (this.checkPriority("setCalendarPickerOptions")) { - this.peer?.setCalendarPickerOptionsAttribute() + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (CalendarOptions) + this.peer?.setCalendarPickerOptionsAttribute(options_casted) return this } return this @@ -51,14 +57,19 @@ export class ArkCalendarPickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ - altEdgeAlign(alignType: CalendarAlign, offset?: AltOffset): this { - if (this.checkPriority("altEdgeAlign")) { - const alignType_casted = alignType as (CalendarAlign) - if ((offset) == (undefined)) { - throw new Error("Arg 'offset' is null"); - } - const offset_casted = offset as (AltOffset) - this.peer?.altEdgeAlignAttribute(alignType_casted, offset_casted) + textStyle(value: PickerTextStyle): this { + if (this.checkPriority("textStyle")) { + const value_casted = value as (PickerTextStyle) + this.peer?.textStyleAttribute(value_casted) + return this + } + return this + } + /** @memo */ + onChange(callback: Callback): this { + if (this.checkPriority("onChange")) { + const callback_casted = callback as (Callback) + this.peer?.onChangeAttribute(callback_casted) return this } return this @@ -75,13 +86,13 @@ export function ArkCalendarPicker( style: ((attributes: ArkCalendarPickerComponent) => void) | undefined, /** @memo */ content_: (() => void) | undefined, - + options?: CalendarOptions ) { const receiver = remember(() => { return new ArkCalendarPickerComponent() }) NodeAttach((): ArkCalendarPickerPeer => ArkCalendarPickerPeer.create(ArkUINodeType.CalendarPicker, receiver), (_: ArkCalendarPickerPeer) => { - receiver.setCalendarPickerOptions() + receiver.setCalendarPickerOptions(options) style?.(receiver) content_?.() receiver.applyAttributesFinish() diff --git a/arkoala-arkts/arkui/src/generated/ArkCalendarPickerInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkCalendarPickerInterfaces.ts index 2155c6bda..96431b132 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCalendarPickerInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCalendarPickerInterfaces.ts @@ -1,9 +1,82 @@ -import { Offset, Length, Resource, AltOffset } from "./ArkUnitsInterfaces" -import { IMPORT_Resource_FROM_resource_resource, LITERAL_DxLengthDyLength, LITERAL_Dx1LengthDy2Length } from "./SyntheticDeclarations" +import { Offset, Length, Resource } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, LITERAL_DxLengthDyLength } from "./SyntheticDeclarations" +import { PickerTextStyle, Callback } from "./ArkCommonInterfaces" import { KInt } from "@koalaui/interop" +/* + * Copyright (c) 2023 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +/** + * @file + * @kit ArkUI + */ +/** + * The type of alignment between entry and calendar. + * @enum {number} + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * The type of alignment between entry and calendar. + * @enum {number} + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ export class CalendarAlign { + /** + * The value of calendar align type start. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * The value of calendar align type start. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ static readonly START: CalendarAlign = new CalendarAlign(0) + /** + * The value of calendar align type center. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * The value of calendar align type center. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ static readonly CENTER: CalendarAlign = new CalendarAlign(1) + /** + * The value of calendar align type end. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * The value of calendar align type end. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ static readonly END: CalendarAlign = new CalendarAlign(2) constructor(value: KInt) { this.value = value @@ -24,7 +97,12 @@ export class CalendarAlign { } export interface CalendarPickerAttribute { edgeAlign(alignType: CalendarAlign,offset: Offset): CalendarPickerAttribute; - altEdgeAlign(alignType: CalendarAlign,offset: AltOffset): CalendarPickerAttribute; + textStyle(value: PickerTextStyle): CalendarPickerAttribute; + onChange(callback: Callback): CalendarPickerAttribute; } export interface CalendarPickerInterface { +} +export interface CalendarOptions { + hintRadius?: number | Resource + selected?: Date } \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkCanvas.ts b/arkoala-arkts/arkui/src/generated/ArkCanvas.ts index 9ee384838..68aa21942 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCanvas.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCanvas.ts @@ -24,23 +24,41 @@ import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkCanvasPeer } from "./peers/ArkCanvasPeer" import { UseEventsProperties } from "./use_properties" -import { CanvasAttribute, CanvasInterface, CanvasFillRule, ImageData, RenderingContextSettings, Size, DrawingCanvas } from "./ArkCanvasInterfaces" +import { CanvasAttribute, CanvasInterface, CanvasFillRule, ImageData, ImageSmoothingQuality, CanvasLineCap, CanvasLineJoin, TextMetrics, CanvasDirection, CanvasTextAlign, CanvasTextBaseline, RenderingContextSettings, Size, DrawingCanvas } from "./ArkCanvasInterfaces" import { CanvasRenderingContext2D } from "./ArkCanvasRenderingContext2DMaterialized" import { DrawingRenderingContext } from "./ArkDrawingRenderingContextMaterialized" -import { LITERAL_Evenodd, LITERAL_Nonzero, IMPORT_LengthMetricsUnit_FROM_api_arkui_Graphics } from "./SyntheticDeclarations" +import { ImageAIOptions } from "./ArkImageCommonInterfaces" +import { LITERAL_Evenodd, LITERAL_Nonzero, IMPORT_LengthMetricsUnit_FROM_api_arkui_Graphics, LITERAL_High, LITERAL_Low, LITERAL_Medium, LITERAL_Butt, LITERAL_Round, LITERAL_Square, LITERAL_Bevel, LITERAL_Miter, LITERAL_Inherit, LITERAL_Ltr, LITERAL_Rtl, LITERAL_Center, LITERAL_End, LITERAL_Left, LITERAL_Right, LITERAL_Start, LITERAL_Alphabetic, LITERAL_Bottom, LITERAL_Hanging, LITERAL_Ideographic, LITERAL_Middle, LITERAL_Top, IMPORT_default_Canvas_FROM_api_ohos_graphics_drawing } from "./SyntheticDeclarations" import { LengthMetricsUnit } from "./ArkUnitsInterfaces" /** @memo:stable */ export class ArkCanvasComponent extends ArkCommonMethodComponent { protected peer?: ArkCanvasPeer /** @memo */ - setCanvasOptions(context?: CanvasRenderingContext2D | DrawingRenderingContext): this { + setCanvasOptions(context?: CanvasRenderingContext2D | DrawingRenderingContext | CanvasRenderingContext2D | DrawingRenderingContext, imageAIOptions?: ImageAIOptions): this { if (this.checkPriority("setCanvasOptions")) { - if ((context) == (undefined)) { - throw new Error("Arg 'context' is null"); + const context_type = runtimeType(context) + const imageAIOptions_type = runtimeType(imageAIOptions) + if ((((RuntimeType.OBJECT == context_type)) || ((RuntimeType.OBJECT == context_type))) && (((RuntimeType.OBJECT == imageAIOptions_type)))) { + if ((context) == (undefined)) { + throw new Error("Arg 'context' is null"); + } + const context_casted = context as (CanvasRenderingContext2D | DrawingRenderingContext) + if ((imageAIOptions) == (undefined)) { + throw new Error("Arg 'imageAIOptions' is null"); + } + const imageAIOptions_casted = imageAIOptions as (ImageAIOptions) + this.peer?.setCanvasOptions1Attribute(context_casted, imageAIOptions_casted) + return this } - const context_casted = context as (CanvasRenderingContext2D | DrawingRenderingContext) - this.peer?.setCanvasOptionsAttribute(context_casted) - return this + if ((((RuntimeType.OBJECT == context_type)) || ((RuntimeType.OBJECT == context_type)) || ((RuntimeType.UNDEFINED == context_type))) && (((RuntimeType.UNDEFINED == imageAIOptions_type)))) { + if ((context) == (undefined)) { + throw new Error("Arg 'context' is null"); + } + const context_casted = context as (CanvasRenderingContext2D | DrawingRenderingContext) + this.peer?.setCanvasOptions0Attribute(context_casted) + return this + } + throw new Error("Can not select appropriate overload") } return this } @@ -74,13 +92,13 @@ export function ArkCanvas( style: ((attributes: ArkCanvasComponent) => void) | undefined, /** @memo */ content_: (() => void) | undefined, - context?: CanvasRenderingContext2D | DrawingRenderingContext + context?: CanvasRenderingContext2D | DrawingRenderingContext | CanvasRenderingContext2D | DrawingRenderingContext, imageAIOptions?: ImageAIOptions ) { const receiver = remember(() => { return new ArkCanvasComponent() }) NodeAttach((): ArkCanvasPeer => ArkCanvasPeer.create(ArkUINodeType.Canvas, receiver), (_: ArkCanvasPeer) => { - receiver.setCanvasOptions(context) + receiver.setCanvasOptions(context,imageAIOptions) style?.(receiver) content_?.() receiver.applyAttributesFinish() diff --git a/arkoala-arkts/arkui/src/generated/ArkCanvasInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkCanvasInterfaces.ts index e84b78f51..5c4253f97 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCanvasInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCanvasInterfaces.ts @@ -1,6 +1,7 @@ import { CanvasRenderingContext2D } from "./ArkCanvasRenderingContext2DMaterialized" import { DrawingRenderingContext } from "./ArkDrawingRenderingContextMaterialized" -import { LITERAL_Evenodd, LITERAL_Nonzero, IMPORT_LengthMetricsUnit_FROM_api_arkui_Graphics } from "./SyntheticDeclarations" +import { ImageAIOptions } from "./ArkImageCommonInterfaces" +import { LITERAL_Evenodd, LITERAL_Nonzero, IMPORT_LengthMetricsUnit_FROM_api_arkui_Graphics, LITERAL_High, LITERAL_Low, LITERAL_Medium, LITERAL_Butt, LITERAL_Round, LITERAL_Square, LITERAL_Bevel, LITERAL_Miter, LITERAL_Inherit, LITERAL_Ltr, LITERAL_Rtl, LITERAL_Center, LITERAL_End, LITERAL_Left, LITERAL_Right, LITERAL_Start, LITERAL_Alphabetic, LITERAL_Bottom, LITERAL_Hanging, LITERAL_Ideographic, LITERAL_Middle, LITERAL_Top, IMPORT_default_Canvas_FROM_api_ohos_graphics_drawing } from "./SyntheticDeclarations" import { LengthMetricsUnit } from "./ArkUnitsInterfaces" import { KInt } from "@koalaui/interop" export interface CanvasAttribute { @@ -15,6 +16,27 @@ export declare class ImageData { height: number; width: number; } +export declare type ImageSmoothingQuality = LITERAL_High | LITERAL_Low | LITERAL_Medium +export declare type CanvasLineCap = LITERAL_Butt | LITERAL_Round | LITERAL_Square +export declare type CanvasLineJoin = LITERAL_Bevel | LITERAL_Miter | LITERAL_Round +export interface TextMetrics { + actualBoundingBoxAscent: number + actualBoundingBoxDescent: number + actualBoundingBoxLeft: number + actualBoundingBoxRight: number + alphabeticBaseline: number + emHeightAscent: number + emHeightDescent: number + fontBoundingBoxAscent: number + fontBoundingBoxDescent: number + hangingBaseline: number + ideographicBaseline: number + width: number + height: number +} +export declare type CanvasDirection = LITERAL_Inherit | LITERAL_Ltr | LITERAL_Rtl +export declare type CanvasTextAlign = LITERAL_Center | LITERAL_End | LITERAL_Left | LITERAL_Right | LITERAL_Start +export declare type CanvasTextBaseline = LITERAL_Alphabetic | LITERAL_Bottom | LITERAL_Hanging | LITERAL_Ideographic | LITERAL_Middle | LITERAL_Top export declare class RenderingContextSettings { antialias?: boolean; } @@ -22,5 +44,4 @@ export interface Size { width: number height: number } -export interface DrawingCanvas { -} \ No newline at end of file +export declare type DrawingCanvas = IMPORT_default_Canvas_FROM_api_ohos_graphics_drawing \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkCanvasPathMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkCanvasPathMaterialized.ts index 63006a262..8ba5d6ec5 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCanvasPathMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCanvasPathMaterialized.ts @@ -56,13 +56,6 @@ export class CanvasPath { static getFinalizer(): KPointer { return NativeModule._CanvasPath_getFinalizer() } - rect(x: number, y: number, w: number, h: number): void { - const x_casted = x as (number) - const y_casted = y as (number) - const w_casted = w as (number) - const h_casted = h as (number) - this.rect_serialize(x_casted, y_casted, w_casted, h_casted) - } arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void { const x_casted = x as (number) const y_casted = y as (number) @@ -75,11 +68,63 @@ export class CanvasPath { const counterclockwise_casted = counterclockwise as (boolean) this.arc_serialize(x_casted, y_casted, radius_casted, startAngle_casted, endAngle_casted, counterclockwise_casted) } + arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void { + const x1_casted = x1 as (number) + const y1_casted = y1 as (number) + const x2_casted = x2 as (number) + const y2_casted = y2 as (number) + const radius_casted = radius as (number) + this.arcTo_serialize(x1_casted, y1_casted, x2_casted, y2_casted, radius_casted) + } + bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void { + const cp1x_casted = cp1x as (number) + const cp1y_casted = cp1y as (number) + const cp2x_casted = cp2x as (number) + const cp2y_casted = cp2y as (number) + const x_casted = x as (number) + const y_casted = y as (number) + this.bezierCurveTo_serialize(cp1x_casted, cp1y_casted, cp2x_casted, cp2y_casted, x_casted, y_casted) + } closePath(): void { this.closePath_serialize() } - private rect_serialize(x: number, y: number, w: number, h: number): void { - NativeModule._CanvasPath_rect(this.peer!.ptr, x, y, w, h); + ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void { + const x_casted = x as (number) + const y_casted = y as (number) + const radiusX_casted = radiusX as (number) + const radiusY_casted = radiusY as (number) + const rotation_casted = rotation as (number) + const startAngle_casted = startAngle as (number) + const endAngle_casted = endAngle as (number) + if ((counterclockwise) == (undefined)) { + throw new Error("Arg 'counterclockwise' is null"); + } + const counterclockwise_casted = counterclockwise as (boolean) + this.ellipse_serialize(x_casted, y_casted, radiusX_casted, radiusY_casted, rotation_casted, startAngle_casted, endAngle_casted, counterclockwise_casted) + } + lineTo(x: number, y: number): void { + const x_casted = x as (number) + const y_casted = y as (number) + this.lineTo_serialize(x_casted, y_casted) + } + moveTo(x: number, y: number): void { + const x_casted = x as (number) + const y_casted = y as (number) + this.moveTo_serialize(x_casted, y_casted) + } + quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void { + const cpx_casted = cpx as (number) + const cpy_casted = cpy as (number) + const x_casted = x as (number) + const y_casted = y as (number) + this.quadraticCurveTo_serialize(cpx_casted, cpy_casted, x_casted, y_casted) + } + rect(x: number, y: number, w: number, h: number): void { + const x_casted = x as (number) + const y_casted = y as (number) + const w_casted = w as (number) + const h_casted = h as (number) + this.rect_serialize(x_casted, y_casted, w_casted, h_casted) } private arc_serialize(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void { const thisSerializer = SerializerBase.hold(createSerializer) @@ -95,7 +140,39 @@ export class CanvasPath { NativeModule._CanvasPath_arc(this.peer!.ptr, x, y, radius, startAngle, endAngle, thisSerializer.asArray(), thisSerializer.length()); thisSerializer.release(); } + private arcTo_serialize(x1: number, y1: number, x2: number, y2: number, radius: number): void { + NativeModule._CanvasPath_arcTo(this.peer!.ptr, x1, y1, x2, y2, radius); + } + private bezierCurveTo_serialize(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void { + NativeModule._CanvasPath_bezierCurveTo(this.peer!.ptr, cp1x, cp1y, cp2x, cp2y, x, y); + } private closePath_serialize(): void { NativeModule._CanvasPath_closePath(this.peer!.ptr); } + private ellipse_serialize(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let counterclockwise_type = RuntimeType.UNDEFINED + if (counterclockwise != undefined) { + counterclockwise_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(counterclockwise_type as int32) + if ((RuntimeType.UNDEFINED) != (counterclockwise_type)) { + const counterclockwise_value = counterclockwise! + thisSerializer.writeBoolean(counterclockwise_value) + } + NativeModule._CanvasPath_ellipse(this.peer!.ptr, x, y, radiusX, radiusY, rotation, startAngle, endAngle, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private lineTo_serialize(x: number, y: number): void { + NativeModule._CanvasPath_lineTo(this.peer!.ptr, x, y); + } + private moveTo_serialize(x: number, y: number): void { + NativeModule._CanvasPath_moveTo(this.peer!.ptr, x, y); + } + private quadraticCurveTo_serialize(cpx: number, cpy: number, x: number, y: number): void { + NativeModule._CanvasPath_quadraticCurveTo(this.peer!.ptr, cpx, cpy, x, y); + } + private rect_serialize(x: number, y: number, w: number, h: number): void { + NativeModule._CanvasPath_rect(this.peer!.ptr, x, y, w, h); + } } diff --git a/arkoala-arkts/arkui/src/generated/ArkCanvasRendererMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkCanvasRendererMaterialized.ts index f78db9ba6..490bcaf31 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCanvasRendererMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCanvasRendererMaterialized.ts @@ -17,10 +17,14 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { CanvasPath } from "./ArkCanvasPathMaterialized" +import { ImageBitmap } from "./ArkImageBitmapMaterialized" +import { PixelMap } from "./ArkCommonInterfaces" +import { IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image, LITERAL_High, LITERAL_Low, LITERAL_Medium, LITERAL_Butt, LITERAL_Round, LITERAL_Square, LITERAL_Bevel, LITERAL_Miter, LITERAL_Inherit, LITERAL_Ltr, LITERAL_Rtl, LITERAL_Center, LITERAL_End, LITERAL_Left, LITERAL_Right, LITERAL_Start, LITERAL_Alphabetic, LITERAL_Bottom, LITERAL_Hanging, LITERAL_Ideographic, LITERAL_Middle, LITERAL_Top, LITERAL_Evenodd, LITERAL_Nonzero } from "./SyntheticDeclarations" +import { CanvasFillRule, ImageData, ImageSmoothingQuality, CanvasLineCap, CanvasLineJoin, TextMetrics, CanvasDirection, CanvasTextAlign, CanvasTextBaseline } from "./ArkCanvasInterfaces" +import { Path2D } from "./ArkPath2DMaterialized" import { CanvasGradient } from "./ArkCanvasGradientMaterialized" import { CanvasPattern } from "./ArkCanvasPatternMaterialized" -import { CanvasFillRule, ImageData } from "./ArkCanvasInterfaces" -import { LITERAL_Evenodd, LITERAL_Nonzero } from "./SyntheticDeclarations" +import { Matrix2D } from "./ArkMatrix2DMaterialized" import { TypeChecker } from "#components" import { Finalizable } from "./Finalizable" @@ -68,6 +72,108 @@ export class CanvasRenderer extends CanvasPath { set fillStyle(fillStyle: string | number | CanvasGradient | CanvasPattern) { this.setFillStyle(fillStyle) } + get strokeStyle(): string | number | CanvasGradient | CanvasPattern { + throw new Error("Not implemented"); + } + set strokeStyle(strokeStyle: string | number | CanvasGradient | CanvasPattern) { + this.setStrokeStyle(strokeStyle) + } + get filter(): string { + return this.getFilter() + } + set filter(filter: string) { + this.setFilter(filter) + } + get imageSmoothingEnabled(): boolean { + return this.getImageSmoothingEnabled() + } + set imageSmoothingEnabled(imageSmoothingEnabled: boolean) { + this.setImageSmoothingEnabled(imageSmoothingEnabled) + } + get imageSmoothingQuality(): ImageSmoothingQuality { + throw new Error("Not implemented"); + } + set imageSmoothingQuality(imageSmoothingQuality: ImageSmoothingQuality) { + this.setImageSmoothingQuality(imageSmoothingQuality) + } + get lineCap(): CanvasLineCap { + throw new Error("Not implemented"); + } + set lineCap(lineCap: CanvasLineCap) { + this.setLineCap(lineCap) + } + get lineDashOffset(): number { + return this.getLineDashOffset() + } + set lineDashOffset(lineDashOffset: number) { + this.setLineDashOffset(lineDashOffset) + } + get lineJoin(): CanvasLineJoin { + throw new Error("Not implemented"); + } + set lineJoin(lineJoin: CanvasLineJoin) { + this.setLineJoin(lineJoin) + } + get lineWidth(): number { + return this.getLineWidth() + } + set lineWidth(lineWidth: number) { + this.setLineWidth(lineWidth) + } + get miterLimit(): number { + return this.getMiterLimit() + } + set miterLimit(miterLimit: number) { + this.setMiterLimit(miterLimit) + } + get shadowBlur(): number { + return this.getShadowBlur() + } + set shadowBlur(shadowBlur: number) { + this.setShadowBlur(shadowBlur) + } + get shadowColor(): string { + return this.getShadowColor() + } + set shadowColor(shadowColor: string) { + this.setShadowColor(shadowColor) + } + get shadowOffsetX(): number { + return this.getShadowOffsetX() + } + set shadowOffsetX(shadowOffsetX: number) { + this.setShadowOffsetX(shadowOffsetX) + } + get shadowOffsetY(): number { + return this.getShadowOffsetY() + } + set shadowOffsetY(shadowOffsetY: number) { + this.setShadowOffsetY(shadowOffsetY) + } + get direction(): CanvasDirection { + throw new Error("Not implemented"); + } + set direction(direction: CanvasDirection) { + this.setDirection(direction) + } + get font(): string { + return this.getFont() + } + set font(font: string) { + this.setFont(font) + } + get textAlign(): CanvasTextAlign { + throw new Error("Not implemented"); + } + set textAlign(textAlign: CanvasTextAlign) { + this.setTextAlign(textAlign) + } + get textBaseline(): CanvasTextBaseline { + throw new Error("Not implemented"); + } + set textBaseline(textBaseline: CanvasTextBaseline) { + this.setTextBaseline(textBaseline) + } static ctor(): KPointer { const retval = NativeModule._CanvasRenderer_ctor() return retval @@ -80,18 +186,188 @@ export class CanvasRenderer extends CanvasPath { static getFinalizer(): KPointer { return NativeModule._CanvasRenderer_getFinalizer() } + drawImage(image: ImageBitmap | PixelMap | ImageBitmap | PixelMap | ImageBitmap | PixelMap, sx: number | number | number, sy: number | number | number, sw?: number | number, sh?: number | number, dx?: number, dy?: number, dw?: number, dh?: number): void { + const image_type = runtimeType(image) + const sx_type = runtimeType(sx) + const sy_type = runtimeType(sy) + const sw_type = runtimeType(sw) + const sh_type = runtimeType(sh) + const dx_type = runtimeType(dx) + const dy_type = runtimeType(dy) + const dw_type = runtimeType(dw) + const dh_type = runtimeType(dh) + if ((((RuntimeType.OBJECT == image_type)) || ((RuntimeType.OBJECT == image_type))) && (((RuntimeType.NUMBER == sx_type))) && (((RuntimeType.NUMBER == sy_type))) && (((RuntimeType.NUMBER == sw_type))) && (((RuntimeType.NUMBER == sh_type))) && (((RuntimeType.NUMBER == dx_type))) && (((RuntimeType.NUMBER == dy_type))) && (((RuntimeType.NUMBER == dw_type))) && (((RuntimeType.NUMBER == dh_type)))) { + const image_casted = image as (ImageBitmap | PixelMap) + const sx_casted = sx as (number) + const sy_casted = sy as (number) + if ((sw) == (undefined)) { + throw new Error("Arg 'sw' is null"); + } + const sw_casted = sw as (number) + if ((sh) == (undefined)) { + throw new Error("Arg 'sh' is null"); + } + const sh_casted = sh as (number) + if ((dx) == (undefined)) { + throw new Error("Arg 'dx' is null"); + } + const dx_casted = dx as (number) + if ((dy) == (undefined)) { + throw new Error("Arg 'dy' is null"); + } + const dy_casted = dy as (number) + if ((dw) == (undefined)) { + throw new Error("Arg 'dw' is null"); + } + const dw_casted = dw as (number) + if ((dh) == (undefined)) { + throw new Error("Arg 'dh' is null"); + } + const dh_casted = dh as (number) + this.drawImage2_serialize(image_casted, sx_casted, sy_casted, sw_casted, sh_casted, dx_casted, dy_casted, dw_casted, dh_casted) + } + if ((((RuntimeType.OBJECT == image_type)) || ((RuntimeType.OBJECT == image_type))) && (((RuntimeType.NUMBER == sx_type))) && (((RuntimeType.NUMBER == sy_type))) && (((RuntimeType.NUMBER == sw_type))) && (((RuntimeType.NUMBER == sh_type))) && (((RuntimeType.UNDEFINED == dx_type))) && (((RuntimeType.UNDEFINED == dy_type))) && (((RuntimeType.UNDEFINED == dw_type))) && (((RuntimeType.UNDEFINED == dh_type)))) { + const image_casted = image as (ImageBitmap | PixelMap) + const sx_casted = sx as (number) + const sy_casted = sy as (number) + if ((sw) == (undefined)) { + throw new Error("Arg 'sw' is null"); + } + const sw_casted = sw as (number) + if ((sh) == (undefined)) { + throw new Error("Arg 'sh' is null"); + } + const sh_casted = sh as (number) + this.drawImage1_serialize(image_casted, sx_casted, sy_casted, sw_casted, sh_casted) + } + if ((((RuntimeType.OBJECT == image_type)) || ((RuntimeType.OBJECT == image_type))) && (((RuntimeType.NUMBER == sx_type))) && (((RuntimeType.NUMBER == sy_type))) && (((RuntimeType.UNDEFINED == sw_type))) && (((RuntimeType.UNDEFINED == sh_type))) && (((RuntimeType.UNDEFINED == dx_type))) && (((RuntimeType.UNDEFINED == dy_type))) && (((RuntimeType.UNDEFINED == dw_type))) && (((RuntimeType.UNDEFINED == dh_type)))) { + const image_casted = image as (ImageBitmap | PixelMap) + const sx_casted = sx as (number) + const sy_casted = sy as (number) + this.drawImage0_serialize(image_casted, sx_casted, sy_casted) + } + throw new Error("Can not select appropriate overload") + } beginPath(): void { this.beginPath_serialize() } - clip(fillRule?: CanvasFillRule): void { - if ((fillRule) == (undefined)) { - throw new Error("Arg 'fillRule' is null"); + clip(path?: Path2D | CanvasFillRule, fillRule?: CanvasFillRule): void { + const path_type = runtimeType(path) + const fillRule_type = runtimeType(fillRule) + if ((((RuntimeType.OBJECT == path_type))) && (((RuntimeType.STRING == fillRule_type)) || ((RuntimeType.STRING == fillRule_type)) || ((RuntimeType.UNDEFINED == fillRule_type)))) { + if ((path) == (undefined)) { + throw new Error("Arg 'path' is null"); + } + const path_casted = path as (Path2D) + if ((fillRule) == (undefined)) { + throw new Error("Arg 'fillRule' is null"); + } + const fillRule_casted = fillRule as (CanvasFillRule) + this.clip1_serialize(path_casted, fillRule_casted) } - const fillRule_casted = fillRule as (CanvasFillRule) - this.clip_serialize(fillRule_casted) + if ((((RuntimeType.STRING == path_type)) || ((RuntimeType.STRING == path_type)) || ((RuntimeType.UNDEFINED == path_type))) && (((RuntimeType.UNDEFINED == fillRule_type)))) { + if ((path) == (undefined)) { + throw new Error("Arg 'path' is null"); + } + const path_casted = path as (CanvasFillRule) + this.clip0_serialize(path_casted) + } + throw new Error("Can not select appropriate overload") } - reset(): void { - this.reset_serialize() + fill(path?: Path2D | CanvasFillRule, fillRule?: CanvasFillRule): void { + const path_type = runtimeType(path) + const fillRule_type = runtimeType(fillRule) + if ((((RuntimeType.OBJECT == path_type))) && (((RuntimeType.STRING == fillRule_type)) || ((RuntimeType.STRING == fillRule_type)) || ((RuntimeType.UNDEFINED == fillRule_type)))) { + if ((path) == (undefined)) { + throw new Error("Arg 'path' is null"); + } + const path_casted = path as (Path2D) + if ((fillRule) == (undefined)) { + throw new Error("Arg 'fillRule' is null"); + } + const fillRule_casted = fillRule as (CanvasFillRule) + this.fill1_serialize(path_casted, fillRule_casted) + } + if ((((RuntimeType.STRING == path_type)) || ((RuntimeType.STRING == path_type)) || ((RuntimeType.UNDEFINED == path_type))) && (((RuntimeType.UNDEFINED == fillRule_type)))) { + if ((path) == (undefined)) { + throw new Error("Arg 'path' is null"); + } + const path_casted = path as (CanvasFillRule) + this.fill0_serialize(path_casted) + } + throw new Error("Can not select appropriate overload") + } + stroke(path?: Path2D): void { + const path_type = runtimeType(path) + if ((((RuntimeType.OBJECT == path_type)))) { + if ((path) == (undefined)) { + throw new Error("Arg 'path' is null"); + } + const path_casted = path as (Path2D) + this.stroke1_serialize(path_casted) + } + if ((((RuntimeType.UNDEFINED == path_type)))) { + this.stroke0_serialize() + } + throw new Error("Can not select appropriate overload") + } + createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient { + const x0_casted = x0 as (number) + const y0_casted = y0 as (number) + const x1_casted = x1 as (number) + const y1_casted = y1 as (number) + return this.createLinearGradient_serialize(x0_casted, y0_casted, x1_casted, y1_casted) + } + createPattern(image: ImageBitmap, repetition: string | null): CanvasPattern | null { + const image_casted = image as (ImageBitmap) + const repetition_casted = repetition as (string | null) + return this.createPattern_serialize(image_casted, repetition_casted) + } + createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient { + const x0_casted = x0 as (number) + const y0_casted = y0 as (number) + const r0_casted = r0 as (number) + const x1_casted = x1 as (number) + const y1_casted = y1 as (number) + const r1_casted = r1 as (number) + return this.createRadialGradient_serialize(x0_casted, y0_casted, r0_casted, x1_casted, y1_casted, r1_casted) + } + createConicGradient(startAngle: number, x: number, y: number): CanvasGradient { + const startAngle_casted = startAngle as (number) + const x_casted = x as (number) + const y_casted = y as (number) + return this.createConicGradient_serialize(startAngle_casted, x_casted, y_casted) + } + createImageData(sw: number | ImageData, sh?: number): ImageData { + const sw_type = runtimeType(sw) + const sh_type = runtimeType(sh) + if ((((RuntimeType.NUMBER == sw_type))) && (((RuntimeType.NUMBER == sh_type)))) { + const sw_casted = sw as (number) + if ((sh) == (undefined)) { + throw new Error("Arg 'sh' is null"); + } + const sh_casted = sh as (number) + return this.createImageData0_serialize(sw_casted, sh_casted) + } + if ((((RuntimeType.OBJECT == sw_type))) && (((RuntimeType.UNDEFINED == sh_type)))) { + const sw_casted = sw as (ImageData) + return this.createImageData1_serialize(sw_casted) + } + throw new Error("Can not select appropriate overload") + } + getImageData(sx: number, sy: number, sw: number, sh: number): ImageData { + const sx_casted = sx as (number) + const sy_casted = sy as (number) + const sw_casted = sw as (number) + const sh_casted = sh as (number) + return this.getImageData_serialize(sx_casted, sy_casted, sw_casted, sh_casted) + } + getPixelMap(sx: number, sy: number, sw: number, sh: number): PixelMap { + const sx_casted = sx as (number) + const sy_casted = sy as (number) + const sw_casted = sw as (number) + const sh_casted = sh as (number) + return this.getPixelMap_serialize(sx_casted, sy_casted, sw_casted, sh_casted) } putImageData(imagedata: ImageData | ImageData, dx: number | string | number | string, dy: number | string | number | string, dirtyX?: number | string, dirtyY?: number | string, dirtyWidth?: number | string, dirtyHeight?: number | string): void { const imagedata_type = runtimeType(imagedata) @@ -131,6 +407,156 @@ export class CanvasRenderer extends CanvasPath { } throw new Error("Can not select appropriate overload") } + getLineDash(): number[] { + return this.getLineDash_serialize() + } + setLineDash(segments: number[]): void { + const segments_casted = segments as (number[]) + this.setLineDash_serialize(segments_casted) + } + clearRect(x: number, y: number, w: number, h: number): void { + const x_casted = x as (number) + const y_casted = y as (number) + const w_casted = w as (number) + const h_casted = h as (number) + this.clearRect_serialize(x_casted, y_casted, w_casted, h_casted) + } + fillRect(x: number, y: number, w: number, h: number): void { + const x_casted = x as (number) + const y_casted = y as (number) + const w_casted = w as (number) + const h_casted = h as (number) + this.fillRect_serialize(x_casted, y_casted, w_casted, h_casted) + } + strokeRect(x: number, y: number, w: number, h: number): void { + const x_casted = x as (number) + const y_casted = y as (number) + const w_casted = w as (number) + const h_casted = h as (number) + this.strokeRect_serialize(x_casted, y_casted, w_casted, h_casted) + } + restore(): void { + this.restore_serialize() + } + save(): void { + this.save_serialize() + } + fillText(text: string, x: number, y: number, maxWidth?: number): void { + const text_casted = text as (string) + const x_casted = x as (number) + const y_casted = y as (number) + if ((maxWidth) == (undefined)) { + throw new Error("Arg 'maxWidth' is null"); + } + const maxWidth_casted = maxWidth as (number) + this.fillText_serialize(text_casted, x_casted, y_casted, maxWidth_casted) + } + measureText(text: string): TextMetrics { + const text_casted = text as (string) + return this.measureText_serialize(text_casted) + } + strokeText(text: string, x: number, y: number, maxWidth?: number): void { + const text_casted = text as (string) + const x_casted = x as (number) + const y_casted = y as (number) + if ((maxWidth) == (undefined)) { + throw new Error("Arg 'maxWidth' is null"); + } + const maxWidth_casted = maxWidth as (number) + this.strokeText_serialize(text_casted, x_casted, y_casted, maxWidth_casted) + } + getTransform(): Matrix2D { + return this.getTransform_serialize() + } + resetTransform(): void { + this.resetTransform_serialize() + } + rotate(angle: number): void { + const angle_casted = angle as (number) + this.rotate_serialize(angle_casted) + } + scale(x: number, y: number): void { + const x_casted = x as (number) + const y_casted = y as (number) + this.scale_serialize(x_casted, y_casted) + } + setTransform(a?: number | Matrix2D, b?: number, c?: number, d?: number, e?: number, f?: number): void { + const a_type = runtimeType(a) + const b_type = runtimeType(b) + const c_type = runtimeType(c) + const d_type = runtimeType(d) + const e_type = runtimeType(e) + const f_type = runtimeType(f) + if ((((RuntimeType.NUMBER == a_type))) && (((RuntimeType.NUMBER == b_type))) && (((RuntimeType.NUMBER == c_type))) && (((RuntimeType.NUMBER == d_type))) && (((RuntimeType.NUMBER == e_type))) && (((RuntimeType.NUMBER == f_type)))) { + if ((a) == (undefined)) { + throw new Error("Arg 'a' is null"); + } + const a_casted = a as (number) + if ((b) == (undefined)) { + throw new Error("Arg 'b' is null"); + } + const b_casted = b as (number) + if ((c) == (undefined)) { + throw new Error("Arg 'c' is null"); + } + const c_casted = c as (number) + if ((d) == (undefined)) { + throw new Error("Arg 'd' is null"); + } + const d_casted = d as (number) + if ((e) == (undefined)) { + throw new Error("Arg 'e' is null"); + } + const e_casted = e as (number) + if ((f) == (undefined)) { + throw new Error("Arg 'f' is null"); + } + const f_casted = f as (number) + this.setTransform0_serialize(a_casted, b_casted, c_casted, d_casted, e_casted, f_casted) + } + if ((((RuntimeType.OBJECT == a_type)) || ((RuntimeType.UNDEFINED == a_type))) && (((RuntimeType.UNDEFINED == b_type))) && (((RuntimeType.UNDEFINED == c_type))) && (((RuntimeType.UNDEFINED == d_type))) && (((RuntimeType.UNDEFINED == e_type))) && (((RuntimeType.UNDEFINED == f_type)))) { + if ((a) == (undefined)) { + throw new Error("Arg 'a' is null"); + } + const a_casted = a as (Matrix2D) + this.setTransform1_serialize(a_casted) + } + throw new Error("Can not select appropriate overload") + } + transform(a: number, b: number, c: number, d: number, e: number, f: number): void { + const a_casted = a as (number) + const b_casted = b as (number) + const c_casted = c as (number) + const d_casted = d as (number) + const e_casted = e as (number) + const f_casted = f as (number) + this.transform_serialize(a_casted, b_casted, c_casted, d_casted, e_casted, f_casted) + } + translate(x: number, y: number): void { + const x_casted = x as (number) + const y_casted = y as (number) + this.translate_serialize(x_casted, y_casted) + } + setPixelMap(value?: PixelMap): void { + if ((value) == (undefined)) { + throw new Error("Arg 'value' is null"); + } + const value_casted = value as (PixelMap) + this.setPixelMap_serialize(value_casted) + } + transferFromImageBitmap(bitmap: ImageBitmap): void { + const bitmap_casted = bitmap as (ImageBitmap) + this.transferFromImageBitmap_serialize(bitmap_casted) + } + saveLayer(): void { + this.saveLayer_serialize() + } + restoreLayer(): void { + this.restoreLayer_serialize() + } + reset(): void { + this.reset_serialize() + } private getGlobalAlpha(): number { return this.getGlobalAlpha_serialize() } @@ -149,10 +575,159 @@ export class CanvasRenderer extends CanvasPath { const fillStyle_casted = fillStyle as (string | number | CanvasGradient | CanvasPattern) this.setFillStyle_serialize(fillStyle_casted) } + private setStrokeStyle(strokeStyle: string | number | CanvasGradient | CanvasPattern): void { + const strokeStyle_casted = strokeStyle as (string | number | CanvasGradient | CanvasPattern) + this.setStrokeStyle_serialize(strokeStyle_casted) + } + private getFilter(): string { + return this.getFilter_serialize() + } + private setFilter(filter: string): void { + const filter_casted = filter as (string) + this.setFilter_serialize(filter_casted) + } + private getImageSmoothingEnabled(): boolean { + return this.getImageSmoothingEnabled_serialize() + } + private setImageSmoothingEnabled(imageSmoothingEnabled: boolean): void { + const imageSmoothingEnabled_casted = imageSmoothingEnabled as (boolean) + this.setImageSmoothingEnabled_serialize(imageSmoothingEnabled_casted) + } + private setImageSmoothingQuality(imageSmoothingQuality: ImageSmoothingQuality): void { + const imageSmoothingQuality_casted = imageSmoothingQuality as (ImageSmoothingQuality) + this.setImageSmoothingQuality_serialize(imageSmoothingQuality_casted) + } + private setLineCap(lineCap: CanvasLineCap): void { + const lineCap_casted = lineCap as (CanvasLineCap) + this.setLineCap_serialize(lineCap_casted) + } + private getLineDashOffset(): number { + return this.getLineDashOffset_serialize() + } + private setLineDashOffset(lineDashOffset: number): void { + const lineDashOffset_casted = lineDashOffset as (number) + this.setLineDashOffset_serialize(lineDashOffset_casted) + } + private setLineJoin(lineJoin: CanvasLineJoin): void { + const lineJoin_casted = lineJoin as (CanvasLineJoin) + this.setLineJoin_serialize(lineJoin_casted) + } + private getLineWidth(): number { + return this.getLineWidth_serialize() + } + private setLineWidth(lineWidth: number): void { + const lineWidth_casted = lineWidth as (number) + this.setLineWidth_serialize(lineWidth_casted) + } + private getMiterLimit(): number { + return this.getMiterLimit_serialize() + } + private setMiterLimit(miterLimit: number): void { + const miterLimit_casted = miterLimit as (number) + this.setMiterLimit_serialize(miterLimit_casted) + } + private getShadowBlur(): number { + return this.getShadowBlur_serialize() + } + private setShadowBlur(shadowBlur: number): void { + const shadowBlur_casted = shadowBlur as (number) + this.setShadowBlur_serialize(shadowBlur_casted) + } + private getShadowColor(): string { + return this.getShadowColor_serialize() + } + private setShadowColor(shadowColor: string): void { + const shadowColor_casted = shadowColor as (string) + this.setShadowColor_serialize(shadowColor_casted) + } + private getShadowOffsetX(): number { + return this.getShadowOffsetX_serialize() + } + private setShadowOffsetX(shadowOffsetX: number): void { + const shadowOffsetX_casted = shadowOffsetX as (number) + this.setShadowOffsetX_serialize(shadowOffsetX_casted) + } + private getShadowOffsetY(): number { + return this.getShadowOffsetY_serialize() + } + private setShadowOffsetY(shadowOffsetY: number): void { + const shadowOffsetY_casted = shadowOffsetY as (number) + this.setShadowOffsetY_serialize(shadowOffsetY_casted) + } + private setDirection(direction: CanvasDirection): void { + const direction_casted = direction as (CanvasDirection) + this.setDirection_serialize(direction_casted) + } + private getFont(): string { + return this.getFont_serialize() + } + private setFont(font: string): void { + const font_casted = font as (string) + this.setFont_serialize(font_casted) + } + private setTextAlign(textAlign: CanvasTextAlign): void { + const textAlign_casted = textAlign as (CanvasTextAlign) + this.setTextAlign_serialize(textAlign_casted) + } + private setTextBaseline(textBaseline: CanvasTextBaseline): void { + const textBaseline_casted = textBaseline as (CanvasTextBaseline) + this.setTextBaseline_serialize(textBaseline_casted) + } + private drawImage0_serialize(image: ImageBitmap | PixelMap, dx: number, dy: number): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let image_type = RuntimeType.UNDEFINED + image_type = runtimeType(image) + if (((RuntimeType.OBJECT) == (image_type)) && (image instanceof ImageBitmap)) { + thisSerializer.writeInt8(0 as int32) + const image_0 = image as ImageBitmap + thisSerializer.writeMaterialized(image_0) + } + else if (((RuntimeType.OBJECT) == (image_type)) && (isPixelMap(image))) { + thisSerializer.writeInt8(1 as int32) + const image_1 = image as PixelMap + thisSerializer.writeCustomObject("PixelMap", image_1) + } + NativeModule._CanvasRenderer_drawImage0(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length(), dx, dy); + thisSerializer.release(); + } + private drawImage1_serialize(image: ImageBitmap | PixelMap, dx: number, dy: number, dw: number, dh: number): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let image_type = RuntimeType.UNDEFINED + image_type = runtimeType(image) + if (((RuntimeType.OBJECT) == (image_type)) && (image instanceof ImageBitmap)) { + thisSerializer.writeInt8(0 as int32) + const image_0 = image as ImageBitmap + thisSerializer.writeMaterialized(image_0) + } + else if (((RuntimeType.OBJECT) == (image_type)) && (isPixelMap(image))) { + thisSerializer.writeInt8(1 as int32) + const image_1 = image as PixelMap + thisSerializer.writeCustomObject("PixelMap", image_1) + } + NativeModule._CanvasRenderer_drawImage1(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length(), dx, dy, dw, dh); + thisSerializer.release(); + } + private drawImage2_serialize(image: ImageBitmap | PixelMap, sx: number, sy: number, sw: number, sh: number, dx: number, dy: number, dw: number, dh: number): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let image_type = RuntimeType.UNDEFINED + image_type = runtimeType(image) + if (((RuntimeType.OBJECT) == (image_type)) && (image instanceof ImageBitmap)) { + thisSerializer.writeInt8(0 as int32) + const image_0 = image as ImageBitmap + thisSerializer.writeMaterialized(image_0) + } + else if (((RuntimeType.OBJECT) == (image_type)) && (isPixelMap(image))) { + thisSerializer.writeInt8(1 as int32) + const image_1 = image as PixelMap + thisSerializer.writeCustomObject("PixelMap", image_1) + } + NativeModule._CanvasRenderer_drawImage2(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length(), sx, sy, sw, sh, dx, dy, dw, dh); + thisSerializer.release(); + } private beginPath_serialize(): void { NativeModule._CanvasRenderer_beginPath(this.peer!.ptr); } - private clip_serialize(fillRule?: CanvasFillRule): void { + private clip0_serialize(fillRule?: CanvasFillRule): void { const thisSerializer = SerializerBase.hold(createSerializer) let fillRule_type = RuntimeType.UNDEFINED if (fillRule != undefined) { @@ -174,11 +749,143 @@ export class CanvasRenderer extends CanvasPath { thisSerializer.writeString(fillRule_value_1) } } - NativeModule._CanvasRenderer_clip(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); + NativeModule._CanvasRenderer_clip0(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); thisSerializer.release(); } - private reset_serialize(): void { - NativeModule._CanvasRenderer_reset(this.peer!.ptr); + private clip1_serialize(path: Path2D, fillRule?: CanvasFillRule): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeMaterialized(path) + let fillRule_type = RuntimeType.UNDEFINED + if (fillRule != undefined) { + fillRule_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(fillRule_type as int32) + if ((RuntimeType.UNDEFINED) != (fillRule_type)) { + const fillRule_value = fillRule! + let fillRule_value_type = RuntimeType.UNDEFINED + fillRule_value_type = runtimeType(fillRule_value) + if ((fillRule_value) instanceof (LITERAL_Evenodd)) { + thisSerializer.writeInt8(0 as int32) + const fillRule_value_0 = fillRule_value.toString() as string + thisSerializer.writeString(fillRule_value_0) + } + else if ((fillRule_value) instanceof (LITERAL_Nonzero)) { + thisSerializer.writeInt8(1 as int32) + const fillRule_value_1 = fillRule_value.toString() as string + thisSerializer.writeString(fillRule_value_1) + } + } + NativeModule._CanvasRenderer_clip1(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private fill0_serialize(fillRule?: CanvasFillRule): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let fillRule_type = RuntimeType.UNDEFINED + if (fillRule != undefined) { + fillRule_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(fillRule_type as int32) + if ((RuntimeType.UNDEFINED) != (fillRule_type)) { + const fillRule_value = fillRule! + let fillRule_value_type = RuntimeType.UNDEFINED + fillRule_value_type = runtimeType(fillRule_value) + if ((fillRule_value) instanceof (LITERAL_Evenodd)) { + thisSerializer.writeInt8(0 as int32) + const fillRule_value_0 = fillRule_value.toString() as string + thisSerializer.writeString(fillRule_value_0) + } + else if ((fillRule_value) instanceof (LITERAL_Nonzero)) { + thisSerializer.writeInt8(1 as int32) + const fillRule_value_1 = fillRule_value.toString() as string + thisSerializer.writeString(fillRule_value_1) + } + } + NativeModule._CanvasRenderer_fill0(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private fill1_serialize(path: Path2D, fillRule?: CanvasFillRule): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeMaterialized(path) + let fillRule_type = RuntimeType.UNDEFINED + if (fillRule != undefined) { + fillRule_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(fillRule_type as int32) + if ((RuntimeType.UNDEFINED) != (fillRule_type)) { + const fillRule_value = fillRule! + let fillRule_value_type = RuntimeType.UNDEFINED + fillRule_value_type = runtimeType(fillRule_value) + if ((fillRule_value) instanceof (LITERAL_Evenodd)) { + thisSerializer.writeInt8(0 as int32) + const fillRule_value_0 = fillRule_value.toString() as string + thisSerializer.writeString(fillRule_value_0) + } + else if ((fillRule_value) instanceof (LITERAL_Nonzero)) { + thisSerializer.writeInt8(1 as int32) + const fillRule_value_1 = fillRule_value.toString() as string + thisSerializer.writeString(fillRule_value_1) + } + } + NativeModule._CanvasRenderer_fill1(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private stroke0_serialize(): void { + NativeModule._CanvasRenderer_stroke0(this.peer!.ptr); + } + private stroke1_serialize(path: Path2D): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeMaterialized(path) + NativeModule._CanvasRenderer_stroke1(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private createLinearGradient_serialize(x0: number, y0: number, x1: number, y1: number): CanvasGradient { + const retval = NativeModule._CanvasRenderer_createLinearGradient(this.peer!.ptr, x0, y0, x1, y1) + throw new Error("Object deserialization is not implemented.") + } + private createPattern_serialize(image: ImageBitmap, repetition: string | null): CanvasPattern | null { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeMaterialized(image) + let repetition_type = RuntimeType.UNDEFINED + repetition_type = runtimeType(repetition) + if (((RuntimeType.STRING == repetition_type))) { + thisSerializer.writeInt8(0 as int32) + const repetition_0 = repetition as string + thisSerializer.writeString(repetition_0) + } + else if (((RuntimeType.OBJECT == repetition_type))) { + thisSerializer.writeInt8(1 as int32) + const repetition_1 = repetition as null + } + const retval = NativeModule._CanvasRenderer_createPattern(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release(); + throw new Error("Object deserialization is not implemented.") + } + private createRadialGradient_serialize(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient { + const retval = NativeModule._CanvasRenderer_createRadialGradient(this.peer!.ptr, x0, y0, r0, x1, y1, r1) + throw new Error("Object deserialization is not implemented.") + } + private createConicGradient_serialize(startAngle: number, x: number, y: number): CanvasGradient { + const retval = NativeModule._CanvasRenderer_createConicGradient(this.peer!.ptr, startAngle, x, y) + throw new Error("Object deserialization is not implemented.") + } + private createImageData0_serialize(sw: number, sh: number): ImageData { + const retval = NativeModule._CanvasRenderer_createImageData0(this.peer!.ptr, sw, sh) + throw new Error("Object deserialization is not implemented.") + } + private createImageData1_serialize(imagedata: ImageData): ImageData { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeImageData(imagedata) + const retval = NativeModule._CanvasRenderer_createImageData1(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release(); + throw new Error("Object deserialization is not implemented.") + } + private getImageData_serialize(sx: number, sy: number, sw: number, sh: number): ImageData { + const retval = NativeModule._CanvasRenderer_getImageData(this.peer!.ptr, sx, sy, sw, sh) + throw new Error("Object deserialization is not implemented.") + } + private getPixelMap_serialize(sx: number, sy: number, sw: number, sh: number): PixelMap { + const retval = NativeModule._CanvasRenderer_getPixelMap(this.peer!.ptr, sx, sy, sw, sh) + throw new Error("Object deserialization is not implemented.") } private putImageData0_serialize(imagedata: ImageData, dx: number | string, dy: number | string): void { const thisSerializer = SerializerBase.hold(createSerializer) @@ -288,6 +995,133 @@ export class CanvasRenderer extends CanvasPath { NativeModule._CanvasRenderer_putImageData1(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); thisSerializer.release(); } + private getLineDash_serialize(): number[] { + const retval = NativeModule._CanvasRenderer_getLineDash(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private setLineDash_serialize(segments: number[]): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeInt8(runtimeType(segments) as int32) + thisSerializer.writeInt32(segments.length as int32) + for (let i = 0; i < segments.length; i++) { + const segments_element = segments[i] + thisSerializer.writeNumber(segments_element) + } + NativeModule._CanvasRenderer_setLineDash(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private clearRect_serialize(x: number, y: number, w: number, h: number): void { + NativeModule._CanvasRenderer_clearRect(this.peer!.ptr, x, y, w, h); + } + private fillRect_serialize(x: number, y: number, w: number, h: number): void { + NativeModule._CanvasRenderer_fillRect(this.peer!.ptr, x, y, w, h); + } + private strokeRect_serialize(x: number, y: number, w: number, h: number): void { + NativeModule._CanvasRenderer_strokeRect(this.peer!.ptr, x, y, w, h); + } + private restore_serialize(): void { + NativeModule._CanvasRenderer_restore(this.peer!.ptr); + } + private save_serialize(): void { + NativeModule._CanvasRenderer_save(this.peer!.ptr); + } + private fillText_serialize(text: string, x: number, y: number, maxWidth?: number): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let maxWidth_type = RuntimeType.UNDEFINED + if (maxWidth != undefined) { + maxWidth_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(maxWidth_type as int32) + if ((RuntimeType.UNDEFINED) != (maxWidth_type)) { + const maxWidth_value = maxWidth! + thisSerializer.writeNumber(maxWidth_value) + } + NativeModule._CanvasRenderer_fillText(this.peer!.ptr, text, x, y, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private measureText_serialize(text: string): TextMetrics { + const retval = NativeModule._CanvasRenderer_measureText(this.peer!.ptr, text) + throw new Error("Object deserialization is not implemented.") + } + private strokeText_serialize(text: string, x: number, y: number, maxWidth?: number): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let maxWidth_type = RuntimeType.UNDEFINED + if (maxWidth != undefined) { + maxWidth_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(maxWidth_type as int32) + if ((RuntimeType.UNDEFINED) != (maxWidth_type)) { + const maxWidth_value = maxWidth! + thisSerializer.writeNumber(maxWidth_value) + } + NativeModule._CanvasRenderer_strokeText(this.peer!.ptr, text, x, y, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private getTransform_serialize(): Matrix2D { + const retval = NativeModule._CanvasRenderer_getTransform(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private resetTransform_serialize(): void { + NativeModule._CanvasRenderer_resetTransform(this.peer!.ptr); + } + private rotate_serialize(angle: number): void { + NativeModule._CanvasRenderer_rotate(this.peer!.ptr, angle); + } + private scale_serialize(x: number, y: number): void { + NativeModule._CanvasRenderer_scale(this.peer!.ptr, x, y); + } + private setTransform0_serialize(a: number, b: number, c: number, d: number, e: number, f: number): void { + NativeModule._CanvasRenderer_setTransform0(this.peer!.ptr, a, b, c, d, e, f); + } + private setTransform1_serialize(transform?: Matrix2D): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let transform_type = RuntimeType.UNDEFINED + if (transform != undefined) { + transform_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(transform_type as int32) + if ((RuntimeType.UNDEFINED) != (transform_type)) { + const transform_value = transform! + thisSerializer.writeMaterialized(transform_value) + } + NativeModule._CanvasRenderer_setTransform1(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private transform_serialize(a: number, b: number, c: number, d: number, e: number, f: number): void { + NativeModule._CanvasRenderer_transform(this.peer!.ptr, a, b, c, d, e, f); + } + private translate_serialize(x: number, y: number): void { + NativeModule._CanvasRenderer_translate(this.peer!.ptr, x, y); + } + private setPixelMap_serialize(value?: PixelMap): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + if (value != undefined) { + value_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_type as int32) + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value! + thisSerializer.writeCustomObject("PixelMap", value_value) + } + NativeModule._CanvasRenderer_setPixelMap(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private transferFromImageBitmap_serialize(bitmap: ImageBitmap): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeMaterialized(bitmap) + NativeModule._CanvasRenderer_transferFromImageBitmap(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private saveLayer_serialize(): void { + NativeModule._CanvasRenderer_saveLayer(this.peer!.ptr); + } + private restoreLayer_serialize(): void { + NativeModule._CanvasRenderer_restoreLayer(this.peer!.ptr); + } + private reset_serialize(): void { + NativeModule._CanvasRenderer_reset(this.peer!.ptr); + } private getGlobalAlpha_serialize(): number { const retval = NativeModule._CanvasRenderer_getGlobalAlpha(this.peer!.ptr) return retval @@ -329,4 +1163,258 @@ export class CanvasRenderer extends CanvasPath { NativeModule._CanvasRenderer_setFillStyle(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); thisSerializer.release(); } + private setStrokeStyle_serialize(strokeStyle: string | number | CanvasGradient | CanvasPattern): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let strokeStyle_type = RuntimeType.UNDEFINED + strokeStyle_type = runtimeType(strokeStyle) + if (((RuntimeType.STRING == strokeStyle_type))) { + thisSerializer.writeInt8(0 as int32) + const strokeStyle_0 = strokeStyle as string + thisSerializer.writeString(strokeStyle_0) + } + else if (((RuntimeType.NUMBER == strokeStyle_type))) { + thisSerializer.writeInt8(1 as int32) + const strokeStyle_1 = strokeStyle as number + thisSerializer.writeNumber(strokeStyle_1) + } + else if (((RuntimeType.OBJECT) == (strokeStyle_type)) && (strokeStyle instanceof CanvasGradient)) { + thisSerializer.writeInt8(2 as int32) + const strokeStyle_2 = strokeStyle as CanvasGradient + thisSerializer.writeMaterialized(strokeStyle_2) + } + else if (((RuntimeType.OBJECT) == (strokeStyle_type)) && (strokeStyle instanceof CanvasPattern)) { + thisSerializer.writeInt8(3 as int32) + const strokeStyle_3 = strokeStyle as CanvasPattern + thisSerializer.writeMaterialized(strokeStyle_3) + } + NativeModule._CanvasRenderer_setStrokeStyle(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private getFilter_serialize(): string { + const retval = NativeModule._CanvasRenderer_getFilter(this.peer!.ptr) + return retval + } + private setFilter_serialize(filter: string): void { + NativeModule._CanvasRenderer_setFilter(this.peer!.ptr, filter); + } + private getImageSmoothingEnabled_serialize(): boolean { + const retval = NativeModule._CanvasRenderer_getImageSmoothingEnabled(this.peer!.ptr) + return retval + } + private setImageSmoothingEnabled_serialize(imageSmoothingEnabled: boolean): void { + NativeModule._CanvasRenderer_setImageSmoothingEnabled(this.peer!.ptr, imageSmoothingEnabled ? 1 : 0); + } + private setImageSmoothingQuality_serialize(imageSmoothingQuality: ImageSmoothingQuality): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let imageSmoothingQuality_type = RuntimeType.UNDEFINED + imageSmoothingQuality_type = runtimeType(imageSmoothingQuality) + if ((imageSmoothingQuality) instanceof (LITERAL_High)) { + thisSerializer.writeInt8(0 as int32) + const imageSmoothingQuality_0 = imageSmoothingQuality.toString() as string + thisSerializer.writeString(imageSmoothingQuality_0) + } + else if ((imageSmoothingQuality) instanceof (LITERAL_Low)) { + thisSerializer.writeInt8(1 as int32) + const imageSmoothingQuality_1 = imageSmoothingQuality.toString() as string + thisSerializer.writeString(imageSmoothingQuality_1) + } + else if ((imageSmoothingQuality) instanceof (LITERAL_Medium)) { + thisSerializer.writeInt8(2 as int32) + const imageSmoothingQuality_2 = imageSmoothingQuality.toString() as string + thisSerializer.writeString(imageSmoothingQuality_2) + } + NativeModule._CanvasRenderer_setImageSmoothingQuality(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private setLineCap_serialize(lineCap: CanvasLineCap): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let lineCap_type = RuntimeType.UNDEFINED + lineCap_type = runtimeType(lineCap) + if ((lineCap) instanceof (LITERAL_Butt)) { + thisSerializer.writeInt8(0 as int32) + const lineCap_0 = lineCap.toString() as string + thisSerializer.writeString(lineCap_0) + } + else if ((lineCap) instanceof (LITERAL_Round)) { + thisSerializer.writeInt8(1 as int32) + const lineCap_1 = lineCap.toString() as string + thisSerializer.writeString(lineCap_1) + } + else if ((lineCap) instanceof (LITERAL_Square)) { + thisSerializer.writeInt8(2 as int32) + const lineCap_2 = lineCap.toString() as string + thisSerializer.writeString(lineCap_2) + } + NativeModule._CanvasRenderer_setLineCap(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private getLineDashOffset_serialize(): number { + const retval = NativeModule._CanvasRenderer_getLineDashOffset(this.peer!.ptr) + return retval + } + private setLineDashOffset_serialize(lineDashOffset: number): void { + NativeModule._CanvasRenderer_setLineDashOffset(this.peer!.ptr, lineDashOffset); + } + private setLineJoin_serialize(lineJoin: CanvasLineJoin): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let lineJoin_type = RuntimeType.UNDEFINED + lineJoin_type = runtimeType(lineJoin) + if ((lineJoin) instanceof (LITERAL_Bevel)) { + thisSerializer.writeInt8(0 as int32) + const lineJoin_0 = lineJoin.toString() as string + thisSerializer.writeString(lineJoin_0) + } + else if ((lineJoin) instanceof (LITERAL_Miter)) { + thisSerializer.writeInt8(1 as int32) + const lineJoin_1 = lineJoin.toString() as string + thisSerializer.writeString(lineJoin_1) + } + else if ((lineJoin) instanceof (LITERAL_Round)) { + thisSerializer.writeInt8(2 as int32) + const lineJoin_2 = lineJoin.toString() as string + thisSerializer.writeString(lineJoin_2) + } + NativeModule._CanvasRenderer_setLineJoin(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private getLineWidth_serialize(): number { + const retval = NativeModule._CanvasRenderer_getLineWidth(this.peer!.ptr) + return retval + } + private setLineWidth_serialize(lineWidth: number): void { + NativeModule._CanvasRenderer_setLineWidth(this.peer!.ptr, lineWidth); + } + private getMiterLimit_serialize(): number { + const retval = NativeModule._CanvasRenderer_getMiterLimit(this.peer!.ptr) + return retval + } + private setMiterLimit_serialize(miterLimit: number): void { + NativeModule._CanvasRenderer_setMiterLimit(this.peer!.ptr, miterLimit); + } + private getShadowBlur_serialize(): number { + const retval = NativeModule._CanvasRenderer_getShadowBlur(this.peer!.ptr) + return retval + } + private setShadowBlur_serialize(shadowBlur: number): void { + NativeModule._CanvasRenderer_setShadowBlur(this.peer!.ptr, shadowBlur); + } + private getShadowColor_serialize(): string { + const retval = NativeModule._CanvasRenderer_getShadowColor(this.peer!.ptr) + return retval + } + private setShadowColor_serialize(shadowColor: string): void { + NativeModule._CanvasRenderer_setShadowColor(this.peer!.ptr, shadowColor); + } + private getShadowOffsetX_serialize(): number { + const retval = NativeModule._CanvasRenderer_getShadowOffsetX(this.peer!.ptr) + return retval + } + private setShadowOffsetX_serialize(shadowOffsetX: number): void { + NativeModule._CanvasRenderer_setShadowOffsetX(this.peer!.ptr, shadowOffsetX); + } + private getShadowOffsetY_serialize(): number { + const retval = NativeModule._CanvasRenderer_getShadowOffsetY(this.peer!.ptr) + return retval + } + private setShadowOffsetY_serialize(shadowOffsetY: number): void { + NativeModule._CanvasRenderer_setShadowOffsetY(this.peer!.ptr, shadowOffsetY); + } + private setDirection_serialize(direction: CanvasDirection): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let direction_type = RuntimeType.UNDEFINED + direction_type = runtimeType(direction) + if ((direction) instanceof (LITERAL_Inherit)) { + thisSerializer.writeInt8(0 as int32) + const direction_0 = direction.toString() as string + thisSerializer.writeString(direction_0) + } + else if ((direction) instanceof (LITERAL_Ltr)) { + thisSerializer.writeInt8(1 as int32) + const direction_1 = direction.toString() as string + thisSerializer.writeString(direction_1) + } + else if ((direction) instanceof (LITERAL_Rtl)) { + thisSerializer.writeInt8(2 as int32) + const direction_2 = direction.toString() as string + thisSerializer.writeString(direction_2) + } + NativeModule._CanvasRenderer_setDirection(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private getFont_serialize(): string { + const retval = NativeModule._CanvasRenderer_getFont(this.peer!.ptr) + return retval + } + private setFont_serialize(font: string): void { + NativeModule._CanvasRenderer_setFont(this.peer!.ptr, font); + } + private setTextAlign_serialize(textAlign: CanvasTextAlign): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let textAlign_type = RuntimeType.UNDEFINED + textAlign_type = runtimeType(textAlign) + if ((textAlign) instanceof (LITERAL_Center)) { + thisSerializer.writeInt8(0 as int32) + const textAlign_0 = textAlign.toString() as string + thisSerializer.writeString(textAlign_0) + } + else if ((textAlign) instanceof (LITERAL_End)) { + thisSerializer.writeInt8(1 as int32) + const textAlign_1 = textAlign.toString() as string + thisSerializer.writeString(textAlign_1) + } + else if ((textAlign) instanceof (LITERAL_Left)) { + thisSerializer.writeInt8(2 as int32) + const textAlign_2 = textAlign.toString() as string + thisSerializer.writeString(textAlign_2) + } + else if ((textAlign) instanceof (LITERAL_Right)) { + thisSerializer.writeInt8(3 as int32) + const textAlign_3 = textAlign.toString() as string + thisSerializer.writeString(textAlign_3) + } + else if ((textAlign) instanceof (LITERAL_Start)) { + thisSerializer.writeInt8(4 as int32) + const textAlign_4 = textAlign.toString() as string + thisSerializer.writeString(textAlign_4) + } + NativeModule._CanvasRenderer_setTextAlign(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private setTextBaseline_serialize(textBaseline: CanvasTextBaseline): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let textBaseline_type = RuntimeType.UNDEFINED + textBaseline_type = runtimeType(textBaseline) + if ((textBaseline) instanceof (LITERAL_Alphabetic)) { + thisSerializer.writeInt8(0 as int32) + const textBaseline_0 = textBaseline.toString() as string + thisSerializer.writeString(textBaseline_0) + } + else if ((textBaseline) instanceof (LITERAL_Bottom)) { + thisSerializer.writeInt8(1 as int32) + const textBaseline_1 = textBaseline.toString() as string + thisSerializer.writeString(textBaseline_1) + } + else if ((textBaseline) instanceof (LITERAL_Hanging)) { + thisSerializer.writeInt8(2 as int32) + const textBaseline_2 = textBaseline.toString() as string + thisSerializer.writeString(textBaseline_2) + } + else if ((textBaseline) instanceof (LITERAL_Ideographic)) { + thisSerializer.writeInt8(3 as int32) + const textBaseline_3 = textBaseline.toString() as string + thisSerializer.writeString(textBaseline_3) + } + else if ((textBaseline) instanceof (LITERAL_Middle)) { + thisSerializer.writeInt8(4 as int32) + const textBaseline_4 = textBaseline.toString() as string + thisSerializer.writeString(textBaseline_4) + } + else if ((textBaseline) instanceof (LITERAL_Top)) { + thisSerializer.writeInt8(5 as int32) + const textBaseline_5 = textBaseline.toString() as string + thisSerializer.writeString(textBaseline_5) + } + NativeModule._CanvasRenderer_setTextBaseline(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } } diff --git a/arkoala-arkts/arkui/src/generated/ArkCanvasRenderingContext2DMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkCanvasRenderingContext2DMaterialized.ts index ba9c82f87..cc9f60a02 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCanvasRenderingContext2DMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCanvasRenderingContext2DMaterialized.ts @@ -18,9 +18,16 @@ import { CanvasRenderer } from "./ArkCanvasRendererMaterialized" import { CanvasPath } from "./ArkCanvasPathMaterialized" +import { ImageBitmap } from "./ArkImageBitmapMaterialized" +import { PixelMap } from "./ArkCommonInterfaces" +import { IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image, IMPORT_LengthMetricsUnit_FROM_api_arkui_Graphics } from "./SyntheticDeclarations" +import { CanvasFillRule, ImageData, ImageSmoothingQuality, CanvasLineCap, CanvasLineJoin, TextMetrics, CanvasDirection, CanvasTextAlign, CanvasTextBaseline, RenderingContextSettings } from "./ArkCanvasInterfaces" +import { Path2D } from "./ArkPath2DMaterialized" import { CanvasGradient } from "./ArkCanvasGradientMaterialized" import { CanvasPattern } from "./ArkCanvasPatternMaterialized" -import { CanvasFillRule, ImageData, RenderingContextSettings } from "./ArkCanvasInterfaces" +import { Matrix2D } from "./ArkMatrix2DMaterialized" +import { ImageAnalyzerConfig } from "./ArkImageCommonInterfaces" +import { LengthMetricsUnit } from "./ArkUnitsInterfaces" import { TypeChecker } from "#components" import { Finalizable } from "./Finalizable" @@ -73,36 +80,70 @@ export class CanvasRenderingContext2D extends CanvasRenderer { } constructor(settings?: RenderingContextSettings) { super(); - // All constructor parameters are optional. - // It means that the static method call invokes ctor method as well - // when all arguments are undefined. const ctorPtr = CanvasRenderingContext2D.ctor(settings) this.peer = new Finalizable(ctorPtr, CanvasRenderingContext2D.getFinalizer()) } static getFinalizer(): KPointer { return NativeModule._CanvasRenderingContext2D_getFinalizer() } + toDataURL(type?: string, quality?: Object): string { + if ((type) == (undefined)) { + throw new Error("Arg 'type' is null"); + } + const type_casted = type as (string) + if ((quality) == (undefined)) { + throw new Error("Arg 'quality' is null"); + } + const quality_casted = quality as (Object) + return this.toDataURL_serialize(type_casted, quality_casted) + } + startImageAnalyzer(config: ImageAnalyzerConfig): Promise { + const config_casted = config as (ImageAnalyzerConfig) + return this.startImageAnalyzer_serialize(config_casted) + } stopImageAnalyzer(): void { this.stopImageAnalyzer_serialize() } - static of(): CanvasRenderingContext2D { - return CanvasRenderingContext2D.of_serialize() - } private getHeight(): number { return this.getHeight_serialize() } private getWidth(): number { return this.getWidth_serialize() } + private toDataURL_serialize(type?: string, quality?: Object): string { + const thisSerializer = SerializerBase.hold(createSerializer) + let type_type = RuntimeType.UNDEFINED + if (type != undefined) { + type_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(type_type as int32) + if ((RuntimeType.UNDEFINED) != (type_type)) { + const type_value = type! + thisSerializer.writeString(type_value) + } + let quality_type = RuntimeType.UNDEFINED + if (quality != undefined) { + quality_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(quality_type as int32) + if ((RuntimeType.UNDEFINED) != (quality_type)) { + const quality_value = quality! + thisSerializer.writeCustomObject("Any", quality_value) + } + const retval = NativeModule._CanvasRenderingContext2D_toDataURL(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release(); + return retval + } + private startImageAnalyzer_serialize(config: ImageAnalyzerConfig): Promise { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeImageAnalyzerConfig(config) + const retval = NativeModule._CanvasRenderingContext2D_startImageAnalyzer(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release(); + throw new Error("Object deserialization is not implemented.") + } private stopImageAnalyzer_serialize(): void { NativeModule._CanvasRenderingContext2D_stopImageAnalyzer(this.peer!.ptr); } - private static of_serialize(): CanvasRenderingContext2D { - const retval = NativeModule._CanvasRenderingContext2D_of() - const obj = new CanvasRenderingContext2D() - obj.peer = new Finalizable(retval, CanvasRenderingContext2D.getFinalizer()) - return obj - } private getHeight_serialize(): number { const retval = NativeModule._CanvasRenderingContext2D_getHeight(this.peer!.ptr) return retval diff --git a/arkoala-arkts/arkui/src/generated/ArkColumn.ts b/arkoala-arkts/arkui/src/generated/ArkColumn.ts index 5160ddd9a..52580f623 100644 --- a/arkoala-arkts/arkui/src/generated/ArkColumn.ts +++ b/arkoala-arkts/arkui/src/generated/ArkColumn.ts @@ -23,14 +23,20 @@ import { ComponentBase } from "./ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkColumnPeer } from "./peers/ArkColumnPeer" -import { HorizontalAlign, ColumnAttribute, ColumnInterface } from "./ArkColumnInterfaces" +import { HorizontalAlign, FlexAlign } from "./ArkEnumsInterfaces" +import { ColumnAttribute, ColumnOptions, ColumnInterface } from "./ArkColumnInterfaces" +import { PointLightStyle, Optional } from "./ArkCommonInterfaces" /** @memo:stable */ export class ArkColumnComponent extends ArkCommonMethodComponent { protected peer?: ArkColumnPeer /** @memo */ - setColumnOptions(): this { + setColumnOptions(options?: ColumnOptions): this { if (this.checkPriority("setColumnOptions")) { - this.peer?.setColumnOptionsAttribute() + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (ColumnOptions) + this.peer?.setColumnOptionsAttribute(options_casted) return this } return this @@ -44,6 +50,33 @@ export class ArkColumnComponent extends ArkCommonMethodComponent { } return this } + /** @memo */ + justifyContent(value: FlexAlign): this { + if (this.checkPriority("justifyContent")) { + const value_casted = value as (FlexAlign) + this.peer?.justifyContentAttribute(value_casted) + return this + } + return this + } + /** @memo */ + pointLight(value: PointLightStyle): this { + if (this.checkPriority("pointLight")) { + const value_casted = value as (PointLightStyle) + this.peer?.pointLightAttribute(value_casted) + return this + } + return this + } + /** @memo */ + reverse(isReversed: boolean | undefined): this { + if (this.checkPriority("reverse")) { + const isReversed_casted = isReversed as (boolean | undefined) + this.peer?.reverseAttribute(isReversed_casted) + return this + } + return this + } public applyAttributesFinish(): void { // we calls this function outside of class, so need to make it public super.applyAttributesFinish() @@ -56,13 +89,13 @@ export function ArkColumn( style: ((attributes: ArkColumnComponent) => void) | undefined, /** @memo */ content_: (() => void) | undefined, - + options?: ColumnOptions ) { const receiver = remember(() => { return new ArkColumnComponent() }) NodeAttach((): ArkColumnPeer => ArkColumnPeer.create(ArkUINodeType.Column, receiver), (_: ArkColumnPeer) => { - receiver.setColumnOptions() + receiver.setColumnOptions(options) style?.(receiver) content_?.() receiver.applyAttributesFinish() diff --git a/arkoala-arkts/arkui/src/generated/ArkColumnInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkColumnInterfaces.ts index 3a885ae46..346472db9 100644 --- a/arkoala-arkts/arkui/src/generated/ArkColumnInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkColumnInterfaces.ts @@ -1,74 +1,14 @@ +import { HorizontalAlign, FlexAlign } from "./ArkEnumsInterfaces" +import { PointLightStyle, Optional } from "./ArkCommonInterfaces" import { KInt } from "@koalaui/interop" -export class HorizontalAlign { - static readonly Start: HorizontalAlign = new HorizontalAlign(0) - static readonly Center: HorizontalAlign = new HorizontalAlign(1) - static readonly End: HorizontalAlign = new HorizontalAlign(2) - constructor(value: KInt) { - this.value = value - } - public readonly value: KInt - public static of(arg0: KInt): HorizontalAlign { - if ((arg0) == (HorizontalAlign.Start.value)) { - return HorizontalAlign.Start - } - if ((arg0) == (HorizontalAlign.Center.value)) { - return HorizontalAlign.Center - } - if ((arg0) == (HorizontalAlign.End.value)) { - return HorizontalAlign.End - } - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class TitleHeight { - static readonly MainOnly: TitleHeight = new TitleHeight(0) - static readonly MainWithSub: TitleHeight = new TitleHeight(1) - constructor(value: KInt) { - this.value = value - } - public readonly value: KInt - public static of(arg0: KInt): TitleHeight { - if ((arg0) == (TitleHeight.MainOnly.value)) { - return TitleHeight.MainOnly - } - if ((arg0) == (TitleHeight.MainWithSub.value)) { - return TitleHeight.MainWithSub - } - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class LayoutSafeAreaType { - static readonly SYSTEM: LayoutSafeAreaType = new LayoutSafeAreaType(0) - constructor(value: KInt) { - this.value = value - } - public readonly value: KInt - public static of(arg0: KInt): LayoutSafeAreaType { - if ((arg0) == (LayoutSafeAreaType.SYSTEM.value)) { - return LayoutSafeAreaType.SYSTEM - } - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class LayoutSafeAreaEdge { - static readonly TOP: LayoutSafeAreaEdge = new LayoutSafeAreaEdge(0) - static readonly BOTTOM: LayoutSafeAreaEdge = new LayoutSafeAreaEdge(1) - constructor(value: KInt) { - this.value = value - } - public readonly value: KInt - public static of(arg0: KInt): LayoutSafeAreaEdge { - if ((arg0) == (LayoutSafeAreaEdge.TOP.value)) { - return LayoutSafeAreaEdge.TOP - } - if ((arg0) == (LayoutSafeAreaEdge.BOTTOM.value)) { - return LayoutSafeAreaEdge.BOTTOM - } - throw new Error(`Enum member '${arg0}' not found`) - } -} export interface ColumnAttribute { alignItems(value: HorizontalAlign): ColumnAttribute; + justifyContent(value: FlexAlign): ColumnAttribute; + pointLight(value: PointLightStyle): ColumnAttribute; + reverse(isReversed: boolean | undefined): ColumnAttribute; } export interface ColumnInterface { +} +export interface ColumnOptions { + space?: string | number } \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkCommon.ts b/arkoala-arkts/arkui/src/generated/ArkCommon.ts index 3e5410f38..cf2e51dfd 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCommon.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCommon.ts @@ -21,21 +21,1540 @@ import { ArkUINodeType } from "./peers/ArkUINodeType" import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" import { ComponentBase } from "./ComponentBase" import { TypeChecker } from "#components" -import { ArkCommonMethodPeer, LinearGradientValuesType, ArkCommonPeer, ArkScrollableCommonMethodPeer, ArkCommonShapeMethodPeer } from "./peers/ArkCommonPeer" +import { ArkCommonMethodPeer, UseSizeTypeValuesType, LinearGradientValuesType, SweepGradientValuesType, RadialGradientValuesType, ArkCommonShapeMethodPeer, ArkCommonPeer, ArkScrollableCommonMethodPeer } from "./peers/ArkCommonPeer" import { UseEventsProperties } from "./use_properties" -import { StateStyles, BlurOptions, Padding, CustomBuilder, SheetOptions, BlurStyle, BackgroundBlurStyleOptions, DragPreviewOptions, DragInteractionOptions, GradientDirection, BorderOptions, TouchTestInfo, AttributeModifier, GestureRecognizerJudgeBeginCallback, ClickEvent, Callback, CommonMethod, CommonAttribute, CommonInterface, ScrollableCommonMethod, CommonShapeMethod, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetDismiss, DismissSheetAction, SpringBackAction, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderStyle, EdgeStyles, ShadowOptions, ShadowStyle, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, DismissReason, ShadowType, BlurStyleOptions, ThemeColorMode, AdaptiveColor, BlurStyleActivePolicy, DragPreviewMode, ImageModifier, RectResult, UIGestureEvent, BaseEvent, PixelMap, SymbolGlyphModifier, CommonConfiguration, ComponentContent } from "./ArkCommonInterfaces" -import { Length, Resource, Dimension, PX, VP, FP, LPX, Percentage, ResourceColor, ResourceStr, LengthMetrics } from "./ArkUnitsInterfaces" -import { IMPORT_Resource_FROM_resource_resource, LITERAL_TopLengthRightLengthBottomLengthLeftLength, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, LITERAL_AngleNumberstringDirectionGradientDirectionColorsArrayResourceColornumberRepeatingBoolean, LITERAL_TopResourceColorRightResourceColorBottomResourceColorLeftResourceColor, LITERAL_TopBorderStyleRightBorderStyleBottomBorderStyleLeftBorderStyle, IMPORT_UIContext_FROM_api_ohos_arkui_UIContext, IMPORT_LengthMetrics_FROM_api_arkui_Graphics, IMPORT_ImageModifier_FROM_api_arkui_ImageModifier, IMPORT_default_PixelMap_FROM_resource_image, IMPORT_SymbolGlyphModifier_FROM_resource_symbol, IMPORT_ComponentContent_FROM_api_arkui_ComponentContent } from "./SyntheticDeclarations" -import { Optional } from "./ArkListInterfaces" -import { Color, ColoringStrategy } from "./ArkEnumsInterfaces" +import { Length, Resource, SizeOptions, ConstraintSizeOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, ResourceStr, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, PX, VP, FP, LPX, Percentage, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, Bias, Font, LengthMetrics } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, LITERAL_TopLengthRightLengthBottomLengthLeftLength, LITERAL_AlignAlignment, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image, IMPORT_default_VisualEffect_FROM_api_ohos_graphics_uiEffect, IMPORT_default_Filter_FROM_api_ohos_graphics_uiEffect, LITERAL_TopBorderStyleRightBorderStyleBottomBorderStyleLeftBorderStyle, LITERAL_TopResourceColorRightResourceColorBottomResourceColorLeftResourceColor, LITERAL_TopLeftLengthTopRightLengthBottomLeftLengthBottomRightLength, LITERAL_TopOutlineStyleRightOutlineStyleBottomOutlineStyleLeftOutlineStyle, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, LITERAL_TopDimensionRightDimensionBottomDimensionLeftDimension, LITERAL_TopLeftDimensionTopRightDimensionBottomLeftDimensionBottomRightDimension, LITERAL_SpanNumberOffsetNumber, LITERAL_XsNumberLITERALSpanNumberOffsetNumberSmNumberLITERALSpanNumberOffsetNumberMdNumberLITERALSpanNumberOffsetNumberLgNumberLITERALSpanNumberOffsetNumber, IMPORT_default_UniformDataType_FROM_api_ohos_data_uniformTypeDescriptor, IMPORT_ComponentContent_T_FROM_api_arkui_ComponentContent, LITERAL_AngleNumberstringDirectionGradientDirectionColorsArrayResourceColornumberRepeatingBoolean, LITERAL_CenterLengthLengthStartNumberstringEndNumberstringRotationNumberstringColorsArrayResourceColornumberRepeatingBoolean, LITERAL_CenterLengthLengthRadiusNumberstringColorsArrayResourceColornumberRepeatingBoolean, IMPORT_default_Blender_FROM_api_ohos_graphics_uiEffect, IMPORT_CircleShape_FROM_api_ohos_arkui_shape, IMPORT_EllipseShape_FROM_api_ohos_arkui_shape, IMPORT_PathShape_FROM_api_ohos_arkui_shape, IMPORT_RectShape_FROM_api_ohos_arkui_shape, IMPORT_DrawContext_FROM_api_arkui_Graphics, IMPORT_IntentionCode_FROM_api_ohos_multimodalInput_intentionCode, LITERAL_AnchorStringAlignHorizontalAlign, LITERAL_AnchorStringAlignVerticalAlign, IMPORT_default_UnifiedData_FROM_api_ohos_data_unifiedDataChannel, IMPORT_default_Summary_FROM_api_ohos_data_unifiedDataChannel, IMPORT_ImageModifier_FROM_api_arkui_ImageModifier, LITERAL_ValueStringActionVoid, LITERAL_IsVisibleBoolean, LITERAL_ColorResourceColor, IMPORT_SymbolGlyphModifier_FROM_api_arkui_SymbolGlyphModifier, IMPORT_UIContext_FROM_api_ohos_arkui_UIContext, IMPORT_LengthMetrics_FROM_api_arkui_Graphics } from "./SyntheticDeclarations" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { Optional, SafeAreaType, SafeAreaEdge, Rectangle, TouchTestInfo, TouchResult, CustomBuilder, PixelRoundPolicy, PixelMap, BlurStyle, BackgroundBlurStyleOptions, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, ForegroundBlurStyleOptions, BorderImageOption, OutlineStyle, ClickEvent, Callback, HoverEvent, AccessibilityCallback, AccessibilityHoverEvent, MouseEvent, TouchEvent, KeyEvent, AnimateParam, TransitionOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, sharedTransitionOptions, AlignRuleOption, LocalizedAlignRuleOptions, ChainStyle, ClickEffect, DragEvent, DragItemInfo, UniformDataType, DragPreviewOptions, DragInteractionOptions, PreDragStatus, ComponentContent, OverlayOptions, MotionPathOptions, ShadowOptions, ShadowStyle, BlendMode, BlendApplyType, Blender, CircleShape, EllipseShape, PathShape, RectShape, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, StateStyles, VisibleAreaChangeCallback, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, CommonMethod, CommonShapeMethod, CommonAttribute, CommonInterface, EdgeEffectOptions, FadingEdgeOptions, NestedScrollOptions, ScrollResult, OnScrollCallback, ScrollableCommonMethod, DrawContext, RectResult, TouchTestStrategy, BlurStyleOptions, ThemeColorMode, AdaptiveColor, BlurStyleActivePolicy, BlurType, RepeatMode, BaseEvent, EventTarget, SourceType, SourceTool, TouchObject, HistoricalPoint, IntentionCode, FinishCallbackType, ExpectedFrameRateRange, FractionStop, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, DragBehavior, UnifiedData, Summary, DragResult, DragPreviewMode, ImageModifier, OverlayOffset, ShadowType, TransitionHierarchyStrategy, PopupMessageOptions, DismissPopupAction, DismissReason, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, AnimationRange, BindOptions, DismissContentCoverAction, SheetSize, SheetType, SheetTitleOptions, SheetDismiss, DismissSheetAction, SpringBackAction, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, UIGestureEvent, CommonConfiguration, WrappedBuilder, PickerTextStyle, LightSource, PointLightStyle, MultiShadowOptions, ItemDragInfo, MenuPolicy, SelectionOptions, TextDecorationOptions, CaretOffset, InputCounterOptions } from "./ArkCommonInterfaces" +import { HitTestMode, Alignment, Color, ImageRepeat, ImageSize, BorderStyle, ColoringStrategy, HoverEffect, Visibility, ItemAlign, Direction, Axis, GradientDirection, ResponseType, FunctionKey, ModifierKey, ObscuredReasons, RenderFit, LineCapStyle, LineJoinStyle, BarState, EdgeEffect, ScrollSource, PixelRoundCalcPolicy, AccessibilityHoverType, MouseButton, MouseAction, TouchType, KeyType, KeySource, Curve, PlayMode, TransitionType, SharedTransitionEffectType, HorizontalAlign, VerticalAlign, ClickEffectLevel, Placement, ArrowPointPosition, IlluminatedType, NestedScrollMode, TextDecorationType, TextDecorationStyle } from "./ArkEnumsInterfaces" +import { ResizableOptions } from "./ArkImageInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect, OnWillScrollCallback, LinearGradient, ContentModifier } from "./ConflictedDeclarations" +import { GestureType, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureMask, GestureInfo, BaseGestureEvent, GestureJudgeResult, GestureHandler, GesturePriority } from "./ArkGestureInterfaces" +import { CircleAttribute } from "./ArkCircleInterfaces" +import { EllipseAttribute } from "./ArkEllipseInterfaces" +import { PathAttribute } from "./ArkPathInterfaces" +import { RectAttribute } from "./ArkRectInterfaces" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./ArkAttributeModifierMaterialized" import { GestureModifier } from "./ArkGestureModifierMaterialized" -import { BaseGestureEvent, GestureJudgeResult, GestureHandler, GesturePriority, GestureMask } from "./ArkGestureInterfaces" import { GestureRecognizer } from "./ArkGestureRecognizerMaterialized" -import { ContentModifier } from "./ConflictedDeclarations" +import { ScrollState } from "./ArkListInterfaces" +import { ICurve } from "./ArkICurveMaterialized" /** @memo:stable */ export class ArkCommonMethodComponent extends ComponentBase { protected peer?: ArkCommonMethodPeer /** @memo */ + width(value: Length): this { + if (this.checkPriority("width")) { + const value_casted = value as (Length) + this.peer?.widthAttribute(value_casted) + return this + } + return this + } + /** @memo */ + height(value: Length): this { + if (this.checkPriority("height")) { + const value_casted = value as (Length) + this.peer?.heightAttribute(value_casted) + return this + } + return this + } + /** @memo */ + drawModifier(modifier: DrawModifier | undefined): this { + if (this.checkPriority("drawModifier")) { + const modifier_casted = modifier as (DrawModifier | undefined) + this.peer?.drawModifierAttribute(modifier_casted) + return this + } + return this + } + /** @memo */ + customProperty(name: string, value: Object | undefined): this { + if (this.checkPriority("customProperty")) { + const name_casted = name as (string) + const value_casted = value as (Object | undefined) + this.peer?.customPropertyAttribute(name_casted, value_casted) + return this + } + return this + } + /** @memo */ + expandSafeArea(types?: Array, edges?: Array): this { + if (this.checkPriority("expandSafeArea")) { + if ((types) == (undefined)) { + throw new Error("Arg 'types' is null"); + } + const types_casted = types as (Array) + if ((edges) == (undefined)) { + throw new Error("Arg 'edges' is null"); + } + const edges_casted = edges as (Array) + this.peer?.expandSafeAreaAttribute(types_casted, edges_casted) + return this + } + return this + } + /** @memo */ + responseRegion(value: Array | Rectangle): this { + if (this.checkPriority("responseRegion")) { + const value_casted = value as (Array | Rectangle) + this.peer?.responseRegionAttribute(value_casted) + return this + } + return this + } + /** @memo */ + mouseResponseRegion(value: Array | Rectangle): this { + if (this.checkPriority("mouseResponseRegion")) { + const value_casted = value as (Array | Rectangle) + this.peer?.mouseResponseRegionAttribute(value_casted) + return this + } + return this + } + /** @memo */ + size(value: SizeOptions): this { + if (this.checkPriority("size")) { + const value_casted = value as (SizeOptions) + this.peer?.sizeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + constraintSize(value: ConstraintSizeOptions): this { + if (this.checkPriority("constraintSize")) { + const value_casted = value as (ConstraintSizeOptions) + this.peer?.constraintSizeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + touchable(value: boolean): this { + if (this.checkPriority("touchable")) { + const value_casted = value as (boolean) + this.peer?.touchableAttribute(value_casted) + return this + } + return this + } + /** @memo */ + hitTestBehavior(value: HitTestMode): this { + if (this.checkPriority("hitTestBehavior")) { + const value_casted = value as (HitTestMode) + this.peer?.hitTestBehaviorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + onChildTouchTest(event: ((value: Array) => TouchResult)): this { + if (this.checkPriority("onChildTouchTest")) { + const event_casted = event as (((value: Array) => TouchResult)) + this.peer?.onChildTouchTestAttribute(event_casted) + return this + } + return this + } + /** @memo */ + layoutWeight(value: number | string): this { + if (this.checkPriority("layoutWeight")) { + const value_casted = value as (number | string) + this.peer?.layoutWeightAttribute(value_casted) + return this + } + return this + } + /** @memo */ + padding(value: Padding | Length | LocalizedPadding): this { + if (this.checkPriority("padding")) { + const value_casted = value as (Padding | Length | LocalizedPadding) + this.peer?.paddingAttribute(value_casted) + return this + } + return this + } + /** @memo */ + margin(value: Margin | Length | LocalizedMargin): this { + if (this.checkPriority("margin")) { + const value_casted = value as (Margin | Length | LocalizedMargin) + this.peer?.marginAttribute(value_casted) + return this + } + return this + } + /** @memo */ + background(builder: CustomBuilder, options?: LITERAL_AlignAlignment): this { + if (this.checkPriority("background")) { + const builder_casted = builder as (CustomBuilder) + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (LITERAL_AlignAlignment) + this.peer?.backgroundAttribute(builder_casted, options_casted) + return this + } + return this + } + /** @memo */ + backgroundColor(value: ResourceColor): this { + if (this.checkPriority("backgroundColor")) { + const value_casted = value as (ResourceColor) + this.peer?.backgroundColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + pixelRound(value: PixelRoundPolicy): this { + if (this.checkPriority("pixelRound")) { + const value_casted = value as (PixelRoundPolicy) + this.peer?.pixelRoundAttribute(value_casted) + return this + } + return this + } + /** @memo */ + backgroundImage(src: ResourceStr | PixelMap, repeat?: ImageRepeat): this { + if (this.checkPriority("backgroundImage")) { + const src_casted = src as (ResourceStr | PixelMap) + if ((repeat) == (undefined)) { + throw new Error("Arg 'repeat' is null"); + } + const repeat_casted = repeat as (ImageRepeat) + this.peer?.backgroundImageAttribute(src_casted, repeat_casted) + return this + } + return this + } + /** @memo */ + backgroundImageSize(value: SizeOptions | ImageSize): this { + if (this.checkPriority("backgroundImageSize")) { + const value_casted = value as (SizeOptions | ImageSize) + this.peer?.backgroundImageSizeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + backgroundImagePosition(value: Position | Alignment): this { + if (this.checkPriority("backgroundImagePosition")) { + const value_casted = value as (Position | Alignment) + this.peer?.backgroundImagePositionAttribute(value_casted) + return this + } + return this + } + /** @memo */ + backgroundBlurStyle(value: BlurStyle, options?: BackgroundBlurStyleOptions): this { + if (this.checkPriority("backgroundBlurStyle")) { + const value_casted = value as (BlurStyle) + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (BackgroundBlurStyleOptions) + this.peer?.backgroundBlurStyleAttribute(value_casted, options_casted) + return this + } + return this + } + /** @memo */ + backgroundEffect(options: BackgroundEffectOptions): this { + if (this.checkPriority("backgroundEffect")) { + const options_casted = options as (BackgroundEffectOptions) + this.peer?.backgroundEffectAttribute(options_casted) + return this + } + return this + } + /** @memo */ + backgroundImageResizable(value: ResizableOptions): this { + if (this.checkPriority("backgroundImageResizable")) { + const value_casted = value as (ResizableOptions) + this.peer?.backgroundImageResizableAttribute(value_casted) + return this + } + return this + } + /** @memo */ + foregroundEffect(options: ForegroundEffectOptions): this { + if (this.checkPriority("foregroundEffect")) { + const options_casted = options as (ForegroundEffectOptions) + this.peer?.foregroundEffectAttribute(options_casted) + return this + } + return this + } + /** @memo */ + visualEffect(effect: VisualEffect): this { + if (this.checkPriority("visualEffect")) { + const effect_casted = effect as (VisualEffect) + this.peer?.visualEffectAttribute(effect_casted) + return this + } + return this + } + /** @memo */ + backgroundFilter(filter: Filter): this { + if (this.checkPriority("backgroundFilter")) { + const filter_casted = filter as (Filter) + this.peer?.backgroundFilterAttribute(filter_casted) + return this + } + return this + } + /** @memo */ + foregroundFilter(filter: Filter): this { + if (this.checkPriority("foregroundFilter")) { + const filter_casted = filter as (Filter) + this.peer?.foregroundFilterAttribute(filter_casted) + return this + } + return this + } + /** @memo */ + compositingFilter(filter: Filter): this { + if (this.checkPriority("compositingFilter")) { + const filter_casted = filter as (Filter) + this.peer?.compositingFilterAttribute(filter_casted) + return this + } + return this + } + /** @memo */ + foregroundBlurStyle(value: BlurStyle, options?: ForegroundBlurStyleOptions): this { + if (this.checkPriority("foregroundBlurStyle")) { + const value_casted = value as (BlurStyle) + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (ForegroundBlurStyleOptions) + this.peer?.foregroundBlurStyleAttribute(value_casted, options_casted) + return this + } + return this + } + /** @memo */ + opacity(value: number | Resource): this { + if (this.checkPriority("opacity")) { + const value_casted = value as (number | Resource) + this.peer?.opacityAttribute(value_casted) + return this + } + return this + } + /** @memo */ + border(value: BorderOptions): this { + if (this.checkPriority("border")) { + const value_casted = value as (BorderOptions) + this.peer?.borderAttribute(value_casted) + return this + } + return this + } + /** @memo */ + borderStyle(value: BorderStyle | EdgeStyles): this { + if (this.checkPriority("borderStyle")) { + const value_casted = value as (BorderStyle | EdgeStyles) + this.peer?.borderStyleAttribute(value_casted) + return this + } + return this + } + /** @memo */ + borderWidth(value: Length | EdgeWidths | LocalizedEdgeWidths): this { + if (this.checkPriority("borderWidth")) { + const value_casted = value as (Length | EdgeWidths | LocalizedEdgeWidths) + this.peer?.borderWidthAttribute(value_casted) + return this + } + return this + } + /** @memo */ + borderColor(value: ResourceColor | EdgeColors | LocalizedEdgeColors): this { + if (this.checkPriority("borderColor")) { + const value_casted = value as (ResourceColor | EdgeColors | LocalizedEdgeColors) + this.peer?.borderColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + borderRadius(value: Length | BorderRadiuses | LocalizedBorderRadiuses): this { + if (this.checkPriority("borderRadius")) { + const value_casted = value as (Length | BorderRadiuses | LocalizedBorderRadiuses) + this.peer?.borderRadiusAttribute(value_casted) + return this + } + return this + } + /** @memo */ + borderImage(value: BorderImageOption): this { + if (this.checkPriority("borderImage")) { + const value_casted = value as (BorderImageOption) + this.peer?.borderImageAttribute(value_casted) + return this + } + return this + } + /** @memo */ + outline(value: OutlineOptions): this { + if (this.checkPriority("outline")) { + const value_casted = value as (OutlineOptions) + this.peer?.outlineAttribute(value_casted) + return this + } + return this + } + /** @memo */ + outlineStyle(value: OutlineStyle | EdgeOutlineStyles): this { + if (this.checkPriority("outlineStyle")) { + const value_casted = value as (OutlineStyle | EdgeOutlineStyles) + this.peer?.outlineStyleAttribute(value_casted) + return this + } + return this + } + /** @memo */ + outlineWidth(value: Dimension | EdgeOutlineWidths): this { + if (this.checkPriority("outlineWidth")) { + const value_casted = value as (Dimension | EdgeOutlineWidths) + this.peer?.outlineWidthAttribute(value_casted) + return this + } + return this + } + /** @memo */ + outlineColor(value: ResourceColor | EdgeColors | LocalizedEdgeColors): this { + if (this.checkPriority("outlineColor")) { + const value_casted = value as (ResourceColor | EdgeColors | LocalizedEdgeColors) + this.peer?.outlineColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + outlineRadius(value: Dimension | OutlineRadiuses): this { + if (this.checkPriority("outlineRadius")) { + const value_casted = value as (Dimension | OutlineRadiuses) + this.peer?.outlineRadiusAttribute(value_casted) + return this + } + return this + } + /** @memo */ + foregroundColor(value: ResourceColor | ColoringStrategy): this { + if (this.checkPriority("foregroundColor")) { + const value_casted = value as (ResourceColor | ColoringStrategy) + this.peer?.foregroundColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + onClick(event: Callback | ((event: ClickEvent) => void), distanceThreshold?: number): this { + if (this.checkPriority("onClick")) { + const event_type = runtimeType(event) + const distanceThreshold_type = runtimeType(distanceThreshold) + if ((((RuntimeType.FUNCTION == event_type))) && (((RuntimeType.NUMBER == distanceThreshold_type)))) { + const event_casted = event as (Callback) + if ((distanceThreshold) == (undefined)) { + throw new Error("Arg 'distanceThreshold' is null"); + } + const distanceThreshold_casted = distanceThreshold as (number) + this.peer?.onClick1Attribute(event_casted, distanceThreshold_casted) + return this + } + if ((((RuntimeType.FUNCTION == event_type))) && (((RuntimeType.UNDEFINED == distanceThreshold_type)))) { + const event_casted = event as (((event: ClickEvent) => void)) + this.peer?.onClick0Attribute(event_casted) + return this + } + throw new Error("Can not select appropriate overload") + } + return this + } + /** @memo */ + onHover(event: ((isHover: boolean, event: HoverEvent) => void)): this { + if (this.checkPriority("onHover")) { + const event_casted = event as (((isHover: boolean, event: HoverEvent) => void)) + this.peer?.onHoverAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onAccessibilityHover(callback: AccessibilityCallback): this { + if (this.checkPriority("onAccessibilityHover")) { + const callback_casted = callback as (AccessibilityCallback) + this.peer?.onAccessibilityHoverAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + hoverEffect(value: HoverEffect): this { + if (this.checkPriority("hoverEffect")) { + const value_casted = value as (HoverEffect) + this.peer?.hoverEffectAttribute(value_casted) + return this + } + return this + } + /** @memo */ + onMouse(event: ((event: MouseEvent) => void)): this { + if (this.checkPriority("onMouse")) { + const event_casted = event as (((event: MouseEvent) => void)) + this.peer?.onMouseAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onTouch(event: ((event: TouchEvent) => void)): this { + if (this.checkPriority("onTouch")) { + const event_casted = event as (((event: TouchEvent) => void)) + this.peer?.onTouchAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onKeyEvent(event: ((event: KeyEvent) => void)): this { + if (this.checkPriority("onKeyEvent")) { + const event_casted = event as (((event: KeyEvent) => void)) + this.peer?.onKeyEventAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onKeyPreIme(event: Callback): this { + if (this.checkPriority("onKeyPreIme")) { + const event_casted = event as (Callback) + this.peer?.onKeyPreImeAttribute(event_casted) + return this + } + return this + } + /** @memo */ + focusable(value: boolean): this { + if (this.checkPriority("focusable")) { + const value_casted = value as (boolean) + this.peer?.focusableAttribute(value_casted) + return this + } + return this + } + /** @memo */ + onFocus(event: (() => void)): this { + if (this.checkPriority("onFocus")) { + const event_casted = event as ((() => void)) + this.peer?.onFocusAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onBlur(event: (() => void)): this { + if (this.checkPriority("onBlur")) { + const event_casted = event as ((() => void)) + this.peer?.onBlurAttribute(event_casted) + return this + } + return this + } + /** @memo */ + tabIndex(index: number): this { + if (this.checkPriority("tabIndex")) { + const index_casted = index as (number) + this.peer?.tabIndexAttribute(index_casted) + return this + } + return this + } + /** @memo */ + defaultFocus(value: boolean): this { + if (this.checkPriority("defaultFocus")) { + const value_casted = value as (boolean) + this.peer?.defaultFocusAttribute(value_casted) + return this + } + return this + } + /** @memo */ + groupDefaultFocus(value: boolean): this { + if (this.checkPriority("groupDefaultFocus")) { + const value_casted = value as (boolean) + this.peer?.groupDefaultFocusAttribute(value_casted) + return this + } + return this + } + /** @memo */ + focusOnTouch(value: boolean): this { + if (this.checkPriority("focusOnTouch")) { + const value_casted = value as (boolean) + this.peer?.focusOnTouchAttribute(value_casted) + return this + } + return this + } + /** @memo */ + focusBox(style: FocusBoxStyle): this { + if (this.checkPriority("focusBox")) { + const style_casted = style as (FocusBoxStyle) + this.peer?.focusBoxAttribute(style_casted) + return this + } + return this + } + /** @memo */ + focusScopeId(id: string, isGroup?: boolean): this { + if (this.checkPriority("focusScopeId")) { + const id_casted = id as (string) + if ((isGroup) == (undefined)) { + throw new Error("Arg 'isGroup' is null"); + } + const isGroup_casted = isGroup as (boolean) + this.peer?.focusScopeIdAttribute(id_casted, isGroup_casted) + return this + } + return this + } + /** @memo */ + focusScopePriority(scopeId: string, priority?: FocusPriority): this { + if (this.checkPriority("focusScopePriority")) { + const scopeId_casted = scopeId as (string) + if ((priority) == (undefined)) { + throw new Error("Arg 'priority' is null"); + } + const priority_casted = priority as (FocusPriority) + this.peer?.focusScopePriorityAttribute(scopeId_casted, priority_casted) + return this + } + return this + } + /** @memo */ + animation(value: AnimateParam): this { + if (this.checkPriority("animation")) { + const value_casted = value as (AnimateParam) + this.peer?.animationAttribute(value_casted) + return this + } + return this + } + /** @memo */ + transition(effect: TransitionEffect | TransitionOptions | TransitionEffect, onFinish?: TransitionFinishCallback | undefined): this { + if (this.checkPriority("transition")) { + const effect_type = runtimeType(effect) + const onFinish_type = runtimeType(onFinish) + if ((((RuntimeType.OBJECT == effect_type))) && (((RuntimeType.FUNCTION == onFinish_type)) || ((RuntimeType.UNDEFINED == onFinish_type)))) { + const effect_casted = effect as (TransitionEffect) + if ((onFinish) == (undefined)) { + throw new Error("Arg 'onFinish' is null"); + } + const onFinish_casted = onFinish as (TransitionFinishCallback | undefined) + this.peer?.transition1Attribute(effect_casted, onFinish_casted) + return this + } + if ((((RuntimeType.OBJECT == effect_type)) || ((RuntimeType.OBJECT == effect_type))) && (((RuntimeType.UNDEFINED == onFinish_type)))) { + const effect_casted = effect as (TransitionOptions | TransitionEffect) + this.peer?.transition0Attribute(effect_casted) + return this + } + throw new Error("Can not select appropriate overload") + } + return this + } + /** @memo */ + gesture(gesture: GestureType, mask?: GestureMask): this { + if (this.checkPriority("gesture")) { + const gesture_casted = gesture as (GestureType) + if ((mask) == (undefined)) { + throw new Error("Arg 'mask' is null"); + } + const mask_casted = mask as (GestureMask) + this.peer?.gestureAttribute(gesture_casted, mask_casted) + return this + } + return this + } + /** @memo */ + priorityGesture(gesture: GestureType, mask?: GestureMask): this { + if (this.checkPriority("priorityGesture")) { + const gesture_casted = gesture as (GestureType) + if ((mask) == (undefined)) { + throw new Error("Arg 'mask' is null"); + } + const mask_casted = mask as (GestureMask) + this.peer?.priorityGestureAttribute(gesture_casted, mask_casted) + return this + } + return this + } + /** @memo */ + parallelGesture(gesture: GestureType, mask?: GestureMask): this { + if (this.checkPriority("parallelGesture")) { + const gesture_casted = gesture as (GestureType) + if ((mask) == (undefined)) { + throw new Error("Arg 'mask' is null"); + } + const mask_casted = mask as (GestureMask) + this.peer?.parallelGestureAttribute(gesture_casted, mask_casted) + return this + } + return this + } + /** @memo */ + blur(value: number, options?: BlurOptions): this { + if (this.checkPriority("blur")) { + const value_casted = value as (number) + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (BlurOptions) + this.peer?.blurAttribute(value_casted, options_casted) + return this + } + return this + } + /** @memo */ + linearGradientBlur(value: number, options: LinearGradientBlurOptions): this { + if (this.checkPriority("linearGradientBlur")) { + const value_casted = value as (number) + const options_casted = options as (LinearGradientBlurOptions) + this.peer?.linearGradientBlurAttribute(value_casted, options_casted) + return this + } + return this + } + /** @memo */ + motionBlur(value: MotionBlurOptions): this { + if (this.checkPriority("motionBlur")) { + const value_casted = value as (MotionBlurOptions) + this.peer?.motionBlurAttribute(value_casted) + return this + } + return this + } + /** @memo */ + brightness(value: number): this { + if (this.checkPriority("brightness")) { + const value_casted = value as (number) + this.peer?.brightnessAttribute(value_casted) + return this + } + return this + } + /** @memo */ + contrast(value: number): this { + if (this.checkPriority("contrast")) { + const value_casted = value as (number) + this.peer?.contrastAttribute(value_casted) + return this + } + return this + } + /** @memo */ + grayscale(value: number): this { + if (this.checkPriority("grayscale")) { + const value_casted = value as (number) + this.peer?.grayscaleAttribute(value_casted) + return this + } + return this + } + /** @memo */ + colorBlend(value: Color | string | Resource): this { + if (this.checkPriority("colorBlend")) { + const value_casted = value as (Color | string | Resource) + this.peer?.colorBlendAttribute(value_casted) + return this + } + return this + } + /** @memo */ + saturate(value: number): this { + if (this.checkPriority("saturate")) { + const value_casted = value as (number) + this.peer?.saturateAttribute(value_casted) + return this + } + return this + } + /** @memo */ + sepia(value: number): this { + if (this.checkPriority("sepia")) { + const value_casted = value as (number) + this.peer?.sepiaAttribute(value_casted) + return this + } + return this + } + /** @memo */ + invert(value: number | InvertOptions): this { + if (this.checkPriority("invert")) { + const value_casted = value as (number | InvertOptions) + this.peer?.invertAttribute(value_casted) + return this + } + return this + } + /** @memo */ + systemBarEffect(): this { + if (this.checkPriority("systemBarEffect")) { + this.peer?.systemBarEffectAttribute() + return this + } + return this + } + /** @memo */ + hueRotate(value: number | string): this { + if (this.checkPriority("hueRotate")) { + const value_casted = value as (number | string) + this.peer?.hueRotateAttribute(value_casted) + return this + } + return this + } + /** @memo */ + useShadowBatching(value: boolean): this { + if (this.checkPriority("useShadowBatching")) { + const value_casted = value as (boolean) + this.peer?.useShadowBatchingAttribute(value_casted) + return this + } + return this + } + /** @memo */ + useEffect(value: boolean): this { + if (this.checkPriority("useEffect")) { + const value_casted = value as (boolean) + this.peer?.useEffectAttribute(value_casted) + return this + } + return this + } + /** @memo */ + backdropBlur(value: number, options?: BlurOptions): this { + if (this.checkPriority("backdropBlur")) { + const value_casted = value as (number) + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (BlurOptions) + this.peer?.backdropBlurAttribute(value_casted, options_casted) + return this + } + return this + } + /** @memo */ + renderGroup(value: boolean): this { + if (this.checkPriority("renderGroup")) { + const value_casted = value as (boolean) + this.peer?.renderGroupAttribute(value_casted) + return this + } + return this + } + /** @memo */ + freeze(value: boolean): this { + if (this.checkPriority("freeze")) { + const value_casted = value as (boolean) + this.peer?.freezeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + translate(value: TranslateOptions): this { + if (this.checkPriority("translate")) { + const value_casted = value as (TranslateOptions) + this.peer?.translateAttribute(value_casted) + return this + } + return this + } + /** @memo */ + scale(value: ScaleOptions): this { + if (this.checkPriority("scale")) { + const value_casted = value as (ScaleOptions) + this.peer?.scaleAttribute(value_casted) + return this + } + return this + } + /** @memo */ + gridSpan(value: number): this { + if (this.checkPriority("gridSpan")) { + const value_casted = value as (number) + this.peer?.gridSpanAttribute(value_casted) + return this + } + return this + } + /** @memo */ + gridOffset(value: number): this { + if (this.checkPriority("gridOffset")) { + const value_casted = value as (number) + this.peer?.gridOffsetAttribute(value_casted) + return this + } + return this + } + /** @memo */ + rotate(value: RotateOptions): this { + if (this.checkPriority("rotate")) { + const value_casted = value as (RotateOptions) + this.peer?.rotateAttribute(value_casted) + return this + } + return this + } + /** @memo */ + transform(value: Object): this { + if (this.checkPriority("transform")) { + const value_casted = value as (Object) + this.peer?.transformAttribute(value_casted) + return this + } + return this + } + /** @memo */ + onAppear(event: (() => void)): this { + if (this.checkPriority("onAppear")) { + const event_casted = event as ((() => void)) + this.peer?.onAppearAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onDisAppear(event: (() => void)): this { + if (this.checkPriority("onDisAppear")) { + const event_casted = event as ((() => void)) + this.peer?.onDisAppearAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onAttach(callback: Callback): this { + if (this.checkPriority("onAttach")) { + const callback_casted = callback as (Callback) + this.peer?.onAttachAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onDetach(callback: Callback): this { + if (this.checkPriority("onDetach")) { + const callback_casted = callback as (Callback) + this.peer?.onDetachAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onAreaChange(event: ((oldValue: Area, newValue: Area) => void)): this { + if (this.checkPriority("onAreaChange")) { + const event_casted = event as (((oldValue: Area, newValue: Area) => void)) + this.peer?.onAreaChangeAttribute(event_casted) + return this + } + return this + } + /** @memo */ + visibility(value: Visibility): this { + if (this.checkPriority("visibility")) { + const value_casted = value as (Visibility) + this.peer?.visibilityAttribute(value_casted) + return this + } + return this + } + /** @memo */ + flexGrow(value: number): this { + if (this.checkPriority("flexGrow")) { + const value_casted = value as (number) + this.peer?.flexGrowAttribute(value_casted) + return this + } + return this + } + /** @memo */ + flexShrink(value: number): this { + if (this.checkPriority("flexShrink")) { + const value_casted = value as (number) + this.peer?.flexShrinkAttribute(value_casted) + return this + } + return this + } + /** @memo */ + flexBasis(value: number | string): this { + if (this.checkPriority("flexBasis")) { + const value_casted = value as (number | string) + this.peer?.flexBasisAttribute(value_casted) + return this + } + return this + } + /** @memo */ + alignSelf(value: ItemAlign): this { + if (this.checkPriority("alignSelf")) { + const value_casted = value as (ItemAlign) + this.peer?.alignSelfAttribute(value_casted) + return this + } + return this + } + /** @memo */ + displayPriority(value: number): this { + if (this.checkPriority("displayPriority")) { + const value_casted = value as (number) + this.peer?.displayPriorityAttribute(value_casted) + return this + } + return this + } + /** @memo */ + zIndex(value: number): this { + if (this.checkPriority("zIndex")) { + const value_casted = value as (number) + this.peer?.zIndexAttribute(value_casted) + return this + } + return this + } + /** @memo */ + sharedTransition(id: string, options?: sharedTransitionOptions): this { + if (this.checkPriority("sharedTransition")) { + const id_casted = id as (string) + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (sharedTransitionOptions) + this.peer?.sharedTransitionAttribute(id_casted, options_casted) + return this + } + return this + } + /** @memo */ + direction(value: Direction): this { + if (this.checkPriority("direction")) { + const value_casted = value as (Direction) + this.peer?.directionAttribute(value_casted) + return this + } + return this + } + /** @memo */ + align(value: Alignment): this { + if (this.checkPriority("align")) { + const value_casted = value as (Alignment) + this.peer?.alignAttribute(value_casted) + return this + } + return this + } + /** @memo */ + position(value: Position | Edges | LocalizedEdges): this { + if (this.checkPriority("position")) { + const value_casted = value as (Position | Edges | LocalizedEdges) + this.peer?.positionAttribute(value_casted) + return this + } + return this + } + /** @memo */ + markAnchor(value: Position | LocalizedPosition): this { + if (this.checkPriority("markAnchor")) { + const value_casted = value as (Position | LocalizedPosition) + this.peer?.markAnchorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + offset(value: Position | Edges | LocalizedEdges): this { + if (this.checkPriority("offset")) { + const value_casted = value as (Position | Edges | LocalizedEdges) + this.peer?.offsetAttribute(value_casted) + return this + } + return this + } + /** @memo */ + enabled(value: boolean): this { + if (this.checkPriority("enabled")) { + const value_casted = value as (boolean) + this.peer?.enabledAttribute(value_casted) + return this + } + return this + } + /** @memo */ + useSizeType(value: UseSizeTypeValuesType): this { + if (this.checkPriority("useSizeType")) { + const value_casted = value as (UseSizeTypeValuesType) + this.peer?.useSizeTypeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + alignRules(value: AlignRuleOption | LocalizedAlignRuleOptions): this { + if (this.checkPriority("alignRules")) { + const value_type = runtimeType(value) + if ((TypeChecker.isAlignRuleOption(value, false, false, true, true, true, true, true))) { + const value_casted = value as (AlignRuleOption) + this.peer?.alignRules0Attribute(value_casted) + return this + } + if ((TypeChecker.isLocalizedAlignRuleOptions(value, false, false, true, true, true, true, true))) { + const value_casted = value as (LocalizedAlignRuleOptions) + this.peer?.alignRules1Attribute(value_casted) + return this + } + throw new Error("Can not select appropriate overload") + } + return this + } + /** @memo */ + chainMode(direction: Axis, style: ChainStyle): this { + if (this.checkPriority("chainMode")) { + const direction_casted = direction as (Axis) + const style_casted = style as (ChainStyle) + this.peer?.chainModeAttribute(direction_casted, style_casted) + return this + } + return this + } + /** @memo */ + aspectRatio(value: number): this { + if (this.checkPriority("aspectRatio")) { + const value_casted = value as (number) + this.peer?.aspectRatioAttribute(value_casted) + return this + } + return this + } + /** @memo */ + clickEffect(value: ClickEffect | null): this { + if (this.checkPriority("clickEffect")) { + const value_casted = value as (ClickEffect | null) + this.peer?.clickEffectAttribute(value_casted) + return this + } + return this + } + /** @memo */ + onDragStart(event: ((event: DragEvent, extraParams: string|undefined) => CustomBuilder | DragItemInfo)): this { + if (this.checkPriority("onDragStart")) { + const event_casted = event as (((event: DragEvent, extraParams: string|undefined) => CustomBuilder | DragItemInfo)) + this.peer?.onDragStartAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onDragEnter(event: ((event: DragEvent, extraParams: string|undefined) => void)): this { + if (this.checkPriority("onDragEnter")) { + const event_casted = event as (((event: DragEvent, extraParams: string|undefined) => void)) + this.peer?.onDragEnterAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onDragMove(event: ((event: DragEvent, extraParams: string|undefined) => void)): this { + if (this.checkPriority("onDragMove")) { + const event_casted = event as (((event: DragEvent, extraParams: string|undefined) => void)) + this.peer?.onDragMoveAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onDragLeave(event: ((event: DragEvent, extraParams: string|undefined) => void)): this { + if (this.checkPriority("onDragLeave")) { + const event_casted = event as (((event: DragEvent, extraParams: string|undefined) => void)) + this.peer?.onDragLeaveAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onDrop(event: ((event: DragEvent, extraParams: string|undefined) => void)): this { + if (this.checkPriority("onDrop")) { + const event_casted = event as (((event: DragEvent, extraParams: string|undefined) => void)) + this.peer?.onDropAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onDragEnd(event: ((event: DragEvent, extraParams: string|undefined) => void)): this { + if (this.checkPriority("onDragEnd")) { + const event_casted = event as (((event: DragEvent, extraParams: string|undefined) => void)) + this.peer?.onDragEndAttribute(event_casted) + return this + } + return this + } + /** @memo */ + allowDrop(value: Array | null): this { + if (this.checkPriority("allowDrop")) { + const value_casted = value as (Array | null) + this.peer?.allowDropAttribute(value_casted) + return this + } + return this + } + /** @memo */ + draggable(value: boolean): this { + if (this.checkPriority("draggable")) { + const value_casted = value as (boolean) + this.peer?.draggableAttribute(value_casted) + return this + } + return this + } + /** @memo */ + dragPreview(value: CustomBuilder | DragItemInfo | string): this { + if (this.checkPriority("dragPreview")) { + const value_casted = value as (CustomBuilder | DragItemInfo | string) + this.peer?.dragPreviewAttribute(value_casted) + return this + } + return this + } + /** @memo */ + dragPreviewOptions(value: DragPreviewOptions, options?: DragInteractionOptions): this { + if (this.checkPriority("dragPreviewOptions")) { + const value_casted = value as (DragPreviewOptions) + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (DragInteractionOptions) + this.peer?.dragPreviewOptionsAttribute(value_casted, options_casted) + return this + } + return this + } + /** @memo */ + onPreDrag(callback: Callback): this { + if (this.checkPriority("onPreDrag")) { + const callback_casted = callback as (Callback) + this.peer?.onPreDragAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + overlay(value: string | CustomBuilder | ComponentContent, options?: OverlayOptions): this { + if (this.checkPriority("overlay")) { + const value_casted = value as (string | CustomBuilder | ComponentContent) + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (OverlayOptions) + this.peer?.overlayAttribute(value_casted, options_casted) + return this + } + return this + } + /** @memo */ + linearGradient(value: LinearGradientValuesType): this { + if (this.checkPriority("linearGradient")) { + const value_casted = value as (LinearGradientValuesType) + this.peer?.linearGradientAttribute(value_casted) + return this + } + return this + } + /** @memo */ + sweepGradient(value: SweepGradientValuesType): this { + if (this.checkPriority("sweepGradient")) { + const value_casted = value as (SweepGradientValuesType) + this.peer?.sweepGradientAttribute(value_casted) + return this + } + return this + } + /** @memo */ + radialGradient(value: RadialGradientValuesType): this { + if (this.checkPriority("radialGradient")) { + const value_casted = value as (RadialGradientValuesType) + this.peer?.radialGradientAttribute(value_casted) + return this + } + return this + } + /** @memo */ + motionPath(value: MotionPathOptions): this { + if (this.checkPriority("motionPath")) { + const value_casted = value as (MotionPathOptions) + this.peer?.motionPathAttribute(value_casted) + return this + } + return this + } + /** @memo */ + shadow(value: ShadowOptions | ShadowStyle): this { + if (this.checkPriority("shadow")) { + const value_casted = value as (ShadowOptions | ShadowStyle) + this.peer?.shadowAttribute(value_casted) + return this + } + return this + } + /** @memo */ + blendMode(value: BlendMode, type?: BlendApplyType): this { + if (this.checkPriority("blendMode")) { + const value_casted = value as (BlendMode) + if ((type) == (undefined)) { + throw new Error("Arg 'type' is null"); + } + const type_casted = type as (BlendApplyType) + this.peer?.blendModeAttribute(value_casted, type_casted) + return this + } + return this + } + /** @memo */ + advancedBlendMode(effect: BlendMode | Blender, type?: BlendApplyType): this { + if (this.checkPriority("advancedBlendMode")) { + const effect_casted = effect as (BlendMode | Blender) + if ((type) == (undefined)) { + throw new Error("Arg 'type' is null"); + } + const type_casted = type as (BlendApplyType) + this.peer?.advancedBlendModeAttribute(effect_casted, type_casted) + return this + } + return this + } + /** @memo */ + clip(value: boolean | boolean | CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute): this { + if (this.checkPriority("clip")) { + const value_type = runtimeType(value) + if ((((RuntimeType.BOOLEAN == value_type)))) { + const value_casted = value as (boolean) + this.peer?.clip0Attribute(value_casted) + return this + } + if ((((RuntimeType.BOOLEAN == value_type)) || ((RuntimeType.OBJECT == value_type)) || ((RuntimeType.OBJECT == value_type)) || ((RuntimeType.OBJECT == value_type)) || ((RuntimeType.OBJECT == value_type)))) { + const value_casted = value as (boolean | CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute) + this.peer?.clip1Attribute(value_casted) + return this + } + throw new Error("Can not select appropriate overload") + } + return this + } + /** @memo */ + clipShape(value: CircleShape | EllipseShape | PathShape | RectShape): this { + if (this.checkPriority("clipShape")) { + const value_casted = value as (CircleShape | EllipseShape | PathShape | RectShape) + this.peer?.clipShapeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + mask(value: ProgressMask | CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute | ProgressMask): this { + if (this.checkPriority("mask")) { + const value_type = runtimeType(value) + if ((((RuntimeType.OBJECT) == (value_type)) && (value instanceof ProgressMask))) { + const value_casted = value as (ProgressMask) + this.peer?.mask0Attribute(value_casted) + return this + } + if ((((RuntimeType.OBJECT == value_type)) || ((RuntimeType.OBJECT == value_type)) || ((RuntimeType.OBJECT == value_type)) || ((RuntimeType.OBJECT == value_type)) || ((RuntimeType.OBJECT == value_type)))) { + const value_casted = value as (CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute | ProgressMask) + this.peer?.mask1Attribute(value_casted) + return this + } + throw new Error("Can not select appropriate overload") + } + return this + } + /** @memo */ + maskShape(value: CircleShape | EllipseShape | PathShape | RectShape): this { + if (this.checkPriority("maskShape")) { + const value_casted = value as (CircleShape | EllipseShape | PathShape | RectShape) + this.peer?.maskShapeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + key(value: string): this { + if (this.checkPriority("key")) { + const value_casted = value as (string) + this.peer?.keyAttribute(value_casted) + return this + } + return this + } + /** @memo */ + id(value: string): this { + if (this.checkPriority("id")) { + const value_casted = value as (string) + this.peer?.idAttribute(value_casted) + return this + } + return this + } + /** @memo */ + geometryTransition(id: string | string, options?: GeometryTransitionOptions): this { + if (this.checkPriority("geometryTransition")) { + const id_type = runtimeType(id) + const options_type = runtimeType(options) + if ((((RuntimeType.STRING == id_type))) && (((RuntimeType.OBJECT == options_type)) || ((RuntimeType.UNDEFINED == options_type)))) { + const id_casted = id as (string) + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (GeometryTransitionOptions) + this.peer?.geometryTransition1Attribute(id_casted, options_casted) + return this + } + if ((((RuntimeType.STRING == id_type))) && (((RuntimeType.UNDEFINED == options_type)))) { + const id_casted = id as (string) + this.peer?.geometryTransition0Attribute(id_casted) + return this + } + throw new Error("Can not select appropriate overload") + } + return this + } + /** @memo */ + bindPopup(show: boolean, popup: PopupOptions | CustomPopupOptions): this { + if (this.checkPriority("bindPopup")) { + const show_casted = show as (boolean) + const popup_casted = popup as (PopupOptions | CustomPopupOptions) + this.peer?.bindPopupAttribute(show_casted, popup_casted) + return this + } + return this + } + /** @memo */ + bindMenu(isShow: boolean | Array | CustomBuilder, content?: Array | CustomBuilder | MenuOptions, options?: MenuOptions): this { + if (this.checkPriority("bindMenu")) { + const isShow_type = runtimeType(isShow) + const content_type = runtimeType(content) + const options_type = runtimeType(options) + if ((((RuntimeType.BOOLEAN == isShow_type))) && (((RuntimeType.OBJECT == content_type)) || ((RuntimeType.FUNCTION == content_type)) || ((RuntimeType.UNDEFINED == content_type))) && (((RuntimeType.OBJECT == options_type)) || ((RuntimeType.UNDEFINED == options_type)))) { + const isShow_casted = isShow as (boolean) + if ((content) == (undefined)) { + throw new Error("Arg 'content' is null"); + } + const content_casted = content as (Array | CustomBuilder) + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (MenuOptions) + this.peer?.bindMenu1Attribute(isShow_casted, content_casted, options_casted) + return this + } + if ((((RuntimeType.OBJECT == isShow_type)) || ((RuntimeType.FUNCTION == isShow_type)) || ((RuntimeType.UNDEFINED == isShow_type))) && (((RuntimeType.OBJECT == content_type)) || ((RuntimeType.UNDEFINED == content_type))) && (((RuntimeType.UNDEFINED == options_type)))) { + const isShow_casted = isShow as (Array | CustomBuilder) + if ((content) == (undefined)) { + throw new Error("Arg 'content' is null"); + } + const content_casted = content as (MenuOptions) + this.peer?.bindMenu0Attribute(isShow_casted, content_casted) + return this + } + throw new Error("Can not select appropriate overload") + } + return this + } + /** @memo */ + bindContextMenu(content: CustomBuilder | boolean, responseType: ResponseType | CustomBuilder, options?: ContextMenuOptions | ContextMenuOptions): this { + if (this.checkPriority("bindContextMenu")) { + const content_type = runtimeType(content) + const responseType_type = runtimeType(responseType) + const options_type = runtimeType(options) + if ((((RuntimeType.FUNCTION == content_type)) || ((RuntimeType.UNDEFINED == content_type))) && (((responseType instanceof ResponseType))) && (((RuntimeType.OBJECT == options_type)) || ((RuntimeType.UNDEFINED == options_type)))) { + const content_casted = content as (CustomBuilder) + const responseType_casted = responseType as (ResponseType) + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (ContextMenuOptions) + this.peer?.bindContextMenu0Attribute(content_casted, responseType_casted, options_casted) + return this + } + if ((((RuntimeType.BOOLEAN == content_type))) && (((RuntimeType.FUNCTION == responseType_type)) || ((RuntimeType.UNDEFINED == responseType_type))) && (((RuntimeType.OBJECT == options_type)) || ((RuntimeType.UNDEFINED == options_type)))) { + const content_casted = content as (boolean) + const responseType_casted = responseType as (CustomBuilder) + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (ContextMenuOptions) + this.peer?.bindContextMenu1Attribute(content_casted, responseType_casted, options_casted) + return this + } + throw new Error("Can not select appropriate overload") + } + return this + } + /** @memo */ + bindContentCover(isShow: boolean | undefined | boolean | undefined, builder: CustomBuilder | CustomBuilder, type?: ModalTransition | ContentCoverOptions): this { + if (this.checkPriority("bindContentCover")) { + const isShow_type = runtimeType(isShow) + const builder_type = runtimeType(builder) + const type_type = runtimeType(type) + if ((((RuntimeType.BOOLEAN == isShow_type)) || ((RuntimeType.UNDEFINED == isShow_type))) && (((RuntimeType.FUNCTION == builder_type)) || ((RuntimeType.UNDEFINED == builder_type))) && (((RuntimeType.OBJECT == type_type)) || ((RuntimeType.UNDEFINED == type_type)))) { + const isShow_casted = isShow as (boolean | undefined) + const builder_casted = builder as (CustomBuilder) + if ((type) == (undefined)) { + throw new Error("Arg 'type' is null"); + } + const type_casted = type as (ModalTransition) + this.peer?.bindContentCover0Attribute(isShow_casted, builder_casted, type_casted) + return this + } + if ((((RuntimeType.BOOLEAN == isShow_type)) || ((RuntimeType.UNDEFINED == isShow_type))) && (((RuntimeType.FUNCTION == builder_type)) || ((RuntimeType.UNDEFINED == builder_type))) && (((RuntimeType.OBJECT == type_type)) || ((RuntimeType.UNDEFINED == type_type)))) { + const isShow_casted = isShow as (boolean | undefined) + const builder_casted = builder as (CustomBuilder) + if ((type) == (undefined)) { + throw new Error("Arg 'type' is null"); + } + const type_casted = type as (ContentCoverOptions) + this.peer?.bindContentCover1Attribute(isShow_casted, builder_casted, type_casted) + return this + } + throw new Error("Can not select appropriate overload") + } + return this + } + /** @memo */ + bindSheet(isShow: boolean | undefined, builder: CustomBuilder, options?: SheetOptions): this { + if (this.checkPriority("bindSheet")) { + const isShow_casted = isShow as (boolean | undefined) + const builder_casted = builder as (CustomBuilder) + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (SheetOptions) + this.peer?.bindSheetAttribute(isShow_casted, builder_casted, options_casted) + return this + } + return this + } + /** @memo */ stateStyles(value: StateStyles): this { if (this.checkPriority("stateStyles")) { const value_casted = value as (StateStyles) @@ -45,172 +1564,363 @@ export class ArkCommonMethodComponent extends ComponentBase { return this } /** @memo */ - backdropBlur(value: number, options?: BlurOptions): this { - if (this.checkPriority("backdropBlur")) { - const value_casted = value as (number) - if ((options) == (undefined)) { - throw new Error("Arg 'options' is null"); - } - const options_casted = options as (BlurOptions) - this.peer?.backdropBlurAttribute(value_casted, options_casted) + restoreId(value: number): this { + if (this.checkPriority("restoreId")) { + const value_casted = value as (number) + this.peer?.restoreIdAttribute(value_casted) + return this + } + return this + } + /** @memo */ + onVisibleAreaChange(ratios: Array, event: VisibleAreaChangeCallback): this { + if (this.checkPriority("onVisibleAreaChange")) { + const ratios_casted = ratios as (Array) + const event_casted = event as (VisibleAreaChangeCallback) + this.peer?.onVisibleAreaChangeAttribute(ratios_casted, event_casted) + return this + } + return this + } + /** @memo */ + sphericalEffect(value: number): this { + if (this.checkPriority("sphericalEffect")) { + const value_casted = value as (number) + this.peer?.sphericalEffectAttribute(value_casted) + return this + } + return this + } + /** @memo */ + lightUpEffect(value: number): this { + if (this.checkPriority("lightUpEffect")) { + const value_casted = value as (number) + this.peer?.lightUpEffectAttribute(value_casted) + return this + } + return this + } + /** @memo */ + pixelStretchEffect(options: PixelStretchEffectOptions): this { + if (this.checkPriority("pixelStretchEffect")) { + const options_casted = options as (PixelStretchEffectOptions) + this.peer?.pixelStretchEffectAttribute(options_casted) + return this + } + return this + } + /** @memo */ + keyboardShortcut(value: string | FunctionKey, keys: Array, action?: (() => void)): this { + if (this.checkPriority("keyboardShortcut")) { + const value_casted = value as (string | FunctionKey) + const keys_casted = keys as (Array) + if ((action) == (undefined)) { + throw new Error("Arg 'action' is null"); + } + const action_casted = action as ((() => void)) + this.peer?.keyboardShortcutAttribute(value_casted, keys_casted, action_casted) + return this + } + return this + } + /** @memo */ + accessibilityGroup(value: boolean): this { + if (this.checkPriority("accessibilityGroup")) { + const value_casted = value as (boolean) + this.peer?.accessibilityGroupAttribute(value_casted) + return this + } + return this + } + /** @memo */ + accessibilityText(value: string | Resource): this { + if (this.checkPriority("accessibilityText")) { + const value_type = runtimeType(value) + if ((((RuntimeType.STRING == value_type)))) { + const value_casted = value as (string) + this.peer?.accessibilityText0Attribute(value_casted) + return this + } + if ((((RuntimeType.OBJECT == value_type)))) { + const value_casted = value as (Resource) + this.peer?.accessibilityText1Attribute(value_casted) + return this + } + throw new Error("Can not select appropriate overload") + } + return this + } + /** @memo */ + accessibilityTextHint(value: string): this { + if (this.checkPriority("accessibilityTextHint")) { + const value_casted = value as (string) + this.peer?.accessibilityTextHintAttribute(value_casted) + return this + } + return this + } + /** @memo */ + accessibilityDescription(value: string | Resource): this { + if (this.checkPriority("accessibilityDescription")) { + const value_type = runtimeType(value) + if ((((RuntimeType.STRING == value_type)))) { + const value_casted = value as (string) + this.peer?.accessibilityDescription0Attribute(value_casted) + return this + } + if ((((RuntimeType.OBJECT == value_type)))) { + const value_casted = value as (Resource) + this.peer?.accessibilityDescription1Attribute(value_casted) + return this + } + throw new Error("Can not select appropriate overload") + } + return this + } + /** @memo */ + accessibilityLevel(value: string): this { + if (this.checkPriority("accessibilityLevel")) { + const value_casted = value as (string) + this.peer?.accessibilityLevelAttribute(value_casted) + return this + } + return this + } + /** @memo */ + accessibilityVirtualNode(builder: CustomBuilder): this { + if (this.checkPriority("accessibilityVirtualNode")) { + const builder_casted = builder as (CustomBuilder) + this.peer?.accessibilityVirtualNodeAttribute(builder_casted) + return this + } + return this + } + /** @memo */ + obscured(reasons: Array): this { + if (this.checkPriority("obscured")) { + const reasons_casted = reasons as (Array) + this.peer?.obscuredAttribute(reasons_casted) + return this + } + return this + } + /** @memo */ + reuseId(id: string): this { + if (this.checkPriority("reuseId")) { + const id_casted = id as (string) + this.peer?.reuseIdAttribute(id_casted) + return this + } + return this + } + /** @memo */ + renderFit(fitMode: RenderFit): this { + if (this.checkPriority("renderFit")) { + const fitMode_casted = fitMode as (RenderFit) + this.peer?.renderFitAttribute(fitMode_casted) + return this + } + return this + } + /** @memo */ + gestureModifier(modifier: GestureModifier): this { + if (this.checkPriority("gestureModifier")) { + const modifier_casted = modifier as (GestureModifier) + this.peer?.gestureModifierAttribute(modifier_casted) + return this + } + return this + } + /** @memo */ + backgroundBrightness(params: BackgroundBrightnessOptions): this { + if (this.checkPriority("backgroundBrightness")) { + const params_casted = params as (BackgroundBrightnessOptions) + this.peer?.backgroundBrightnessAttribute(params_casted) + return this + } + return this + } + /** @memo */ + onGestureJudgeBegin(callback: ((gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult)): this { + if (this.checkPriority("onGestureJudgeBegin")) { + const callback_casted = callback as (((gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult)) + this.peer?.onGestureJudgeBeginAttribute(callback_casted) return this } return this } /** @memo */ - width(value: Length): this { - if (this.checkPriority("width")) { - const value_casted = value as (Length) - this.peer?.widthAttribute(value_casted) + onGestureRecognizerJudgeBegin(callback: GestureRecognizerJudgeBeginCallback): this { + if (this.checkPriority("onGestureRecognizerJudgeBegin")) { + const callback_casted = callback as (GestureRecognizerJudgeBeginCallback) + this.peer?.onGestureRecognizerJudgeBeginAttribute(callback_casted) return this } return this } /** @memo */ - height(value: Length): this { - if (this.checkPriority("height")) { - const value_casted = value as (Length) - this.peer?.heightAttribute(value_casted) + shouldBuiltInRecognizerParallelWith(callback: ShouldBuiltInRecognizerParallelWithCallback): this { + if (this.checkPriority("shouldBuiltInRecognizerParallelWith")) { + const callback_casted = callback as (ShouldBuiltInRecognizerParallelWithCallback) + this.peer?.shouldBuiltInRecognizerParallelWithAttribute(callback_casted) return this } return this } /** @memo */ - key(value: string): this { - if (this.checkPriority("key")) { - const value_casted = value as (string) - this.peer?.keyAttribute(value_casted) + monopolizeEvents(monopolize: boolean): this { + if (this.checkPriority("monopolizeEvents")) { + const monopolize_casted = monopolize as (boolean) + this.peer?.monopolizeEventsAttribute(monopolize_casted) return this } return this } /** @memo */ - restoreId(value: number): this { - if (this.checkPriority("restoreId")) { - const value_casted = value as (number) - this.peer?.restoreIdAttribute(value_casted) + onTouchIntercept(callback: Callback): this { + if (this.checkPriority("onTouchIntercept")) { + const callback_casted = callback as (Callback) + this.peer?.onTouchInterceptAttribute(callback_casted) return this } return this } /** @memo */ - padding(value: Padding | Dimension): this { - if (this.checkPriority("padding")) { - const value_casted = value as (Padding | Dimension) - this.peer?.paddingAttribute(value_casted) + onSizeChange(event: SizeChangeCallback): this { + if (this.checkPriority("onSizeChange")) { + const event_casted = event as (SizeChangeCallback) + this.peer?.onSizeChangeAttribute(event_casted) return this } return this } + attributeModifier(modifier: AttributeModifier): this { throw new Error("not implemented") } + public applyAttributesFinish(): void { + // we calls this function outside of class, so need to make it public + super.applyAttributesFinish() + } +} + +/** @memo */ +export function ArkCommonMethod( + /** @memo */ + style: ((attributes: ArkCommonMethodComponent) => void) | undefined, + /** @memo */ + content_: (() => void) | undefined, + +) { + const receiver = remember(() => { + return new ArkCommonMethodComponent() + }) + NodeAttach((): ArkCommonMethodPeer => ArkCommonMethodPeer.create(ArkUINodeType.CommonMethod, receiver), (_: ArkCommonMethodPeer) => { + + style?.(receiver) + content_?.() + receiver.applyAttributesFinish() + }) +} +/** @memo:stable */ +export class ArkCommonShapeMethodComponent extends ArkCommonMethodComponent { + protected peer?: ArkCommonShapeMethodPeer /** @memo */ - bindSheet(isShow: boolean | undefined, builder: CustomBuilder, options?: SheetOptions): this { - if (this.checkPriority("bindSheet")) { - const isShow_casted = isShow as (boolean | undefined) - const builder_casted = builder as (CustomBuilder) - if ((options) == (undefined)) { - throw new Error("Arg 'options' is null"); - } - const options_casted = options as (SheetOptions) - this.peer?.bindSheetAttribute(isShow_casted, builder_casted, options_casted) + stroke(value: ResourceColor): this { + if (this.checkPriority("stroke")) { + const value_casted = value as (ResourceColor) + this.peer?.strokeAttribute(value_casted) return this } return this } /** @memo */ - backgroundBlurStyle(value: BlurStyle, options?: BackgroundBlurStyleOptions): this { - if (this.checkPriority("backgroundBlurStyle")) { - const value_casted = value as (BlurStyle) - if ((options) == (undefined)) { - throw new Error("Arg 'options' is null"); - } - const options_casted = options as (BackgroundBlurStyleOptions) - this.peer?.backgroundBlurStyleAttribute(value_casted, options_casted) + fill(value: ResourceColor): this { + if (this.checkPriority("fill")) { + const value_casted = value as (ResourceColor) + this.peer?.fillAttribute(value_casted) return this } return this } /** @memo */ - dragPreviewOptions(value: DragPreviewOptions, options?: DragInteractionOptions): this { - if (this.checkPriority("dragPreviewOptions")) { - const value_casted = value as (DragPreviewOptions) - if ((options) == (undefined)) { - throw new Error("Arg 'options' is null"); - } - const options_casted = options as (DragInteractionOptions) - this.peer?.dragPreviewOptionsAttribute(value_casted, options_casted) + strokeDashOffset(value: number | string): this { + if (this.checkPriority("strokeDashOffset")) { + const value_casted = value as (number | string) + this.peer?.strokeDashOffsetAttribute(value_casted) return this } return this } /** @memo */ - linearGradient(value: LinearGradientValuesType): this { - if (this.checkPriority("linearGradient")) { - const value_casted = value as (LinearGradientValuesType) - this.peer?.linearGradientAttribute(value_casted) + strokeLineCap(value: LineCapStyle): this { + if (this.checkPriority("strokeLineCap")) { + const value_casted = value as (LineCapStyle) + this.peer?.strokeLineCapAttribute(value_casted) return this } return this } /** @memo */ - border(value: BorderOptions): this { - if (this.checkPriority("border")) { - const value_casted = value as (BorderOptions) - this.peer?.borderAttribute(value_casted) + strokeLineJoin(value: LineJoinStyle): this { + if (this.checkPriority("strokeLineJoin")) { + const value_casted = value as (LineJoinStyle) + this.peer?.strokeLineJoinAttribute(value_casted) return this } return this } /** @memo */ - onChildTouchTest(event: ((value: Array) => string)): this { - if (this.checkPriority("onChildTouchTest")) { - const event_casted = event as (((value: Array) => string)) - this.peer?.onChildTouchTestAttribute(event_casted) + strokeMiterLimit(value: number | string): this { + if (this.checkPriority("strokeMiterLimit")) { + const value_casted = value as (number | string) + this.peer?.strokeMiterLimitAttribute(value_casted) return this } return this } /** @memo */ - gestureModifier(modifier: GestureModifier): this { - if (this.checkPriority("gestureModifier")) { - const modifier_casted = modifier as (GestureModifier) - this.peer?.gestureModifierAttribute(modifier_casted) + strokeOpacity(value: number | string | Resource): this { + if (this.checkPriority("strokeOpacity")) { + const value_casted = value as (number | string | Resource) + this.peer?.strokeOpacityAttribute(value_casted) return this } return this } /** @memo */ - onGestureRecognizerJudgeBegin(callback: GestureRecognizerJudgeBeginCallback): this { - if (this.checkPriority("onGestureRecognizerJudgeBegin")) { - const callback_casted = callback as (GestureRecognizerJudgeBeginCallback) - this.peer?.onGestureRecognizerJudgeBeginAttribute(callback_casted) + fillOpacity(value: number | string | Resource): this { + if (this.checkPriority("fillOpacity")) { + const value_casted = value as (number | string | Resource) + this.peer?.fillOpacityAttribute(value_casted) return this } return this } /** @memo */ - onClick(event: Callback | ((event: ClickEvent) => void), distanceThreshold?: number): this { - if (this.checkPriority("onClick")) { - const event_type = runtimeType(event) - const distanceThreshold_type = runtimeType(distanceThreshold) - if ((((RuntimeType.FUNCTION == event_type))) && (((RuntimeType.NUMBER == distanceThreshold_type)))) { - const event_casted = event as (Callback) - if ((distanceThreshold) == (undefined)) { - throw new Error("Arg 'distanceThreshold' is null"); - } - const distanceThreshold_casted = distanceThreshold as (number) - this.peer?.onClick1Attribute(event_casted, distanceThreshold_casted) - return this - } - if ((((RuntimeType.FUNCTION == event_type))) && (((RuntimeType.UNDEFINED == distanceThreshold_type)))) { - const event_casted = event as (((event: ClickEvent) => void)) - this.peer?.onClick0Attribute(event_casted) - return this - } - throw new Error("Can not select appropriate overload") + strokeWidth(value: Length): this { + if (this.checkPriority("strokeWidth")) { + const value_casted = value as (Length) + this.peer?.strokeWidthAttribute(value_casted) + return this + } + return this + } + /** @memo */ + antiAlias(value: boolean): this { + if (this.checkPriority("antiAlias")) { + const value_casted = value as (boolean) + this.peer?.antiAliasAttribute(value_casted) + return this + } + return this + } + /** @memo */ + strokeDashArray(value: Array): this { + if (this.checkPriority("strokeDashArray")) { + const value_casted = value as (Array) + this.peer?.strokeDashArrayAttribute(value_casted) + return this } return this } - attributeModifier(modifier: AttributeModifier): this { throw new Error("not implemented") } public applyAttributesFinish(): void { // we calls this function outside of class, so need to make it public super.applyAttributesFinish() @@ -218,17 +1928,17 @@ export class ArkCommonMethodComponent extends ComponentBase { } /** @memo */ -export function ArkCommonMethod( +export function ArkCommonShapeMethod( /** @memo */ - style: ((attributes: ArkCommonMethodComponent) => void) | undefined, + style: ((attributes: ArkCommonShapeMethodComponent) => void) | undefined, /** @memo */ content_: (() => void) | undefined, ) { const receiver = remember(() => { - return new ArkCommonMethodComponent() + return new ArkCommonShapeMethodComponent() }) - NodeAttach((): ArkCommonMethodPeer => ArkCommonMethodPeer.create(ArkUINodeType.CommonMethod, receiver), (_: ArkCommonMethodPeer) => { + NodeAttach((): ArkCommonShapeMethodPeer => ArkCommonShapeMethodPeer.create(ArkUINodeType.CommonShapeMethod, receiver), (_: ArkCommonShapeMethodPeer) => { style?.(receiver) content_?.() @@ -274,6 +1984,24 @@ export function ArkCommon( export class ArkScrollableCommonMethodComponent extends ArkCommonMethodComponent { protected peer?: ArkScrollableCommonMethodPeer /** @memo */ + scrollBar(barState: BarState): this { + if (this.checkPriority("scrollBar")) { + const barState_casted = barState as (BarState) + this.peer?.scrollBarAttribute(barState_casted) + return this + } + return this + } + /** @memo */ + scrollBarColor(color: Color | number | string): this { + if (this.checkPriority("scrollBarColor")) { + const color_casted = color as (Color | number | string) + this.peer?.scrollBarColorAttribute(color_casted) + return this + } + return this + } + /** @memo */ scrollBarWidth(value: number | string): this { if (this.checkPriority("scrollBarWidth")) { const value_casted = value as (number | string) @@ -282,38 +2010,118 @@ export class ArkScrollableCommonMethodComponent extends ArkCommonMethodComponent } return this } - public applyAttributesFinish(): void { - // we calls this function outside of class, so need to make it public - super.applyAttributesFinish() + /** @memo */ + edgeEffect(edgeEffect: EdgeEffect, options?: EdgeEffectOptions): this { + if (this.checkPriority("edgeEffect")) { + const edgeEffect_casted = edgeEffect as (EdgeEffect) + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (EdgeEffectOptions) + this.peer?.edgeEffectAttribute(edgeEffect_casted, options_casted) + return this + } + return this } -} - -/** @memo */ -export function ArkScrollableCommonMethod( - /** @memo */ - style: ((attributes: ArkScrollableCommonMethodComponent) => void) | undefined, - /** @memo */ - content_: (() => void) | undefined, - -) { - const receiver = remember(() => { - return new ArkScrollableCommonMethodComponent() - }) - NodeAttach((): ArkScrollableCommonMethodPeer => ArkScrollableCommonMethodPeer.create(ArkUINodeType.ScrollableCommonMethod, receiver), (_: ArkScrollableCommonMethodPeer) => { - - style?.(receiver) - content_?.() - receiver.applyAttributesFinish() - }) -} -/** @memo:stable */ -export class ArkCommonShapeMethodComponent extends ArkCommonMethodComponent { - protected peer?: ArkCommonShapeMethodPeer /** @memo */ - stroke(value: ResourceColor): this { - if (this.checkPriority("stroke")) { - const value_casted = value as (ResourceColor) - this.peer?.strokeAttribute(value_casted) + fadingEdge(enabled: boolean | undefined, options?: FadingEdgeOptions): this { + if (this.checkPriority("fadingEdge")) { + const enabled_casted = enabled as (boolean | undefined) + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (FadingEdgeOptions) + this.peer?.fadingEdgeAttribute(enabled_casted, options_casted) + return this + } + return this + } + /** @memo */ + nestedScroll(value: NestedScrollOptions): this { + if (this.checkPriority("nestedScroll")) { + const value_casted = value as (NestedScrollOptions) + this.peer?.nestedScrollAttribute(value_casted) + return this + } + return this + } + /** @memo */ + enableScrollInteraction(value: boolean): this { + if (this.checkPriority("enableScrollInteraction")) { + const value_casted = value as (boolean) + this.peer?.enableScrollInteractionAttribute(value_casted) + return this + } + return this + } + /** @memo */ + friction(value: number | Resource): this { + if (this.checkPriority("friction")) { + const value_casted = value as (number | Resource) + this.peer?.frictionAttribute(value_casted) + return this + } + return this + } + /** @memo */ + onScroll(event: ((scrollOffset: number, scrollState: ScrollState) => void)): this { + if (this.checkPriority("onScroll")) { + const event_casted = event as (((scrollOffset: number, scrollState: ScrollState) => void)) + this.peer?.onScrollAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onDidScroll(handler: OnScrollCallback): this { + if (this.checkPriority("onDidScroll")) { + const handler_casted = handler as (OnScrollCallback) + this.peer?.onDidScrollAttribute(handler_casted) + return this + } + return this + } + /** @memo */ + onReachStart(event: (() => void)): this { + if (this.checkPriority("onReachStart")) { + const event_casted = event as ((() => void)) + this.peer?.onReachStartAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onReachEnd(event: (() => void)): this { + if (this.checkPriority("onReachEnd")) { + const event_casted = event as ((() => void)) + this.peer?.onReachEndAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onScrollStart(event: (() => void)): this { + if (this.checkPriority("onScrollStart")) { + const event_casted = event as ((() => void)) + this.peer?.onScrollStartAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onScrollStop(event: (() => void)): this { + if (this.checkPriority("onScrollStop")) { + const event_casted = event as ((() => void)) + this.peer?.onScrollStopAttribute(event_casted) + return this + } + return this + } + /** @memo */ + flingSpeedLimit(speedLimit: number): this { + if (this.checkPriority("flingSpeedLimit")) { + const speedLimit_casted = speedLimit as (number) + this.peer?.flingSpeedLimitAttribute(speedLimit_casted) return this } return this @@ -325,17 +2133,17 @@ export class ArkCommonShapeMethodComponent extends ArkCommonMethodComponent { } /** @memo */ -export function ArkCommonShapeMethod( +export function ArkScrollableCommonMethod( /** @memo */ - style: ((attributes: ArkCommonShapeMethodComponent) => void) | undefined, + style: ((attributes: ArkScrollableCommonMethodComponent) => void) | undefined, /** @memo */ content_: (() => void) | undefined, ) { const receiver = remember(() => { - return new ArkCommonShapeMethodComponent() + return new ArkScrollableCommonMethodComponent() }) - NodeAttach((): ArkCommonShapeMethodPeer => ArkCommonShapeMethodPeer.create(ArkUINodeType.CommonShapeMethod, receiver), (_: ArkCommonShapeMethodPeer) => { + NodeAttach((): ArkScrollableCommonMethodPeer => ArkScrollableCommonMethodPeer.create(ArkUINodeType.ScrollableCommonMethod, receiver), (_: ArkScrollableCommonMethodPeer) => { style?.(receiver) content_?.() diff --git a/arkoala-arkts/arkui/src/generated/ArkCommonInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkCommonInterfaces.ts index 1a4497612..e1c54632e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCommonInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCommonInterfaces.ts @@ -1,225 +1,680 @@ -import { Length, Resource, Dimension, PX, VP, FP, LPX, Percentage, ResourceColor, ResourceStr, LengthMetrics } from "./ArkUnitsInterfaces" -import { IMPORT_Resource_FROM_resource_resource, LITERAL_TopLengthRightLengthBottomLengthLeftLength, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, LITERAL_AngleNumberstringDirectionGradientDirectionColorsArrayResourceColornumberRepeatingBoolean, LITERAL_TopResourceColorRightResourceColorBottomResourceColorLeftResourceColor, LITERAL_TopBorderStyleRightBorderStyleBottomBorderStyleLeftBorderStyle, IMPORT_UIContext_FROM_api_ohos_arkui_UIContext, IMPORT_LengthMetrics_FROM_api_arkui_Graphics, IMPORT_ImageModifier_FROM_api_arkui_ImageModifier, IMPORT_default_PixelMap_FROM_resource_image, IMPORT_SymbolGlyphModifier_FROM_resource_symbol, IMPORT_ComponentContent_FROM_api_arkui_ComponentContent } from "./SyntheticDeclarations" -import { Optional } from "./ArkListInterfaces" -import { Color, ColoringStrategy } from "./ArkEnumsInterfaces" +import { Length, Resource, SizeOptions, ConstraintSizeOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, ResourceStr, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, PX, VP, FP, LPX, Percentage, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, Bias, Font, LengthMetrics } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, LITERAL_TopLengthRightLengthBottomLengthLeftLength, LITERAL_AlignAlignment, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image, IMPORT_default_VisualEffect_FROM_api_ohos_graphics_uiEffect, IMPORT_default_Filter_FROM_api_ohos_graphics_uiEffect, LITERAL_TopBorderStyleRightBorderStyleBottomBorderStyleLeftBorderStyle, LITERAL_TopResourceColorRightResourceColorBottomResourceColorLeftResourceColor, LITERAL_TopLeftLengthTopRightLengthBottomLeftLengthBottomRightLength, LITERAL_TopOutlineStyleRightOutlineStyleBottomOutlineStyleLeftOutlineStyle, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, LITERAL_TopDimensionRightDimensionBottomDimensionLeftDimension, LITERAL_TopLeftDimensionTopRightDimensionBottomLeftDimensionBottomRightDimension, LITERAL_SpanNumberOffsetNumber, LITERAL_XsNumberLITERALSpanNumberOffsetNumberSmNumberLITERALSpanNumberOffsetNumberMdNumberLITERALSpanNumberOffsetNumberLgNumberLITERALSpanNumberOffsetNumber, IMPORT_default_UniformDataType_FROM_api_ohos_data_uniformTypeDescriptor, IMPORT_ComponentContent_T_FROM_api_arkui_ComponentContent, LITERAL_AngleNumberstringDirectionGradientDirectionColorsArrayResourceColornumberRepeatingBoolean, LITERAL_CenterLengthLengthStartNumberstringEndNumberstringRotationNumberstringColorsArrayResourceColornumberRepeatingBoolean, LITERAL_CenterLengthLengthRadiusNumberstringColorsArrayResourceColornumberRepeatingBoolean, IMPORT_default_Blender_FROM_api_ohos_graphics_uiEffect, IMPORT_CircleShape_FROM_api_ohos_arkui_shape, IMPORT_EllipseShape_FROM_api_ohos_arkui_shape, IMPORT_PathShape_FROM_api_ohos_arkui_shape, IMPORT_RectShape_FROM_api_ohos_arkui_shape, IMPORT_DrawContext_FROM_api_arkui_Graphics, IMPORT_IntentionCode_FROM_api_ohos_multimodalInput_intentionCode, LITERAL_AnchorStringAlignHorizontalAlign, LITERAL_AnchorStringAlignVerticalAlign, IMPORT_default_UnifiedData_FROM_api_ohos_data_unifiedDataChannel, IMPORT_default_Summary_FROM_api_ohos_data_unifiedDataChannel, IMPORT_ImageModifier_FROM_api_arkui_ImageModifier, LITERAL_ValueStringActionVoid, LITERAL_IsVisibleBoolean, LITERAL_ColorResourceColor, IMPORT_SymbolGlyphModifier_FROM_api_arkui_SymbolGlyphModifier, IMPORT_UIContext_FROM_api_ohos_arkui_UIContext, IMPORT_LengthMetrics_FROM_api_arkui_Graphics } from "./SyntheticDeclarations" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, Alignment, Color, ImageRepeat, ImageSize, BorderStyle, ColoringStrategy, HoverEffect, Visibility, ItemAlign, Direction, Axis, GradientDirection, ResponseType, FunctionKey, ModifierKey, ObscuredReasons, RenderFit, LineCapStyle, LineJoinStyle, BarState, EdgeEffect, ScrollSource, PixelRoundCalcPolicy, AccessibilityHoverType, MouseButton, MouseAction, TouchType, KeyType, KeySource, Curve, PlayMode, TransitionType, SharedTransitionEffectType, HorizontalAlign, VerticalAlign, ClickEffectLevel, Placement, ArrowPointPosition, IlluminatedType, NestedScrollMode, TextDecorationType, TextDecorationStyle } from "./ArkEnumsInterfaces" +import { ResizableOptions } from "./ArkImageInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect, OnWillScrollCallback, LinearGradient, ContentModifier } from "./ConflictedDeclarations" +import { GestureType, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureMask, GestureInfo, BaseGestureEvent, GestureJudgeResult, GestureHandler, GesturePriority } from "./ArkGestureInterfaces" +import { CircleAttribute } from "./ArkCircleInterfaces" +import { EllipseAttribute } from "./ArkEllipseInterfaces" +import { PathAttribute } from "./ArkPathInterfaces" +import { RectAttribute } from "./ArkRectInterfaces" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./ArkAttributeModifierMaterialized" import { GestureModifier } from "./ArkGestureModifierMaterialized" -import { BaseGestureEvent, GestureJudgeResult, GestureHandler, GesturePriority, GestureMask } from "./ArkGestureInterfaces" import { GestureRecognizer } from "./ArkGestureRecognizerMaterialized" -import { ContentModifier } from "./ConflictedDeclarations" +import { ScrollState } from "./ArkListInterfaces" +import { ICurve } from "./ArkICurveMaterialized" import { KInt } from "@koalaui/interop" -export class SheetSize { - static readonly MEDIUM: SheetSize = new SheetSize(0) - static readonly LARGE: SheetSize = new SheetSize(1) - static readonly FIT_CONTENT: SheetSize = new SheetSize(2) - constructor(value: KInt) { - this.value = value - } - public readonly value: KInt - public static of(arg0: KInt): SheetSize { - if ((arg0) == (SheetSize.MEDIUM.value)) { - return SheetSize.MEDIUM - } - if ((arg0) == (SheetSize.LARGE.value)) { - return SheetSize.LARGE - } - if ((arg0) == (SheetSize.FIT_CONTENT.value)) { - return SheetSize.FIT_CONTENT - } - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class BlurStyle { - static readonly Thin: BlurStyle = new BlurStyle(0) - constructor(value: KInt) { - this.value = value - } - public readonly value: KInt - public static of(arg0: KInt): BlurStyle { - if ((arg0) == (BlurStyle.Thin.value)) { - return BlurStyle.Thin - } - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class SheetType { - static readonly BOTTOM: SheetType = new SheetType(0) - static readonly CENTER: SheetType = new SheetType(1) - static readonly POPUP: SheetType = new SheetType(2) +/** + * Enumerates the safe area types. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Enumerates the safe area types. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class SafeAreaType { + /** + * Default area of the system, including the status bar and navigation bar. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Default area of the system, including the status bar and navigation bar. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly SYSTEM: SafeAreaType = new SafeAreaType(0) + /** + * Notch or punch hole. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Notch or punch hole. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly CUTOUT: SafeAreaType = new SafeAreaType(1) + /** + * Soft keyboard area. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Soft keyboard area. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly KEYBOARD: SafeAreaType = new SafeAreaType(2) constructor(value: KInt) { this.value = value } public readonly value: KInt - public static of(arg0: KInt): SheetType { - if ((arg0) == (SheetType.BOTTOM.value)) { - return SheetType.BOTTOM + public static of(arg0: KInt): SafeAreaType { + if ((arg0) == (SafeAreaType.SYSTEM.value)) { + return SafeAreaType.SYSTEM } - if ((arg0) == (SheetType.CENTER.value)) { - return SheetType.CENTER + if ((arg0) == (SafeAreaType.CUTOUT.value)) { + return SafeAreaType.CUTOUT } - if ((arg0) == (SheetType.POPUP.value)) { - return SheetType.POPUP + if ((arg0) == (SafeAreaType.KEYBOARD.value)) { + return SafeAreaType.KEYBOARD } throw new Error(`Enum member '${arg0}' not found`) } } -export class DismissReason { - static readonly PRESS_BACK: DismissReason = new DismissReason(0) - static readonly TOUCH_OUTSIDE: DismissReason = new DismissReason(1) - static readonly CLOSE_BUTTON: DismissReason = new DismissReason(2) - static readonly SLIDE_DOWN: DismissReason = new DismissReason(3) +/** + * Enumerates the safe area edges. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Enumerates the safe area edges. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class SafeAreaEdge { + /** + * Top edge of the safe area. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Top edge of the safe area. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly TOP: SafeAreaEdge = new SafeAreaEdge(0) + /** + * Bottom edge of the safe area. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Bottom edge of the safe area. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly BOTTOM: SafeAreaEdge = new SafeAreaEdge(1) + /** + * Start edge of the safe area. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Start edge of the safe area. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly START: SafeAreaEdge = new SafeAreaEdge(2) + /** + * End edge of the safe area. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * End edge of the safe area. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly END: SafeAreaEdge = new SafeAreaEdge(3) constructor(value: KInt) { this.value = value } public readonly value: KInt - public static of(arg0: KInt): DismissReason { - if ((arg0) == (DismissReason.PRESS_BACK.value)) { - return DismissReason.PRESS_BACK + public static of(arg0: KInt): SafeAreaEdge { + if ((arg0) == (SafeAreaEdge.TOP.value)) { + return SafeAreaEdge.TOP } - if ((arg0) == (DismissReason.TOUCH_OUTSIDE.value)) { - return DismissReason.TOUCH_OUTSIDE + if ((arg0) == (SafeAreaEdge.BOTTOM.value)) { + return SafeAreaEdge.BOTTOM } - if ((arg0) == (DismissReason.CLOSE_BUTTON.value)) { - return DismissReason.CLOSE_BUTTON + if ((arg0) == (SafeAreaEdge.START.value)) { + return SafeAreaEdge.START } - if ((arg0) == (DismissReason.SLIDE_DOWN.value)) { - return DismissReason.SLIDE_DOWN + if ((arg0) == (SafeAreaEdge.END.value)) { + return SafeAreaEdge.END } throw new Error(`Enum member '${arg0}' not found`) } } -export class BorderStyle { - static readonly Dotted: BorderStyle = new BorderStyle(0) - static readonly Dashed: BorderStyle = new BorderStyle(1) - static readonly Solid: BorderStyle = new BorderStyle(2) +/** + * Defines the touch test strategy object. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * Defines the touch test strategy object. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ +export class TouchTestStrategy { + /** + * Do framework touch test. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * Do framework touch test. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly DEFAULT: TouchTestStrategy = new TouchTestStrategy(0) + /** + * Specify the component to do touch test and follow the framework touch test + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * Specify the component to do touch test and follow the framework touch test + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly FORWARD_COMPETITION: TouchTestStrategy = new TouchTestStrategy(1) + /** + * Specify the component to do touch test and not follow the framework touch test + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * Specify the component to do touch test and not follow the framework touch test + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly FORWARD: TouchTestStrategy = new TouchTestStrategy(2) constructor(value: KInt) { this.value = value } public readonly value: KInt - public static of(arg0: KInt): BorderStyle { - if ((arg0) == (BorderStyle.Dotted.value)) { - return BorderStyle.Dotted - } - if ((arg0) == (BorderStyle.Dashed.value)) { - return BorderStyle.Dashed + public static of(arg0: KInt): TouchTestStrategy { + if ((arg0) == (TouchTestStrategy.DEFAULT.value)) { + return TouchTestStrategy.DEFAULT } - if ((arg0) == (BorderStyle.Solid.value)) { - return BorderStyle.Solid - } - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ShadowType { - static readonly COLOR: ShadowType = new ShadowType(0) - static readonly BLUR: ShadowType = new ShadowType(1) - constructor(value: KInt) { - this.value = value - } - public readonly value: KInt - public static of(arg0: KInt): ShadowType { - if ((arg0) == (ShadowType.COLOR.value)) { - return ShadowType.COLOR + if ((arg0) == (TouchTestStrategy.FORWARD_COMPETITION.value)) { + return TouchTestStrategy.FORWARD_COMPETITION } - if ((arg0) == (ShadowType.BLUR.value)) { - return ShadowType.BLUR + if ((arg0) == (TouchTestStrategy.FORWARD.value)) { + return TouchTestStrategy.FORWARD } throw new Error(`Enum member '${arg0}' not found`) } } -export class ShadowStyle { - static readonly OUTER_DEFAULT_XS: ShadowStyle = new ShadowStyle(0) - static readonly OUTER_DEFAULT_SM: ShadowStyle = new ShadowStyle(1) - static readonly OUTER_DEFAULT_MD: ShadowStyle = new ShadowStyle(2) - static readonly OUTER_DEFAULT_LG: ShadowStyle = new ShadowStyle(3) - static readonly OUTER_FLOATING_SM: ShadowStyle = new ShadowStyle(4) - static readonly OUTER_FLOATING_MD: ShadowStyle = new ShadowStyle(5) +/** + * enum Blur style + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * enum Blur style + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * enum Blur style + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ +export class BlurStyle { + /** + * Defines the thin card material. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Defines the thin card material. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Defines the thin card material. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Thin: BlurStyle = new BlurStyle(0) + /** + * Defines the regular card material. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Defines the regular card material. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Defines the regular card material. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Regular: BlurStyle = new BlurStyle(1) + /** + * Defines the thick card material. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Defines the thick card material. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Defines the thick card material. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Thick: BlurStyle = new BlurStyle(2) + /** + * Defines the thin background material. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Defines the thin background material. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly BACKGROUND_THIN: BlurStyle = new BlurStyle(3) + /** + * Defines the thin regular material. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Defines the thin regular material. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly BACKGROUND_REGULAR: BlurStyle = new BlurStyle(4) + /** + * Defines the thin thick material. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Defines the thin thick material. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly BACKGROUND_THICK: BlurStyle = new BlurStyle(5) + /** + * Defines the thin ultra thick material. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Defines the thin ultra thick material. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly BACKGROUND_ULTRA_THICK: BlurStyle = new BlurStyle(6) + /** + * Defines none material. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Defines none material. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly NONE: BlurStyle = new BlurStyle(7) + /** + * Defines the ultra thin component material. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * Defines the ultra thin component material. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly COMPONENT_ULTRA_THIN: BlurStyle = new BlurStyle(8) + /** + * Defines the thin component material. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * Defines the thin component material. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly COMPONENT_THIN: BlurStyle = new BlurStyle(9) + /** + * Defines the regular component material. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * Defines the regular component material. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly COMPONENT_REGULAR: BlurStyle = new BlurStyle(10) + /** + * Defines the thick component material. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * Defines the thick component material. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly COMPONENT_THICK: BlurStyle = new BlurStyle(11) + /** + * Defines the ultra thick component material. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * Defines the ultra thick component material. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly COMPONENT_ULTRA_THICK: BlurStyle = new BlurStyle(12) constructor(value: KInt) { this.value = value } public readonly value: KInt - public static of(arg0: KInt): ShadowStyle { - if ((arg0) == (ShadowStyle.OUTER_DEFAULT_XS.value)) { - return ShadowStyle.OUTER_DEFAULT_XS - } - if ((arg0) == (ShadowStyle.OUTER_DEFAULT_SM.value)) { - return ShadowStyle.OUTER_DEFAULT_SM + public static of(arg0: KInt): BlurStyle { + if ((arg0) == (BlurStyle.Thin.value)) { + return BlurStyle.Thin } - if ((arg0) == (ShadowStyle.OUTER_DEFAULT_MD.value)) { - return ShadowStyle.OUTER_DEFAULT_MD + if ((arg0) == (BlurStyle.Regular.value)) { + return BlurStyle.Regular } - if ((arg0) == (ShadowStyle.OUTER_DEFAULT_LG.value)) { - return ShadowStyle.OUTER_DEFAULT_LG + if ((arg0) == (BlurStyle.Thick.value)) { + return BlurStyle.Thick } - if ((arg0) == (ShadowStyle.OUTER_FLOATING_SM.value)) { - return ShadowStyle.OUTER_FLOATING_SM + if ((arg0) == (BlurStyle.BACKGROUND_THIN.value)) { + return BlurStyle.BACKGROUND_THIN } - if ((arg0) == (ShadowStyle.OUTER_FLOATING_MD.value)) { - return ShadowStyle.OUTER_FLOATING_MD + if ((arg0) == (BlurStyle.BACKGROUND_REGULAR.value)) { + return BlurStyle.BACKGROUND_REGULAR } - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class SheetMode { - static readonly OVERLAY: SheetMode = new SheetMode(0) - static readonly EMBEDDED: SheetMode = new SheetMode(1) - constructor(value: KInt) { - this.value = value - } - public readonly value: KInt - public static of(arg0: KInt): SheetMode { - if ((arg0) == (SheetMode.OVERLAY.value)) { - return SheetMode.OVERLAY + if ((arg0) == (BlurStyle.BACKGROUND_THICK.value)) { + return BlurStyle.BACKGROUND_THICK } - if ((arg0) == (SheetMode.EMBEDDED.value)) { - return SheetMode.EMBEDDED + if ((arg0) == (BlurStyle.BACKGROUND_ULTRA_THICK.value)) { + return BlurStyle.BACKGROUND_ULTRA_THICK } - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class ScrollSizeMode { - static readonly FOLLOW_DETENT: ScrollSizeMode = new ScrollSizeMode(0) - static readonly CONTINUOUS: ScrollSizeMode = new ScrollSizeMode(1) - constructor(value: KInt) { - this.value = value - } - public readonly value: KInt - public static of(arg0: KInt): ScrollSizeMode { - if ((arg0) == (ScrollSizeMode.FOLLOW_DETENT.value)) { - return ScrollSizeMode.FOLLOW_DETENT + if ((arg0) == (BlurStyle.NONE.value)) { + return BlurStyle.NONE } - if ((arg0) == (ScrollSizeMode.CONTINUOUS.value)) { - return ScrollSizeMode.CONTINUOUS + if ((arg0) == (BlurStyle.COMPONENT_ULTRA_THIN.value)) { + return BlurStyle.COMPONENT_ULTRA_THIN } - throw new Error(`Enum member '${arg0}' not found`) - } -} -export class SheetKeyboardAvoidMode { - static readonly NONE: SheetKeyboardAvoidMode = new SheetKeyboardAvoidMode(0) - static readonly TRANSLATE_AND_RESIZE: SheetKeyboardAvoidMode = new SheetKeyboardAvoidMode(1) - static readonly RESIZE_ONLY: SheetKeyboardAvoidMode = new SheetKeyboardAvoidMode(2) - static readonly TRANSLATE_AND_SCROLL: SheetKeyboardAvoidMode = new SheetKeyboardAvoidMode(3) - constructor(value: KInt) { - this.value = value - } - public readonly value: KInt - public static of(arg0: KInt): SheetKeyboardAvoidMode { - if ((arg0) == (SheetKeyboardAvoidMode.NONE.value)) { - return SheetKeyboardAvoidMode.NONE + if ((arg0) == (BlurStyle.COMPONENT_THIN.value)) { + return BlurStyle.COMPONENT_THIN } - if ((arg0) == (SheetKeyboardAvoidMode.TRANSLATE_AND_RESIZE.value)) { - return SheetKeyboardAvoidMode.TRANSLATE_AND_RESIZE + if ((arg0) == (BlurStyle.COMPONENT_REGULAR.value)) { + return BlurStyle.COMPONENT_REGULAR } - if ((arg0) == (SheetKeyboardAvoidMode.RESIZE_ONLY.value)) { - return SheetKeyboardAvoidMode.RESIZE_ONLY + if ((arg0) == (BlurStyle.COMPONENT_THICK.value)) { + return BlurStyle.COMPONENT_THICK } - if ((arg0) == (SheetKeyboardAvoidMode.TRANSLATE_AND_SCROLL.value)) { - return SheetKeyboardAvoidMode.TRANSLATE_AND_SCROLL + if ((arg0) == (BlurStyle.COMPONENT_ULTRA_THICK.value)) { + return BlurStyle.COMPONENT_ULTRA_THICK } throw new Error(`Enum member '${arg0}' not found`) } } +/** + * enum color mode + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * enum color mode + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ export class ThemeColorMode { + /** + * Defines the mode which is follow up with system. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Defines the mode which is follow up with system. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ static readonly SYSTEM: ThemeColorMode = new ThemeColorMode(0) + /** + * Defines the light mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Defines the light mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ static readonly LIGHT: ThemeColorMode = new ThemeColorMode(1) + /** + * Defines the dark mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Defines the dark mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ static readonly DARK: ThemeColorMode = new ThemeColorMode(2) constructor(value: KInt) { this.value = value @@ -238,8 +693,56 @@ export class ThemeColorMode { throw new Error(`Enum member '${arg0}' not found`) } } +/** + * Defines adaptive color + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Defines adaptive color + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ export class AdaptiveColor { + /** + * Defines the fixed value color adaptive mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Defines the fixed value color adaptive mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ static readonly DEFAULT: AdaptiveColor = new AdaptiveColor(0) + /** + * Defines the background average color adaptive mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Defines the background average color adaptive mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly AVERAGE: AdaptiveColor = new AdaptiveColor(1) constructor(value: KInt) { this.value = value } @@ -248,36 +751,48 @@ export class AdaptiveColor { if ((arg0) == (AdaptiveColor.DEFAULT.value)) { return AdaptiveColor.DEFAULT } + if ((arg0) == (AdaptiveColor.AVERAGE.value)) { + return AdaptiveColor.AVERAGE + } throw new Error(`Enum member '${arg0}' not found`) } } +/** + * Enumerates the policies for activating the blur style. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 13 + */ export class BlurStyleActivePolicy { /** - * The component has the blur effect only when the window is focused. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 12 - */ + * The component has the blur effect only when the window is focused. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 13 + */ static readonly FOLLOWS_WINDOW_ACTIVE_STATE: BlurStyleActivePolicy = new BlurStyleActivePolicy(0) /** - * The component always has the blur effect, regardless of whether the window is focused. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 12 - */ + * The component always has the blur effect, regardless of whether the window is focused. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 13 + */ static readonly ALWAYS_ACTIVE: BlurStyleActivePolicy = new BlurStyleActivePolicy(1) /** - * The component does not have the blur effect, regardless of whether the window is focused. - * - * @syscap SystemCapability.ArkUI.ArkUI.Full - * @crossplatform - * @atomicservice - * @since 12 - */ + * The component does not have the blur effect, regardless of whether the window is focused. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 13 + */ static readonly ALWAYS_INACTIVE: BlurStyleActivePolicy = new BlurStyleActivePolicy(2) constructor(value: KInt) { this.value = value @@ -296,82 +811,512 @@ export class BlurStyleActivePolicy { throw new Error(`Enum member '${arg0}' not found`) } } -export class DragPreviewMode { - static readonly AUTO: DragPreviewMode = new DragPreviewMode(1) - static readonly DISABLE_SCALE: DragPreviewMode = new DragPreviewMode(2) - static readonly ENABLE_DEFAULT_SHADOW: DragPreviewMode = new DragPreviewMode(3) - static readonly ENABLE_DEFAULT_RADIUS: DragPreviewMode = new DragPreviewMode(4) +/** + * Enumerates the blur types. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 13 + */ +export class BlurType { + /** + * The blur is applied within the window. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 13 + */ + static readonly WITHIN_WINDOW: BlurType = new BlurType(0) + /** + * The blur is applied behind the window. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 13 + */ + static readonly BEHIND_WINDOW: BlurType = new BlurType(1) constructor(value: KInt) { this.value = value } public readonly value: KInt - public static of(arg0: KInt): DragPreviewMode { - if ((arg0) == (DragPreviewMode.AUTO.value)) { - return DragPreviewMode.AUTO + public static of(arg0: KInt): BlurType { + if ((arg0) == (BlurType.WITHIN_WINDOW.value)) { + return BlurType.WITHIN_WINDOW } - if ((arg0) == (DragPreviewMode.DISABLE_SCALE.value)) { - return DragPreviewMode.DISABLE_SCALE - } - if ((arg0) == (DragPreviewMode.ENABLE_DEFAULT_SHADOW.value)) { - return DragPreviewMode.ENABLE_DEFAULT_SHADOW - } - if ((arg0) == (DragPreviewMode.ENABLE_DEFAULT_RADIUS.value)) { - return DragPreviewMode.ENABLE_DEFAULT_RADIUS + if ((arg0) == (BlurType.BEHIND_WINDOW.value)) { + return BlurType.BEHIND_WINDOW } throw new Error(`Enum member '${arg0}' not found`) } } -export class GradientDirection { - static readonly Left: GradientDirection = new GradientDirection(0) - static readonly Top: GradientDirection = new GradientDirection(1) - static readonly Right: GradientDirection = new GradientDirection(2) - static readonly Bottom: GradientDirection = new GradientDirection(3) - static readonly LeftTop: GradientDirection = new GradientDirection(4) - static readonly LeftBottom: GradientDirection = new GradientDirection(5) - static readonly RightTop: GradientDirection = new GradientDirection(6) - static readonly RightBottom: GradientDirection = new GradientDirection(7) - static readonly None: GradientDirection = new GradientDirection(8) +/** + * Defines the Border Image Repeat Mode. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Defines the Border Image Repeat Mode. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Defines the Border Image Repeat Mode. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ +export class RepeatMode { + /** + * Repeat mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Repeat mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Repeat mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Repeat: RepeatMode = new RepeatMode(0) + /** + * Stretch mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Stretch mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Stretch mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Stretch: RepeatMode = new RepeatMode(1) + /** + * Round mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Round mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Round mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Round: RepeatMode = new RepeatMode(2) + /** + * Space mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Space mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Space mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Space: RepeatMode = new RepeatMode(3) constructor(value: KInt) { this.value = value } public readonly value: KInt - public static of(arg0: KInt): GradientDirection { - if ((arg0) == (GradientDirection.Left.value)) { - return GradientDirection.Left + public static of(arg0: KInt): RepeatMode { + if ((arg0) == (RepeatMode.Repeat.value)) { + return RepeatMode.Repeat } - if ((arg0) == (GradientDirection.Top.value)) { - return GradientDirection.Top + if ((arg0) == (RepeatMode.Stretch.value)) { + return RepeatMode.Stretch } - if ((arg0) == (GradientDirection.Right.value)) { - return GradientDirection.Right + if ((arg0) == (RepeatMode.Round.value)) { + return RepeatMode.Round } - if ((arg0) == (GradientDirection.Bottom.value)) { - return GradientDirection.Bottom + if ((arg0) == (RepeatMode.Space.value)) { + return RepeatMode.Space + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Outline Style + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * Outline Style + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ +export class OutlineStyle { + /** + * Shows as a solid line. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * Shows as a solid line. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly SOLID: OutlineStyle = new OutlineStyle(0) + /** + * Shows as a series of short square dashed lines. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * Shows as a series of short square dashed lines. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly DASHED: OutlineStyle = new OutlineStyle(1) + /** + * Displays as a series of dots with a radius of half the borderWidth. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * Displays as a series of dots with a radius of half the borderWidth. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly DOTTED: OutlineStyle = new OutlineStyle(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): OutlineStyle { + if ((arg0) == (OutlineStyle.SOLID.value)) { + return OutlineStyle.SOLID } - if ((arg0) == (GradientDirection.LeftTop.value)) { - return GradientDirection.LeftTop + if ((arg0) == (OutlineStyle.DASHED.value)) { + return OutlineStyle.DASHED } - if ((arg0) == (GradientDirection.LeftBottom.value)) { - return GradientDirection.LeftBottom + if ((arg0) == (OutlineStyle.DOTTED.value)) { + return OutlineStyle.DOTTED } - if ((arg0) == (GradientDirection.RightTop.value)) { - return GradientDirection.RightTop + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Defines the event source type. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * Defines the event source type. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Defines the event source type. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class SourceType { + /** + * Unknown type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * Unknown type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Unknown type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Unknown: SourceType = new SourceType(0) + /** + * The mouse type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * The mouse type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * The mouse type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Mouse: SourceType = new SourceType(1) + /** + * The touch screen type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * The touch screen type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * The touch screen type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly TouchScreen: SourceType = new SourceType(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): SourceType { + if ((arg0) == (SourceType.Unknown.value)) { + return SourceType.Unknown } - if ((arg0) == (GradientDirection.RightBottom.value)) { - return GradientDirection.RightBottom + if ((arg0) == (SourceType.Mouse.value)) { + return SourceType.Mouse } - if ((arg0) == (GradientDirection.None.value)) { - return GradientDirection.None + if ((arg0) == (SourceType.TouchScreen.value)) { + return SourceType.TouchScreen } throw new Error(`Enum member '${arg0}' not found`) } } +/** + * Defines the event tool type. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 9 + */ +/** + * Defines the event tool type. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Defines the event tool type. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ export class SourceTool { + /** + * Unknown type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 9 + */ +/** + * Unknown type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Unknown type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ static readonly Unknown: SourceTool = new SourceTool(0) + /** + * The finger type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 9 + */ +/** + * The finger type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * The finger type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ static readonly Finger: SourceTool = new SourceTool(1) + /** + * The pen type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 9 + */ +/** + * The pen type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * The pen type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ static readonly Pen: SourceTool = new SourceTool(2) + /** + * The mouse type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ static readonly MOUSE: SourceTool = new SourceTool(3) + /** + * The touchpad type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ static readonly TOUCHPAD: SourceTool = new SourceTool(4) + /** + * The joystick type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ static readonly JOYSTICK: SourceTool = new SourceTool(5) constructor(value: KInt) { this.value = value @@ -399,48 +1344,2975 @@ export class SourceTool { throw new Error(`Enum member '${arg0}' not found`) } } -export interface CommonMethod { - stateStyles(value: StateStyles): T; - backdropBlur(value: number,options: BlurOptions): T; - width(value: Length): T; - height(value: Length): T; - key(value: string): T; - restoreId(value: number): T; - padding(value: Padding | Dimension): T; - bindSheet(isShow: boolean | undefined,builder: CustomBuilder,options: SheetOptions): T; - backgroundBlurStyle(value: BlurStyle,options: BackgroundBlurStyleOptions): T; - dragPreviewOptions(value: DragPreviewOptions,options: DragInteractionOptions): T; - linearGradient(value: LITERAL_AngleNumberstringDirectionGradientDirectionColorsArrayResourceColornumberRepeatingBoolean): T; - border(value: BorderOptions): T; - onChildTouchTest(event: ((value: Array) => string)): T; - attributeModifier(modifier: AttributeModifier): T; - gestureModifier(modifier: GestureModifier): T; - onGestureRecognizerJudgeBegin(callback: GestureRecognizerJudgeBeginCallback): T; - onClick(event: ((event: ClickEvent) => void)): T; -} -export interface CommonAttribute { -} -export interface CommonInterface { -} -export interface ScrollableCommonMethod { - scrollBarWidth(value: number | string): T; -} -export interface CommonShapeMethod { +/** + * Enum for FinishCallbackType. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * Enum for FinishCallbackType. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ +export class FinishCallbackType { + /** + * When the entire animation ends and will be removed immediately, the callback is triggered. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * When the entire animation ends and will be removed immediately, the callback is triggered. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly REMOVED: FinishCallbackType = new FinishCallbackType(0) + /** + * When the animation is logically down but may still be in its long tail, the callback is triggered. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * When the animation is logically down but may still be in its long tail, the callback is triggered. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly LOGICALLY: FinishCallbackType = new FinishCallbackType(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): FinishCallbackType { + if ((arg0) == (FinishCallbackType.REMOVED.value)) { + return FinishCallbackType.REMOVED + } + if ((arg0) == (FinishCallbackType.LOGICALLY.value)) { + return FinishCallbackType.LOGICALLY + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Defines the Edge object. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Defines the Edge object. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ +export class TransitionEdge { + /** + * Top edge + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Top edge + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly TOP: TransitionEdge = new TransitionEdge(0) + /** + * Bottom edge + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Bottom edge + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly BOTTOM: TransitionEdge = new TransitionEdge(1) + /** + * Start edge + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Start edge + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly START: TransitionEdge = new TransitionEdge(2) + /** + * End edge + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * End edge + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly END: TransitionEdge = new TransitionEdge(3) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): TransitionEdge { + if ((arg0) == (TransitionEdge.TOP.value)) { + return TransitionEdge.TOP + } + if ((arg0) == (TransitionEdge.BOTTOM.value)) { + return TransitionEdge.BOTTOM + } + if ((arg0) == (TransitionEdge.START.value)) { + return TransitionEdge.START + } + if ((arg0) == (TransitionEdge.END.value)) { + return TransitionEdge.END + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Defines the style of the chain in relative container. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ +export class ChainStyle { + /** + * Elements of the chain will be spread out. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly SPREAD: ChainStyle = new ChainStyle(0) + /** + * Elements except chain's head and tail will be spread out. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly SPREAD_INSIDE: ChainStyle = new ChainStyle(1) + /** + * Elements of the chain will be packed together. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly PACKED: ChainStyle = new ChainStyle(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): ChainStyle { + if ((arg0) == (ChainStyle.SPREAD.value)) { + return ChainStyle.SPREAD + } + if ((arg0) == (ChainStyle.SPREAD_INSIDE.value)) { + return ChainStyle.SPREAD_INSIDE + } + if ((arg0) == (ChainStyle.PACKED.value)) { + return ChainStyle.PACKED + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Enum for Drag Behavior. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Enum for Drag Behavior. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ +export class DragBehavior { + /** + * If drag use copy event, then set DragBehavior.COPY. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * If drag use copy event, then set DragBehavior.COPY. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ + static readonly COPY: DragBehavior = new DragBehavior(0) + /** + * If drag use move event, then set DragBehavior.MOVE. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * If drag use move event, then set DragBehavior.MOVE. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ + static readonly MOVE: DragBehavior = new DragBehavior(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): DragBehavior { + if ((arg0) == (DragBehavior.COPY.value)) { + return DragBehavior.COPY + } + if ((arg0) == (DragBehavior.MOVE.value)) { + return DragBehavior.MOVE + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Enum for Drag Result. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Enum for Drag Result. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ +/** + * Enum for Drag Result. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 13 + */ +export class DragResult { + /** + * If the drag is successful, return DragResult.DRAG_SUCCESSFUL. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * If the drag is successful, return DragResult.DRAG_SUCCESSFUL. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ +/** + * If the drag is successful, return DragResult.DRAG_SUCCESSFUL. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 13 + */ + static readonly DRAG_SUCCESSFUL: DragResult = new DragResult(0) + /** + * If drag fail, return DragResult.DRAG_FAILED. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * If drag fail, return DragResult.DRAG_FAILED. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ +/** + * If drag fail, return DragResult.DRAG_FAILED. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 13 + */ + static readonly DRAG_FAILED: DragResult = new DragResult(1) + /** + * If drag action cancel, return DragResult.DRAG_CANCELED. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * If drag action cancel, return DragResult.DRAG_CANCELED. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ + static readonly DRAG_CANCELED: DragResult = new DragResult(2) + /** + * If node allow drop in, return DragResult.DROP_ENABLED. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * If node allow drop in, return DragResult.DROP_ENABLED. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ + static readonly DROP_ENABLED: DragResult = new DragResult(3) + /** + * If node don't allow drop in, return DragResult.DROP_DISABLED. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * If node don't allow drop in, return DragResult.DROP_DISABLED. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ + static readonly DROP_DISABLED: DragResult = new DragResult(4) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): DragResult { + if ((arg0) == (DragResult.DRAG_SUCCESSFUL.value)) { + return DragResult.DRAG_SUCCESSFUL + } + if ((arg0) == (DragResult.DRAG_FAILED.value)) { + return DragResult.DRAG_FAILED + } + if ((arg0) == (DragResult.DRAG_CANCELED.value)) { + return DragResult.DRAG_CANCELED + } + if ((arg0) == (DragResult.DROP_ENABLED.value)) { + return DragResult.DROP_ENABLED + } + if ((arg0) == (DragResult.DROP_DISABLED.value)) { + return DragResult.DROP_DISABLED + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Defines the drag preview mode. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 11 + */ +/** + * Defines the drag preview mode. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ +export class DragPreviewMode { + /** + * Default preview mode, let system process preview scale. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 11 + */ +/** + * Default preview mode, let system process preview scale. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly AUTO: DragPreviewMode = new DragPreviewMode(1) + /** + * Disable system scale to preview panel + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 11 + */ +/** + * Disable system scale to preview panel + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly DISABLE_SCALE: DragPreviewMode = new DragPreviewMode(2) + /** + * Enable the default shadow effect of preview. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly ENABLE_DEFAULT_SHADOW: DragPreviewMode = new DragPreviewMode(3) + /** + * Enable the default radius effect of preview. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly ENABLE_DEFAULT_RADIUS: DragPreviewMode = new DragPreviewMode(4) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): DragPreviewMode { + if ((arg0) == (DragPreviewMode.AUTO.value)) { + return DragPreviewMode.AUTO + } + if ((arg0) == (DragPreviewMode.DISABLE_SCALE.value)) { + return DragPreviewMode.DISABLE_SCALE + } + if ((arg0) == (DragPreviewMode.ENABLE_DEFAULT_SHADOW.value)) { + return DragPreviewMode.ENABLE_DEFAULT_SHADOW + } + if ((arg0) == (DragPreviewMode.ENABLE_DEFAULT_RADIUS.value)) { + return DragPreviewMode.ENABLE_DEFAULT_RADIUS + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Defines the drag status before drag action. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ +export class PreDragStatus { + /** + * Define the status for user prepare to start long press gesture. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly ACTION_DETECTING_STATUS: PreDragStatus = new PreDragStatus(0) + /** + * Define the status for user can start drag action. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly READY_TO_TRIGGER_DRAG_ACTION: PreDragStatus = new PreDragStatus(1) + /** + * Define the status for dragItem lift animation started. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly PREVIEW_LIFT_STARTED: PreDragStatus = new PreDragStatus(2) + /** + * Define the status for dragItem lift animation finished. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly PREVIEW_LIFT_FINISHED: PreDragStatus = new PreDragStatus(3) + /** + * Define the status for dragItem landing animation started. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly PREVIEW_LANDING_STARTED: PreDragStatus = new PreDragStatus(4) + /** + * Define the status for dragItem landing animation finished. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly PREVIEW_LANDING_FINISHED: PreDragStatus = new PreDragStatus(5) + /** + * Define the status for user cancel drag action. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly ACTION_CANCELED_BEFORE_DRAG: PreDragStatus = new PreDragStatus(6) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): PreDragStatus { + if ((arg0) == (PreDragStatus.ACTION_DETECTING_STATUS.value)) { + return PreDragStatus.ACTION_DETECTING_STATUS + } + if ((arg0) == (PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION.value)) { + return PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION + } + if ((arg0) == (PreDragStatus.PREVIEW_LIFT_STARTED.value)) { + return PreDragStatus.PREVIEW_LIFT_STARTED + } + if ((arg0) == (PreDragStatus.PREVIEW_LIFT_FINISHED.value)) { + return PreDragStatus.PREVIEW_LIFT_FINISHED + } + if ((arg0) == (PreDragStatus.PREVIEW_LANDING_STARTED.value)) { + return PreDragStatus.PREVIEW_LANDING_STARTED + } + if ((arg0) == (PreDragStatus.PREVIEW_LANDING_FINISHED.value)) { + return PreDragStatus.PREVIEW_LANDING_FINISHED + } + if ((arg0) == (PreDragStatus.ACTION_CANCELED_BEFORE_DRAG.value)) { + return PreDragStatus.ACTION_CANCELED_BEFORE_DRAG + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Define the type of shadow + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Define the type of shadow + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class ShadowType { + /** + * Define a color type of shadow + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Define a color type of shadow + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly COLOR: ShadowType = new ShadowType(0) + /** + * Define a blur type of shadow + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Define a blur type of shadow + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly BLUR: ShadowType = new ShadowType(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): ShadowType { + if ((arg0) == (ShadowType.COLOR.value)) { + return ShadowType.COLOR + } + if ((arg0) == (ShadowType.BLUR.value)) { + return ShadowType.BLUR + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * enum Shadow style + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * enum Shadow style + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class ShadowStyle { + /** + * Defines the super small default shadow style. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Defines the super small default shadow style. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly OUTER_DEFAULT_XS: ShadowStyle = new ShadowStyle(0) + /** + * Defines the small default shadow style. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Defines the small default shadow style. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly OUTER_DEFAULT_SM: ShadowStyle = new ShadowStyle(1) + /** + * Defines the medium default shadow style. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Defines the medium default shadow style. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly OUTER_DEFAULT_MD: ShadowStyle = new ShadowStyle(2) + /** + * Defines the large default shadow style. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Defines the large default shadow style. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly OUTER_DEFAULT_LG: ShadowStyle = new ShadowStyle(3) + /** + * Defines the small floating shadow style. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Defines the small floating shadow style. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly OUTER_FLOATING_SM: ShadowStyle = new ShadowStyle(4) + /** + * Defines the medium floating shadow style. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Defines the medium floating shadow style. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly OUTER_FLOATING_MD: ShadowStyle = new ShadowStyle(5) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): ShadowStyle { + if ((arg0) == (ShadowStyle.OUTER_DEFAULT_XS.value)) { + return ShadowStyle.OUTER_DEFAULT_XS + } + if ((arg0) == (ShadowStyle.OUTER_DEFAULT_SM.value)) { + return ShadowStyle.OUTER_DEFAULT_SM + } + if ((arg0) == (ShadowStyle.OUTER_DEFAULT_MD.value)) { + return ShadowStyle.OUTER_DEFAULT_MD + } + if ((arg0) == (ShadowStyle.OUTER_DEFAULT_LG.value)) { + return ShadowStyle.OUTER_DEFAULT_LG + } + if ((arg0) == (ShadowStyle.OUTER_FLOATING_SM.value)) { + return ShadowStyle.OUTER_FLOATING_SM + } + if ((arg0) == (ShadowStyle.OUTER_FLOATING_MD.value)) { + return ShadowStyle.OUTER_FLOATING_MD + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Enum for BlendMode. + * Blend modes for compositing current component + * with overlapping content. Use overlapping content + * as dst, current component as src. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * Enum for BlendMode. + * Blend modes for compositing current component + * with overlapping content. Use overlapping content + * as dst, current component as src. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ +export class BlendMode { + /** + * Hybrid mode does not take effect + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * Hybrid mode does not take effect + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly NONE: BlendMode = new BlendMode(0) + /** + * Clear destination color covered by the source to 0. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * Clear destination color covered by the source to 0. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly CLEAR: BlendMode = new BlendMode(1) + /** + * r = s + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * r = s + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly SRC: BlendMode = new BlendMode(2) + /** + * r = d + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * r = d + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly DST: BlendMode = new BlendMode(3) + /** + * r = s + (1 - sa) * d + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * r = s + (1 - sa) * d + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly SRC_OVER: BlendMode = new BlendMode(4) + /** + * r = d + (1 - da) * s + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * r = d + (1 - da) * s + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly DST_OVER: BlendMode = new BlendMode(5) + /** + * r = s * da + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * r = s * da + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly SRC_IN: BlendMode = new BlendMode(6) + /** + * r = d * sa + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * r = d * sa + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly DST_IN: BlendMode = new BlendMode(7) + /** + * r = s * (1 - da) + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * r = s * (1 - da) + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly SRC_OUT: BlendMode = new BlendMode(8) + /** + * r = d * (1 - sa) + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * r = d * (1 - sa) + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly DST_OUT: BlendMode = new BlendMode(9) + /** + * r = s * da + d * (1 - sa) + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * r = s * da + d * (1 - sa) + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly SRC_ATOP: BlendMode = new BlendMode(10) + /** + * r = d * sa + s * (1 - da) + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * r = d * sa + s * (1 - da) + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly DST_ATOP: BlendMode = new BlendMode(11) + /** + * r = s * (1 - da) + d * (1 - sa) + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * r = s * (1 - da) + d * (1 - sa) + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly XOR: BlendMode = new BlendMode(12) + /** + * r = min(s + d, 1) + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * r = min(s + d, 1) + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly PLUS: BlendMode = new BlendMode(13) + /** + * r = s * d + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * r = s * d + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly MODULATE: BlendMode = new BlendMode(14) + /** + * r = s + d - s * d + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * r = s + d - s * d + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly SCREEN: BlendMode = new BlendMode(15) + /** + * multiply or screen, depending on destination + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * multiply or screen, depending on destination + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly OVERLAY: BlendMode = new BlendMode(16) + /** + * rc = s + d - max(s * da, d * sa), ra = kSrcOver + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * rc = s + d - max(s * da, d * sa), ra = kSrcOver + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly DARKEN: BlendMode = new BlendMode(17) + /** + * rc = s + d - min(s * da, d * sa), ra = kSrcOver + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * rc = s + d - min(s * da, d * sa), ra = kSrcOver + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly LIGHTEN: BlendMode = new BlendMode(18) + /** + * brighten destination to reflect source + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * brighten destination to reflect source + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly COLOR_DODGE: BlendMode = new BlendMode(19) + /** + * darken destination to reflect source + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * darken destination to reflect source + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly COLOR_BURN: BlendMode = new BlendMode(20) + /** + * multiply or screen, depending on source + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * multiply or screen, depending on source + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly HARD_LIGHT: BlendMode = new BlendMode(21) + /** + * lighten or darken, depending on source + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * lighten or darken, depending on source + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly SOFT_LIGHT: BlendMode = new BlendMode(22) + /** + * rc = s + d - 2 * (min(s * da, d * sa)), ra = kSrcOver + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * rc = s + d - 2 * (min(s * da, d * sa)), ra = kSrcOver + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly DIFFERENCE: BlendMode = new BlendMode(23) + /** + * rc = s + d - two(s * d), ra = kSrcOver + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * rc = s + d - two(s * d), ra = kSrcOver + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly EXCLUSION: BlendMode = new BlendMode(24) + /** + * r = s * (1 - da) + d * (1 - sa) + s * d + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * r = s * (1 - da) + d * (1 - sa) + s * d + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly MULTIPLY: BlendMode = new BlendMode(25) + /** + * hue of source with saturation and luminosity of destination + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * hue of source with saturation and luminosity of destination + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly HUE: BlendMode = new BlendMode(26) + /** + * saturation of source with hue and luminosity of destination + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * saturation of source with hue and luminosity of destination + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly SATURATION: BlendMode = new BlendMode(27) + /** + * hue and saturation of source with luminosity of destination + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * hue and saturation of source with luminosity of destination + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly COLOR: BlendMode = new BlendMode(28) + /** + * luminosity of source with hue and saturation of destination + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * luminosity of source with hue and saturation of destination + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly LUMINOSITY: BlendMode = new BlendMode(29) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): BlendMode { + if ((arg0) == (BlendMode.NONE.value)) { + return BlendMode.NONE + } + if ((arg0) == (BlendMode.CLEAR.value)) { + return BlendMode.CLEAR + } + if ((arg0) == (BlendMode.SRC.value)) { + return BlendMode.SRC + } + if ((arg0) == (BlendMode.DST.value)) { + return BlendMode.DST + } + if ((arg0) == (BlendMode.SRC_OVER.value)) { + return BlendMode.SRC_OVER + } + if ((arg0) == (BlendMode.DST_OVER.value)) { + return BlendMode.DST_OVER + } + if ((arg0) == (BlendMode.SRC_IN.value)) { + return BlendMode.SRC_IN + } + if ((arg0) == (BlendMode.DST_IN.value)) { + return BlendMode.DST_IN + } + if ((arg0) == (BlendMode.SRC_OUT.value)) { + return BlendMode.SRC_OUT + } + if ((arg0) == (BlendMode.DST_OUT.value)) { + return BlendMode.DST_OUT + } + if ((arg0) == (BlendMode.SRC_ATOP.value)) { + return BlendMode.SRC_ATOP + } + if ((arg0) == (BlendMode.DST_ATOP.value)) { + return BlendMode.DST_ATOP + } + if ((arg0) == (BlendMode.XOR.value)) { + return BlendMode.XOR + } + if ((arg0) == (BlendMode.PLUS.value)) { + return BlendMode.PLUS + } + if ((arg0) == (BlendMode.MODULATE.value)) { + return BlendMode.MODULATE + } + if ((arg0) == (BlendMode.SCREEN.value)) { + return BlendMode.SCREEN + } + if ((arg0) == (BlendMode.OVERLAY.value)) { + return BlendMode.OVERLAY + } + if ((arg0) == (BlendMode.DARKEN.value)) { + return BlendMode.DARKEN + } + if ((arg0) == (BlendMode.LIGHTEN.value)) { + return BlendMode.LIGHTEN + } + if ((arg0) == (BlendMode.COLOR_DODGE.value)) { + return BlendMode.COLOR_DODGE + } + if ((arg0) == (BlendMode.COLOR_BURN.value)) { + return BlendMode.COLOR_BURN + } + if ((arg0) == (BlendMode.HARD_LIGHT.value)) { + return BlendMode.HARD_LIGHT + } + if ((arg0) == (BlendMode.SOFT_LIGHT.value)) { + return BlendMode.SOFT_LIGHT + } + if ((arg0) == (BlendMode.DIFFERENCE.value)) { + return BlendMode.DIFFERENCE + } + if ((arg0) == (BlendMode.EXCLUSION.value)) { + return BlendMode.EXCLUSION + } + if ((arg0) == (BlendMode.MULTIPLY.value)) { + return BlendMode.MULTIPLY + } + if ((arg0) == (BlendMode.HUE.value)) { + return BlendMode.HUE + } + if ((arg0) == (BlendMode.SATURATION.value)) { + return BlendMode.SATURATION + } + if ((arg0) == (BlendMode.COLOR.value)) { + return BlendMode.COLOR + } + if ((arg0) == (BlendMode.LUMINOSITY.value)) { + return BlendMode.LUMINOSITY + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Enum for BlendApplyType. + * Indicate how to apply specified blend mode to + * the view's content. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * Enum for BlendApplyType. + * Indicate how to apply specified blend mode to + * the view's content. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ +export class BlendApplyType { + /** + * Blend view's content in sequence over dst + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * Blend view's content in sequence over dst + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly FAST: BlendApplyType = new BlendApplyType(0) + /** + * Composite this views's contents into an + * offscreen image and then blend over dst + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * Composite this views's contents into an + * offscreen image and then blend over dst + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly OFFSCREEN: BlendApplyType = new BlendApplyType(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): BlendApplyType { + if ((arg0) == (BlendApplyType.FAST.value)) { + return BlendApplyType.FAST + } + if ((arg0) == (BlendApplyType.OFFSCREEN.value)) { + return BlendApplyType.OFFSCREEN + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Source and target are two matched elements during the geometry transition. + * The animation starts at the source and ends at the target. + * TransitionHierarchyStrategy enumeration defines how levels of source and target elements + * would be changed in the hierarchy during the geometry transition. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @systemapi + * @since 12 + */ +export class TransitionHierarchyStrategy { + /** + * None mode. + * Source and target staty in the original level in the hierarchy during geometry transition. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @systemapi + * @since 12 + */ + static readonly NONE: TransitionHierarchyStrategy = new TransitionHierarchyStrategy(0) + /** + * ADAPTIVE mode. + * Lower level one of source and target is elevated to higher level of both, + * indicating that two elements are in same high level. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @systemapi + * @since 12 + */ + static readonly ADAPTIVE: TransitionHierarchyStrategy = new TransitionHierarchyStrategy(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): TransitionHierarchyStrategy { + if ((arg0) == (TransitionHierarchyStrategy.NONE.value)) { + return TransitionHierarchyStrategy.NONE + } + if ((arg0) == (TransitionHierarchyStrategy.ADAPTIVE.value)) { + return TransitionHierarchyStrategy.ADAPTIVE + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Dismiss reason type. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ +export class DismissReason { + /** + * Press back + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly PRESS_BACK: DismissReason = new DismissReason(0) + /** + * Touch component outside + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly TOUCH_OUTSIDE: DismissReason = new DismissReason(1) + /** + * Close button + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly CLOSE_BUTTON: DismissReason = new DismissReason(2) + /** + * Slide down + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly SLIDE_DOWN: DismissReason = new DismissReason(3) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): DismissReason { + if ((arg0) == (DismissReason.PRESS_BACK.value)) { + return DismissReason.PRESS_BACK + } + if ((arg0) == (DismissReason.TOUCH_OUTSIDE.value)) { + return DismissReason.TOUCH_OUTSIDE + } + if ((arg0) == (DismissReason.CLOSE_BUTTON.value)) { + return DismissReason.CLOSE_BUTTON + } + if ((arg0) == (DismissReason.SLIDE_DOWN.value)) { + return DismissReason.SLIDE_DOWN + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Defines the menu preview mode. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * Defines the menu preview mode. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ +export class MenuPreviewMode { + /** + * No preview content. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * No preview content. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly NONE: MenuPreviewMode = new MenuPreviewMode(0) + /** + * Defines image type preview content. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * Defines image type preview content. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly IMAGE: MenuPreviewMode = new MenuPreviewMode(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): MenuPreviewMode { + if ((arg0) == (MenuPreviewMode.NONE.value)) { + return MenuPreviewMode.NONE + } + if ((arg0) == (MenuPreviewMode.IMAGE.value)) { + return MenuPreviewMode.IMAGE + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Defines modal transition type. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Defines modal transition type. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class ModalTransition { + /** + * Use default animation. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Use default animation. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly DEFAULT: ModalTransition = new ModalTransition(0) + /** + * Use none animation. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Use none animation. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly NONE: ModalTransition = new ModalTransition(1) + /** + * Use alpha animation. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Use alpha animation. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly ALPHA: ModalTransition = new ModalTransition(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): ModalTransition { + if ((arg0) == (ModalTransition.DEFAULT.value)) { + return ModalTransition.DEFAULT + } + if ((arg0) == (ModalTransition.NONE.value)) { + return ModalTransition.NONE + } + if ((arg0) == (ModalTransition.ALPHA.value)) { + return ModalTransition.ALPHA + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Defines sheet size type. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Defines sheet size type. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class SheetSize { + /** + * Defines the sheet size medium height type. The height is half the screen height + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Defines the sheet size medium height type. The height is half the screen height + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly MEDIUM: SheetSize = new SheetSize(0) + /** + * Defines the sheet size large height type. The height is almost screen height. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Defines the sheet size large height type. The height is almost screen height. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly LARGE: SheetSize = new SheetSize(1) + /** + * Defines the sheet size fit content height type. The height fit content. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * Defines the sheet size fit content height type. The height fit content. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly FIT_CONTENT: SheetSize = new SheetSize(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): SheetSize { + if ((arg0) == (SheetSize.MEDIUM.value)) { + return SheetSize.MEDIUM + } + if ((arg0) == (SheetSize.LARGE.value)) { + return SheetSize.LARGE + } + if ((arg0) == (SheetSize.FIT_CONTENT.value)) { + return SheetSize.FIT_CONTENT + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Defines the sheet type. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * Defines the sheet type. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ +export class SheetType { + /** + * Defines bottom sheet type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * Defines bottom sheet type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly BOTTOM: SheetType = new SheetType(0) + /** + * Defines center sheet type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * Defines center sheet type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly CENTER: SheetType = new SheetType(1) + /** + * Defines popup sheet type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * Defines popup sheet type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly POPUP: SheetType = new SheetType(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): SheetType { + if ((arg0) == (SheetType.BOTTOM.value)) { + return SheetType.BOTTOM + } + if ((arg0) == (SheetType.CENTER.value)) { + return SheetType.CENTER + } + if ((arg0) == (SheetType.POPUP.value)) { + return SheetType.POPUP + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Define the display mode of the sheet. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ +export class SheetMode { + /** + * Sheet displays above all page levels. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly OVERLAY: SheetMode = new SheetMode(0) + /** + * Sheet displays within the current page. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly EMBEDDED: SheetMode = new SheetMode(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): SheetMode { + if ((arg0) == (SheetMode.OVERLAY.value)) { + return SheetMode.OVERLAY + } + if ((arg0) == (SheetMode.EMBEDDED.value)) { + return SheetMode.EMBEDDED + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Define the scroll size mode of the sheet. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ +export class ScrollSizeMode { + /** + * Sheet change scroll size after the slide ends. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly FOLLOW_DETENT: ScrollSizeMode = new ScrollSizeMode(0) + /** + * Sheet change scroll size during the sliding process. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly CONTINUOUS: ScrollSizeMode = new ScrollSizeMode(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): ScrollSizeMode { + if ((arg0) == (ScrollSizeMode.FOLLOW_DETENT.value)) { + return ScrollSizeMode.FOLLOW_DETENT + } + if ((arg0) == (ScrollSizeMode.CONTINUOUS.value)) { + return ScrollSizeMode.CONTINUOUS + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Define the mode of sheet how to avoid keyboard. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 14 + */ +export class SheetKeyboardAvoidMode { + /** + * Sheet will not aovid keyboard. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 14 + */ + static readonly NONE: SheetKeyboardAvoidMode = new SheetKeyboardAvoidMode(0) + /** + * Firstly sheet will avoid keyboard by changing its height. + * And then sheet will avoid by resizing after reaching its maximum height. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 14 + */ + static readonly TRANSLATE_AND_RESIZE: SheetKeyboardAvoidMode = new SheetKeyboardAvoidMode(1) + /** + * Sheet will only avoid keyboard by resizing the content. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 14 + */ + static readonly RESIZE_ONLY: SheetKeyboardAvoidMode = new SheetKeyboardAvoidMode(2) + /** + * Firstly sheet will avoid keyboard by changing its height. + * And then sheet will avoid keyboard by scrolling after reaching its maximum height. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 14 + */ + static readonly TRANSLATE_AND_SCROLL: SheetKeyboardAvoidMode = new SheetKeyboardAvoidMode(3) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): SheetKeyboardAvoidMode { + if ((arg0) == (SheetKeyboardAvoidMode.NONE.value)) { + return SheetKeyboardAvoidMode.NONE + } + if ((arg0) == (SheetKeyboardAvoidMode.TRANSLATE_AND_RESIZE.value)) { + return SheetKeyboardAvoidMode.TRANSLATE_AND_RESIZE + } + if ((arg0) == (SheetKeyboardAvoidMode.RESIZE_ONLY.value)) { + return SheetKeyboardAvoidMode.RESIZE_ONLY + } + if ((arg0) == (SheetKeyboardAvoidMode.TRANSLATE_AND_SCROLL.value)) { + return SheetKeyboardAvoidMode.TRANSLATE_AND_SCROLL + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Enumerates the safe area types can be ignored. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ +export class LayoutSafeAreaType { + /** + * Default area of the system, including the status bar and navigation bar. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly SYSTEM: LayoutSafeAreaType = new LayoutSafeAreaType(0) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): LayoutSafeAreaType { + if ((arg0) == (LayoutSafeAreaType.SYSTEM.value)) { + return LayoutSafeAreaType.SYSTEM + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Enumerates the safe area edges can be ignored. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ +export class LayoutSafeAreaEdge { + /** + * Top edge of the safe area. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly TOP: LayoutSafeAreaEdge = new LayoutSafeAreaEdge(0) + /** + * Bottom edge of the safe area. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly BOTTOM: LayoutSafeAreaEdge = new LayoutSafeAreaEdge(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): LayoutSafeAreaEdge { + if ((arg0) == (LayoutSafeAreaEdge.TOP.value)) { + return LayoutSafeAreaEdge.TOP + } + if ((arg0) == (LayoutSafeAreaEdge.BOTTOM.value)) { + return LayoutSafeAreaEdge.BOTTOM + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Define the menu pop-up policy + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ +export class MenuPolicy { + /** + * Default value. The default logic of whether to pop up a menu depends on the scene. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly DEFAULT: MenuPolicy = new MenuPolicy(0) + /** + * Hide pop up menu. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly HIDE: MenuPolicy = new MenuPolicy(1) + /** + * Show pop up menu. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly SHOW: MenuPolicy = new MenuPolicy(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): MenuPolicy { + if ((arg0) == (MenuPolicy.DEFAULT.value)) { + return MenuPolicy.DEFAULT + } + if ((arg0) == (MenuPolicy.HIDE.value)) { + return MenuPolicy.HIDE + } + if ((arg0) == (MenuPolicy.SHOW.value)) { + return MenuPolicy.SHOW + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +export interface CommonMethod { + width(value: Length): T; + height(value: Length): T; + drawModifier(modifier: DrawModifier | undefined): T; + customProperty(name: string,value: Object | undefined): T; + expandSafeArea(types: Array,edges: Array): T; + responseRegion(value: Array | Rectangle): T; + mouseResponseRegion(value: Array | Rectangle): T; + size(value: SizeOptions): T; + constraintSize(value: ConstraintSizeOptions): T; + touchable(value: boolean): T; + hitTestBehavior(value: HitTestMode): T; + onChildTouchTest(event: ((value: Array) => TouchResult)): T; + layoutWeight(value: number | string): T; + padding(value: Padding | Length | LocalizedPadding): T; + margin(value: Margin | Length | LocalizedMargin): T; + background(builder: CustomBuilder,options: LITERAL_AlignAlignment): T; + backgroundColor(value: ResourceColor): T; + pixelRound(value: PixelRoundPolicy): T; + backgroundImage(src: ResourceStr | PixelMap,repeat: ImageRepeat): T; + backgroundImageSize(value: SizeOptions | ImageSize): T; + backgroundImagePosition(value: Position | Alignment): T; + backgroundBlurStyle(value: BlurStyle,options: BackgroundBlurStyleOptions): T; + backgroundEffect(options: BackgroundEffectOptions): T; + backgroundImageResizable(value: ResizableOptions): T; + foregroundEffect(options: ForegroundEffectOptions): T; + visualEffect(effect: VisualEffect): T; + backgroundFilter(filter: Filter): T; + foregroundFilter(filter: Filter): T; + compositingFilter(filter: Filter): T; + foregroundBlurStyle(value: BlurStyle,options: ForegroundBlurStyleOptions): T; + opacity(value: number | Resource): T; + border(value: BorderOptions): T; + borderStyle(value: BorderStyle | EdgeStyles): T; + borderWidth(value: Length | EdgeWidths | LocalizedEdgeWidths): T; + borderColor(value: ResourceColor | EdgeColors | LocalizedEdgeColors): T; + borderRadius(value: Length | BorderRadiuses | LocalizedBorderRadiuses): T; + borderImage(value: BorderImageOption): T; + outline(value: OutlineOptions): T; + outlineStyle(value: OutlineStyle | EdgeOutlineStyles): T; + outlineWidth(value: Dimension | EdgeOutlineWidths): T; + outlineColor(value: ResourceColor | EdgeColors | LocalizedEdgeColors): T; + outlineRadius(value: Dimension | OutlineRadiuses): T; + foregroundColor(value: ResourceColor | ColoringStrategy): T; + onClick(event: ((event: ClickEvent) => void)): T; + onHover(event: ((isHover: boolean, event: HoverEvent) => void)): T; + onAccessibilityHover(callback: AccessibilityCallback): T; + hoverEffect(value: HoverEffect): T; + onMouse(event: ((event: MouseEvent) => void)): T; + onTouch(event: ((event: TouchEvent) => void)): T; + onKeyEvent(event: ((event: KeyEvent) => void)): T; + onKeyPreIme(event: Callback): T; + focusable(value: boolean): T; + onFocus(event: (() => void)): T; + onBlur(event: (() => void)): T; + tabIndex(index: number): T; + defaultFocus(value: boolean): T; + groupDefaultFocus(value: boolean): T; + focusOnTouch(value: boolean): T; + focusBox(style: FocusBoxStyle): T; + focusScopeId(id: string,isGroup: boolean): T; + focusScopePriority(scopeId: string,priority: FocusPriority): T; + animation(value: AnimateParam): T; + transition(value: TransitionOptions | TransitionEffect): T; + gesture(gesture: GestureType,mask: GestureMask): T; + priorityGesture(gesture: GestureType,mask: GestureMask): T; + parallelGesture(gesture: GestureType,mask: GestureMask): T; + blur(value: number,options: BlurOptions): T; + linearGradientBlur(value: number,options: LinearGradientBlurOptions): T; + motionBlur(value: MotionBlurOptions): T; + brightness(value: number): T; + contrast(value: number): T; + grayscale(value: number): T; + colorBlend(value: Color | string | Resource): T; + saturate(value: number): T; + sepia(value: number): T; + invert(value: number | InvertOptions): T; + systemBarEffect(): T; + hueRotate(value: number | string): T; + useShadowBatching(value: boolean): T; + useEffect(value: boolean): T; + backdropBlur(value: number,options: BlurOptions): T; + renderGroup(value: boolean): T; + freeze(value: boolean): T; + translate(value: TranslateOptions): T; + scale(value: ScaleOptions): T; + gridSpan(value: number): T; + gridOffset(value: number): T; + rotate(value: RotateOptions): T; + transform(value: Object): T; + onAppear(event: (() => void)): T; + onDisAppear(event: (() => void)): T; + onAttach(callback: Callback): T; + onDetach(callback: Callback): T; + onAreaChange(event: ((oldValue: Area, newValue: Area) => void)): T; + visibility(value: Visibility): T; + flexGrow(value: number): T; + flexShrink(value: number): T; + flexBasis(value: number | string): T; + alignSelf(value: ItemAlign): T; + displayPriority(value: number): T; + zIndex(value: number): T; + sharedTransition(id: string,options: sharedTransitionOptions): T; + direction(value: Direction): T; + align(value: Alignment): T; + position(value: Position | Edges | LocalizedEdges): T; + markAnchor(value: Position | LocalizedPosition): T; + offset(value: Position | Edges | LocalizedEdges): T; + enabled(value: boolean): T; + useSizeType(value: LITERAL_XsNumberLITERALSpanNumberOffsetNumberSmNumberLITERALSpanNumberOffsetNumberMdNumberLITERALSpanNumberOffsetNumberLgNumberLITERALSpanNumberOffsetNumber): T; + alignRules(value: AlignRuleOption): T; + chainMode(direction: Axis,style: ChainStyle): T; + aspectRatio(value: number): T; + clickEffect(value: ClickEffect | null): T; + onDragStart(event: ((event: DragEvent, extraParams: string|undefined) => CustomBuilder | DragItemInfo)): T; + onDragEnter(event: ((event: DragEvent, extraParams: string|undefined) => void)): T; + onDragMove(event: ((event: DragEvent, extraParams: string|undefined) => void)): T; + onDragLeave(event: ((event: DragEvent, extraParams: string|undefined) => void)): T; + onDrop(event: ((event: DragEvent, extraParams: string|undefined) => void)): T; + onDragEnd(event: ((event: DragEvent, extraParams: string|undefined) => void)): T; + allowDrop(value: Array | null): T; + draggable(value: boolean): T; + dragPreview(value: CustomBuilder | DragItemInfo | string): T; + dragPreviewOptions(value: DragPreviewOptions,options: DragInteractionOptions): T; + onPreDrag(callback: Callback): T; + overlay(value: string | CustomBuilder | ComponentContent,options: OverlayOptions): T; + linearGradient(value: LITERAL_AngleNumberstringDirectionGradientDirectionColorsArrayResourceColornumberRepeatingBoolean): T; + sweepGradient(value: LITERAL_CenterLengthLengthStartNumberstringEndNumberstringRotationNumberstringColorsArrayResourceColornumberRepeatingBoolean): T; + radialGradient(value: LITERAL_CenterLengthLengthRadiusNumberstringColorsArrayResourceColornumberRepeatingBoolean): T; + motionPath(value: MotionPathOptions): T; + shadow(value: ShadowOptions | ShadowStyle): T; + blendMode(value: BlendMode,type: BlendApplyType): T; + advancedBlendMode(effect: BlendMode | Blender,type: BlendApplyType): T; + clip(value: boolean): T; + clipShape(value: CircleShape | EllipseShape | PathShape | RectShape): T; + mask(value: ProgressMask): T; + maskShape(value: CircleShape | EllipseShape | PathShape | RectShape): T; + key(value: string): T; + id(value: string): T; + geometryTransition(id: string): T; + bindPopup(show: boolean,popup: PopupOptions | CustomPopupOptions): T; + bindMenu(content: Array | CustomBuilder,options: MenuOptions): T; + bindContextMenu(content: CustomBuilder,responseType: ResponseType,options: ContextMenuOptions): T; + bindContentCover(isShow: boolean | undefined,builder: CustomBuilder,type: ModalTransition): T; + bindSheet(isShow: boolean | undefined,builder: CustomBuilder,options: SheetOptions): T; + stateStyles(value: StateStyles): T; + restoreId(value: number): T; + onVisibleAreaChange(ratios: Array,event: VisibleAreaChangeCallback): T; + sphericalEffect(value: number): T; + lightUpEffect(value: number): T; + pixelStretchEffect(options: PixelStretchEffectOptions): T; + keyboardShortcut(value: string | FunctionKey,keys: Array,action: (() => void)): T; + accessibilityGroup(value: boolean): T; + accessibilityText(value: string): T; + accessibilityTextHint(value: string): T; + accessibilityDescription(value: string): T; + accessibilityLevel(value: string): T; + accessibilityVirtualNode(builder: CustomBuilder): T; + obscured(reasons: Array): T; + reuseId(id: string): T; + renderFit(fitMode: RenderFit): T; + attributeModifier(modifier: AttributeModifier): T; + gestureModifier(modifier: GestureModifier): T; + backgroundBrightness(params: BackgroundBrightnessOptions): T; + onGestureJudgeBegin(callback: ((gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult)): T; + onGestureRecognizerJudgeBegin(callback: GestureRecognizerJudgeBeginCallback): T; + shouldBuiltInRecognizerParallelWith(callback: ShouldBuiltInRecognizerParallelWithCallback): T; + monopolizeEvents(monopolize: boolean): T; + onTouchIntercept(callback: Callback): T; + onSizeChange(event: SizeChangeCallback): T; +} +export interface CommonShapeMethod { stroke(value: ResourceColor): T; + fill(value: ResourceColor): T; + strokeDashOffset(value: number | string): T; + strokeLineCap(value: LineCapStyle): T; + strokeLineJoin(value: LineJoinStyle): T; + strokeMiterLimit(value: number | string): T; + strokeOpacity(value: number | string | Resource): T; + fillOpacity(value: number | string | Resource): T; + strokeWidth(value: Length): T; + antiAlias(value: boolean): T; + strokeDashArray(value: Array): T; } -export interface StateStyles { - normal?: Object +export interface CommonAttribute { +} +export interface CommonInterface { +} +export interface ScrollableCommonMethod { + scrollBar(barState: BarState): T; + scrollBarColor(color: Color | number | string): T; + scrollBarWidth(value: number | string): T; + edgeEffect(edgeEffect: EdgeEffect,options: EdgeEffectOptions): T; + fadingEdge(enabled: boolean | undefined,options: FadingEdgeOptions): T; + nestedScroll(value: NestedScrollOptions): T; + enableScrollInteraction(value: boolean): T; + friction(value: number | Resource): T; + onScroll(event: ((scrollOffset: number, scrollState: ScrollState) => void)): T; + onWillScroll(handler: OnWillScrollCallback | undefined): T; + onDidScroll(handler: OnScrollCallback): T; + onReachStart(event: (() => void)): T; + onReachEnd(event: (() => void)): T; + onScrollStart(event: (() => void)): T; + onScrollStop(event: (() => void)): T; + flingSpeedLimit(speedLimit: number): T; +} +export declare type DrawContext = IMPORT_DrawContext_FROM_api_arkui_Graphics +export declare type Optional = T | undefined +export interface Rectangle { + x?: Length + y?: Length + width?: Length + height?: Length +} +export declare class TouchTestInfo { + windowX: number; + windowY: number; + parentX: number; + parentY: number; + x: number; + y: number; + rect: RectResult; + id: string; +} +export interface RectResult { + x: number + y: number + width: number + height: number +} +export declare class TouchResult { + strategy: TouchTestStrategy; + id?: string; +} +export declare type CustomBuilder = ((() => Object)) +export interface PixelRoundPolicy { + start?: PixelRoundCalcPolicy + top?: PixelRoundCalcPolicy + end?: PixelRoundCalcPolicy + bottom?: PixelRoundCalcPolicy +} +export declare type PixelMap = IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image +export interface BackgroundBlurStyleOptions { + colorMode?: ThemeColorMode + adaptiveColor?: AdaptiveColor + scale?: number + blurOptions?: BlurOptions + policy?: BlurStyleActivePolicy + inactiveColor?: ResourceColor + type?: BlurType +} +export interface BlurStyleOptions { + colorMode?: ThemeColorMode + adaptiveColor?: AdaptiveColor + scale?: number + blurOptions?: BlurOptions } export interface BlurOptions { grayscale: [number, number] } -export interface Padding { - top?: Length - right?: Length - bottom?: Length - left?: Length +export interface BackgroundEffectOptions { + radius: number + saturation?: number + brightness?: number + color?: ResourceColor + adaptiveColor?: AdaptiveColor + blurOptions?: BlurOptions + policy?: BlurStyleActivePolicy + inactiveColor?: ResourceColor + type?: BlurType +} +export interface ForegroundEffectOptions { + radius: number +} +export declare type VisualEffect = IMPORT_default_VisualEffect_FROM_api_ohos_graphics_uiEffect +export declare type Filter = IMPORT_default_Filter_FROM_api_ohos_graphics_uiEffect +export interface ForegroundBlurStyleOptions { + colorMode?: ThemeColorMode + adaptiveColor?: AdaptiveColor + scale?: number + blurOptions?: BlurOptions +} +export interface BorderImageOption { + slice?: Length | EdgeWidths | LocalizedEdgeWidths + repeat?: RepeatMode + source?: string | Resource | LinearGradient + width?: Length | EdgeWidths | LocalizedEdgeWidths + outset?: Length | EdgeWidths | LocalizedEdgeWidths + fill?: boolean +} +export interface ClickEvent { + target: EventTarget + timestamp: number + source: SourceType + axisHorizontal?: number + axisVertical?: number + pressure: number + tiltX: number + tiltY: number + sourceTool: SourceTool + deviceId?: number + displayX: number + displayY: number + windowX: number + windowY: number + screenX: number + screenY: number + x: number + y: number + preventDefault: (() => void) +} +export interface BaseEvent { + target: EventTarget + timestamp: number + source: SourceType + axisHorizontal?: number + axisVertical?: number + pressure: number + tiltX: number + tiltY: number + sourceTool: SourceTool + deviceId?: number +} +export interface EventTarget { + area: Area +} +export declare type Callback = ((data: T) => V) +export interface HoverEvent { + target: EventTarget + timestamp: number + source: SourceType + axisHorizontal?: number + axisVertical?: number + pressure: number + tiltX: number + tiltY: number + sourceTool: SourceTool + deviceId?: number + stopPropagation: (() => void) +} +export declare type AccessibilityCallback = ((isHover: boolean, event: AccessibilityHoverEvent) => void) +export interface AccessibilityHoverEvent { + target: EventTarget + timestamp: number + source: SourceType + axisHorizontal?: number + axisVertical?: number + pressure: number + tiltX: number + tiltY: number + sourceTool: SourceTool + deviceId?: number + type: AccessibilityHoverType + x: number + y: number + displayX: number + displayY: number + windowX: number + windowY: number +} +export interface MouseEvent { + target: EventTarget + timestamp: number + source: SourceType + axisHorizontal?: number + axisVertical?: number + pressure: number + tiltX: number + tiltY: number + sourceTool: SourceTool + deviceId?: number + button: MouseButton + action: MouseAction + displayX: number + displayY: number + windowX: number + windowY: number + screenX: number + screenY: number + x: number + y: number + stopPropagation: (() => void) +} +export interface TouchEvent { + target: EventTarget + timestamp: number + source: SourceType + axisHorizontal?: number + axisVertical?: number + pressure: number + tiltX: number + tiltY: number + sourceTool: SourceTool + deviceId?: number + type: TouchType + touches: TouchObject[] + changedTouches: TouchObject[] + stopPropagation: (() => void) + preventDefault: (() => void) +} +export interface TouchObject { + type: TouchType + id: number + displayX: number + displayY: number + windowX: number + windowY: number + screenX: number + screenY: number + x: number + y: number +} +export interface HistoricalPoint { + touchObject: TouchObject + size: number + force: number + timestamp: number +} +export interface KeyEvent { + type: KeyType + keyCode: number + keyText: string + keySource: KeySource + deviceId: number + metaKey: number + timestamp: number + stopPropagation: (() => void) + intentionCode: IntentionCode + unicode?: number +} +export declare type IntentionCode = IMPORT_IntentionCode_FROM_api_ohos_multimodalInput_intentionCode +export interface AnimateParam { + duration?: number + tempo?: number + curve?: Curve | string | ICurve + delay?: number + iterations?: number + playMode?: PlayMode + onFinish?: (() => void) + finishCallbackType?: FinishCallbackType + expectedFrameRateRange?: ExpectedFrameRateRange +} +export interface ExpectedFrameRateRange { + min: number + max: number + expected: number +} +export interface TransitionOptions { + type?: TransitionType + opacity?: number + translate?: TranslateOptions + scale?: ScaleOptions + rotate?: RotateOptions +} +export interface TranslateOptions { + x?: number | string + y?: number | string + z?: number | string +} +export interface ScaleOptions { + x?: number + y?: number + z?: number + centerX?: number | string + centerY?: number | string +} +export interface RotateOptions { + x?: number + y?: number + z?: number + centerX?: number | string + centerY?: number | string + centerZ?: number + perspective?: number + angle: number | string +} +export declare type TransitionFinishCallback = ((transitionIn: boolean) => void) +export interface LinearGradientBlurOptions { + fractionStops: FractionStop[] + direction: GradientDirection +} +export declare type FractionStop = [number, number] +export interface MotionBlurOptions { + radius: number + anchor: MotionBlurAnchor +} +export interface MotionBlurAnchor { + x: number + y: number +} +export interface InvertOptions { + low: number + high: number + threshold: number + thresholdRange: number +} +export interface sharedTransitionOptions { + duration?: number + curve?: Curve | string | ICurve + delay?: number + motionPath?: MotionPathOptions + zIndex?: number + type?: SharedTransitionEffectType +} +export interface MotionPathOptions { + path: string + from?: number + to?: number + rotatable?: boolean +} +export interface AlignRuleOption { + left?: LITERAL_AnchorStringAlignHorizontalAlign + right?: LITERAL_AnchorStringAlignHorizontalAlign + middle?: LITERAL_AnchorStringAlignHorizontalAlign + top?: LITERAL_AnchorStringAlignVerticalAlign + bottom?: LITERAL_AnchorStringAlignVerticalAlign + center?: LITERAL_AnchorStringAlignVerticalAlign + bias?: Bias +} +export interface LocalizedAlignRuleOptions { + start?: LocalizedHorizontalAlignParam + end?: LocalizedHorizontalAlignParam + middle?: LocalizedHorizontalAlignParam + top?: LocalizedVerticalAlignParam + bottom?: LocalizedVerticalAlignParam + center?: LocalizedVerticalAlignParam + bias?: Bias +} +export interface LocalizedHorizontalAlignParam { + anchor: string + align: HorizontalAlign +} +export interface LocalizedVerticalAlignParam { + anchor: string + align: VerticalAlign +} +export interface ClickEffect { + level: ClickEffectLevel + scale?: number +} +export interface DragEvent { + dragBehavior: DragBehavior + useCustomDropAnimation: boolean +} +export declare type UnifiedData = IMPORT_default_UnifiedData_FROM_api_ohos_data_unifiedDataChannel +export declare type Summary = IMPORT_default_Summary_FROM_api_ohos_data_unifiedDataChannel +export interface DragItemInfo { + pixelMap?: PixelMap + builder?: CustomBuilder + extraInfo?: string +} +export declare type UniformDataType = IMPORT_default_UniformDataType_FROM_api_ohos_data_uniformTypeDescriptor +export interface DragPreviewOptions { + mode?: DragPreviewMode | Array + modifier?: ImageModifier + numberBadge?: boolean | number +} +export declare type ImageModifier = IMPORT_ImageModifier_FROM_api_arkui_ImageModifier +export interface DragInteractionOptions { + isMultiSelectionEnabled?: boolean + defaultAnimationBeforeLifting?: boolean +} +export declare type ComponentContent = IMPORT_ComponentContent_T_FROM_api_arkui_ComponentContent +export interface OverlayOptions { + align?: Alignment + offset?: OverlayOffset +} +export interface OverlayOffset { + x?: number + y?: number +} +export interface ShadowOptions { + radius: number | Resource + type?: ShadowType + color?: Color | string | Resource | ColoringStrategy + offsetX?: number | Resource + offsetY?: number | Resource + fill?: boolean +} +export declare type Blender = IMPORT_default_Blender_FROM_api_ohos_graphics_uiEffect +export declare type CircleShape = IMPORT_CircleShape_FROM_api_ohos_arkui_shape +export declare type EllipseShape = IMPORT_EllipseShape_FROM_api_ohos_arkui_shape +export declare type PathShape = IMPORT_PathShape_FROM_api_ohos_arkui_shape +export declare type RectShape = IMPORT_RectShape_FROM_api_ohos_arkui_shape +export interface GeometryTransitionOptions { + follow?: boolean + hierarchyStrategy?: TransitionHierarchyStrategy +} +export interface PopupOptions { + message: string + placementOnTop?: boolean + placement?: Placement + primaryButton?: LITERAL_ValueStringActionVoid + secondaryButton?: LITERAL_ValueStringActionVoid + onStateChange?: ((event: LITERAL_IsVisibleBoolean) => void) + arrowOffset?: Length + showInSubWindow?: boolean + mask?: boolean | LITERAL_ColorResourceColor + messageOptions?: PopupMessageOptions + targetSpace?: Length + enableArrow?: boolean + offset?: Position + popupColor?: Color | string | Resource | number + autoCancel?: boolean + width?: Dimension + arrowPointPosition?: ArrowPointPosition + arrowWidth?: Dimension + arrowHeight?: Dimension + radius?: Dimension + shadow?: ShadowOptions | ShadowStyle + backgroundBlurStyle?: BlurStyle + transition?: TransitionEffect + onWillDismiss?: boolean | Callback + enableHoverMode?: boolean +} +export interface PopupMessageOptions { + textColor?: ResourceColor + font?: Font +} +export interface DismissPopupAction { + dismiss: Callback + reason: DismissReason +} +export interface CustomPopupOptions { + builder: CustomBuilder + placement?: Placement + maskColor?: Color | string | Resource | number + popupColor?: Color | string | Resource | number + enableArrow?: boolean + autoCancel?: boolean + onStateChange?: ((event: LITERAL_IsVisibleBoolean) => void) + arrowOffset?: Length + showInSubWindow?: boolean + mask?: boolean | LITERAL_ColorResourceColor + targetSpace?: Length + offset?: Position + width?: Dimension + arrowPointPosition?: ArrowPointPosition + arrowWidth?: Dimension + arrowHeight?: Dimension + radius?: Dimension + shadow?: ShadowOptions | ShadowStyle + backgroundBlurStyle?: BlurStyle + focusable?: boolean + transition?: TransitionEffect + onWillDismiss?: boolean | Callback + enableHoverMode?: boolean +} +export interface MenuElement { + value: ResourceStr + icon?: ResourceStr + symbolIcon?: SymbolGlyphModifier + enabled?: boolean + action: (() => void) +} +export declare type SymbolGlyphModifier = IMPORT_SymbolGlyphModifier_FROM_api_arkui_SymbolGlyphModifier +export interface MenuOptions { + offset?: Position + placement?: Placement + enableArrow?: boolean + arrowOffset?: Length + preview?: MenuPreviewMode | CustomBuilder + borderRadius?: Length | BorderRadiuses | LocalizedBorderRadiuses + onAppear?: (() => void) + onDisappear?: (() => void) + aboutToAppear?: (() => void) + aboutToDisappear?: (() => void) + layoutRegionMargin?: Margin + previewAnimationOptions?: ContextMenuAnimationOptions + backgroundColor?: ResourceColor + backgroundBlurStyle?: BlurStyle + transition?: TransitionEffect + enableHoverMode?: boolean + title?: ResourceStr + showInSubWindow?: boolean +} +export interface ContextMenuOptions { + offset?: Position + placement?: Placement + enableArrow?: boolean + arrowOffset?: Length + preview?: MenuPreviewMode | CustomBuilder + borderRadius?: Length | BorderRadiuses | LocalizedBorderRadiuses + onAppear?: (() => void) + onDisappear?: (() => void) + aboutToAppear?: (() => void) + aboutToDisappear?: (() => void) + layoutRegionMargin?: Margin + previewAnimationOptions?: ContextMenuAnimationOptions + backgroundColor?: ResourceColor + backgroundBlurStyle?: BlurStyle + transition?: TransitionEffect + enableHoverMode?: boolean +} +export interface ContextMenuAnimationOptions { + scale?: AnimationRange + transition?: TransitionEffect + hoverScale?: AnimationRange +} +export declare type AnimationRange = [from: T, to: T] +export interface ContentCoverOptions { + backgroundColor?: ResourceColor + onAppear?: (() => void) + onDisappear?: (() => void) + onWillAppear?: (() => void) + onWillDisappear?: (() => void) + modalTransition?: ModalTransition + onWillDismiss?: Callback + transition?: TransitionEffect +} +export interface BindOptions { + backgroundColor?: ResourceColor + onAppear?: (() => void) + onDisappear?: (() => void) + onWillAppear?: (() => void) + onWillDisappear?: (() => void) +} +export interface DismissContentCoverAction { + dismiss: Callback + reason: DismissReason } -export declare type CustomBuilder = ((() => Object)) export interface SheetOptions { backgroundColor?: ResourceColor onAppear?: (() => void) @@ -474,13 +4346,6 @@ export interface SheetOptions { uiContext?: UIContext keyboardAvoidMode?: SheetKeyboardAvoidMode } -export interface BindOptions { - backgroundColor?: ResourceColor - onAppear?: (() => void) - onDisappear?: (() => void) - onWillAppear?: (() => void) - onWillDisappear?: (() => void) -} export interface SheetTitleOptions { title: ResourceStr subtitle?: ResourceStr @@ -492,106 +4357,94 @@ export interface DismissSheetAction { dismiss: Callback reason: DismissReason } -export declare type Callback = ((data: T) => V) export interface SpringBackAction { springBack: Callback } -export interface EdgeWidths { +export declare type UIContext = IMPORT_UIContext_FROM_api_ohos_arkui_UIContext +export interface StateStyles { + normal?: Object + pressed?: Object + disabled?: Object + focused?: Object + clicked?: Object + selected?: Object +} +export declare type VisibleAreaChangeCallback = ((isExpanding: boolean, currentRatio: number) => void) +export interface PixelStretchEffectOptions { top?: Length - right?: Length bottom?: Length left?: Length + right?: Length } -export interface LocalizedEdgeWidths { - top?: LengthMetrics - end?: LengthMetrics - bottom?: LengthMetrics - start?: LengthMetrics -} -export interface EdgeColors { - top?: ResourceColor - right?: ResourceColor - bottom?: ResourceColor - left?: ResourceColor -} -export interface LocalizedEdgeColors { - top?: ResourceColor - end?: ResourceColor - bottom?: ResourceColor - start?: ResourceColor -} -export interface EdgeStyles { - top?: BorderStyle - right?: BorderStyle - bottom?: BorderStyle - left?: BorderStyle +export interface UIGestureEvent { } -export interface ShadowOptions { - radius: number | Resource - type?: ShadowType - color?: Color | string | Resource | ColoringStrategy - offsetX?: number | Resource - offsetY?: number | Resource - fill?: boolean +export interface BackgroundBrightnessOptions { + rate: number + lightUpDegree: number } -export declare type UIContext = IMPORT_UIContext_FROM_api_ohos_arkui_UIContext -export interface BackgroundBlurStyleOptions { - colorMode?: ThemeColorMode - adaptiveColor?: AdaptiveColor - scale?: number - blurOptions?: BlurOptions - policy?: BlurStyleActivePolicy - inactiveColor?: ResourceColor +export declare type GestureRecognizerJudgeBeginCallback = ((event: BaseGestureEvent, current: GestureRecognizer, recognizers: Array) => GestureJudgeResult) +export declare type ShouldBuiltInRecognizerParallelWithCallback = ((current: GestureRecognizer, others: Array) => GestureRecognizer) +export declare type SizeChangeCallback = ((oldValue: SizeOptions, newValue: SizeOptions) => void) +export interface CommonConfiguration { + enabled: boolean + contentModifier: ContentModifier } -export interface BlurStyleOptions { - colorMode?: ThemeColorMode - adaptiveColor?: AdaptiveColor - scale?: number - blurOptions?: BlurOptions +export declare class WrappedBuilder { + builder: ((args: Args) => void); } -export interface DragPreviewOptions { - mode?: DragPreviewMode | Array - modifier?: ImageModifier - numberBadge?: boolean | number +export interface PickerTextStyle { + color?: ResourceColor + font?: Font } -export declare type ImageModifier = IMPORT_ImageModifier_FROM_api_arkui_ImageModifier -export interface DragInteractionOptions { - isMultiSelectionEnabled?: boolean - defaultAnimationBeforeLifting?: boolean +export interface PointLightStyle { + lightSource?: LightSource + illuminated?: IlluminatedType + bloom?: number } -export interface BorderOptions { +export interface LightSource { + positionX: Dimension + positionY: Dimension + positionZ: Dimension + intensity: number + color?: ResourceColor } -export declare class TouchTestInfo { - windowX: number; - windowY: number; - parentX: number; - parentY: number; - x: number; - y: number; - rect: RectResult; - id: string; +export interface MultiShadowOptions { + radius?: number | Resource + offsetX?: number | Resource + offsetY?: number | Resource } -export interface RectResult { - x: number - y: number - width: number - height: number +export interface EdgeEffectOptions { + alwaysEnabled: boolean } -export interface AttributeModifier { +export interface FadingEdgeOptions { + fadingEdgeLength?: LengthMetrics } -export interface UIGestureEvent { +export interface NestedScrollOptions { + scrollForward: NestedScrollMode + scrollBackward: NestedScrollMode } -export declare type GestureRecognizerJudgeBeginCallback = ((event: BaseGestureEvent, current: GestureRecognizer, recognizers: Array) => GestureJudgeResult) -export interface BaseEvent { +export declare class ScrollResult { + offsetRemain: number; } -export interface ClickEvent { - displayX: number - displayY: number +export declare type OnScrollCallback = ((scrollOffset: number, scrollState: ScrollState) => void) +export interface ItemDragInfo { + x: number + y: number } -export declare type PixelMap = IMPORT_default_PixelMap_FROM_resource_image -export declare type SymbolGlyphModifier = IMPORT_SymbolGlyphModifier_FROM_resource_symbol -export interface CommonConfiguration { - enabled: boolean - contentModifier: ContentModifier +export interface SelectionOptions { + menuPolicy?: MenuPolicy +} +export interface TextDecorationOptions { + type: TextDecorationType + color?: ResourceColor + style?: TextDecorationStyle +} +export interface CaretOffset { + index: number + x: number + y: number } -export declare type ComponentContent = IMPORT_ComponentContent_FROM_api_arkui_ComponentContent \ No newline at end of file +export interface InputCounterOptions { + thresholdPercentage?: number + highlightBorder?: boolean +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkDotIndicatorBuilder.ts b/arkoala-arkts/arkui/src/generated/ArkDotIndicatorBuilder.ts index 50f2d5cd1..30edb501d 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDotIndicatorBuilder.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDotIndicatorBuilder.ts @@ -1,6 +1,8 @@ import { Indicator } from "./ArkIndicatorBuilder" -import { Length, Resource, LengthMetrics } from "./ArkUnitsInterfaces" -import { IMPORT_Resource_FROM_resource_resource, IMPORT_LengthMetrics_FROM_api_arkui_Graphics } from "./SyntheticDeclarations" +import { Length, Resource, LengthMetrics, ResourceColor } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, IMPORT_LengthMetrics_FROM_api_arkui_Graphics } from "./SyntheticDeclarations" +import { DigitIndicator } from "./ArkDigitIndicatorBuilder" +import { Color } from "./ArkEnumsInterfaces" export class DotIndicator extends Indicator { _left?: Length _top?: Length @@ -10,12 +12,21 @@ export class DotIndicator extends Indicator { _end?: LengthMetrics _itemWidth?: Length _itemHeight?: Length + _selectedItemWidth?: Length + _selectedItemHeight?: Length + _mask?: boolean + _color?: ResourceColor + _selectedColor?: ResourceColor + _maxDisplayCount?: number constructor() { super(); } static dot(): DotIndicator { return new DotIndicator() } + static digit(): DigitIndicator { + return new DigitIndicator() + } left(value: Length): this { this._left = value return this @@ -48,4 +59,28 @@ export class DotIndicator extends Indicator { this._itemHeight = value return this } + selectedItemWidth(value: Length): this { + this._selectedItemWidth = value + return this + } + selectedItemHeight(value: Length): this { + this._selectedItemHeight = value + return this + } + mask(value: boolean): this { + this._mask = value + return this + } + color(value: ResourceColor): this { + this._color = value + return this + } + selectedColor(value: ResourceColor): this { + this._selectedColor = value + return this + } + maxDisplayCount(maxDisplayCount: number): this { + this._maxDisplayCount = maxDisplayCount + return this + } } \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkDrawingRenderingContextMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkDrawingRenderingContextMaterialized.ts index 903ccd99f..24470162e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDrawingRenderingContextMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDrawingRenderingContextMaterialized.ts @@ -17,8 +17,8 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { Size, DrawingCanvas } from "./ArkCanvasInterfaces" +import { IMPORT_default_Canvas_FROM_api_ohos_graphics_drawing, IMPORT_LengthMetricsUnit_FROM_api_arkui_Graphics } from "./SyntheticDeclarations" import { LengthMetricsUnit } from "./ArkUnitsInterfaces" -import { IMPORT_LengthMetricsUnit_FROM_api_arkui_Graphics } from "./SyntheticDeclarations" import { TypeChecker } from "#components" import { Finalizable } from "./Finalizable" diff --git a/arkoala-arkts/arkui/src/generated/ArkEnumsInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkEnumsInterfaces.ts index 7bd95f7b1..05877fb2e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkEnumsInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkEnumsInterfaces.ts @@ -1,21 +1,899 @@ import { KInt } from "@koalaui/interop" -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at +/** + * Defines the hit test mode. * - * http://www.apache.org/licenses/LICENSE-2.0 + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 9 + */ +/** + * Defines the hit test mode. * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Defines the hit test mode. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class HitTestMode { + /** + * Both self and children nodes respond to the hit test for touch events, + * but block hit test of the other nodes which is masked by this node. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 9 + */ +/** + * Both self and children nodes respond to the hit test for touch events, + * but block hit test of the other nodes which is masked by this node. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Both self and children nodes respond to the hit test for touch events, + * but block hit test of the other nodes which is masked by this node. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Default: HitTestMode = new HitTestMode(0) + /** + * Self respond to the hit test for touch events, + * but block hit test of children and other nodes which is masked by this node. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 9 + */ +/** + * Self respond to the hit test for touch events, + * but block hit test of children and other nodes which is masked by this node. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Self respond to the hit test for touch events, + * but block hit test of children and other nodes which is masked by this node. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Block: HitTestMode = new HitTestMode(1) + /** + * Self and children respond to the hit test for touch events, + * and allow hit test of other nodes which is masked by this node. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 9 + */ +/** + * Self and children respond to the hit test for touch events, + * and allow hit test of other nodes which is masked by this node. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Self and children respond to the hit test for touch events, + * and allow hit test of other nodes which is masked by this node. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Transparent: HitTestMode = new HitTestMode(2) + /** + * Self not respond to the hit test for touch events, + * but children respond to the hit test for touch events. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 9 + */ +/** + * Self not respond to the hit test for touch events, + * but children respond to the hit test for touch events. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Self not respond to the hit test for touch events, + * but children respond to the hit test for touch events. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly None: HitTestMode = new HitTestMode(3) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): HitTestMode { + if ((arg0) == (HitTestMode.Default.value)) { + return HitTestMode.Default + } + if ((arg0) == (HitTestMode.Block.value)) { + return HitTestMode.Block + } + if ((arg0) == (HitTestMode.Transparent.value)) { + return HitTestMode.Transparent + } + if ((arg0) == (HitTestMode.None.value)) { + return HitTestMode.None + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Alignment enumeration description. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Alignment enumeration description. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Alignment enumeration description. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Alignment enumeration description. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ +export class Alignment { + /** + * Top Start. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Top Start. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Top Start. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Top Start. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly TopStart: Alignment = new Alignment(0) + /** + * The top is centered horizontally. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * The top is centered horizontally. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * The top is centered horizontally. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * The top is centered horizontally. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Top: Alignment = new Alignment(1) + /** + * Top tail end. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Top tail end. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Top tail end. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Top tail end. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly TopEnd: Alignment = new Alignment(2) + /** + * The starting end is centered longitudinally. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * The starting end is centered longitudinally. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * The starting end is centered longitudinally. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * The starting end is centered longitudinally. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Start: Alignment = new Alignment(3) + /** + * Center horizontal and vertical. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Center horizontal and vertical. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Center horizontal and vertical. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Center horizontal and vertical. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Center: Alignment = new Alignment(4) + /** + * The tail end is centered longitudinally. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * The tail end is centered longitudinally. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * The tail end is centered longitudinally. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * The tail end is centered longitudinally. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly End: Alignment = new Alignment(5) + /** + * Bottom starting end. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Bottom starting end. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Bottom starting end. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Bottom starting end. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly BottomStart: Alignment = new Alignment(6) + /** + * The bottom is centered horizontally. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * The bottom is centered horizontally. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * The bottom is centered horizontally. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * The bottom is centered horizontally. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Bottom: Alignment = new Alignment(7) + /** + * Bottom end. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Bottom end. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Bottom end. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Bottom end. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly BottomEnd: Alignment = new Alignment(8) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): Alignment { + if ((arg0) == (Alignment.TopStart.value)) { + return Alignment.TopStart + } + if ((arg0) == (Alignment.Top.value)) { + return Alignment.Top + } + if ((arg0) == (Alignment.TopEnd.value)) { + return Alignment.TopEnd + } + if ((arg0) == (Alignment.Start.value)) { + return Alignment.Start + } + if ((arg0) == (Alignment.Center.value)) { + return Alignment.Center + } + if ((arg0) == (Alignment.End.value)) { + return Alignment.End + } + if ((arg0) == (Alignment.BottomStart.value)) { + return Alignment.BottomStart + } + if ((arg0) == (Alignment.Bottom.value)) { + return Alignment.Bottom + } + if ((arg0) == (Alignment.BottomEnd.value)) { + return Alignment.BottomEnd + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * common enum of color + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * common enum of color + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * common enum of color + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * common enum of color + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 */ export class Color { + /** + * White. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * White. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * White. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * White. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ static readonly White: Color = new Color(0) + /** + * Black. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Black. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Black. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Black. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ static readonly Black: Color = new Color(1) + /** + * Blue. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Blue. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Blue. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Blue. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Blue: Color = new Color(2) + /** + * Brown. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Brown. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Brown. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Brown. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Brown: Color = new Color(3) + /** + * Gray. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Gray. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Gray. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Gray. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Gray: Color = new Color(4) + /** + * Green. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Green. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Green. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Green. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Green: Color = new Color(5) + /** + * Grey. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Grey. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Grey. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Grey. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Grey: Color = new Color(6) + /** + * Orange. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Orange. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Orange. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Orange. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Orange: Color = new Color(7) + /** + * color. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * color. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * color. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * color. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Pink: Color = new Color(8) + /** + * Red. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Red. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Red. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Red. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Red: Color = new Color(9) + /** + * Yellow. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Yellow. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Yellow. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Yellow. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Yellow: Color = new Color(10) + /** + * Transparent. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Transparent. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Transparent. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Transparent: Color = new Color(11) constructor(value: KInt) { this.value = value } @@ -27,12 +905,992 @@ export class Color { if ((arg0) == (Color.Black.value)) { return Color.Black } + if ((arg0) == (Color.Blue.value)) { + return Color.Blue + } + if ((arg0) == (Color.Brown.value)) { + return Color.Brown + } + if ((arg0) == (Color.Gray.value)) { + return Color.Gray + } + if ((arg0) == (Color.Green.value)) { + return Color.Green + } + if ((arg0) == (Color.Grey.value)) { + return Color.Grey + } + if ((arg0) == (Color.Orange.value)) { + return Color.Orange + } + if ((arg0) == (Color.Pink.value)) { + return Color.Pink + } + if ((arg0) == (Color.Red.value)) { + return Color.Red + } + if ((arg0) == (Color.Yellow.value)) { + return Color.Yellow + } + if ((arg0) == (Color.Transparent.value)) { + return Color.Transparent + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Pixel Round Direction + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ +export class PixelRoundCalcPolicy { + /** + * No Force round the component boundary coordinates to integer pixel. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly NO_FORCE_ROUND: PixelRoundCalcPolicy = new PixelRoundCalcPolicy(0) + /** + * Force ceil the component boundary coordinates to integer pixel. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly FORCE_CEIL: PixelRoundCalcPolicy = new PixelRoundCalcPolicy(1) + /** + * Force floor the component boundary coordinates to integer pixel. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly FORCE_FLOOR: PixelRoundCalcPolicy = new PixelRoundCalcPolicy(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): PixelRoundCalcPolicy { + if ((arg0) == (PixelRoundCalcPolicy.NO_FORCE_ROUND.value)) { + return PixelRoundCalcPolicy.NO_FORCE_ROUND + } + if ((arg0) == (PixelRoundCalcPolicy.FORCE_CEIL.value)) { + return PixelRoundCalcPolicy.FORCE_CEIL + } + if ((arg0) == (PixelRoundCalcPolicy.FORCE_FLOOR.value)) { + return PixelRoundCalcPolicy.FORCE_FLOOR + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * ImageRepeat enumeration description + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * ImageRepeat enumeration description + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * ImageRepeat enumeration description + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * ImageRepeat enumeration description + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ +export class ImageRepeat { + /** + * Do not draw the picture again. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Do not draw the picture again. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Do not draw the picture again. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Do not draw the picture again. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly NoRepeat: ImageRepeat = new ImageRepeat(0) + /** + * Repeat the drawing only on the horizontal axis. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Repeat the drawing only on the horizontal axis. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Repeat the drawing only on the horizontal axis. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Repeat the drawing only on the horizontal axis. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly X: ImageRepeat = new ImageRepeat(1) + /** + * Repeat the drawing only on the vertical axis. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Repeat the drawing only on the vertical axis. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Repeat the drawing only on the vertical axis. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Repeat the drawing only on the vertical axis. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Y: ImageRepeat = new ImageRepeat(2) + /** + * Draw the picture repeatedly on both axes. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Draw the picture repeatedly on both axes. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Draw the picture repeatedly on both axes. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Draw the picture repeatedly on both axes. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly XY: ImageRepeat = new ImageRepeat(3) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): ImageRepeat { + if ((arg0) == (ImageRepeat.NoRepeat.value)) { + return ImageRepeat.NoRepeat + } + if ((arg0) == (ImageRepeat.X.value)) { + return ImageRepeat.X + } + if ((arg0) == (ImageRepeat.Y.value)) { + return ImageRepeat.Y + } + if ((arg0) == (ImageRepeat.XY.value)) { + return ImageRepeat.XY + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * ImageSize enumeration description + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * ImageSize enumeration description + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * ImageSize enumeration description + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * ImageSize enumeration description + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ +export class ImageSize { + /** + * Keep the scale of the original image unchanged. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Keep the scale of the original image unchanged. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Keep the scale of the original image unchanged. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Keep the scale of the original image unchanged. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Auto: ImageSize = new ImageSize(0) + /** + * Default value. Keep the aspect ratio to zoom in or out the image so that both sides of the image are greater than or equal to the display boundary. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Default value. Keep the aspect ratio to zoom in or out the image so that both sides of the image are greater than or equal to the display boundary. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Default value. Keep the aspect ratio to zoom in or out the image so that both sides of the image are greater than or equal to the display boundary. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Default value. Keep the aspect ratio to zoom in or out the image so that both sides of the image are greater than or equal to the display boundary. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Cover: ImageSize = new ImageSize(1) + /** + * Keep the aspect ratio to zoom out or zoom in so that the image is completely displayed within the display boundary. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Keep the aspect ratio to zoom out or zoom in so that the image is completely displayed within the display boundary. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Keep the aspect ratio to zoom out or zoom in so that the image is completely displayed within the display boundary. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Keep the aspect ratio to zoom out or zoom in so that the image is completely displayed within the display boundary. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Contain: ImageSize = new ImageSize(2) + /** + * Zoom in or out without maintaining the aspect ratio so that the image fills the display boundary. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly FILL: ImageSize = new ImageSize(3) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): ImageSize { + if ((arg0) == (ImageSize.Auto.value)) { + return ImageSize.Auto + } + if ((arg0) == (ImageSize.Cover.value)) { + return ImageSize.Cover + } + if ((arg0) == (ImageSize.Contain.value)) { + return ImageSize.Contain + } + if ((arg0) == (ImageSize.FILL.value)) { + return ImageSize.FILL + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Border Style + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Border Style + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Border Style + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Border Style + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ +export class BorderStyle { + /** + * Displays as a series of dots with a radius of half the borderWidth. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Displays as a series of dots with a radius of half the borderWidth. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Displays as a series of dots with a radius of half the borderWidth. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Displays as a series of dots with a radius of half the borderWidth. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Dotted: BorderStyle = new BorderStyle(0) + /** + * Shows as a series of short square dashed lines. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Shows as a series of short square dashed lines. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Shows as a series of short square dashed lines. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Shows as a series of short square dashed lines. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Dashed: BorderStyle = new BorderStyle(1) + /** + * Shows as a solid line. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Shows as a solid line. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Shows as a solid line. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Shows as a solid line. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Solid: BorderStyle = new BorderStyle(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): BorderStyle { + if ((arg0) == (BorderStyle.Dotted.value)) { + return BorderStyle.Dotted + } + if ((arg0) == (BorderStyle.Dashed.value)) { + return BorderStyle.Dashed + } + if ((arg0) == (BorderStyle.Solid.value)) { + return BorderStyle.Solid + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * GradientDirection enumeration description + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * GradientDirection enumeration description + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * GradientDirection enumeration description + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * GradientDirection enumeration description + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ +export class GradientDirection { + /** + * Right to left. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Right to left. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Right to left. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Right to left. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Left: GradientDirection = new GradientDirection(0) + /** + * From the bottom up. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * From the bottom up. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * From the bottom up. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * From the bottom up. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Top: GradientDirection = new GradientDirection(1) + /** + * From left to right. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * From left to right. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * From left to right. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * From left to right. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Right: GradientDirection = new GradientDirection(2) + /** + * From the top down. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * From the top down. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * From the top down. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * From the top down. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Bottom: GradientDirection = new GradientDirection(3) + /** + * Top Left + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Top Left + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Top Left + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Top Left + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly LeftTop: GradientDirection = new GradientDirection(4) + /** + * Left Bottom + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Left Bottom + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Left Bottom + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Left Bottom + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly LeftBottom: GradientDirection = new GradientDirection(5) + /** + * Right Top + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Right Top + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Right Top + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Right Top + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly RightTop: GradientDirection = new GradientDirection(6) + /** + * Right Bottom + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Right Bottom + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Right Bottom + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Right Bottom + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly RightBottom: GradientDirection = new GradientDirection(7) + /** + * None + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * None + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * None + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * None + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly None: GradientDirection = new GradientDirection(8) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): GradientDirection { + if ((arg0) == (GradientDirection.Left.value)) { + return GradientDirection.Left + } + if ((arg0) == (GradientDirection.Top.value)) { + return GradientDirection.Top + } + if ((arg0) == (GradientDirection.Right.value)) { + return GradientDirection.Right + } + if ((arg0) == (GradientDirection.Bottom.value)) { + return GradientDirection.Bottom + } + if ((arg0) == (GradientDirection.LeftTop.value)) { + return GradientDirection.LeftTop + } + if ((arg0) == (GradientDirection.LeftBottom.value)) { + return GradientDirection.LeftBottom + } + if ((arg0) == (GradientDirection.RightTop.value)) { + return GradientDirection.RightTop + } + if ((arg0) == (GradientDirection.RightBottom.value)) { + return GradientDirection.RightBottom + } + if ((arg0) == (GradientDirection.None.value)) { + return GradientDirection.None + } throw new Error(`Enum member '${arg0}' not found`) } } +/** + * Common enum of color strategy + * + * @enum { string } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Common enum of color strategy + * + * @enum { string } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ export class ColoringStrategy { + /** + * Use the inverse color strategy. Gets the inverse of the background color. Only applies to foregroundColor. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Use the inverse color strategy. Gets the inverse of the background color. Only applies to foregroundColor. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ static readonly INVERT: ColoringStrategy = new ColoringStrategy("invert",0) + /** + * Use the average color strategy. Get the average color of the background. Only applies to shadow. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * Use the average color strategy. Get the average color of the background. Only applies to shadow. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ static readonly AVERAGE: ColoringStrategy = new ColoringStrategy("average",1) + /** + * Use the primary color strategy. Get the color that dominate the background color. Only applies to shadow. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * Use the primary color strategy. Get the color that dominate the background color. Only applies to shadow. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ static readonly PRIMARY: ColoringStrategy = new ColoringStrategy("primary",2) constructor(value: string, ordinal: KInt) { this.value = value @@ -53,119 +1911,1259 @@ export class ColoringStrategy { throw new Error(`Enum member '${arg0}' not found`) } } -export class TextOverflow { - static readonly None: TextOverflow = new TextOverflow(0) - static readonly Clip: TextOverflow = new TextOverflow(1) - static readonly Ellipsis: TextOverflow = new TextOverflow(2) - static readonly MARQUEE: TextOverflow = new TextOverflow(3) +/** + * Type of accessibility hover event. + * + * @enum {number} + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ +export class AccessibilityHoverType { + /** + * Hover enter type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly HOVER_ENTER: AccessibilityHoverType = new AccessibilityHoverType(0) + /** + * Hover move type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly HOVER_MOVE: AccessibilityHoverType = new AccessibilityHoverType(1) + /** + * Hover exit type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly HOVER_EXIT: AccessibilityHoverType = new AccessibilityHoverType(2) + /** + * Hover cancel type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly HOVER_CANCEL: AccessibilityHoverType = new AccessibilityHoverType(3) constructor(value: KInt) { this.value = value } public readonly value: KInt - public static of(arg0: KInt): TextOverflow { - if ((arg0) == (TextOverflow.None.value)) { - return TextOverflow.None + public static of(arg0: KInt): AccessibilityHoverType { + if ((arg0) == (AccessibilityHoverType.HOVER_ENTER.value)) { + return AccessibilityHoverType.HOVER_ENTER } - if ((arg0) == (TextOverflow.Clip.value)) { - return TextOverflow.Clip + if ((arg0) == (AccessibilityHoverType.HOVER_MOVE.value)) { + return AccessibilityHoverType.HOVER_MOVE } - if ((arg0) == (TextOverflow.Ellipsis.value)) { - return TextOverflow.Ellipsis + if ((arg0) == (AccessibilityHoverType.HOVER_EXIT.value)) { + return AccessibilityHoverType.HOVER_EXIT } - if ((arg0) == (TextOverflow.MARQUEE.value)) { - return TextOverflow.MARQUEE + if ((arg0) == (AccessibilityHoverType.HOVER_CANCEL.value)) { + return AccessibilityHoverType.HOVER_CANCEL } throw new Error(`Enum member '${arg0}' not found`) } } -export class TextHeightAdaptivePolicy { - static readonly MAX_LINES_FIRST: TextHeightAdaptivePolicy = new TextHeightAdaptivePolicy(0) - static readonly MIN_FONT_SIZE_FIRST: TextHeightAdaptivePolicy = new TextHeightAdaptivePolicy(1) - static readonly LAYOUT_CONSTRAINT_FIRST: TextHeightAdaptivePolicy = new TextHeightAdaptivePolicy(2) +/** + * HoverEffect enumeration description + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * HoverEffect enumeration description + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * HoverEffect enumeration description + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class HoverEffect { + /** + * Default effect + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * Default effect + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Default effect + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Auto: HoverEffect = new HoverEffect(0) + /** + * Zoom in and out effect + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * Zoom in and out effect + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Zoom in and out effect + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Scale: HoverEffect = new HoverEffect(1) + /** + * Highlight effect + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * Highlight effect + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Highlight effect + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Highlight: HoverEffect = new HoverEffect(2) + /** + * None effect + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * None effect + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * None effect + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly None: HoverEffect = new HoverEffect(3) constructor(value: KInt) { this.value = value } public readonly value: KInt - public static of(arg0: KInt): TextHeightAdaptivePolicy { - if ((arg0) == (TextHeightAdaptivePolicy.MAX_LINES_FIRST.value)) { - return TextHeightAdaptivePolicy.MAX_LINES_FIRST + public static of(arg0: KInt): HoverEffect { + if ((arg0) == (HoverEffect.Auto.value)) { + return HoverEffect.Auto } - if ((arg0) == (TextHeightAdaptivePolicy.MIN_FONT_SIZE_FIRST.value)) { - return TextHeightAdaptivePolicy.MIN_FONT_SIZE_FIRST + if ((arg0) == (HoverEffect.Scale.value)) { + return HoverEffect.Scale } - if ((arg0) == (TextHeightAdaptivePolicy.LAYOUT_CONSTRAINT_FIRST.value)) { - return TextHeightAdaptivePolicy.LAYOUT_CONSTRAINT_FIRST + if ((arg0) == (HoverEffect.Highlight.value)) { + return HoverEffect.Highlight + } + if ((arg0) == (HoverEffect.None.value)) { + return HoverEffect.None } throw new Error(`Enum member '${arg0}' not found`) } } -export class FontWeight { - static readonly Lighter: FontWeight = new FontWeight(0) - static readonly Normal: FontWeight = new FontWeight(1) - static readonly Regular: FontWeight = new FontWeight(2) - static readonly Medium: FontWeight = new FontWeight(3) - static readonly Bold: FontWeight = new FontWeight(4) - static readonly Bolder: FontWeight = new FontWeight(5) +/** + * Function Called by Mouse + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * Function Called by Mouse + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Function Called by Mouse + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class MouseButton { + /** + * Mouse Left Button. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * Mouse Left Button. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Mouse Left Button. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Left: MouseButton = new MouseButton(0) + /** + * Mouse Right Button. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * Mouse Right Button. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Mouse Right Button. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Right: MouseButton = new MouseButton(1) + /** + * Mouse Middle Button. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * Mouse Middle Button. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Mouse Middle Button. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Middle: MouseButton = new MouseButton(2) + /** + * Mouse Back Button. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * Mouse Back Button. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Mouse Back Button. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Back: MouseButton = new MouseButton(3) + /** + * Mouse Forward Button. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * Mouse Forward Button. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Mouse Forward Button. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Forward: MouseButton = new MouseButton(4) + /** + * Mouse None Button. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * Mouse None Button. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Mouse None Button. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly None: MouseButton = new MouseButton(5) constructor(value: KInt) { this.value = value } public readonly value: KInt - public static of(arg0: KInt): FontWeight { - if ((arg0) == (FontWeight.Lighter.value)) { - return FontWeight.Lighter + public static of(arg0: KInt): MouseButton { + if ((arg0) == (MouseButton.Left.value)) { + return MouseButton.Left } - if ((arg0) == (FontWeight.Normal.value)) { - return FontWeight.Normal + if ((arg0) == (MouseButton.Right.value)) { + return MouseButton.Right } - if ((arg0) == (FontWeight.Regular.value)) { - return FontWeight.Regular + if ((arg0) == (MouseButton.Middle.value)) { + return MouseButton.Middle } - if ((arg0) == (FontWeight.Medium.value)) { - return FontWeight.Medium + if ((arg0) == (MouseButton.Back.value)) { + return MouseButton.Back } - if ((arg0) == (FontWeight.Bold.value)) { - return FontWeight.Bold + if ((arg0) == (MouseButton.Forward.value)) { + return MouseButton.Forward } - if ((arg0) == (FontWeight.Bolder.value)) { - return FontWeight.Bolder + if ((arg0) == (MouseButton.None.value)) { + return MouseButton.None } throw new Error(`Enum member '${arg0}' not found`) } } -export class FontStyle { - static readonly Normal: FontStyle = new FontStyle(0) - static readonly Italic: FontStyle = new FontStyle(1) +/** + * Function Called by Mouse + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * Function Called by Mouse + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Function Called by Mouse + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class MouseAction { + /** + * Triggered when the mouse is pressed. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * Triggered when the mouse is pressed. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Triggered when the mouse is pressed. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Press: MouseAction = new MouseAction(0) + /** + * Triggered when the mouse is released. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * Triggered when the mouse is released. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Triggered when the mouse is released. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Release: MouseAction = new MouseAction(1) + /** + * Triggered when the mouse is Moved. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * Triggered when the mouse is Moved. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Triggered when the mouse is Moved. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Move: MouseAction = new MouseAction(2) + /** + * Triggered when the mouse is Hovered. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * Triggered when the mouse is Hovered. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Triggered when the mouse is Hovered. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Hover: MouseAction = new MouseAction(3) constructor(value: KInt) { this.value = value } public readonly value: KInt - public static of(arg0: KInt): FontStyle { - if ((arg0) == (FontStyle.Normal.value)) { - return FontStyle.Normal + public static of(arg0: KInt): MouseAction { + if ((arg0) == (MouseAction.Press.value)) { + return MouseAction.Press } - if ((arg0) == (FontStyle.Italic.value)) { - return FontStyle.Italic + if ((arg0) == (MouseAction.Release.value)) { + return MouseAction.Release + } + if ((arg0) == (MouseAction.Move.value)) { + return MouseAction.Move + } + if ((arg0) == (MouseAction.Hover.value)) { + return MouseAction.Hover } throw new Error(`Enum member '${arg0}' not found`) } } -export class EmbeddedType { - static readonly EMBEDDED_UI_EXTENSION: EmbeddedType = new EmbeddedType(0) +/** + * Function Called by Touch + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Function Called by Touch + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Function Called by Touch + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class TouchType { + /** + * Triggered when the finger is pressed. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Triggered when the finger is pressed. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Triggered when the finger is pressed. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Down: TouchType = new TouchType(0) + /** + * Triggered when the finger is raised. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Triggered when the finger is raised. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Triggered when the finger is raised. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Up: TouchType = new TouchType(1) + /** + * Triggered when the finger presses on the screen. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Triggered when the finger presses on the screen. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Triggered when the finger presses on the screen. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Move: TouchType = new TouchType(2) + /** + * Triggers when the touch event cancels. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Triggers when the touch event cancels. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Triggers when the touch event cancels. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Cancel: TouchType = new TouchType(3) constructor(value: KInt) { this.value = value } public readonly value: KInt - public static of(arg0: KInt): EmbeddedType { - if ((arg0) == (EmbeddedType.EMBEDDED_UI_EXTENSION.value)) { - return EmbeddedType.EMBEDDED_UI_EXTENSION + public static of(arg0: KInt): TouchType { + if ((arg0) == (TouchType.Down.value)) { + return TouchType.Down + } + if ((arg0) == (TouchType.Up.value)) { + return TouchType.Up + } + if ((arg0) == (TouchType.Move.value)) { + return TouchType.Move + } + if ((arg0) == (TouchType.Cancel.value)) { + return TouchType.Cancel } throw new Error(`Enum member '${arg0}' not found`) } } -export class Curve { - static readonly Linear: Curve = new Curve(0) - static readonly Ease: Curve = new Curve(1) - constructor(value: KInt) { +/** + * Type of a key. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Type of a key. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Type of a key. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class KeyType { + /** + * Press the key. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Press the key. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Press the key. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Down: KeyType = new KeyType(0) + /** + * The key is released. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * The key is released. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * The key is released. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Up: KeyType = new KeyType(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): KeyType { + if ((arg0) == (KeyType.Down.value)) { + return KeyType.Down + } + if ((arg0) == (KeyType.Up.value)) { + return KeyType.Up + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Type of the input device that triggers the current key. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Type of the input device that triggers the current key. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Type of the input device that triggers the current key. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class KeySource { + /** + * The input device type is unknown. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * The input device type is unknown. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * The input device type is unknown. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Unknown: KeySource = new KeySource(0) + /** + * Set Device Type to Keyboard. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Set Device Type to Keyboard. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Set Device Type to Keyboard. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Keyboard: KeySource = new KeySource(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): KeySource { + if ((arg0) == (KeySource.Unknown.value)) { + return KeySource.Unknown + } + if ((arg0) == (KeySource.Keyboard.value)) { + return KeySource.Keyboard + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Sets the animation playback mode. By default, the animation starts to play again after the playback is complete. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Sets the animation playback mode. By default, the animation starts to play again after the playback is complete. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Sets the animation playback mode. By default, the animation starts to play again after the playback is complete. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Sets the animation playback mode. By default, the animation starts to play again after the playback is complete. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ +export class Curve { + /** + * Indicates that the speed of the animation is the same from start to finish. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Indicates that the speed of the animation is the same from start to finish. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Indicates that the speed of the animation is the same from start to finish. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Indicates that the speed of the animation is the same from start to finish. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Linear: Curve = new Curve(0) + /** + * Indicates that the animation starts at a low speed, then accelerates, and then slows down before it ends, CubicBezier(0.25, 0.1, 0.25, 1.0). + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Indicates that the animation starts at a low speed, then accelerates, and then slows down before it ends, CubicBezier(0.25, 0.1, 0.25, 1.0). + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Indicates that the animation starts at a low speed, then accelerates, and then slows down before it ends, CubicBezier(0.25, 0.1, 0.25, 1.0). + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Indicates that the animation starts at a low speed, then accelerates, and then slows down before it ends, CubicBezier(0.25, 0.1, 0.25, 1.0). + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Ease: Curve = new Curve(1) + /** + * Indicates that the animation starts at a low speed, CubicBezier(0.42, 0.0, 1.0, 1.0). + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Indicates that the animation starts at a low speed, CubicBezier(0.42, 0.0, 1.0, 1.0). + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Indicates that the animation starts at a low speed, CubicBezier(0.42, 0.0, 1.0, 1.0). + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Indicates that the animation starts at a low speed, CubicBezier(0.42, 0.0, 1.0, 1.0). + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly EaseIn: Curve = new Curve(2) + /** + * Indicates that the animation ends at a low speed, CubicBezier(0.0, 0.0, 0.78, 1.0). + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Indicates that the animation ends at a low speed, CubicBezier(0.0, 0.0, 0.78, 1.0). + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Indicates that the animation ends at a low speed, CubicBezier(0.0, 0.0, 0.78, 1.0). + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Indicates that the animation ends at a low speed, CubicBezier(0.0, 0.0, 0.78, 1.0). + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly EaseOut: Curve = new Curve(3) + /** + * Indicates that the animation starts and ends at a slow speed, CubicBezier(0.42, 0.0, 0.78, 1.0). + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Indicates that the animation starts and ends at a slow speed, CubicBezier(0.42, 0.0, 0.78, 1.0). + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Indicates that the animation starts and ends at a slow speed, CubicBezier(0.42, 0.0, 0.78, 1.0). + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Indicates that the animation starts and ends at a slow speed, CubicBezier(0.42, 0.0, 0.78, 1.0). + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly EaseInOut: Curve = new Curve(4) + /** + * Slow-in, fast-out + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Slow-in, fast-out + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Slow-in, fast-out + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Slow-in, fast-out + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly FastOutSlowIn: Curve = new Curve(5) + /** + * Linear Out Slow In + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Linear Out Slow In + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Linear Out Slow In + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Linear Out Slow In + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly LinearOutSlowIn: Curve = new Curve(6) + /** + * Fast Out Linear In. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Fast Out Linear In. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Fast Out Linear In. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Fast Out Linear In. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly FastOutLinearIn: Curve = new Curve(7) + /** + * Extreme Deceleration. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Extreme Deceleration. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Extreme Deceleration. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Extreme Deceleration. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly ExtremeDeceleration: Curve = new Curve(8) + /** + * Sharp. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Sharp. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Sharp. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Sharp. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Sharp: Curve = new Curve(9) + /** + * Rhythm. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Rhythm. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Rhythm. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Rhythm. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Rhythm: Curve = new Curve(10) + /** + * Smooth. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Smooth. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Smooth. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Smooth. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Smooth: Curve = new Curve(11) + /** + * Damping curve, CubicBezier(0.2, 0.0, 0.2, 1.0). + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Damping curve, CubicBezier(0.2, 0.0, 0.2, 1.0). + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Damping curve, CubicBezier(0.2, 0.0, 0.2, 1.0). + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Damping curve, CubicBezier(0.2, 0.0, 0.2, 1.0). + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Friction: Curve = new Curve(12) + constructor(value: KInt) { this.value = value } public readonly value: KInt @@ -176,11 +3174,1375 @@ export class Curve { if ((arg0) == (Curve.Ease.value)) { return Curve.Ease } + if ((arg0) == (Curve.EaseIn.value)) { + return Curve.EaseIn + } + if ((arg0) == (Curve.EaseOut.value)) { + return Curve.EaseOut + } + if ((arg0) == (Curve.EaseInOut.value)) { + return Curve.EaseInOut + } + if ((arg0) == (Curve.FastOutSlowIn.value)) { + return Curve.FastOutSlowIn + } + if ((arg0) == (Curve.LinearOutSlowIn.value)) { + return Curve.LinearOutSlowIn + } + if ((arg0) == (Curve.FastOutLinearIn.value)) { + return Curve.FastOutLinearIn + } + if ((arg0) == (Curve.ExtremeDeceleration.value)) { + return Curve.ExtremeDeceleration + } + if ((arg0) == (Curve.Sharp.value)) { + return Curve.Sharp + } + if ((arg0) == (Curve.Rhythm.value)) { + return Curve.Rhythm + } + if ((arg0) == (Curve.Smooth.value)) { + return Curve.Smooth + } + if ((arg0) == (Curve.Friction.value)) { + return Curve.Friction + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Play Mode + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Play Mode + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Play Mode + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Play Mode + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ +export class PlayMode { + /** + * The animation plays normally. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * The animation plays normally. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * The animation plays normally. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * The animation plays normally. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Normal: PlayMode = new PlayMode(0) + /** + * The animation plays backwards. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * The animation plays backwards. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * The animation plays backwards. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * The animation plays backwards. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Reverse: PlayMode = new PlayMode(1) + /** + * The animation plays forward on odd numbers (1, 3, 7...) and backward on even numbers (2, 4, 6...). + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * The animation plays forward on odd numbers (1, 3, 7...) and backward on even numbers (2, 4, 6...). + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * The animation plays forward on odd numbers (1, 3, 7...) and backward on even numbers (2, 4, 6...). + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * The animation plays forward on odd numbers (1, 3, 7...) and backward on even numbers (2, 4, 6...). + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Alternate: PlayMode = new PlayMode(2) + /** + * The animation plays backwards on odd numbers (1, 3, 7...) and forwards on even numbers (2, 4, 6...).. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * The animation plays backwards on odd numbers (1, 3, 7...) and forwards on even numbers (2, 4, 6...).. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * The animation plays backwards on odd numbers (1, 3, 7...) and forwards on even numbers (2, 4, 6...).. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * The animation plays backwards on odd numbers (1, 3, 7...) and forwards on even numbers (2, 4, 6...).. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly AlternateReverse: PlayMode = new PlayMode(3) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): PlayMode { + if ((arg0) == (PlayMode.Normal.value)) { + return PlayMode.Normal + } + if ((arg0) == (PlayMode.Reverse.value)) { + return PlayMode.Reverse + } + if ((arg0) == (PlayMode.Alternate.value)) { + return PlayMode.Alternate + } + if ((arg0) == (PlayMode.AlternateReverse.value)) { + return PlayMode.AlternateReverse + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * TransitionType enumeration description. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * TransitionType enumeration description. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * TransitionType enumeration description. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * TransitionType enumeration description. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ +export class TransitionType { + /** + * Specifies that the current transition action takes effect in all change scenarios of the component. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Specifies that the current transition action takes effect in all change scenarios of the component. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Specifies that the current transition action takes effect in all change scenarios of the component. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Specifies that the current transition action takes effect in all change scenarios of the component. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly All: TransitionType = new TransitionType(0) + /** + * Specifies the insertion scenario in which the current transition action takes effect. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Specifies the insertion scenario in which the current transition action takes effect. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Specifies the insertion scenario in which the current transition action takes effect. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Specifies the insertion scenario in which the current transition action takes effect. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Insert: TransitionType = new TransitionType(1) + /** + * Specifies the deletion scenario in which the current transition action takes effect. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Specifies the deletion scenario in which the current transition action takes effect. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Specifies the deletion scenario in which the current transition action takes effect. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Specifies the deletion scenario in which the current transition action takes effect. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Delete: TransitionType = new TransitionType(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): TransitionType { + if ((arg0) == (TransitionType.All.value)) { + return TransitionType.All + } + if ((arg0) == (TransitionType.Insert.value)) { + return TransitionType.Insert + } + if ((arg0) == (TransitionType.Delete.value)) { + return TransitionType.Delete + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Controls the display or hide of the current component + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Controls the display or hide of the current component + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Controls the display or hide of the current component + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Controls the display or hide of the current component + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ +export class Visibility { + /** + * Show + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Show + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Show + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Show + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Visible: Visibility = new Visibility(0) + /** + * Hide, but participate in layout for placeholder. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Hide, but participate in layout for placeholder. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Hide, but participate in layout for placeholder. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Hide, but participate in layout for placeholder. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Hidden: Visibility = new Visibility(1) + /** + * Hides but does not participate in layout and does not take place. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Hides but does not participate in layout and does not take place. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Hides but does not participate in layout and does not take place. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Hides but does not participate in layout and does not take place. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly None: Visibility = new Visibility(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): Visibility { + if ((arg0) == (Visibility.Visible.value)) { + return Visibility.Visible + } + if ((arg0) == (Visibility.Hidden.value)) { + return Visibility.Hidden + } + if ((arg0) == (Visibility.None.value)) { + return Visibility.None + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * ItemAlign enumeration description + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * ItemAlign enumeration description + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * ItemAlign enumeration description + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * ItemAlign enumeration description + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ +export class ItemAlign { + /** + * Use the default configuration in the Flex container. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Use the default configuration in the Flex container. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Use the default configuration in the Flex container. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Use the default configuration in the Flex container. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Auto: ItemAlign = new ItemAlign(0) + /** + * The element is in the Flex container with the cross-axis direction head aligned. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * The element is in the Flex container with the cross-axis direction head aligned. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * The element is in the Flex container with the cross-axis direction head aligned. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * The element is in the Flex container with the cross-axis direction head aligned. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Start: ItemAlign = new ItemAlign(1) + /** + * The element is centered in the Flex container with the cross axis direction aligned. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * The element is centered in the Flex container with the cross axis direction aligned. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * The element is centered in the Flex container with the cross axis direction aligned. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * The element is centered in the Flex container with the cross axis direction aligned. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Center: ItemAlign = new ItemAlign(2) + /** + * The element is bottom aligned in the Flex container with the cross axis direction. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * The element is bottom aligned in the Flex container with the cross axis direction. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * The element is bottom aligned in the Flex container with the cross axis direction. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * The element is bottom aligned in the Flex container with the cross axis direction. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly End: ItemAlign = new ItemAlign(3) + /** + * Element In the Flex container, the cross-axis direction text baseline is aligned. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Element In the Flex container, the cross-axis direction text baseline is aligned. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Element In the Flex container, the cross-axis direction text baseline is aligned. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Element In the Flex container, the cross-axis direction text baseline is aligned. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Baseline: ItemAlign = new ItemAlign(4) + /** + * Element In a Flex container, the fill is stretched across the axis and, when no dimension is set, to the container size. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Element In a Flex container, the fill is stretched across the axis and, when no dimension is set, to the container size. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Element In a Flex container, the fill is stretched across the axis and, when no dimension is set, to the container size. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Element In a Flex container, the fill is stretched across the axis and, when no dimension is set, to the container size. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Stretch: ItemAlign = new ItemAlign(5) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): ItemAlign { + if ((arg0) == (ItemAlign.Auto.value)) { + return ItemAlign.Auto + } + if ((arg0) == (ItemAlign.Start.value)) { + return ItemAlign.Start + } + if ((arg0) == (ItemAlign.Center.value)) { + return ItemAlign.Center + } + if ((arg0) == (ItemAlign.End.value)) { + return ItemAlign.End + } + if ((arg0) == (ItemAlign.Baseline.value)) { + return ItemAlign.Baseline + } + if ((arg0) == (ItemAlign.Stretch.value)) { + return ItemAlign.Stretch + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * SharedTransitionEffectType enumeration description + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * SharedTransitionEffectType enumeration description + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * SharedTransitionEffectType enumeration description + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class SharedTransitionEffectType { + /** + * The location of the destination page element remains unchanged, and you can configure the transparency animation. Currently, + * only the static effect configured for redirecting to the target page takes effect. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * The location of the destination page element remains unchanged, and you can configure the transparency animation. Currently, + * only the static effect configured for redirecting to the target page takes effect. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * The location of the destination page element remains unchanged, and you can configure the transparency animation. Currently, + * only the static effect configured for redirecting to the target page takes effect. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Static: SharedTransitionEffectType = new SharedTransitionEffectType(0) + /** + * Move the source page element to the destination page element location and scale it appropriately. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Move the source page element to the destination page element location and scale it appropriately. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Move the source page element to the destination page element location and scale it appropriately. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Exchange: SharedTransitionEffectType = new SharedTransitionEffectType(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): SharedTransitionEffectType { + if ((arg0) == (SharedTransitionEffectType.Static.value)) { + return SharedTransitionEffectType.Static + } + if ((arg0) == (SharedTransitionEffectType.Exchange.value)) { + return SharedTransitionEffectType.Exchange + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Sets the horizontal layout of elements. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Sets the horizontal layout of elements. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Sets the horizontal layout of elements. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Sets the horizontal layout of elements. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ +export class Direction { + /** + * Elements are laid out from left to right. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Elements are laid out from left to right. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Elements are laid out from left to right. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Elements are laid out from left to right. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Ltr: Direction = new Direction(0) + /** + * Elements are laid out from right to left. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Elements are laid out from right to left. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Elements are laid out from right to left. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Elements are laid out from right to left. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Rtl: Direction = new Direction(1) + /** + * Use the default layout direction. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Use the default layout direction. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Use the default layout direction. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Use the default layout direction. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Auto: Direction = new Direction(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): Direction { + if ((arg0) == (Direction.Ltr.value)) { + return Direction.Ltr + } + if ((arg0) == (Direction.Rtl.value)) { + return Direction.Rtl + } + if ((arg0) == (Direction.Auto.value)) { + return Direction.Auto + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * HorizontalAlign enumeration description. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * HorizontalAlign enumeration description. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * HorizontalAlign enumeration description. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * HorizontalAlign enumeration description. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ +export class HorizontalAlign { + /** + * Aligns the start end in the language direction. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Aligns the start end in the language direction. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Aligns the start end in the language direction. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Aligns the start end in the language direction. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Start: HorizontalAlign = new HorizontalAlign(0) + /** + * Center alignment. The default alignment mode is used. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Center alignment. The default alignment mode is used. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Center alignment. The default alignment mode is used. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Center alignment. The default alignment mode is used. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Center: HorizontalAlign = new HorizontalAlign(1) + /** + * Aligns the ends in the language direction. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Aligns the ends in the language direction. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Aligns the ends in the language direction. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Aligns the ends in the language direction. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly End: HorizontalAlign = new HorizontalAlign(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): HorizontalAlign { + if ((arg0) == (HorizontalAlign.Start.value)) { + return HorizontalAlign.Start + } + if ((arg0) == (HorizontalAlign.Center.value)) { + return HorizontalAlign.Center + } + if ((arg0) == (HorizontalAlign.End.value)) { + return HorizontalAlign.End + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * VerticalAlign enumeration description + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * VerticalAlign enumeration description + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * VerticalAlign enumeration description + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * VerticalAlign enumeration description + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ +export class VerticalAlign { + /** + * Top alignment. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Top alignment. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Top alignment. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Top alignment. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Top: VerticalAlign = new VerticalAlign(0) + /** + * Center alignment. The default alignment mode is used. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Center alignment. The default alignment mode is used. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Center alignment. The default alignment mode is used. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Center alignment. The default alignment mode is used. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Center: VerticalAlign = new VerticalAlign(1) + /** + * Bottom alignment. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Bottom alignment. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Bottom alignment. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Bottom alignment. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Bottom: VerticalAlign = new VerticalAlign(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): VerticalAlign { + if ((arg0) == (VerticalAlign.Top.value)) { + return VerticalAlign.Top + } + if ((arg0) == (VerticalAlign.Center.value)) { + return VerticalAlign.Center + } + if ((arg0) == (VerticalAlign.Bottom.value)) { + return VerticalAlign.Bottom + } throw new Error(`Enum member '${arg0}' not found`) } } +/** + * Axis enumeration description. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Axis enumeration description. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Axis enumeration description. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Axis enumeration description. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ export class Axis { + /** + * Longitudinal arrangement + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Longitudinal arrangement + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Longitudinal arrangement + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Longitudinal arrangement + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ static readonly Vertical: Axis = new Axis(0) + /** + * Horizontal arrangement. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Horizontal arrangement. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Horizontal arrangement. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Horizontal arrangement. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ static readonly Horizontal: Axis = new Axis(1) constructor(value: KInt) { this.value = value @@ -195,4 +4557,6023 @@ export class Axis { } throw new Error(`Enum member '${arg0}' not found`) } +} +/** + * Enum of click effect level. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Enum of click effect level. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class ClickEffectLevel { + /** + * Click effect level1. + * The default scale number of this click effect level1 is 0.90. + * The animation type is interpolatingSpring, velocity:10, mass:1, stiffness:410, damping:38. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Click effect level1. + * The default scale number of this click effect level1 is 0.90. + * The animation type is interpolatingSpring, velocity:10, mass:1, stiffness:410, damping:38. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly LIGHT: ClickEffectLevel = new ClickEffectLevel(0) + /** + * Click effect level2. + * The default scale number of this click effect level2 is 0.95. + * The animation type is interpolatingSpring, velocity:10, mass:1, stiffness:350, damping:35. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Click effect level2. + * The default scale number of this click effect level2 is 0.95. + * The animation type is interpolatingSpring, velocity:10, mass:1, stiffness:350, damping:35. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly MIDDLE: ClickEffectLevel = new ClickEffectLevel(1) + /** + * Click effect level3. + * The default scale number of this click effect level3 is 0.95. + * The animation type is interpolatingSpring, velocity:0, mass:1, stiffness:240, damping:28. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Click effect level3. + * The default scale number of this click effect level3 is 0.95. + * The animation type is interpolatingSpring, velocity:0, mass:1, stiffness:240, damping:28. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly HEAVY: ClickEffectLevel = new ClickEffectLevel(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): ClickEffectLevel { + if ((arg0) == (ClickEffectLevel.LIGHT.value)) { + return ClickEffectLevel.LIGHT + } + if ((arg0) == (ClickEffectLevel.MIDDLE.value)) { + return ClickEffectLevel.MIDDLE + } + if ((arg0) == (ClickEffectLevel.HEAVY.value)) { + return ClickEffectLevel.HEAVY + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Placement enumeration description + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * Placement enumeration description + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Placement enumeration description + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class Placement { + /** + * Left placement + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * Left placement + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Left placement + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Left: Placement = new Placement(0) + /** + * Right placement + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * Right placement + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Right placement + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Right: Placement = new Placement(1) + /** + * Top placement + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * Top placement + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Top placement + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Top: Placement = new Placement(2) + /** + * Bottom placement + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * Bottom placement + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Bottom placement + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Bottom: Placement = new Placement(3) + /** + * TopLeft placement + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * TopLeft placement + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * TopLeft placement + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly TopLeft: Placement = new Placement(4) + /** + * TopRight placement + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * TopRight placement + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * TopRight placement + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly TopRight: Placement = new Placement(5) + /** + * BottomLeft placement + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * BottomLeft placement + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * BottomLeft placement + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly BottomLeft: Placement = new Placement(6) + /** + * BottomRight placement + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * BottomRight placement + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * BottomRight placement + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly BottomRight: Placement = new Placement(7) + /** + * LeftTop placement + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 9 + */ +/** + * LeftTop placement + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * LeftTop placement + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly LeftTop: Placement = new Placement(8) + /** + * LeftBottom placement + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 9 + */ +/** + * LeftBottom placement + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * LeftBottom placement + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly LeftBottom: Placement = new Placement(9) + /** + * RightTop placement + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 9 + */ +/** + * RightTop placement + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * RightTop placement + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly RightTop: Placement = new Placement(10) + /** + * RightBottom placement + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 9 + */ +/** + * RightBottom placement + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * RightBottom placement + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly RightBottom: Placement = new Placement(11) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): Placement { + if ((arg0) == (Placement.Left.value)) { + return Placement.Left + } + if ((arg0) == (Placement.Right.value)) { + return Placement.Right + } + if ((arg0) == (Placement.Top.value)) { + return Placement.Top + } + if ((arg0) == (Placement.Bottom.value)) { + return Placement.Bottom + } + if ((arg0) == (Placement.TopLeft.value)) { + return Placement.TopLeft + } + if ((arg0) == (Placement.TopRight.value)) { + return Placement.TopRight + } + if ((arg0) == (Placement.BottomLeft.value)) { + return Placement.BottomLeft + } + if ((arg0) == (Placement.BottomRight.value)) { + return Placement.BottomRight + } + if ((arg0) == (Placement.LeftTop.value)) { + return Placement.LeftTop + } + if ((arg0) == (Placement.LeftBottom.value)) { + return Placement.LeftBottom + } + if ((arg0) == (Placement.RightTop.value)) { + return Placement.RightTop + } + if ((arg0) == (Placement.RightBottom.value)) { + return Placement.RightBottom + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * The font weight of the text + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * The font weight of the text + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * The font weight of the text + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * The font weight of the text + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ +export class FontWeight { + /** + * Defines a lighter value than [Inherited Value].. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Defines a lighter value than [Inherited Value].. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Defines a lighter value than [Inherited Value].. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Defines a lighter value than [Inherited Value].. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Lighter: FontWeight = new FontWeight(0) + /** + * Normal font. Equivalent to a digital value of 400. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Normal font. Equivalent to a digital value of 400. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Normal font. Equivalent to a digital value of 400. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Normal font. Equivalent to a digital value of 400. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Normal: FontWeight = new FontWeight(1) + /** + * Defines a more general value than [Inherited Value]. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Defines a more general value than [Inherited Value]. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Defines a more general value than [Inherited Value]. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Defines a more general value than [Inherited Value]. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Regular: FontWeight = new FontWeight(2) + /** + * Defines a value that is more centered than [Inherited Value]. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Defines a value that is more centered than [Inherited Value]. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Defines a value that is more centered than [Inherited Value]. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Defines a value that is more centered than [Inherited Value]. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Medium: FontWeight = new FontWeight(3) + /** + * Bold. Equivalent to a numeric value of 700. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Bold. Equivalent to a numeric value of 700. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Bold. Equivalent to a numeric value of 700. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Bold. Equivalent to a numeric value of 700. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Bold: FontWeight = new FontWeight(4) + /** + * Defines a value that is heavier than [Inherited Value]. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Defines a value that is heavier than [Inherited Value]. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Defines a value that is heavier than [Inherited Value]. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Defines a value that is heavier than [Inherited Value]. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Bolder: FontWeight = new FontWeight(5) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): FontWeight { + if ((arg0) == (FontWeight.Lighter.value)) { + return FontWeight.Lighter + } + if ((arg0) == (FontWeight.Normal.value)) { + return FontWeight.Normal + } + if ((arg0) == (FontWeight.Regular.value)) { + return FontWeight.Regular + } + if ((arg0) == (FontWeight.Medium.value)) { + return FontWeight.Medium + } + if ((arg0) == (FontWeight.Bold.value)) { + return FontWeight.Bold + } + if ((arg0) == (FontWeight.Bolder.value)) { + return FontWeight.Bolder + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Text style + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Text style + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Text style + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Text style + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ +export class FontStyle { + /** + * Default style. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Default style. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Default style. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Default style. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Normal: FontStyle = new FontStyle(0) + /** + * Italic style. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Italic style. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Italic style. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Italic style. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Italic: FontStyle = new FontStyle(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): FontStyle { + if ((arg0) == (FontStyle.Normal.value)) { + return FontStyle.Normal + } + if ((arg0) == (FontStyle.Italic.value)) { + return FontStyle.Italic + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * ArrowPointPosition enumeration description + * + * @enum { string } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * ArrowPointPosition enumeration description + * + * @enum { string } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ +export class ArrowPointPosition { + /** + * Target start position + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * Target start position + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly START: ArrowPointPosition = new ArrowPointPosition("Start",0) + /** + * Target center position + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * Target center position + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly CENTER: ArrowPointPosition = new ArrowPointPosition("Center",1) + /** + * Target end position + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * Target end position + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly END: ArrowPointPosition = new ArrowPointPosition("End",2) + constructor(value: string, ordinal: KInt) { + this.value = value + this.ordinal = ordinal + } + public readonly value: string + public readonly ordinal: KInt + public static of(arg0: string): ArrowPointPosition { + if ((arg0) == (ArrowPointPosition.START.value)) { + return ArrowPointPosition.START + } + if ((arg0) == (ArrowPointPosition.CENTER.value)) { + return ArrowPointPosition.CENTER + } + if ((arg0) == (ArrowPointPosition.END.value)) { + return ArrowPointPosition.END + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * ResponseType for contextMenu + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * ResponseType for contextMenu + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * ResponseType for contextMenu + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class ResponseType { + /** + * Right click. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * Right click. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Right click. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly RightClick: ResponseType = new ResponseType(0) + /** + * Long press. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * Long press. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Long press. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly LongPress: ResponseType = new ResponseType(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): ResponseType { + if ((arg0) == (ResponseType.RightClick.value)) { + return ResponseType.RightClick + } + if ((arg0) == (ResponseType.LongPress.value)) { + return ResponseType.LongPress + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Function key for hot key. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Function key for hot key. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class FunctionKey { + /** + * Escape key. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Escape key. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly ESC: FunctionKey = new FunctionKey(0) + /** + * F1 key. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * F1 key. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly F1: FunctionKey = new FunctionKey(1) + /** + * F2 key. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * F2 key. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly F2: FunctionKey = new FunctionKey(2) + /** + * F3 key. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * F3 key. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly F3: FunctionKey = new FunctionKey(3) + /** + * F4 key. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * F4 key. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly F4: FunctionKey = new FunctionKey(4) + /** + * F5 key. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * F5 key. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly F5: FunctionKey = new FunctionKey(5) + /** + * F6 key. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * F6 key. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly F6: FunctionKey = new FunctionKey(6) + /** + * F7 key. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * F7 key. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly F7: FunctionKey = new FunctionKey(7) + /** + * F8 key. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * F8 key. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly F8: FunctionKey = new FunctionKey(8) + /** + * F9 key. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * F9 key. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly F9: FunctionKey = new FunctionKey(9) + /** + * F10 key. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * F10 key. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly F10: FunctionKey = new FunctionKey(10) + /** + * F11 key. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * F11 key. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly F11: FunctionKey = new FunctionKey(11) + /** + * F12 key. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * F12 key. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly F12: FunctionKey = new FunctionKey(12) + /** + * Tab key. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly TAB: FunctionKey = new FunctionKey(13) + /** + * Up arrow key. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly DPAD_UP: FunctionKey = new FunctionKey(14) + /** + * Down arrow key. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly DPAD_DOWN: FunctionKey = new FunctionKey(15) + /** + * Left arrow key. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly DPAD_LEFT: FunctionKey = new FunctionKey(16) + /** + * Right arrow key. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly DPAD_RIGHT: FunctionKey = new FunctionKey(17) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): FunctionKey { + if ((arg0) == (FunctionKey.ESC.value)) { + return FunctionKey.ESC + } + if ((arg0) == (FunctionKey.F1.value)) { + return FunctionKey.F1 + } + if ((arg0) == (FunctionKey.F2.value)) { + return FunctionKey.F2 + } + if ((arg0) == (FunctionKey.F3.value)) { + return FunctionKey.F3 + } + if ((arg0) == (FunctionKey.F4.value)) { + return FunctionKey.F4 + } + if ((arg0) == (FunctionKey.F5.value)) { + return FunctionKey.F5 + } + if ((arg0) == (FunctionKey.F6.value)) { + return FunctionKey.F6 + } + if ((arg0) == (FunctionKey.F7.value)) { + return FunctionKey.F7 + } + if ((arg0) == (FunctionKey.F8.value)) { + return FunctionKey.F8 + } + if ((arg0) == (FunctionKey.F9.value)) { + return FunctionKey.F9 + } + if ((arg0) == (FunctionKey.F10.value)) { + return FunctionKey.F10 + } + if ((arg0) == (FunctionKey.F11.value)) { + return FunctionKey.F11 + } + if ((arg0) == (FunctionKey.F12.value)) { + return FunctionKey.F12 + } + if ((arg0) == (FunctionKey.TAB.value)) { + return FunctionKey.TAB + } + if ((arg0) == (FunctionKey.DPAD_UP.value)) { + return FunctionKey.DPAD_UP + } + if ((arg0) == (FunctionKey.DPAD_DOWN.value)) { + return FunctionKey.DPAD_DOWN + } + if ((arg0) == (FunctionKey.DPAD_LEFT.value)) { + return FunctionKey.DPAD_LEFT + } + if ((arg0) == (FunctionKey.DPAD_RIGHT.value)) { + return FunctionKey.DPAD_RIGHT + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Modifier key for hot key. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Modifier key for hot key. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class ModifierKey { + /** + * ctrl. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * ctrl. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly CTRL: ModifierKey = new ModifierKey(0) + /** + * shift. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * shift. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly SHIFT: ModifierKey = new ModifierKey(1) + /** + * alt. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * alt. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly ALT: ModifierKey = new ModifierKey(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): ModifierKey { + if ((arg0) == (ModifierKey.CTRL.value)) { + return ModifierKey.CTRL + } + if ((arg0) == (ModifierKey.SHIFT.value)) { + return ModifierKey.SHIFT + } + if ((arg0) == (ModifierKey.ALT.value)) { + return ModifierKey.ALT + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * ObscuredReasons. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * ObscuredReasons. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class ObscuredReasons { + /** + * Displayed data should appear as generic placeholders. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Displayed data should appear as generic placeholders. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly PLACEHOLDER: ObscuredReasons = new ObscuredReasons(0) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): ObscuredReasons { + if ((arg0) == (ObscuredReasons.PLACEHOLDER.value)) { + return ObscuredReasons.PLACEHOLDER + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Enum of RenderFit + * + * @enum { number } RenderFit + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Enum of RenderFit + * + * @enum { number } RenderFit + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class RenderFit { + /** + * Without scaling the content area, the content area is drawn in the center of the node. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Without scaling the content area, the content area is drawn in the center of the node. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly CENTER: RenderFit = new RenderFit(0) + /** + * Without scaling the content area, the content area is drawn in the top center of the node. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Without scaling the content area, the content area is drawn in the top center of the node. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly TOP: RenderFit = new RenderFit(1) + /** + * Without scaling the content area, the content area is drawn in the bottom center of the node. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Without scaling the content area, the content area is drawn in the bottom center of the node. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly BOTTOM: RenderFit = new RenderFit(2) + /** + * Without scaling the content area, the content area is drawn in the left center of the node. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Without scaling the content area, the content area is drawn in the left center of the node. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly LEFT: RenderFit = new RenderFit(3) + /** + * Without scaling the content area, the content area is drawn in the right center of the node. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Without scaling the content area, the content area is drawn in the right center of the node. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly RIGHT: RenderFit = new RenderFit(4) + /** + * Without scaling the content area, the content area is drawn in the top left of the node. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Without scaling the content area, the content area is drawn in the top left of the node. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly TOP_LEFT: RenderFit = new RenderFit(5) + /** + * Without scaling the content area, the content area is drawn in the top right of the node. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Without scaling the content area, the content area is drawn in the top right of the node. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly TOP_RIGHT: RenderFit = new RenderFit(6) + /** + * Without scaling the content area, the content area is drawn in the bottom left of the node. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Without scaling the content area, the content area is drawn in the bottom left of the node. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly BOTTOM_LEFT: RenderFit = new RenderFit(7) + /** + * Without scaling the content area, the content area is drawn in the bottom right of the node. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Without scaling the content area, the content area is drawn in the bottom right of the node. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly BOTTOM_RIGHT: RenderFit = new RenderFit(8) + /** + * Scale the length and width of the content area to the node size to fill the node. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Scale the length and width of the content area to the node size to fill the node. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly RESIZE_FILL: RenderFit = new RenderFit(9) + /** + * Scale the length or width of the content to the length or width of the node, ensuring that one side is equal, + * the other side is less than or equal to the corresponding side of the node, and the content after scaling + * is centered. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Scale the length or width of the content to the length or width of the node, ensuring that one side is equal, + * the other side is less than or equal to the corresponding side of the node, and the content after scaling + * is centered. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly RESIZE_CONTAIN: RenderFit = new RenderFit(10) + /** + * Scale the length or width of the content to the length or width of the node, ensuring that one side is equal, + * the other side is less than or equal to the corresponding side of the node. If the height of the scaled content + * is less than or equal to the height of the node, the scaled content area is displayed at the top; otherwise, + * the width of the scaled content is less than or equal to the width of the node, the scaled content area is + * displayed at the left. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Scale the length or width of the content to the length or width of the node, ensuring that one side is equal, + * the other side is less than or equal to the corresponding side of the node. If the height of the scaled content + * is less than or equal to the height of the node, the scaled content area is displayed at the top; otherwise, + * the width of the scaled content is less than or equal to the width of the node, the scaled content area is + * displayed at the left. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly RESIZE_CONTAIN_TOP_LEFT: RenderFit = new RenderFit(11) + /** + * Scale the length or width of the content to the length or width of the node, ensuring that one side is equal, + * the other side is less than or equal to the corresponding side of the node. If the height of the scaled content + * is less than or equal to the height of the node, the scaled content area is displayed at the bottom; otherwise, + * the width of the scaled content is less than or equal to the width of the node, the scaled content area is + * displayed at the right. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Scale the length or width of the content to the length or width of the node, ensuring that one side is equal, + * the other side is less than or equal to the corresponding side of the node. If the height of the scaled content + * is less than or equal to the height of the node, the scaled content area is displayed at the bottom; otherwise, + * the width of the scaled content is less than or equal to the width of the node, the scaled content area is + * displayed at the right. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly RESIZE_CONTAIN_BOTTOM_RIGHT: RenderFit = new RenderFit(12) + /** + * Scale the length or width of the content to the length or width of the node, ensuring that one side is equal, + * the other side is greater than or equal to the corresponding side of the node, and the content after scaling + * displays the center area. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Scale the length or width of the content to the length or width of the node, ensuring that one side is equal, + * the other side is greater than or equal to the corresponding side of the node, and the content after scaling + * displays the center area. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly RESIZE_COVER: RenderFit = new RenderFit(13) + /** + * Scale the length or width of the content to the length or width of the node, ensuring that one side is equal, + * the other side is greater than or equal to the corresponding side of the node. If the height of the scaled content + * is greater than or equal to the height of the node, the scaled content area displays the top area; otherwise, + * the width of the scaled content is greater than or equal to the width of the node, the scaled content area + * displays the left area. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Scale the length or width of the content to the length or width of the node, ensuring that one side is equal, + * the other side is greater than or equal to the corresponding side of the node. If the height of the scaled content + * is greater than or equal to the height of the node, the scaled content area displays the top area; otherwise, + * the width of the scaled content is greater than or equal to the width of the node, the scaled content area + * displays the left area. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly RESIZE_COVER_TOP_LEFT: RenderFit = new RenderFit(14) + /** + * Scale the length or width of the content to the length or width of the node, ensuring that one side is equal, + * the other side is greater than or equal to the corresponding side of the node. If the height of the scaled content + * is greater than or equal to the height of the node, the scaled content area displays the bottom area; otherwise, + * the width of the scaled content is greater than or equal to the width of the node, the scaled content area + * displays the right area. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Scale the length or width of the content to the length or width of the node, ensuring that one side is equal, + * the other side is greater than or equal to the corresponding side of the node. If the height of the scaled content + * is greater than or equal to the height of the node, the scaled content area displays the bottom area; otherwise, + * the width of the scaled content is greater than or equal to the width of the node, the scaled content area + * displays the right area. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly RESIZE_COVER_BOTTOM_RIGHT: RenderFit = new RenderFit(15) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): RenderFit { + if ((arg0) == (RenderFit.CENTER.value)) { + return RenderFit.CENTER + } + if ((arg0) == (RenderFit.TOP.value)) { + return RenderFit.TOP + } + if ((arg0) == (RenderFit.BOTTOM.value)) { + return RenderFit.BOTTOM + } + if ((arg0) == (RenderFit.LEFT.value)) { + return RenderFit.LEFT + } + if ((arg0) == (RenderFit.RIGHT.value)) { + return RenderFit.RIGHT + } + if ((arg0) == (RenderFit.TOP_LEFT.value)) { + return RenderFit.TOP_LEFT + } + if ((arg0) == (RenderFit.TOP_RIGHT.value)) { + return RenderFit.TOP_RIGHT + } + if ((arg0) == (RenderFit.BOTTOM_LEFT.value)) { + return RenderFit.BOTTOM_LEFT + } + if ((arg0) == (RenderFit.BOTTOM_RIGHT.value)) { + return RenderFit.BOTTOM_RIGHT + } + if ((arg0) == (RenderFit.RESIZE_FILL.value)) { + return RenderFit.RESIZE_FILL + } + if ((arg0) == (RenderFit.RESIZE_CONTAIN.value)) { + return RenderFit.RESIZE_CONTAIN + } + if ((arg0) == (RenderFit.RESIZE_CONTAIN_TOP_LEFT.value)) { + return RenderFit.RESIZE_CONTAIN_TOP_LEFT + } + if ((arg0) == (RenderFit.RESIZE_CONTAIN_BOTTOM_RIGHT.value)) { + return RenderFit.RESIZE_CONTAIN_BOTTOM_RIGHT + } + if ((arg0) == (RenderFit.RESIZE_COVER.value)) { + return RenderFit.RESIZE_COVER + } + if ((arg0) == (RenderFit.RESIZE_COVER_TOP_LEFT.value)) { + return RenderFit.RESIZE_COVER_TOP_LEFT + } + if ((arg0) == (RenderFit.RESIZE_COVER_BOTTOM_RIGHT.value)) { + return RenderFit.RESIZE_COVER_BOTTOM_RIGHT + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Animation status. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Animation status. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Animation status. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ +export class AnimationStatus { + /** + * Initial state of the animation. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Initial state of the animation. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Initial state of the animation. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Initial: AnimationStatus = new AnimationStatus(0) + /** + * The animation is playing. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * The animation is playing. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * The animation is playing. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Running: AnimationStatus = new AnimationStatus(1) + /** + * The animation is paused. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * The animation is paused. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * The animation is paused. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Paused: AnimationStatus = new AnimationStatus(2) + /** + * The animation is stopped. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * The animation is stopped. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * The animation is stopped. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Stopped: AnimationStatus = new AnimationStatus(3) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): AnimationStatus { + if ((arg0) == (AnimationStatus.Initial.value)) { + return AnimationStatus.Initial + } + if ((arg0) == (AnimationStatus.Running.value)) { + return AnimationStatus.Running + } + if ((arg0) == (AnimationStatus.Paused.value)) { + return AnimationStatus.Paused + } + if ((arg0) == (AnimationStatus.Stopped.value)) { + return AnimationStatus.Stopped + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Sets the state before and after the animation starts. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Sets the state before and after the animation starts. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Sets the state before and after the animation starts. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ +export class FillMode { + /** + * Restores to the initial state after the playback is complete. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Restores to the initial state after the playback is complete. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Restores to the initial state after the playback is complete. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly None: FillMode = new FillMode(0) + /** + * Retains the state at the end of the animation when the playback is complete. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Retains the state at the end of the animation when the playback is complete. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Retains the state at the end of the animation when the playback is complete. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Forwards: FillMode = new FillMode(1) + /** + * Applies the start attribute value for the period specified by animation-delay before the animation is displayed. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Applies the start attribute value for the period specified by animation-delay before the animation is displayed. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Applies the start attribute value for the period specified by animation-delay before the animation is displayed. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Backwards: FillMode = new FillMode(2) + /** + * Both forward and backward fill modes are applied. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Both forward and backward fill modes are applied. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Both forward and backward fill modes are applied. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Both: FillMode = new FillMode(3) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): FillMode { + if ((arg0) == (FillMode.None.value)) { + return FillMode.None + } + if ((arg0) == (FillMode.Forwards.value)) { + return FillMode.Forwards + } + if ((arg0) == (FillMode.Backwards.value)) { + return FillMode.Backwards + } + if ((arg0) == (FillMode.Both.value)) { + return FillMode.Both + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Declare how text overflows. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Declare how text overflows. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Declare how text overflows. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Declare how text overflows. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ +export class TextOverflow { + /** + * When the text overflows its dimensions, the text will not be cropped. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * When the text overflows its dimensions, the text will not be cropped. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * When the text overflows its dimensions, the text will not be cropped. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * When the text overflows its dimensions, the text will not be cropped. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly None: TextOverflow = new TextOverflow(0) + /** + * When the text overflows its dimensions, the text will be cropped and displayed. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * When the text overflows its dimensions, the text will be cropped and displayed. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * When the text overflows its dimensions, the text will be cropped and displayed. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * When the text overflows its dimensions, the text will be cropped and displayed. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Clip: TextOverflow = new TextOverflow(1) + /** + * If the text overflows its dimensions, the text that cannot be displayed shall be replaced by ellipsis. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * If the text overflows its dimensions, the text that cannot be displayed shall be replaced by ellipsis. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * If the text overflows its dimensions, the text that cannot be displayed shall be replaced by ellipsis. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * If the text overflows its dimensions, the text that cannot be displayed shall be replaced by ellipsis. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Ellipsis: TextOverflow = new TextOverflow(2) + /** + * When the text overflows its dimensions, the text will scroll for displaying. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * When the text overflows its dimensions, the text will scroll for displaying. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly MARQUEE: TextOverflow = new TextOverflow(3) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): TextOverflow { + if ((arg0) == (TextOverflow.None.value)) { + return TextOverflow.None + } + if ((arg0) == (TextOverflow.Clip.value)) { + return TextOverflow.Clip + } + if ((arg0) == (TextOverflow.Ellipsis.value)) { + return TextOverflow.Ellipsis + } + if ((arg0) == (TextOverflow.MARQUEE.value)) { + return TextOverflow.MARQUEE + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Enum of text height adaptation + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Enum of text height adaptation + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class TextHeightAdaptivePolicy { + /** + * Priority is given to using the maxLines attribute to adapt the text height. + * If the layout size using the maxLines attribute exceeds the layout constraint, try reducing the font size to + * display more text. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Priority is given to using the maxLines attribute to adapt the text height. + * If the layout size using the maxLines attribute exceeds the layout constraint, try reducing the font size to + * display more text. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly MAX_LINES_FIRST: TextHeightAdaptivePolicy = new TextHeightAdaptivePolicy(0) + /** + * Priority is given to using the minFontSize attribute to adapt the text height. + * If the text can be layout in a single line using the minFontSize property, try increasing the font size and using + * the maximum possible font size. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Priority is given to using the minFontSize attribute to adapt the text height. + * If the text can be layout in a single line using the minFontSize property, try increasing the font size and using + * the maximum possible font size. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly MIN_FONT_SIZE_FIRST: TextHeightAdaptivePolicy = new TextHeightAdaptivePolicy(1) + /** + * Priority is given to using the layout constraint to adapt the text height. + * If the layout size exceeds the layout constraint, try reducing the font size. If the layout size still exceeds + * the layout constraint after reducing the font size to minFontSize, remove the lines that exceed the layout + * constraint. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Priority is given to using the layout constraint to adapt the text height. + * If the layout size exceeds the layout constraint, try reducing the font size. If the layout size still exceeds + * the layout constraint after reducing the font size to minFontSize, remove the lines that exceed the layout + * constraint. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly LAYOUT_CONSTRAINT_FIRST: TextHeightAdaptivePolicy = new TextHeightAdaptivePolicy(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): TextHeightAdaptivePolicy { + if ((arg0) == (TextHeightAdaptivePolicy.MAX_LINES_FIRST.value)) { + return TextHeightAdaptivePolicy.MAX_LINES_FIRST + } + if ((arg0) == (TextHeightAdaptivePolicy.MIN_FONT_SIZE_FIRST.value)) { + return TextHeightAdaptivePolicy.MIN_FONT_SIZE_FIRST + } + if ((arg0) == (TextHeightAdaptivePolicy.LAYOUT_CONSTRAINT_FIRST.value)) { + return TextHeightAdaptivePolicy.LAYOUT_CONSTRAINT_FIRST + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/* + * Copyright (c) 2021-2023 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +/** + * @file + * @kit ArkUI + */ +/** + * common enum of the checkbox shape + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * common enum of the checkbox shape + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ +export class CheckBoxShape { + /** + * Circle. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * Circle. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly CIRCLE: CheckBoxShape = new CheckBoxShape(0) + /** + * Rounded Square. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + */ +/** + * Rounded Square. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly ROUNDED_SQUARE: CheckBoxShape = new CheckBoxShape(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): CheckBoxShape { + if ((arg0) == (CheckBoxShape.CIRCLE.value)) { + return CheckBoxShape.CIRCLE + } + if ((arg0) == (CheckBoxShape.ROUNDED_SQUARE.value)) { + return CheckBoxShape.ROUNDED_SQUARE + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * LineCapStyle enumeration description + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * LineCapStyle enumeration description + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * LineCapStyle enumeration description + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * LineCapStyle enumeration description + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ +export class LineCapStyle { + /** + * The two ends of the dividing line are parallel lines. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * The two ends of the dividing line are parallel lines. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * The two ends of the dividing line are parallel lines. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * The two ends of the dividing line are parallel lines. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Butt: LineCapStyle = new LineCapStyle(0) + /** + * The two ends of the dividing line are semicircles. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * The two ends of the dividing line are semicircles. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * The two ends of the dividing line are semicircles. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * The two ends of the dividing line are semicircles. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Round: LineCapStyle = new LineCapStyle(1) + /** + * Extends half a circle at the end of the path with a width equal to half the line width and a height equal to the line width. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Extends half a circle at the end of the path with a width equal to half the line width and a height equal to the line width. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Extends half a circle at the end of the path with a width equal to half the line width and a height equal to the line width. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Extends half a circle at the end of the path with a width equal to half the line width and a height equal to the line width. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Square: LineCapStyle = new LineCapStyle(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): LineCapStyle { + if ((arg0) == (LineCapStyle.Butt.value)) { + return LineCapStyle.Butt + } + if ((arg0) == (LineCapStyle.Round.value)) { + return LineCapStyle.Round + } + if ((arg0) == (LineCapStyle.Square.value)) { + return LineCapStyle.Square + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Line Join Style + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Line Join Style + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Line Join Style + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Line Join Style + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ +export class LineJoinStyle { + /** + * Connect path segments using bevels. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Connect path segments using bevels. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Connect path segments using bevels. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Connect path segments using bevels. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Miter: LineJoinStyle = new LineJoinStyle(0) + /** + * Connect path segments using sharp corners. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Connect path segments using sharp corners. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Connect path segments using sharp corners. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Connect path segments using sharp corners. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Round: LineJoinStyle = new LineJoinStyle(1) + /** + * Connect path segments using fillets. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Connect path segments using fillets. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Connect path segments using fillets. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Connect path segments using fillets. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Bevel: LineJoinStyle = new LineJoinStyle(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): LineJoinStyle { + if ((arg0) == (LineJoinStyle.Miter.value)) { + return LineJoinStyle.Miter + } + if ((arg0) == (LineJoinStyle.Round.value)) { + return LineJoinStyle.Round + } + if ((arg0) == (LineJoinStyle.Bevel.value)) { + return LineJoinStyle.Bevel + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * FlexAlign enumeration description. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * FlexAlign enumeration description. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * FlexAlign enumeration description. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * FlexAlign enumeration description. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ +export class FlexAlign { + /** + * The element is aligned at the head of the principal axis, + * the first element is aligned with the head of the row, and subsequent elements are aligned with the previous one. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * The element is aligned at the head of the principal axis, + * the first element is aligned with the head of the row, and subsequent elements are aligned with the previous one. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * The element is aligned at the head of the principal axis, + * the first element is aligned with the head of the row, and subsequent elements are aligned with the previous one. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * The element is aligned at the head of the principal axis, + * the first element is aligned with the head of the row, and subsequent elements are aligned with the previous one. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Start: FlexAlign = new FlexAlign(0) + /** + * The elements are centered in the direction of the principal axis, + * and the first element is the same distance from the beginning of the row as the last element is from the end of the row. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * The elements are centered in the direction of the principal axis, + * and the first element is the same distance from the beginning of the row as the last element is from the end of the row. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * The elements are centered in the direction of the principal axis, + * and the first element is the same distance from the beginning of the row as the last element is from the end of the row. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * The elements are centered in the direction of the principal axis, + * and the first element is the same distance from the beginning of the row as the last element is from the end of the row. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Center: FlexAlign = new FlexAlign(1) + /** + * The element is aligned at the tail of the principal axis, + * the last element is aligned at the end of the row, and the other elements are aligned with the next. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * The element is aligned at the tail of the principal axis, + * the last element is aligned at the end of the row, and the other elements are aligned with the next. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * The element is aligned at the tail of the principal axis, + * the last element is aligned at the end of the row, and the other elements are aligned with the next. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * The element is aligned at the tail of the principal axis, + * the last element is aligned at the end of the row, and the other elements are aligned with the next. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly End: FlexAlign = new FlexAlign(2) + /** + * Elastic elements are evenly distributed in the direction of the Flex principal axis, + * with the same distance between adjacent elements. + * The first element aligns with the beginning of the line, and the last element aligns with the end of the line. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Elastic elements are evenly distributed in the direction of the Flex principal axis, + * with the same distance between adjacent elements. + * The first element aligns with the beginning of the line, and the last element aligns with the end of the line. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Elastic elements are evenly distributed in the direction of the Flex principal axis, + * with the same distance between adjacent elements. + * The first element aligns with the beginning of the line, and the last element aligns with the end of the line. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Elastic elements are evenly distributed in the direction of the Flex principal axis, + * with the same distance between adjacent elements. + * The first element aligns with the beginning of the line, and the last element aligns with the end of the line. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly SpaceBetween: FlexAlign = new FlexAlign(3) + /** + * Elastic elements are evenly distributed in the direction of the Flex principal axis, + * with the same distance between adjacent elements. Half the distance between adjacent elements as the distance between + * the first element and the distance between the last element and the end of the row. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Elastic elements are evenly distributed in the direction of the Flex principal axis, + * with the same distance between adjacent elements. Half the distance between adjacent elements as the distance between + * the first element and the distance between the last element and the end of the row. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Elastic elements are evenly distributed in the direction of the Flex principal axis, + * with the same distance between adjacent elements. Half the distance between adjacent elements as the distance between + * the first element and the distance between the last element and the end of the row. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Elastic elements are evenly distributed in the direction of the Flex principal axis, + * with the same distance between adjacent elements. Half the distance between adjacent elements as the distance between + * the first element and the distance between the last element and the end of the row. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly SpaceAround: FlexAlign = new FlexAlign(4) + /** + * Elements in the Flex axis direction are evenly spaced. + * The spacing between adjacent elements, the spacing between the first element and the beginning of the row, + * and the spacing between the last element and the end of the row are the same. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Elements in the Flex axis direction are evenly spaced. + * The spacing between adjacent elements, the spacing between the first element and the beginning of the row, + * and the spacing between the last element and the end of the row are the same. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Elements in the Flex axis direction are evenly spaced. + * The spacing between adjacent elements, the spacing between the first element and the beginning of the row, + * and the spacing between the last element and the end of the row are the same. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Elements in the Flex axis direction are evenly spaced. + * The spacing between adjacent elements, the spacing between the first element and the beginning of the row, + * and the spacing between the last element and the end of the row are the same. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly SpaceEvenly: FlexAlign = new FlexAlign(5) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): FlexAlign { + if ((arg0) == (FlexAlign.Start.value)) { + return FlexAlign.Start + } + if ((arg0) == (FlexAlign.Center.value)) { + return FlexAlign.Center + } + if ((arg0) == (FlexAlign.End.value)) { + return FlexAlign.End + } + if ((arg0) == (FlexAlign.SpaceBetween.value)) { + return FlexAlign.SpaceBetween + } + if ((arg0) == (FlexAlign.SpaceAround.value)) { + return FlexAlign.SpaceAround + } + if ((arg0) == (FlexAlign.SpaceEvenly.value)) { + return FlexAlign.SpaceEvenly + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Enum of Illuminated type + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @systemapi + * @since 11 + */ +export class IlluminatedType { + /** + * Component is not illuminated. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @systemapi + * @since 11 + */ + static readonly NONE: IlluminatedType = new IlluminatedType(0) + /** + * Border is illuminated. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @systemapi + * @since 11 + */ + static readonly BORDER: IlluminatedType = new IlluminatedType(1) + /** + * Content is illuminated. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @systemapi + * @since 11 + */ + static readonly CONTENT: IlluminatedType = new IlluminatedType(2) + /** + * Border and Content is illuminated. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @systemapi + * @since 11 + */ + static readonly BORDER_CONTENT: IlluminatedType = new IlluminatedType(3) + /** + * Border is illuminated, and the border have a bloom effect. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @systemapi + * @since 11 + */ + static readonly BLOOM_BORDER: IlluminatedType = new IlluminatedType(4) + /** + * Border and Content is illuminated, and the border have a bloom effect. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @systemapi + * @since 11 + */ + static readonly BLOOM_BORDER_CONTENT: IlluminatedType = new IlluminatedType(5) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): IlluminatedType { + if ((arg0) == (IlluminatedType.NONE.value)) { + return IlluminatedType.NONE + } + if ((arg0) == (IlluminatedType.BORDER.value)) { + return IlluminatedType.BORDER + } + if ((arg0) == (IlluminatedType.CONTENT.value)) { + return IlluminatedType.CONTENT + } + if ((arg0) == (IlluminatedType.BORDER_CONTENT.value)) { + return IlluminatedType.BORDER_CONTENT + } + if ((arg0) == (IlluminatedType.BLOOM_BORDER.value)) { + return IlluminatedType.BLOOM_BORDER + } + if ((arg0) == (IlluminatedType.BLOOM_BORDER_CONTENT.value)) { + return IlluminatedType.BLOOM_BORDER_CONTENT + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Enum of EmbeddedType + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ +export class EmbeddedType { + /** + * The EmbeddedComponent show the UI in EmbeddedUIExtensionAbility. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly EMBEDDED_UI_EXTENSION: EmbeddedType = new EmbeddedType(0) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): EmbeddedType { + if ((arg0) == (EmbeddedType.EMBEDDED_UI_EXTENSION.value)) { + return EmbeddedType.EMBEDDED_UI_EXTENSION + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * FlexDirection enumeration description + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * FlexDirection enumeration description + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * FlexDirection enumeration description + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * FlexDirection enumeration description + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ +export class FlexDirection { + /** + * The main axis is consistent with the row direction as the layout mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * The main axis is consistent with the row direction as the layout mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * The main axis is consistent with the row direction as the layout mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * The main axis is consistent with the row direction as the layout mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Row: FlexDirection = new FlexDirection(0) + /** + * The main axis is consistent with the column direction as the layout mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * The main axis is consistent with the column direction as the layout mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * The main axis is consistent with the column direction as the layout mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * The main axis is consistent with the column direction as the layout mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Column: FlexDirection = new FlexDirection(1) + /** + * The layout is in the opposite direction to the Row direction. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * The layout is in the opposite direction to the Row direction. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * The layout is in the opposite direction to the Row direction. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * The layout is in the opposite direction to the Row direction. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly RowReverse: FlexDirection = new FlexDirection(2) + /** + * Layout in the opposite direction to the column. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Layout in the opposite direction to the column. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Layout in the opposite direction to the column. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Layout in the opposite direction to the column. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly ColumnReverse: FlexDirection = new FlexDirection(3) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): FlexDirection { + if ((arg0) == (FlexDirection.Row.value)) { + return FlexDirection.Row + } + if ((arg0) == (FlexDirection.Column.value)) { + return FlexDirection.Column + } + if ((arg0) == (FlexDirection.RowReverse.value)) { + return FlexDirection.RowReverse + } + if ((arg0) == (FlexDirection.ColumnReverse.value)) { + return FlexDirection.ColumnReverse + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * FlexWrap enumeration description + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * FlexWrap enumeration description + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * FlexWrap enumeration description + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * FlexWrap enumeration description + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ +export class FlexWrap { + /** + * The Flex container has a single row/column layout of elements, and children are allowed to go beyond the container. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * The Flex container has a single row/column layout of elements, and children are allowed to go beyond the container. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * The Flex container has a single row/column layout of elements, and children are allowed to go beyond the container. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * The Flex container has a single row/column layout of elements, and children are allowed to go beyond the container. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly NoWrap: FlexWrap = new FlexWrap(0) + /** + * The elements of the Flex container are arranged in multiple rows or columns, and the sub-items are allowed to exceed the container. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * The elements of the Flex container are arranged in multiple rows or columns, and the sub-items are allowed to exceed the container. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * The elements of the Flex container are arranged in multiple rows or columns, and the sub-items are allowed to exceed the container. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * The elements of the Flex container are arranged in multiple rows or columns, and the sub-items are allowed to exceed the container. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Wrap: FlexWrap = new FlexWrap(1) + /** + * The elements of the Flex container are arranged in reverse multiple rows/columns, and children are allowed to exceed the container. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * The elements of the Flex container are arranged in reverse multiple rows/columns, and children are allowed to exceed the container. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * The elements of the Flex container are arranged in reverse multiple rows/columns, and children are allowed to exceed the container. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * The elements of the Flex container are arranged in reverse multiple rows/columns, and children are allowed to exceed the container. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly WrapReverse: FlexWrap = new FlexWrap(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): FlexWrap { + if ((arg0) == (FlexWrap.NoWrap.value)) { + return FlexWrap.NoWrap + } + if ((arg0) == (FlexWrap.Wrap.value)) { + return FlexWrap.Wrap + } + if ((arg0) == (FlexWrap.WrapReverse.value)) { + return FlexWrap.WrapReverse + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Enumerates the fold status. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * Enumerates the fold status. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ +export class FoldStatus { + /** + * Fold Status Unknown. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * Fold Status Unknown. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly FOLD_STATUS_UNKNOWN: FoldStatus = new FoldStatus(0) + /** + * Fold Status Expanded. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * Fold Status Expanded. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly FOLD_STATUS_EXPANDED: FoldStatus = new FoldStatus(1) + /** + * Fold Status Folded. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * Fold Status Folded. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly FOLD_STATUS_FOLDED: FoldStatus = new FoldStatus(2) + /** + * Fold Status Half Folded. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * Fold Status Half Folded. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly FOLD_STATUS_HALF_FOLDED: FoldStatus = new FoldStatus(3) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): FoldStatus { + if ((arg0) == (FoldStatus.FOLD_STATUS_UNKNOWN.value)) { + return FoldStatus.FOLD_STATUS_UNKNOWN + } + if ((arg0) == (FoldStatus.FOLD_STATUS_EXPANDED.value)) { + return FoldStatus.FOLD_STATUS_EXPANDED + } + if ((arg0) == (FoldStatus.FOLD_STATUS_FOLDED.value)) { + return FoldStatus.FOLD_STATUS_FOLDED + } + if ((arg0) == (FoldStatus.FOLD_STATUS_HALF_FOLDED.value)) { + return FoldStatus.FOLD_STATUS_HALF_FOLDED + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Enumerates the app rotation. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ +export class AppRotation { + /** + * App does not rotate to display vertically. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly ROTATION_0: AppRotation = new AppRotation(0) + /** + * App rotates 90 degrees clockwise to display horizontally. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly ROTATION_90: AppRotation = new AppRotation(1) + /** + * App rotates 180 degrees clockwise to display vertically in reverse. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly ROTATION_180: AppRotation = new AppRotation(2) + /** + * App rotates 270 degrees clockwise to display horizontally in reverse. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly ROTATION_270: AppRotation = new AppRotation(3) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): AppRotation { + if ((arg0) == (AppRotation.ROTATION_0.value)) { + return AppRotation.ROTATION_0 + } + if ((arg0) == (AppRotation.ROTATION_90.value)) { + return AppRotation.ROTATION_90 + } + if ((arg0) == (AppRotation.ROTATION_180.value)) { + return AppRotation.ROTATION_180 + } + if ((arg0) == (AppRotation.ROTATION_270.value)) { + return AppRotation.ROTATION_270 + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Used to set the status of the scroll bar. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Used to set the status of the scroll bar. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Used to set the status of the scroll bar. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Used to set the status of the scroll bar. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ +export class BarState { + /** + * Not displayed. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Not displayed. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Not displayed. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Not displayed. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Off: BarState = new BarState(0) + /** + * On-demand display (displayed when you touch it and disappears after 2 seconds). + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * On-demand display (displayed when you touch it and disappears after 2 seconds). + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * On-demand display (displayed when you touch it and disappears after 2 seconds). + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * On-demand display (displayed when you touch it and disappears after 2 seconds). + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Auto: BarState = new BarState(1) + /** + * Resident display. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Resident display. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Resident display. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Resident display. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly On: BarState = new BarState(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): BarState { + if ((arg0) == (BarState.Off.value)) { + return BarState.Off + } + if ((arg0) == (BarState.Auto.value)) { + return BarState.Auto + } + if ((arg0) == (BarState.On.value)) { + return BarState.On + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Sliding effect + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Sliding effect + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Sliding effect + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Sliding effect + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ +export class EdgeEffect { + /** + * Elastic physical action, sliding to the edge can continue to slide for a distance based on the initial speed or touch event, and spring back when released. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Elastic physical action, sliding to the edge can continue to slide for a distance based on the initial speed or touch event, and spring back when released. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Elastic physical action, sliding to the edge can continue to slide for a distance based on the initial speed or touch event, and spring back when released. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Elastic physical action, sliding to the edge can continue to slide for a distance based on the initial speed or touch event, and spring back when released. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Spring: EdgeEffect = new EdgeEffect(0) + /** + * Fade. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Fade. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Fade. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Fade. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Fade: EdgeEffect = new EdgeEffect(1) + /** + * Sliding to the edge has no effect. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Sliding to the edge has no effect. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Sliding to the edge has no effect. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Sliding to the edge has no effect. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly None: EdgeEffect = new EdgeEffect(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): EdgeEffect { + if ((arg0) == (EdgeEffect.Spring.value)) { + return EdgeEffect.Spring + } + if ((arg0) == (EdgeEffect.Fade.value)) { + return EdgeEffect.Fade + } + if ((arg0) == (EdgeEffect.None.value)) { + return EdgeEffect.None + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Nested scroll nested mode + + * @enum { number } NestedScrollMode + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Nested scroll nested mode + + * @enum { number } NestedScrollMode + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class NestedScrollMode { + /** + * Only Self response scrolling. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Only Self response scrolling. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly SELF_ONLY: NestedScrollMode = new NestedScrollMode(0) + /** + * Self priority response scrolling. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Self priority response scrolling. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly SELF_FIRST: NestedScrollMode = new NestedScrollMode(1) + /** + * Parent scrollable component priority response scrolling. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Parent scrollable component priority response scrolling. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly PARENT_FIRST: NestedScrollMode = new NestedScrollMode(2) + /** + * Both self and parent scrollable component response scrolling. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Both self and parent scrollable component response scrolling. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly PARALLEL: NestedScrollMode = new NestedScrollMode(3) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): NestedScrollMode { + if ((arg0) == (NestedScrollMode.SELF_ONLY.value)) { + return NestedScrollMode.SELF_ONLY + } + if ((arg0) == (NestedScrollMode.SELF_FIRST.value)) { + return NestedScrollMode.SELF_FIRST + } + if ((arg0) == (NestedScrollMode.PARENT_FIRST.value)) { + return NestedScrollMode.PARENT_FIRST + } + if ((arg0) == (NestedScrollMode.PARALLEL.value)) { + return NestedScrollMode.PARALLEL + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * The possible source of scroll event + * @enum { number } ScrollSource + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ +export class ScrollSource { + /** + * Drag events. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly DRAG: ScrollSource = new ScrollSource(0) + /** + * Fling after the drag has ended with velocity. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly FLING: ScrollSource = new ScrollSource(1) + /** + * Over scroll with EdgeEffect.Spring. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly EDGE_EFFECT: ScrollSource = new ScrollSource(2) + /** + * Other user input except drag, such as mouse wheel, key event. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly OTHER_USER_INPUT: ScrollSource = new ScrollSource(3) + /** + * Drag events of scroll bar. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly SCROLL_BAR: ScrollSource = new ScrollSource(4) + /** + * Fling after the drag on scroll bar has ended with velocity. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly SCROLL_BAR_FLING: ScrollSource = new ScrollSource(5) + /** + * Member methods of Scroller without animation. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly SCROLLER: ScrollSource = new ScrollSource(6) + /** + * Member methods of Scroller with animation. + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly SCROLLER_ANIMATION: ScrollSource = new ScrollSource(7) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): ScrollSource { + if ((arg0) == (ScrollSource.DRAG.value)) { + return ScrollSource.DRAG + } + if ((arg0) == (ScrollSource.FLING.value)) { + return ScrollSource.FLING + } + if ((arg0) == (ScrollSource.EDGE_EFFECT.value)) { + return ScrollSource.EDGE_EFFECT + } + if ((arg0) == (ScrollSource.OTHER_USER_INPUT.value)) { + return ScrollSource.OTHER_USER_INPUT + } + if ((arg0) == (ScrollSource.SCROLL_BAR.value)) { + return ScrollSource.SCROLL_BAR + } + if ((arg0) == (ScrollSource.SCROLL_BAR_FLING.value)) { + return ScrollSource.SCROLL_BAR_FLING + } + if ((arg0) == (ScrollSource.SCROLLER.value)) { + return ScrollSource.SCROLLER + } + if ((arg0) == (ScrollSource.SCROLLER_ANIMATION.value)) { + return ScrollSource.SCROLLER_ANIMATION + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Edge. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Edge. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Edge. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class Edge { + /** + * The top is centered horizontally. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * The top is centered horizontally. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * The top is centered horizontally. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Top: Edge = new Edge(0) + /** + * Center horizontal and vertical. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + * @deprecated since 9 + */ + static readonly Center: Edge = new Edge(1) + /** + * The bottom is centered horizontally. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * The bottom is centered horizontally. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * The bottom is centered horizontally. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Bottom: Edge = new Edge(2) + /** + * Cross axis direction text baseline alignment. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + * @deprecated since 9 + */ + static readonly Baseline: Edge = new Edge(3) + /** + * Align the head of the cross axis direction. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Align the head of the cross axis direction. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Align the head of the cross axis direction. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Start: Edge = new Edge(4) + /** + * Middle + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + * @deprecated since 9 + */ + static readonly Middle: Edge = new Edge(5) + /** + * Align the head of the cross axis direction. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Align the head of the cross axis direction. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Align the head of the cross axis direction. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly End: Edge = new Edge(6) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): Edge { + if ((arg0) == (Edge.Top.value)) { + return Edge.Top + } + if ((arg0) == (Edge.Center.value)) { + return Edge.Center + } + if ((arg0) == (Edge.Bottom.value)) { + return Edge.Bottom + } + if ((arg0) == (Edge.Baseline.value)) { + return Edge.Baseline + } + if ((arg0) == (Edge.Start.value)) { + return Edge.Start + } + if ((arg0) == (Edge.Middle.value)) { + return Edge.Middle + } + if ((arg0) == (Edge.End.value)) { + return Edge.End + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Image display mode + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Image display mode. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Image display mode. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Image display mode. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ +export class ImageFit { + /** + * Keep the aspect ratio to zoom out or zoom in so that the image is completely displayed within the display boundary. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Keep the aspect ratio to zoom out or zoom in so that the image is completely displayed within the display boundary. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Keep the aspect ratio to zoom out or zoom in so that the image is completely displayed within the display boundary. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Keep the aspect ratio to zoom out or zoom in so that the image is completely displayed within the display boundary. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Contain: ImageFit = new ImageFit(0) + /** + * Keep the aspect ratio to zoom out or zoom in so that both sides of the image are greater than or equal to the display boundary. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Keep the aspect ratio to zoom out or zoom in so that both sides of the image are greater than or equal to the display boundary. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Keep the aspect ratio to zoom out or zoom in so that both sides of the image are greater than or equal to the display boundary. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Keep the aspect ratio to zoom out or zoom in so that both sides of the image are greater than or equal to the display boundary. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Cover: ImageFit = new ImageFit(1) + /** + * Adaptive display + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Adaptive display + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Adaptive display + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Adaptive display + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Auto: ImageFit = new ImageFit(2) + /** + * Zoom in or out without maintaining the aspect ratio so that the image fills the display boundary. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Zoom in or out without maintaining the aspect ratio so that the image fills the display boundary. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Zoom in or out without maintaining the aspect ratio so that the image fills the display boundary. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Zoom in or out without maintaining the aspect ratio so that the image fills the display boundary. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Fill: ImageFit = new ImageFit(3) + /** + * Keep the aspect ratio displayed, and the image zooms out or remains unchanged. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Keep the aspect ratio displayed, and the image zooms out or remains unchanged. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Keep the aspect ratio displayed, and the image zooms out or remains unchanged. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Keep the aspect ratio displayed, and the image zooms out or remains unchanged. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly ScaleDown: ImageFit = new ImageFit(4) + /** + * Keep the original size and display it in the center. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Keep the original size and display it in the center. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Keep the original size and display it in the center. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Keep the original size and display it in the center. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly None: ImageFit = new ImageFit(5) + /** + * Top Start. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly TOP_START: ImageFit = new ImageFit(7) + /** + * The top is centered horizontally. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly TOP: ImageFit = new ImageFit(8) + /** + * Top tail end. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly TOP_END: ImageFit = new ImageFit(9) + /** + * The starting end is centered longitudinally. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly START: ImageFit = new ImageFit(10) + /** + * Center horizontal and vertical. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly CENTER: ImageFit = new ImageFit(11) + /** + * The tail end is centered longitudinally. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly END: ImageFit = new ImageFit(12) + /** + * Bottom starting end. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly BOTTOM_START: ImageFit = new ImageFit(13) + /** + * The bottom is centered horizontally. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly BOTTOM: ImageFit = new ImageFit(14) + /** + * Bottom end. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly BOTTOM_END: ImageFit = new ImageFit(15) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): ImageFit { + if ((arg0) == (ImageFit.Contain.value)) { + return ImageFit.Contain + } + if ((arg0) == (ImageFit.Cover.value)) { + return ImageFit.Cover + } + if ((arg0) == (ImageFit.Auto.value)) { + return ImageFit.Auto + } + if ((arg0) == (ImageFit.Fill.value)) { + return ImageFit.Fill + } + if ((arg0) == (ImageFit.ScaleDown.value)) { + return ImageFit.ScaleDown + } + if ((arg0) == (ImageFit.None.value)) { + return ImageFit.None + } + if ((arg0) == (ImageFit.TOP_START.value)) { + return ImageFit.TOP_START + } + if ((arg0) == (ImageFit.TOP.value)) { + return ImageFit.TOP + } + if ((arg0) == (ImageFit.TOP_END.value)) { + return ImageFit.TOP_END + } + if ((arg0) == (ImageFit.START.value)) { + return ImageFit.START + } + if ((arg0) == (ImageFit.CENTER.value)) { + return ImageFit.CENTER + } + if ((arg0) == (ImageFit.END.value)) { + return ImageFit.END + } + if ((arg0) == (ImageFit.BOTTOM_START.value)) { + return ImageFit.BOTTOM_START + } + if ((arg0) == (ImageFit.BOTTOM.value)) { + return ImageFit.BOTTOM + } + if ((arg0) == (ImageFit.BOTTOM_END.value)) { + return ImageFit.BOTTOM_END + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Indicates the share option. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Indicates the share option. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Indicates the share option. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ +export class CopyOptions { + /** + * Not allow share. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Not allow share. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Not allow share. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly None: CopyOptions = new CopyOptions(0) + /** + * Share in app. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Share in app. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Share in app. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly InApp: CopyOptions = new CopyOptions(1) + /** + * Share in local device. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Share in local device. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Share in local device. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly LocalDevice: CopyOptions = new CopyOptions(2) + /** + * Share in cross Device + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 11 + * @deprecated since 12 + */ + static readonly CROSS_DEVICE: CopyOptions = new CopyOptions(3) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): CopyOptions { + if ((arg0) == (CopyOptions.None.value)) { + return CopyOptions.None + } + if ((arg0) == (CopyOptions.InApp.value)) { + return CopyOptions.InApp + } + if ((arg0) == (CopyOptions.LocalDevice.value)) { + return CopyOptions.LocalDevice + } + if ((arg0) == (CopyOptions.CROSS_DEVICE.value)) { + return CopyOptions.CROSS_DEVICE + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * The alignment of ImageSpan + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * The alignment of ImageSpan + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class ImageSpanAlignment { + /** + * Indicating that the bottom of the ImageSpan should be aligned with the baseline of the surrounding text. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Indicating that the bottom of the ImageSpan should be aligned with the baseline of the surrounding text. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly BASELINE: ImageSpanAlignment = new ImageSpanAlignment(0) + /** + * Indicating that the bottom of the ImageSpan should be aligned with the bottom of the surrounding text. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Indicating that the bottom of the ImageSpan should be aligned with the bottom of the surrounding text. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly BOTTOM: ImageSpanAlignment = new ImageSpanAlignment(1) + /** + * Indicating that the center of the ImageSpan should be aligned with the center of the surrounding text. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Indicating that the center of the ImageSpan should be aligned with the center of the surrounding text. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly CENTER: ImageSpanAlignment = new ImageSpanAlignment(2) + /** + * Indicating that the top of the ImageSpan should be aligned with the top of the surrounding text. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Indicating that the top of the ImageSpan should be aligned with the top of the surrounding text. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly TOP: ImageSpanAlignment = new ImageSpanAlignment(3) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): ImageSpanAlignment { + if ((arg0) == (ImageSpanAlignment.BASELINE.value)) { + return ImageSpanAlignment.BASELINE + } + if ((arg0) == (ImageSpanAlignment.BOTTOM.value)) { + return ImageSpanAlignment.BOTTOM + } + if ((arg0) == (ImageSpanAlignment.CENTER.value)) { + return ImageSpanAlignment.CENTER + } + if ((arg0) == (ImageSpanAlignment.TOP.value)) { + return ImageSpanAlignment.TOP + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Marquee scrolling strategy after text update + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ +export class MarqueeUpdateStrategy { + /** + * Reset scroll position and restart scroll. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly DEFAULT: MarqueeUpdateStrategy = new MarqueeUpdateStrategy(0) + /** + * Preserve scroll position, just change to new text + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly PRESERVE_POSITION: MarqueeUpdateStrategy = new MarqueeUpdateStrategy(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): MarqueeUpdateStrategy { + if ((arg0) == (MarqueeUpdateStrategy.DEFAULT.value)) { + return MarqueeUpdateStrategy.DEFAULT + } + if ((arg0) == (MarqueeUpdateStrategy.PRESERVE_POSITION.value)) { + return MarqueeUpdateStrategy.PRESERVE_POSITION + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Title height. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 9 + */ +/** + * Title height. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Title height. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class TitleHeight { + /** + * Title height when only main title is available. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 9 + */ +/** + * Title height when only main title is available. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Title height when only main title is available. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly MainOnly: TitleHeight = new TitleHeight(0) + /** + * Title height when main title and subtitle are both available. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 9 + */ +/** + * Title height when main title and subtitle are both available. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Title height when main title and subtitle are both available. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly MainWithSub: TitleHeight = new TitleHeight(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): TitleHeight { + if ((arg0) == (TitleHeight.MainOnly.value)) { + return TitleHeight.MainOnly + } + if ((arg0) == (TitleHeight.MainWithSub.value)) { + return TitleHeight.MainWithSub + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Type of text modifier. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Type of text modifier. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Type of text modifier. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Type of text modifier. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ +export class TextDecorationType { + /** + * Do not use text decorative lines. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Do not use text decorative lines. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Do not use text decorative lines. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Do not use text decorative lines. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly None: TextDecorationType = new TextDecorationType(0) + /** + * Underline the words. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Underline the words. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Underline the words. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Underline the words. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Underline: TextDecorationType = new TextDecorationType(1) + /** + * Text is in all uppercase. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Text is in all uppercase. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Text is in all uppercase. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Text is in all uppercase. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Overline: TextDecorationType = new TextDecorationType(2) + /** + * A modifier line that passes through the text. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * A modifier line that passes through the text. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * A modifier line that passes through the text. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * A modifier line that passes through the text. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly LineThrough: TextDecorationType = new TextDecorationType(3) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): TextDecorationType { + if ((arg0) == (TextDecorationType.None.value)) { + return TextDecorationType.None + } + if ((arg0) == (TextDecorationType.Underline.value)) { + return TextDecorationType.Underline + } + if ((arg0) == (TextDecorationType.Overline.value)) { + return TextDecorationType.Overline + } + if ((arg0) == (TextDecorationType.LineThrough.value)) { + return TextDecorationType.LineThrough + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Type of text decoration line style. + * + * @enum {number} + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ +export class TextDecorationStyle { + /** + * Solid line. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly SOLID: TextDecorationStyle = new TextDecorationStyle(0) + /** + * Double lines. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly DOUBLE: TextDecorationStyle = new TextDecorationStyle(1) + /** + * Dotted line. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly DOTTED: TextDecorationStyle = new TextDecorationStyle(2) + /** + * Dashed line. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly DASHED: TextDecorationStyle = new TextDecorationStyle(3) + /** + * Wavy line. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly WAVY: TextDecorationStyle = new TextDecorationStyle(4) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): TextDecorationStyle { + if ((arg0) == (TextDecorationStyle.SOLID.value)) { + return TextDecorationStyle.SOLID + } + if ((arg0) == (TextDecorationStyle.DOUBLE.value)) { + return TextDecorationStyle.DOUBLE + } + if ((arg0) == (TextDecorationStyle.DOTTED.value)) { + return TextDecorationStyle.DOTTED + } + if ((arg0) == (TextDecorationStyle.DASHED.value)) { + return TextDecorationStyle.DASHED + } + if ((arg0) == (TextDecorationStyle.WAVY.value)) { + return TextDecorationStyle.WAVY + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Alignment of text. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Alignment of text. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Alignment of text. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Alignment of text. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ +export class TextAlign { + /** + * Center the text. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Center the text. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Center the text. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Center the text. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Center: TextAlign = new TextAlign(0) + /** + * The text is aligned in the same direction as the writing + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * The text is aligned in the same direction as the writing + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * The text is aligned in the same direction as the writing + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * The text is aligned in the same direction as the writing + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Start: TextAlign = new TextAlign(1) + /** + * The text is aligned in the opposite direction of writing + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * The text is aligned in the opposite direction of writing + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * The text is aligned in the opposite direction of writing + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * The text is aligned in the opposite direction of writing + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly End: TextAlign = new TextAlign(2) + /** + * Justify the text. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Justify the text. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly JUSTIFY: TextAlign = new TextAlign(3) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): TextAlign { + if ((arg0) == (TextAlign.Center.value)) { + return TextAlign.Center + } + if ((arg0) == (TextAlign.Start.value)) { + return TextAlign.Start + } + if ((arg0) == (TextAlign.End.value)) { + return TextAlign.End + } + if ((arg0) == (TextAlign.JUSTIFY.value)) { + return TextAlign.JUSTIFY + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Enum of word break + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class WordBreak { + /** + * By default, CJK text can be wrapped between any 2 characters, and non-CJK text can only be wrapped in spaces. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly NORMAL: WordBreak = new WordBreak(0) + /** + * Non-CJK text be wrapped at any character + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly BREAK_ALL: WordBreak = new WordBreak(1) + /** + * Non-CJK text can be wrapped at any character + * and if a complete word can be preserved in space breaks, the word must be kept on the line. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly BREAK_WORD: WordBreak = new WordBreak(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): WordBreak { + if ((arg0) == (WordBreak.NORMAL.value)) { + return WordBreak.NORMAL + } + if ((arg0) == (WordBreak.BREAK_ALL.value)) { + return WordBreak.BREAK_ALL + } + if ((arg0) == (WordBreak.BREAK_WORD.value)) { + return WordBreak.BREAK_WORD + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Enum of line break strategy + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ +export class LineBreakStrategy { + /** + * By default. Display as many characters as possible on each line until no more characters + * can be displayed on that line, and do not automatically add hyphens under this strategy + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly GREEDY: LineBreakStrategy = new LineBreakStrategy(0) + /** + * High quality folding. Optimize the layout of the entire text's line breaks and automatically + * add hyphens if necessary. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly HIGH_QUALITY: LineBreakStrategy = new LineBreakStrategy(1) + /** + * Balanced folding. We will try our best to ensure that the width of each line in a paragraph + * is the same, and if necessary, we will add conjunction + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly BALANCED: LineBreakStrategy = new LineBreakStrategy(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): LineBreakStrategy { + if ((arg0) == (LineBreakStrategy.GREEDY.value)) { + return LineBreakStrategy.GREEDY + } + if ((arg0) == (LineBreakStrategy.HIGH_QUALITY.value)) { + return LineBreakStrategy.HIGH_QUALITY + } + if ((arg0) == (LineBreakStrategy.BALANCED.value)) { + return LineBreakStrategy.BALANCED + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Decide whether the width of select menu fit the trigger or content + * + * @enum { string } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * Decide whether the width of select menu fit the trigger or content + * + * @enum { string } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ +export class OptionWidthMode { + /** + * The menu width fit the content. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * The menu width fit the content. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly FIT_CONTENT: OptionWidthMode = new OptionWidthMode("fit_content",0) + /** + * The menu width fit the trigger. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * The menu width fit the trigger. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly FIT_TRIGGER: OptionWidthMode = new OptionWidthMode("fit_trigger",1) + constructor(value: string, ordinal: KInt) { + this.value = value + this.ordinal = ordinal + } + public readonly value: string + public readonly ordinal: KInt + public static of(arg0: string): OptionWidthMode { + if ((arg0) == (OptionWidthMode.FIT_CONTENT.value)) { + return OptionWidthMode.FIT_CONTENT + } + if ((arg0) == (OptionWidthMode.FIT_TRIGGER.value)) { + return OptionWidthMode.FIT_TRIGGER + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Letter type in text + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Letter type in text + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Letter type in text + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Letter type in text + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ +export class TextCase { + /** + * The default is normal. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * The default is normal. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * The default is normal. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * The default is normal. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Normal: TextCase = new TextCase(0) + /** + * The text is all lowercase. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * The text is all lowercase. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * The text is all lowercase. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * The text is all lowercase. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly LowerCase: TextCase = new TextCase(1) + /** + * The text is all uppercase. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * The text is all uppercase. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * The text is all uppercase. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * The text is all uppercase. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly UpperCase: TextCase = new TextCase(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): TextCase { + if ((arg0) == (TextCase.Normal.value)) { + return TextCase.Normal + } + if ((arg0) == (TextCase.LowerCase.value)) { + return TextCase.LowerCase + } + if ((arg0) == (TextCase.UpperCase.value)) { + return TextCase.UpperCase + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Enum of ellipsisMode + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * Enum of ellipsisMode + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ +export class EllipsisMode { + /** + * The ellipsis is in the head. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * The ellipsis is in the head. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly START: EllipsisMode = new EllipsisMode(0) + /** + * The ellipsis is in the middle. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * The ellipsis is in the middle. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly CENTER: EllipsisMode = new EllipsisMode(1) + /** + * The ellipsis is at the end. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * The ellipsis is at the end. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly END: EllipsisMode = new EllipsisMode(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): EllipsisMode { + if ((arg0) == (EllipsisMode.START.value)) { + return EllipsisMode.START + } + if ((arg0) == (EllipsisMode.CENTER.value)) { + return EllipsisMode.CENTER + } + if ((arg0) == (EllipsisMode.END.value)) { + return EllipsisMode.END + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Type of text selectable. + * + * @enum {number} + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ +export class TextSelectableMode { + /** + * set text selectable and unfocusable. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly SELECTABLE_UNFOCUSABLE: TextSelectableMode = new TextSelectableMode(0) + /** + * set text selectable and focusable. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly SELECTABLE_FOCUSABLE: TextSelectableMode = new TextSelectableMode(1) + /** + * set text unselectable and unfocusable. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly UNSELECTABLE: TextSelectableMode = new TextSelectableMode(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): TextSelectableMode { + if ((arg0) == (TextSelectableMode.SELECTABLE_UNFOCUSABLE.value)) { + return TextSelectableMode.SELECTABLE_UNFOCUSABLE + } + if ((arg0) == (TextSelectableMode.SELECTABLE_FOCUSABLE.value)) { + return TextSelectableMode.SELECTABLE_FOCUSABLE + } + if ((arg0) == (TextSelectableMode.UNSELECTABLE.value)) { + return TextSelectableMode.UNSELECTABLE + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Text content style. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Text content style. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class TextContentStyle { + /** + * Text content default style. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Text content default style. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly DEFAULT: TextContentStyle = new TextContentStyle(0) + /** + * Text content inline style. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Text content inline style. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly INLINE: TextContentStyle = new TextContentStyle(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): TextContentStyle { + if ((arg0) == (TextContentStyle.DEFAULT.value)) { + return TextContentStyle.DEFAULT + } + if ((arg0) == (TextContentStyle.INLINE.value)) { + return TextContentStyle.INLINE + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * The type of XComponent + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * The type of XComponent + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ +/** + * The type of XComponent + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ +export class XComponentType { + /** + * Surface type. The default type is used. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Surface type. The default type is used. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ +/** + * Surface type. The default type is used. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly SURFACE: XComponentType = new XComponentType(0) + /** + * Component type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Component type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + * @deprecated since 12 + */ + static readonly COMPONENT: XComponentType = new XComponentType(1) + /** + * Texture type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Texture type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ + static readonly TEXTURE: XComponentType = new XComponentType(2) + /** + * Node type. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly NODE: XComponentType = new XComponentType(3) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): XComponentType { + if ((arg0) == (XComponentType.SURFACE.value)) { + return XComponentType.SURFACE + } + if ((arg0) == (XComponentType.COMPONENT.value)) { + return XComponentType.COMPONENT + } + if ((arg0) == (XComponentType.TEXTURE.value)) { + return XComponentType.TEXTURE + } + if ((arg0) == (XComponentType.NODE.value)) { + return XComponentType.NODE + } + throw new Error(`Enum member '${arg0}' not found`) + } } \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkFormComponent.ts b/arkoala-arkts/arkui/src/generated/ArkFormComponent.ts index 8e610d468..420f3e456 100644 --- a/arkoala-arkts/arkui/src/generated/ArkFormComponent.ts +++ b/arkoala-arkts/arkui/src/generated/ArkFormComponent.ts @@ -22,32 +22,84 @@ import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from " import { ComponentBase } from "./ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" -import { ArkFormComponentPeer, SizeValuesType } from "./peers/ArkFormComponentPeer" +import { ArkFormComponentPeer } from "./peers/ArkFormComponentPeer" import { UseEventsProperties } from "./use_properties" -import { LITERAL_WidthNumberHeightNumber } from "./SyntheticDeclarations" -import { FormComponentAttribute, FormCallbackInfo, FormComponentInterface } from "./ArkFormComponentInterfaces" -import { Callback } from "./ArkCommonInterfaces" +import { Length, Resource, SizeOptions, ConstraintSizeOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, ResourceStr, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, PX, VP, FP, LPX, Percentage, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, LITERAL_TopLengthRightLengthBottomLengthLeftLength, LITERAL_AlignAlignment, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image, IMPORT_default_VisualEffect_FROM_api_ohos_graphics_uiEffect, IMPORT_default_Filter_FROM_api_ohos_graphics_uiEffect, LITERAL_TopBorderStyleRightBorderStyleBottomBorderStyleLeftBorderStyle, LITERAL_TopResourceColorRightResourceColorBottomResourceColorLeftResourceColor, LITERAL_TopLeftLengthTopRightLengthBottomLeftLengthBottomRightLength, LITERAL_TopOutlineStyleRightOutlineStyleBottomOutlineStyleLeftOutlineStyle, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, LITERAL_TopDimensionRightDimensionBottomDimensionLeftDimension, LITERAL_TopLeftDimensionTopRightDimensionBottomLeftDimensionBottomRightDimension, LITERAL_SpanNumberOffsetNumber, LITERAL_XsNumberLITERALSpanNumberOffsetNumberSmNumberLITERALSpanNumberOffsetNumberMdNumberLITERALSpanNumberOffsetNumberLgNumberLITERALSpanNumberOffsetNumber, IMPORT_default_UniformDataType_FROM_api_ohos_data_uniformTypeDescriptor, IMPORT_ComponentContent_T_FROM_api_arkui_ComponentContent, LITERAL_AngleNumberstringDirectionGradientDirectionColorsArrayResourceColornumberRepeatingBoolean, LITERAL_CenterLengthLengthStartNumberstringEndNumberstringRotationNumberstringColorsArrayResourceColornumberRepeatingBoolean, LITERAL_CenterLengthLengthRadiusNumberstringColorsArrayResourceColornumberRepeatingBoolean, IMPORT_default_Blender_FROM_api_ohos_graphics_uiEffect, IMPORT_CircleShape_FROM_api_ohos_arkui_shape, IMPORT_EllipseShape_FROM_api_ohos_arkui_shape, IMPORT_PathShape_FROM_api_ohos_arkui_shape, IMPORT_RectShape_FROM_api_ohos_arkui_shape, LITERAL_WidthNumberHeightNumber, LITERAL_ErrcodeNumberMsgString, IMPORT_default_FROM_api_ohos_app_ability_Want } from "./SyntheticDeclarations" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { Optional, SafeAreaType, SafeAreaEdge, Rectangle, TouchTestInfo, TouchResult, CustomBuilder, PixelRoundPolicy, PixelMap, BlurStyle, BackgroundBlurStyleOptions, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, ForegroundBlurStyleOptions, BorderImageOption, OutlineStyle, ClickEvent, Callback, HoverEvent, AccessibilityCallback, AccessibilityHoverEvent, MouseEvent, TouchEvent, KeyEvent, AnimateParam, TransitionOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, sharedTransitionOptions, AlignRuleOption, LocalizedAlignRuleOptions, ChainStyle, ClickEffect, DragEvent, DragItemInfo, UniformDataType, DragPreviewOptions, DragInteractionOptions, PreDragStatus, ComponentContent, OverlayOptions, MotionPathOptions, ShadowOptions, ShadowStyle, BlendMode, BlendApplyType, Blender, CircleShape, EllipseShape, PathShape, RectShape, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, StateStyles, VisibleAreaChangeCallback, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback } from "./ArkCommonInterfaces" +import { HitTestMode, Alignment, Color, ImageRepeat, ImageSize, BorderStyle, ColoringStrategy, HoverEffect, Visibility, ItemAlign, Direction, Axis, GradientDirection, ResponseType, FunctionKey, ModifierKey, ObscuredReasons, RenderFit } from "./ArkEnumsInterfaces" +import { ResizableOptions } from "./ArkImageInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ConflictedDeclarations" +import { GestureType, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureMask, GestureInfo, BaseGestureEvent, GestureJudgeResult } from "./ArkGestureInterfaces" +import { CircleAttribute } from "./ArkCircleInterfaces" +import { EllipseAttribute } from "./ArkEllipseInterfaces" +import { PathAttribute } from "./ArkPathInterfaces" +import { RectAttribute } from "./ArkRectInterfaces" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./ArkAttributeModifierMaterialized" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureRecognizer } from "./ArkGestureRecognizerMaterialized" +import { FormComponentAttribute, FormDimension, FormCallbackInfo, FormInfo, FormComponentInterface, FormRenderingMode, FormShape } from "./ArkFormComponentInterfaces" /** @memo:stable */ export class ArkFormComponentComponent extends ArkCommonMethodComponent { protected peer?: ArkFormComponentPeer /** @memo */ - setFormComponentOptions(): this { + setFormComponentOptions(value: FormInfo): this { if (this.checkPriority("setFormComponentOptions")) { - this.peer?.setFormComponentOptionsAttribute() + const value_casted = value as (FormInfo) + this.peer?.setFormComponentOptionsAttribute(value_casted) return this } return this } /** @memo */ - size(value: SizeValuesType): this { + size(value: LITERAL_WidthNumberHeightNumber): this { if (this.checkPriority("size")) { - const value_casted = value as (SizeValuesType) + const value_casted = value as (LITERAL_WidthNumberHeightNumber) this.peer?.sizeAttribute(value_casted) return this } return this } /** @memo */ + moduleName(value: string): this { + if (this.checkPriority("moduleName")) { + const value_casted = value as (string) + this.peer?.moduleNameAttribute(value_casted) + return this + } + return this + } + /** @memo */ + dimension(value: FormDimension): this { + if (this.checkPriority("dimension")) { + const value_casted = value as (FormDimension) + this.peer?.dimensionAttribute(value_casted) + return this + } + return this + } + /** @memo */ + allowUpdate(value: boolean): this { + if (this.checkPriority("allowUpdate")) { + const value_casted = value as (boolean) + this.peer?.allowUpdateAttribute(value_casted) + return this + } + return this + } + /** @memo */ + visibility(value: Visibility): this { + if (this.checkPriority("visibility")) { + const value_casted = value as (Visibility) + this.peer?.visibilityAttribute(value_casted) + return this + } + return this + } + /** @memo */ onAcquired(callback: Callback): this { if (this.checkPriority("onAcquired")) { const callback_casted = callback as (Callback) @@ -56,6 +108,42 @@ export class ArkFormComponentComponent extends ArkCommonMethodComponent { } return this } + /** @memo */ + onError(callback: ((info: LITERAL_ErrcodeNumberMsgString) => void)): this { + if (this.checkPriority("onError")) { + const callback_casted = callback as (((info: LITERAL_ErrcodeNumberMsgString) => void)) + this.peer?.onErrorAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onRouter(callback: ((info: Object) => void)): this { + if (this.checkPriority("onRouter")) { + const callback_casted = callback as (((info: Object) => void)) + this.peer?.onRouterAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onUninstall(callback: Callback): this { + if (this.checkPriority("onUninstall")) { + const callback_casted = callback as (Callback) + this.peer?.onUninstallAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onLoad(callback: (() => void)): this { + if (this.checkPriority("onLoad")) { + const callback_casted = callback as ((() => void)) + this.peer?.onLoadAttribute(callback_casted) + return this + } + return this + } public applyAttributesFinish(): void { // we calls this function outside of class, so need to make it public super.applyAttributesFinish() @@ -68,13 +156,13 @@ export function ArkFormComponent( style: ((attributes: ArkFormComponentComponent) => void) | undefined, /** @memo */ content_: (() => void) | undefined, - + value: FormInfo ) { const receiver = remember(() => { return new ArkFormComponentComponent() }) NodeAttach((): ArkFormComponentPeer => ArkFormComponentPeer.create(ArkUINodeType.FormComponent, receiver), (_: ArkFormComponentPeer) => { - receiver.setFormComponentOptions() + receiver.setFormComponentOptions(value) style?.(receiver) content_?.() receiver.applyAttributesFinish() diff --git a/arkoala-arkts/arkui/src/generated/ArkFormComponentInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkFormComponentInterfaces.ts index 8d47c1d60..61066d864 100644 --- a/arkoala-arkts/arkui/src/generated/ArkFormComponentInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkFormComponentInterfaces.ts @@ -1,13 +1,239 @@ -import { LITERAL_WidthNumberHeightNumber } from "./SyntheticDeclarations" -import { Callback } from "./ArkCommonInterfaces" +import { Length, Resource, SizeOptions, ConstraintSizeOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, ResourceStr, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, PX, VP, FP, LPX, Percentage, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, LITERAL_TopLengthRightLengthBottomLengthLeftLength, LITERAL_AlignAlignment, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image, IMPORT_default_VisualEffect_FROM_api_ohos_graphics_uiEffect, IMPORT_default_Filter_FROM_api_ohos_graphics_uiEffect, LITERAL_TopBorderStyleRightBorderStyleBottomBorderStyleLeftBorderStyle, LITERAL_TopResourceColorRightResourceColorBottomResourceColorLeftResourceColor, LITERAL_TopLeftLengthTopRightLengthBottomLeftLengthBottomRightLength, LITERAL_TopOutlineStyleRightOutlineStyleBottomOutlineStyleLeftOutlineStyle, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, LITERAL_TopDimensionRightDimensionBottomDimensionLeftDimension, LITERAL_TopLeftDimensionTopRightDimensionBottomLeftDimensionBottomRightDimension, LITERAL_SpanNumberOffsetNumber, LITERAL_XsNumberLITERALSpanNumberOffsetNumberSmNumberLITERALSpanNumberOffsetNumberMdNumberLITERALSpanNumberOffsetNumberLgNumberLITERALSpanNumberOffsetNumber, IMPORT_default_UniformDataType_FROM_api_ohos_data_uniformTypeDescriptor, IMPORT_ComponentContent_T_FROM_api_arkui_ComponentContent, LITERAL_AngleNumberstringDirectionGradientDirectionColorsArrayResourceColornumberRepeatingBoolean, LITERAL_CenterLengthLengthStartNumberstringEndNumberstringRotationNumberstringColorsArrayResourceColornumberRepeatingBoolean, LITERAL_CenterLengthLengthRadiusNumberstringColorsArrayResourceColornumberRepeatingBoolean, IMPORT_default_Blender_FROM_api_ohos_graphics_uiEffect, IMPORT_CircleShape_FROM_api_ohos_arkui_shape, IMPORT_EllipseShape_FROM_api_ohos_arkui_shape, IMPORT_PathShape_FROM_api_ohos_arkui_shape, IMPORT_RectShape_FROM_api_ohos_arkui_shape, LITERAL_WidthNumberHeightNumber, LITERAL_ErrcodeNumberMsgString, IMPORT_default_FROM_api_ohos_app_ability_Want } from "./SyntheticDeclarations" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { Optional, SafeAreaType, SafeAreaEdge, Rectangle, TouchTestInfo, TouchResult, CustomBuilder, PixelRoundPolicy, PixelMap, BlurStyle, BackgroundBlurStyleOptions, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, ForegroundBlurStyleOptions, BorderImageOption, OutlineStyle, ClickEvent, Callback, HoverEvent, AccessibilityCallback, AccessibilityHoverEvent, MouseEvent, TouchEvent, KeyEvent, AnimateParam, TransitionOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, sharedTransitionOptions, AlignRuleOption, LocalizedAlignRuleOptions, ChainStyle, ClickEffect, DragEvent, DragItemInfo, UniformDataType, DragPreviewOptions, DragInteractionOptions, PreDragStatus, ComponentContent, OverlayOptions, MotionPathOptions, ShadowOptions, ShadowStyle, BlendMode, BlendApplyType, Blender, CircleShape, EllipseShape, PathShape, RectShape, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, StateStyles, VisibleAreaChangeCallback, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback } from "./ArkCommonInterfaces" +import { HitTestMode, Alignment, Color, ImageRepeat, ImageSize, BorderStyle, ColoringStrategy, HoverEffect, Visibility, ItemAlign, Direction, Axis, GradientDirection, ResponseType, FunctionKey, ModifierKey, ObscuredReasons, RenderFit } from "./ArkEnumsInterfaces" +import { ResizableOptions } from "./ArkImageInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ConflictedDeclarations" +import { GestureType, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureMask, GestureInfo, BaseGestureEvent, GestureJudgeResult } from "./ArkGestureInterfaces" +import { CircleAttribute } from "./ArkCircleInterfaces" +import { EllipseAttribute } from "./ArkEllipseInterfaces" +import { PathAttribute } from "./ArkPathInterfaces" +import { RectAttribute } from "./ArkRectInterfaces" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./ArkAttributeModifierMaterialized" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureRecognizer } from "./ArkGestureRecognizerMaterialized" import { KInt } from "@koalaui/interop" +/* + * Copyright (c) 2021 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +/** + * @file + * @kit ArkUI + */ +/** + * Defines the FormDimension enum. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @systemapi + * @since 7 + */ +export class FormDimension { + /** + * 1 x 2 cards + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @systemapi + * @since 7 + */ + static readonly Dimension_1_2: FormDimension = new FormDimension(0) + /** + * 2 x 2 cards + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @systemapi + * @since 7 + */ + static readonly Dimension_2_2: FormDimension = new FormDimension(1) + /** + * 2 x 4 cards + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @systemapi + * @since 7 + */ + static readonly Dimension_2_4: FormDimension = new FormDimension(2) + /** + * 4 x 4 cards + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @systemapi + * @since 7 + */ + static readonly Dimension_4_4: FormDimension = new FormDimension(3) + /** + * 2 x 1 cards + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @systemapi + * @since 9 + */ + static readonly Dimension_2_1: FormDimension = new FormDimension(4) + /** + * 1 x 1 cards + * The default value is 6 + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @systemapi + * @since 11 + */ + static readonly DIMENSION_1_1: FormDimension = new FormDimension(6) + /** + * 6 x 4 cards + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @systemapi + * @since 12 + */ + static readonly DIMENSION_6_4: FormDimension = new FormDimension(6) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): FormDimension { + if ((arg0) == (FormDimension.Dimension_1_2.value)) { + return FormDimension.Dimension_1_2 + } + if ((arg0) == (FormDimension.Dimension_2_2.value)) { + return FormDimension.Dimension_2_2 + } + if ((arg0) == (FormDimension.Dimension_2_4.value)) { + return FormDimension.Dimension_2_4 + } + if ((arg0) == (FormDimension.Dimension_4_4.value)) { + return FormDimension.Dimension_4_4 + } + if ((arg0) == (FormDimension.Dimension_2_1.value)) { + return FormDimension.Dimension_2_1 + } + if ((arg0) == (FormDimension.DIMENSION_1_1.value)) { + return FormDimension.DIMENSION_1_1 + } + if ((arg0) == (FormDimension.DIMENSION_6_4.value)) { + return FormDimension.DIMENSION_6_4 + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Defines the FormRenderingMode enum. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @systemapi + * @since 11 + */ +export class FormRenderingMode { + /** + * Full color mode, this is default value + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @systemapi + * @since 11 + */ + static readonly FULL_COLOR: FormRenderingMode = new FormRenderingMode(0) + /** + * single color mode + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @systemapi + * @since 11 + */ + static readonly SINGLE_COLOR: FormRenderingMode = new FormRenderingMode(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): FormRenderingMode { + if ((arg0) == (FormRenderingMode.FULL_COLOR.value)) { + return FormRenderingMode.FULL_COLOR + } + if ((arg0) == (FormRenderingMode.SINGLE_COLOR.value)) { + return FormRenderingMode.SINGLE_COLOR + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Defines the FormShape enum. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @systemapi + * @since 12 + */ +export class FormShape { + /** + * The rect shape. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @systemapi + * @since 12 + */ + static readonly RECT: FormShape = new FormShape(1) + /** + * The circle shape. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @systemapi + * @since 12 + */ + static readonly CIRCLE: FormShape = new FormShape(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): FormShape { + if ((arg0) == (FormShape.RECT.value)) { + return FormShape.RECT + } + if ((arg0) == (FormShape.CIRCLE.value)) { + return FormShape.CIRCLE + } + throw new Error(`Enum member '${arg0}' not found`) + } +} export interface FormComponentAttribute { size(value: LITERAL_WidthNumberHeightNumber): FormComponentAttribute; + moduleName(value: string): FormComponentAttribute; + dimension(value: FormDimension): FormComponentAttribute; + allowUpdate(value: boolean): FormComponentAttribute; + visibility(value: Visibility): FormComponentAttribute; onAcquired(callback: Callback): FormComponentAttribute; + onError(callback: ((info: LITERAL_ErrcodeNumberMsgString) => void)): FormComponentAttribute; + onRouter(callback: ((info: Object) => void)): FormComponentAttribute; + onUninstall(callback: Callback): FormComponentAttribute; + onLoad(callback: (() => void)): FormComponentAttribute; } export interface FormComponentInterface { } export interface FormCallbackInfo { id: number idString: string +} +export interface FormInfo { + id: number | string + name: string + bundle: string + ability: string + module: string + dimension?: FormDimension + temporary?: boolean + want?: IMPORT_default_FROM_api_ohos_app_ability_Want + renderingMode?: FormRenderingMode + shape?: FormShape } \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkGestureInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkGestureInterfaces.ts index 48941844d..088e9031e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGestureInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGestureInterfaces.ts @@ -1,7 +1,10 @@ -import { SourceTool, BaseEvent } from "./ArkCommonInterfaces" +import { BaseEvent, EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" +import { LITERAL_FingersNumberRepeatBooleanDurationNumber, LITERAL_FingersNumberDirectionPanDirectionDistanceNumber, LITERAL_FingersNumberDistanceNumber, LITERAL_FingersNumberDirectionSwipeDirectionSpeedNumber, LITERAL_FingersNumberAngleNumber } from "./SyntheticDeclarations" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { GestureControl_GestureType } from "./ConflictedDeclarations" import { KInt } from "@koalaui/interop" /* - * Copyright (c) 2024 Huawei Device Co., Ltd. + * Copyright (c) 2021-2023 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -14,25 +17,552 @@ import { KInt } from "@koalaui/interop" * See the License for the specific language governing permissions and * limitations under the License. */ -export class GesturePriority { - static readonly NORMAL: GesturePriority = new GesturePriority(0) - static readonly PRIORITY: GesturePriority = new GesturePriority(1) +/** + * @file + * @kit ArkUI + */ +/** + * Creating an Object + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Creating an Object + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Creating an Object + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class PanDirection { + /** + * Default. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Default. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Default. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly None: PanDirection = new PanDirection(0) + /** + * Sliding horizontally. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Sliding horizontally. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Sliding horizontally. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Horizontal: PanDirection = new PanDirection(1) + /** + * Sliding left. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Sliding left. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Sliding left. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Left: PanDirection = new PanDirection(2) + /** + * Sliding right. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Sliding right. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Sliding right. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Right: PanDirection = new PanDirection(3) + /** + * Sliding Vertical + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Sliding Vertical + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Sliding Vertical + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Vertical: PanDirection = new PanDirection(4) + /** + * Sliding up. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Sliding up. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Sliding up. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Up: PanDirection = new PanDirection(5) + /** + * Sliding Down. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Sliding Down. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Sliding Down. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Down: PanDirection = new PanDirection(6) + /** + * Sliding in all directions. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Sliding in all directions. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Sliding in all directions. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly All: PanDirection = new PanDirection(7) constructor(value: KInt) { this.value = value } public readonly value: KInt - public static of(arg0: KInt): GesturePriority { - if ((arg0) == (GesturePriority.NORMAL.value)) { - return GesturePriority.NORMAL + public static of(arg0: KInt): PanDirection { + if ((arg0) == (PanDirection.None.value)) { + return PanDirection.None } - if ((arg0) == (GesturePriority.PRIORITY.value)) { - return GesturePriority.PRIORITY + if ((arg0) == (PanDirection.Horizontal.value)) { + return PanDirection.Horizontal + } + if ((arg0) == (PanDirection.Left.value)) { + return PanDirection.Left + } + if ((arg0) == (PanDirection.Right.value)) { + return PanDirection.Right + } + if ((arg0) == (PanDirection.Vertical.value)) { + return PanDirection.Vertical + } + if ((arg0) == (PanDirection.Up.value)) { + return PanDirection.Up + } + if ((arg0) == (PanDirection.Down.value)) { + return PanDirection.Down + } + if ((arg0) == (PanDirection.All.value)) { + return PanDirection.All + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Creating an Object + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * Creating an Object + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Creating an Object + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class SwipeDirection { + /** + * Default. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * Default. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Default. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly None: SwipeDirection = new SwipeDirection(0) + /** + * Sliding horizontally. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * Sliding horizontally. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Sliding horizontally. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Horizontal: SwipeDirection = new SwipeDirection(1) + /** + * Sliding Vertical + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * Sliding Vertical + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Sliding Vertical + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Vertical: SwipeDirection = new SwipeDirection(2) + /** + * Sliding in all directions. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * Sliding in all directions. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Sliding in all directions. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly All: SwipeDirection = new SwipeDirection(3) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): SwipeDirection { + if ((arg0) == (SwipeDirection.None.value)) { + return SwipeDirection.None + } + if ((arg0) == (SwipeDirection.Horizontal.value)) { + return SwipeDirection.Horizontal + } + if ((arg0) == (SwipeDirection.Vertical.value)) { + return SwipeDirection.Vertical + } + if ((arg0) == (SwipeDirection.All.value)) { + return SwipeDirection.All + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Creating an Object + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Creating an Object + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Creating an Object + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class GestureMode { + /** + * Sequential gesture recognition is performed in sequence according to the gesture registration sequence. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Sequential gesture recognition is performed in sequence according to the gesture registration sequence. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Sequential gesture recognition is performed in sequence according to the gesture registration sequence. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Sequence: GestureMode = new GestureMode(0) + /** + * Simultaneous recognition. Registration gestures participate in recognition. Everything can be triggered. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Simultaneous recognition. Registration gestures participate in recognition. Everything can be triggered. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Simultaneous recognition. Registration gestures participate in recognition. Everything can be triggered. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Parallel: GestureMode = new GestureMode(1) + /** + * Mutually exclusive recognition. Only one gesture is successfully recognized. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Mutually exclusive recognition. Only one gesture is successfully recognized. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Mutually exclusive recognition. Only one gesture is successfully recognized. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Exclusive: GestureMode = new GestureMode(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): GestureMode { + if ((arg0) == (GestureMode.Sequence.value)) { + return GestureMode.Sequence + } + if ((arg0) == (GestureMode.Parallel.value)) { + return GestureMode.Parallel + } + if ((arg0) == (GestureMode.Exclusive.value)) { + return GestureMode.Exclusive } throw new Error(`Enum member '${arg0}' not found`) } } +/** + * Creating an Object + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Creating an Object + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Creating an Object + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ export class GestureMask { + /** + * High-priority response to the current gesture.When the current gesture fails to be recognized, other gesture responses are triggered.For gestures with the same priority, responses are performed based on the recognition sequence. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * High-priority response to the current gesture.When the current gesture fails to be recognized, other gesture responses are triggered.For gestures with the same priority, responses are performed based on the recognition sequence. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * High-priority response to the current gesture.When the current gesture fails to be recognized, other gesture responses are triggered.For gestures with the same priority, responses are performed based on the recognition sequence. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ static readonly Normal: GestureMask = new GestureMask(0) + /** + * Ignore internal gestures and recognize the current gesture first. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Ignore internal gestures and recognize the current gesture first. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Ignore internal gestures and recognize the current gesture first. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ static readonly IgnoreInternal: GestureMask = new GestureMask(1) constructor(value: KInt) { this.value = value @@ -48,12 +578,175 @@ export class GestureMask { throw new Error(`Enum member '${arg0}' not found`) } } +/** + * Creating an Object + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ +export class GesturePriority { + /** + * The normal gesture priority. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly NORMAL: GesturePriority = new GesturePriority(0) + /** + * The high gesture priority. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly PRIORITY: GesturePriority = new GesturePriority(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): GesturePriority { + if ((arg0) == (GesturePriority.NORMAL.value)) { + return GesturePriority.NORMAL + } + if ((arg0) == (GesturePriority.PRIORITY.value)) { + return GesturePriority.PRIORITY + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Creating an Object + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * Creating an Object + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ +export class GestureJudgeResult { + /** + * The system gesture determination is not affected. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * The system gesture determination is not affected. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly CONTINUE: GestureJudgeResult = new GestureJudgeResult(0) + /** + * The user-defined gesture determination result of the current component is fail. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * The user-defined gesture determination result of the current component is fail. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly REJECT: GestureJudgeResult = new GestureJudgeResult(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): GestureJudgeResult { + if ((arg0) == (GestureJudgeResult.CONTINUE.value)) { + return GestureJudgeResult.CONTINUE + } + if ((arg0) == (GestureJudgeResult.REJECT.value)) { + return GestureJudgeResult.REJECT + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Creating an Object + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ export class GestureRecognizerState { + /** + * Ready state. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ static readonly READY: GestureRecognizerState = new GestureRecognizerState(0) + /** + * Detecting state. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ static readonly DETECTING: GestureRecognizerState = new GestureRecognizerState(1) + /** + * Pending state. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ static readonly PENDING: GestureRecognizerState = new GestureRecognizerState(2) + /** + * Blocked state. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ static readonly BLOCKED: GestureRecognizerState = new GestureRecognizerState(3) + /** + * Successful state. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ static readonly SUCCESSFUL: GestureRecognizerState = new GestureRecognizerState(4) + /** + * Failed state. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ static readonly FAILED: GestureRecognizerState = new GestureRecognizerState(5) constructor(value: KInt) { this.value = value @@ -81,31 +774,39 @@ export class GestureRecognizerState { throw new Error(`Enum member '${arg0}' not found`) } } -export class GestureJudgeResult { - static readonly CONTINUE: GestureJudgeResult = new GestureJudgeResult(0) - static readonly REJECT: GestureJudgeResult = new GestureJudgeResult(1) - constructor(value: KInt) { - this.value = value - } - public readonly value: KInt - public static of(arg0: KInt): GestureJudgeResult { - if ((arg0) == (GestureJudgeResult.CONTINUE.value)) { - return GestureJudgeResult.CONTINUE - } - if ((arg0) == (GestureJudgeResult.REJECT.value)) { - return GestureJudgeResult.REJECT - } - throw new Error(`Enum member '${arg0}' not found`) - } -} -export declare class GestureHandler implements GestureInterface { - tag(tag: string): T; - allowedTypes(types: Array): T; +export declare type GestureType = TapGestureInterface | LongPressGestureInterface | PanGestureInterface | PinchGestureInterface | SwipeGestureInterface | RotationGestureInterface | GestureGroupInterface +export interface TapGestureInterface { } export interface GestureInterface { } -export interface BaseGestureEvent { +export interface TapGestureParameters { + count?: number + fingers?: number + distanceThreshold?: number +} +export interface GestureEvent { + target: EventTarget + timestamp: number + source: SourceType + axisHorizontal?: number + axisVertical?: number + pressure: number + tiltX: number + tiltY: number + sourceTool: SourceTool + deviceId?: number + repeat: boolean fingerList: FingerInfo[] + offsetX: number + offsetY: number + angle: number + speed: number + scale: number + pinchCenterX: number + pinchCenterY: number + velocityX: number + velocityY: number + velocity: number } export interface FingerInfo { id: number @@ -115,4 +816,37 @@ export interface FingerInfo { localY: number displayX: number displayY: number +} +export interface LongPressGestureInterface { +} +export interface PanGestureInterface { +} +export interface PinchGestureInterface { +} +export interface SwipeGestureInterface { +} +export interface RotationGestureInterface { +} +export interface GestureGroupInterface { +} +export declare class GestureHandler implements GestureInterface { + tag(tag: string): T; +} +export interface GestureInfo { + tag?: string + type: GestureControl_GestureType + isSystemGesture: boolean +} +export interface BaseGestureEvent { + target: EventTarget + timestamp: number + source: SourceType + axisHorizontal?: number + axisVertical?: number + pressure: number + tiltX: number + tiltY: number + sourceTool: SourceTool + deviceId?: number + fingerList: FingerInfo[] } \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkGestureModifierMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkGestureModifierMaterialized.ts index f785b54ca..368456dcc 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGestureModifierMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGestureModifierMaterialized.ts @@ -58,27 +58,14 @@ export class GestureModifier implements INTERFACE_GestureModifier { static getFinalizer(): KPointer { return NativeModule._GestureModifier_getFinalizer() } - applyGesture(event?: UIGestureEvent): void { - const event_type = runtimeType(event) - if ((((RuntimeType.OBJECT == event_type)))) { - if ((event) == (undefined)) { - throw new Error("Arg 'event' is null"); - } - const event_casted = event as (UIGestureEvent) - this.applyGesture1_serialize(event_casted) - } - if ((((RuntimeType.UNDEFINED == event_type)))) { - this.applyGesture0_serialize() - } - throw new Error("Can not select appropriate overload") + applyGesture(event: UIGestureEvent): void { + const event_casted = event as (UIGestureEvent) + this.applyGesture_serialize(event_casted) } - private applyGesture0_serialize(): void { - NativeModule._GestureModifier_applyGesture0(this.peer!.ptr); - } - private applyGesture1_serialize(event: UIGestureEvent): void { + private applyGesture_serialize(event: UIGestureEvent): void { const thisSerializer = SerializerBase.hold(createSerializer) thisSerializer.writeUIGestureEvent(event) - NativeModule._GestureModifier_applyGesture1(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); + NativeModule._GestureModifier_applyGesture(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); thisSerializer.release(); } } diff --git a/arkoala-arkts/arkui/src/generated/ArkGestureRecognizerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkGestureRecognizerMaterialized.ts index 40dd5c75f..276ee6810 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGestureRecognizerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGestureRecognizerMaterialized.ts @@ -81,6 +81,9 @@ export class GestureRecognizer { getEventTargetInfo(): EventTargetInfo { return this.getEventTargetInfo_serialize() } + isValid(): boolean { + return this.isValid_serialize() + } private getTag_serialize(): string { const retval = NativeModule._GestureRecognizer_getTag(this.peer!.ptr) return retval @@ -108,4 +111,8 @@ export class GestureRecognizer { const retval = NativeModule._GestureRecognizer_getEventTargetInfo(this.peer!.ptr) throw new Error("Object deserialization is not implemented.") } + private isValid_serialize(): boolean { + const retval = NativeModule._GestureRecognizer_isValid(this.peer!.ptr) + return retval + } } diff --git a/arkoala-arkts/arkui/src/generated/ArkImage.ts b/arkoala-arkts/arkui/src/generated/ArkImage.ts index 125eb3e4b..b9e254f83 100644 --- a/arkoala-arkts/arkui/src/generated/ArkImage.ts +++ b/arkoala-arkts/arkui/src/generated/ArkImage.ts @@ -23,14 +23,277 @@ import { ComponentBase } from "./ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkImagePeer } from "./peers/ArkImagePeer" -import { ImageAttribute, ImageInterface } from "./ArkImageInterfaces" +import { UseEventsProperties } from "./use_properties" +import { Length, Resource, SizeOptions, ConstraintSizeOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, ResourceStr, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, PX, VP, FP, LPX, Percentage, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ColorFilter } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, LITERAL_TopLengthRightLengthBottomLengthLeftLength, LITERAL_AlignAlignment, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image, IMPORT_default_VisualEffect_FROM_api_ohos_graphics_uiEffect, IMPORT_default_Filter_FROM_api_ohos_graphics_uiEffect, LITERAL_TopBorderStyleRightBorderStyleBottomBorderStyleLeftBorderStyle, LITERAL_TopResourceColorRightResourceColorBottomResourceColorLeftResourceColor, LITERAL_TopLeftLengthTopRightLengthBottomLeftLengthBottomRightLength, LITERAL_TopOutlineStyleRightOutlineStyleBottomOutlineStyleLeftOutlineStyle, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, LITERAL_TopDimensionRightDimensionBottomDimensionLeftDimension, LITERAL_TopLeftDimensionTopRightDimensionBottomLeftDimensionBottomRightDimension, LITERAL_SpanNumberOffsetNumber, LITERAL_XsNumberLITERALSpanNumberOffsetNumberSmNumberLITERALSpanNumberOffsetNumberMdNumberLITERALSpanNumberOffsetNumberLgNumberLITERALSpanNumberOffsetNumber, IMPORT_default_UniformDataType_FROM_api_ohos_data_uniformTypeDescriptor, IMPORT_ComponentContent_T_FROM_api_arkui_ComponentContent, LITERAL_AngleNumberstringDirectionGradientDirectionColorsArrayResourceColornumberRepeatingBoolean, LITERAL_CenterLengthLengthStartNumberstringEndNumberstringRotationNumberstringColorsArrayResourceColornumberRepeatingBoolean, LITERAL_CenterLengthLengthRadiusNumberstringColorsArrayResourceColornumberRepeatingBoolean, IMPORT_default_Blender_FROM_api_ohos_graphics_uiEffect, IMPORT_CircleShape_FROM_api_ohos_arkui_shape, IMPORT_EllipseShape_FROM_api_ohos_arkui_shape, IMPORT_PathShape_FROM_api_ohos_arkui_shape, IMPORT_RectShape_FROM_api_ohos_arkui_shape, IMPORT_default_ColorFilter_FROM_api_ohos_graphics_drawing, LITERAL_WidthNumberHeightNumberComponentWidthNumberComponentHeightNumberLoadingStatusNumberContentWidthNumberContentHeightNumberContentOffsetXNumberContentOffsetYNumber, IMPORT_default_ResolutionQuality_FROM_api_ohos_multimedia_image, IMPORT_DrawableDescriptor_FROM_api_ohos_arkui_drawableDescriptor, IMPORT_default_Lattice_FROM_api_ohos_graphics_drawing } from "./SyntheticDeclarations" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { Optional, SafeAreaType, SafeAreaEdge, Rectangle, TouchTestInfo, TouchResult, CustomBuilder, PixelRoundPolicy, PixelMap, BlurStyle, BackgroundBlurStyleOptions, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, ForegroundBlurStyleOptions, BorderImageOption, OutlineStyle, ClickEvent, Callback, HoverEvent, AccessibilityCallback, AccessibilityHoverEvent, MouseEvent, TouchEvent, KeyEvent, AnimateParam, TransitionOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, sharedTransitionOptions, AlignRuleOption, LocalizedAlignRuleOptions, ChainStyle, ClickEffect, DragEvent, DragItemInfo, UniformDataType, DragPreviewOptions, DragInteractionOptions, PreDragStatus, ComponentContent, OverlayOptions, MotionPathOptions, ShadowOptions, ShadowStyle, BlendMode, BlendApplyType, Blender, CircleShape, EllipseShape, PathShape, RectShape, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, StateStyles, VisibleAreaChangeCallback, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, PointLightStyle } from "./ArkCommonInterfaces" +import { HitTestMode, Alignment, Color, ImageRepeat, ImageSize, BorderStyle, ColoringStrategy, HoverEffect, Visibility, ItemAlign, Direction, Axis, GradientDirection, ResponseType, FunctionKey, ModifierKey, ObscuredReasons, RenderFit, ImageFit, CopyOptions } from "./ArkEnumsInterfaces" +import { ResizableOptions, ImageAttribute, ImageRenderMode, DynamicRangeMode, ImageInterpolation, ImageSourceSize, DrawingColorFilter, ImageErrorCallback, ImageError, ResolutionQuality, DrawableDescriptor, ImageContent, ImageInterface, DrawingLattice } from "./ArkImageInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ConflictedDeclarations" +import { GestureType, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureMask, GestureInfo, BaseGestureEvent, GestureJudgeResult } from "./ArkGestureInterfaces" +import { CircleAttribute } from "./ArkCircleInterfaces" +import { EllipseAttribute } from "./ArkEllipseInterfaces" +import { PathAttribute } from "./ArkPathInterfaces" +import { RectAttribute } from "./ArkRectInterfaces" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./ArkAttributeModifierMaterialized" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureRecognizer } from "./ArkGestureRecognizerMaterialized" +import { ImageAnalyzerConfig, ImageAIOptions } from "./ArkImageCommonInterfaces" /** @memo:stable */ export class ArkImageComponent extends ArkCommonMethodComponent { protected peer?: ArkImagePeer /** @memo */ - setImageOptions(): this { + setImageOptions(src: PixelMap | ResourceStr | DrawableDescriptor | PixelMap | ResourceStr | DrawableDescriptor | PixelMap | ResourceStr | DrawableDescriptor | ImageContent, imageAIOptions?: ImageAIOptions): this { if (this.checkPriority("setImageOptions")) { - this.peer?.setImageOptionsAttribute() + const src_type = runtimeType(src) + const imageAIOptions_type = runtimeType(imageAIOptions) + if ((((RuntimeType.OBJECT == src_type)) || ((RuntimeType.STRING == src_type)) || ((RuntimeType.OBJECT == src_type)) || ((RuntimeType.OBJECT == src_type))) && (((RuntimeType.OBJECT == imageAIOptions_type)))) { + const src_casted = src as (PixelMap | ResourceStr | DrawableDescriptor) + if ((imageAIOptions) == (undefined)) { + throw new Error("Arg 'imageAIOptions' is null"); + } + const imageAIOptions_casted = imageAIOptions as (ImageAIOptions) + this.peer?.setImageOptions2Attribute(src_casted, imageAIOptions_casted) + return this + } + if ((((RuntimeType.OBJECT == src_type)) || ((RuntimeType.STRING == src_type)) || ((RuntimeType.OBJECT == src_type)) || ((RuntimeType.OBJECT == src_type))) && (((RuntimeType.UNDEFINED == imageAIOptions_type)))) { + const src_casted = src as (PixelMap | ResourceStr | DrawableDescriptor) + this.peer?.setImageOptions0Attribute(src_casted) + return this + } + if ((((RuntimeType.OBJECT == src_type)) || ((RuntimeType.STRING == src_type)) || ((RuntimeType.OBJECT == src_type)) || ((RuntimeType.OBJECT == src_type)) || ((RuntimeType.OBJECT == src_type))) && (((RuntimeType.UNDEFINED == imageAIOptions_type)))) { + const src_casted = src as (PixelMap | ResourceStr | DrawableDescriptor | ImageContent) + this.peer?.setImageOptions1Attribute(src_casted) + return this + } + throw new Error("Can not select appropriate overload") + } + return this + } + /** @memo */ + alt(value: string | Resource | PixelMap): this { + if (this.checkPriority("alt")) { + const value_casted = value as (string | Resource | PixelMap) + this.peer?.altAttribute(value_casted) + return this + } + return this + } + /** @memo */ + matchTextDirection(value: boolean): this { + if (this.checkPriority("matchTextDirection")) { + const value_casted = value as (boolean) + this.peer?.matchTextDirectionAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fitOriginalSize(value: boolean): this { + if (this.checkPriority("fitOriginalSize")) { + const value_casted = value as (boolean) + this.peer?.fitOriginalSizeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fillColor(value: ResourceColor): this { + if (this.checkPriority("fillColor")) { + const value_casted = value as (ResourceColor) + this.peer?.fillColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + objectFit(value: ImageFit): this { + if (this.checkPriority("objectFit")) { + const value_casted = value as (ImageFit) + this.peer?.objectFitAttribute(value_casted) + return this + } + return this + } + /** @memo */ + objectRepeat(value: ImageRepeat): this { + if (this.checkPriority("objectRepeat")) { + const value_casted = value as (ImageRepeat) + this.peer?.objectRepeatAttribute(value_casted) + return this + } + return this + } + /** @memo */ + autoResize(value: boolean): this { + if (this.checkPriority("autoResize")) { + const value_casted = value as (boolean) + this.peer?.autoResizeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + renderMode(value: ImageRenderMode): this { + if (this.checkPriority("renderMode")) { + const value_casted = value as (ImageRenderMode) + this.peer?.renderModeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + dynamicRangeMode(value: DynamicRangeMode): this { + if (this.checkPriority("dynamicRangeMode")) { + const value_casted = value as (DynamicRangeMode) + this.peer?.dynamicRangeModeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + interpolation(value: ImageInterpolation): this { + if (this.checkPriority("interpolation")) { + const value_casted = value as (ImageInterpolation) + this.peer?.interpolationAttribute(value_casted) + return this + } + return this + } + /** @memo */ + sourceSize(value: ImageSourceSize): this { + if (this.checkPriority("sourceSize")) { + const value_casted = value as (ImageSourceSize) + this.peer?.sourceSizeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + syncLoad(value: boolean): this { + if (this.checkPriority("syncLoad")) { + const value_casted = value as (boolean) + this.peer?.syncLoadAttribute(value_casted) + return this + } + return this + } + /** @memo */ + colorFilter(value: ColorFilter | DrawingColorFilter): this { + if (this.checkPriority("colorFilter")) { + const value_casted = value as (ColorFilter | DrawingColorFilter) + this.peer?.colorFilterAttribute(value_casted) + return this + } + return this + } + /** @memo */ + copyOption(value: CopyOptions): this { + if (this.checkPriority("copyOption")) { + const value_casted = value as (CopyOptions) + this.peer?.copyOptionAttribute(value_casted) + return this + } + return this + } + /** @memo */ + draggable(value: boolean): this { + if (this.checkPriority("draggable")) { + const value_casted = value as (boolean) + this.peer?.draggableAttribute(value_casted) + return this + } + return this + } + /** @memo */ + pointLight(value: PointLightStyle): this { + if (this.checkPriority("pointLight")) { + const value_casted = value as (PointLightStyle) + this.peer?.pointLightAttribute(value_casted) + return this + } + return this + } + /** @memo */ + edgeAntialiasing(value: number): this { + if (this.checkPriority("edgeAntialiasing")) { + const value_casted = value as (number) + this.peer?.edgeAntialiasingAttribute(value_casted) + return this + } + return this + } + /** @memo */ + onComplete(callback: ((event: LITERAL_WidthNumberHeightNumberComponentWidthNumberComponentHeightNumberLoadingStatusNumberContentWidthNumberContentHeightNumberContentOffsetXNumberContentOffsetYNumber|undefined) => void)): this { + if (this.checkPriority("onComplete")) { + const callback_casted = callback as (((event: LITERAL_WidthNumberHeightNumberComponentWidthNumberComponentHeightNumberLoadingStatusNumberContentWidthNumberContentHeightNumberContentOffsetXNumberContentOffsetYNumber|undefined) => void)) + this.peer?.onCompleteAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onError(callback: ImageErrorCallback): this { + if (this.checkPriority("onError")) { + const callback_casted = callback as (ImageErrorCallback) + this.peer?.onErrorAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onFinish(event: (() => void)): this { + if (this.checkPriority("onFinish")) { + const event_casted = event as ((() => void)) + this.peer?.onFinishAttribute(event_casted) + return this + } + return this + } + /** @memo */ + enableAnalyzer(enable: boolean): this { + if (this.checkPriority("enableAnalyzer")) { + const enable_casted = enable as (boolean) + this.peer?.enableAnalyzerAttribute(enable_casted) + return this + } + return this + } + /** @memo */ + analyzerConfig(config: ImageAnalyzerConfig): this { + if (this.checkPriority("analyzerConfig")) { + const config_casted = config as (ImageAnalyzerConfig) + this.peer?.analyzerConfigAttribute(config_casted) + return this + } + return this + } + /** @memo */ + resizable(value: ResizableOptions): this { + if (this.checkPriority("resizable")) { + const value_casted = value as (ResizableOptions) + this.peer?.resizableAttribute(value_casted) + return this + } + return this + } + /** @memo */ + privacySensitive(supported: boolean): this { + if (this.checkPriority("privacySensitive")) { + const supported_casted = supported as (boolean) + this.peer?.privacySensitiveAttribute(supported_casted) + return this + } + return this + } + /** @memo */ + enhancedImageQuality(imageQuality: ResolutionQuality): this { + if (this.checkPriority("enhancedImageQuality")) { + const imageQuality_casted = imageQuality as (ResolutionQuality) + this.peer?.enhancedImageQualityAttribute(imageQuality_casted) return this } return this @@ -47,13 +310,13 @@ export function ArkImage( style: ((attributes: ArkImageComponent) => void) | undefined, /** @memo */ content_: (() => void) | undefined, - + src: PixelMap | ResourceStr | DrawableDescriptor | PixelMap | ResourceStr | DrawableDescriptor | ImageContent | PixelMap | ResourceStr | DrawableDescriptor, imageAIOptions?: ImageAIOptions ) { const receiver = remember(() => { return new ArkImageComponent() }) NodeAttach((): ArkImagePeer => ArkImagePeer.create(ArkUINodeType.Image, receiver), (_: ArkImagePeer) => { - receiver.setImageOptions() + receiver.setImageOptions(src,imageAIOptions) style?.(receiver) content_?.() receiver.applyAttributesFinish() diff --git a/arkoala-arkts/arkui/src/generated/ArkImageInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkImageInterfaces.ts index 32ac2b49a..5fb635dd6 100644 --- a/arkoala-arkts/arkui/src/generated/ArkImageInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkImageInterfaces.ts @@ -1,5 +1,419 @@ +import { Length, Resource, SizeOptions, ConstraintSizeOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, ResourceStr, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, PX, VP, FP, LPX, Percentage, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ColorFilter } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, LITERAL_TopLengthRightLengthBottomLengthLeftLength, LITERAL_AlignAlignment, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image, IMPORT_default_VisualEffect_FROM_api_ohos_graphics_uiEffect, IMPORT_default_Filter_FROM_api_ohos_graphics_uiEffect, LITERAL_TopBorderStyleRightBorderStyleBottomBorderStyleLeftBorderStyle, LITERAL_TopResourceColorRightResourceColorBottomResourceColorLeftResourceColor, LITERAL_TopLeftLengthTopRightLengthBottomLeftLengthBottomRightLength, LITERAL_TopOutlineStyleRightOutlineStyleBottomOutlineStyleLeftOutlineStyle, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, LITERAL_TopDimensionRightDimensionBottomDimensionLeftDimension, LITERAL_TopLeftDimensionTopRightDimensionBottomLeftDimensionBottomRightDimension, LITERAL_SpanNumberOffsetNumber, LITERAL_XsNumberLITERALSpanNumberOffsetNumberSmNumberLITERALSpanNumberOffsetNumberMdNumberLITERALSpanNumberOffsetNumberLgNumberLITERALSpanNumberOffsetNumber, IMPORT_default_UniformDataType_FROM_api_ohos_data_uniformTypeDescriptor, IMPORT_ComponentContent_T_FROM_api_arkui_ComponentContent, LITERAL_AngleNumberstringDirectionGradientDirectionColorsArrayResourceColornumberRepeatingBoolean, LITERAL_CenterLengthLengthStartNumberstringEndNumberstringRotationNumberstringColorsArrayResourceColornumberRepeatingBoolean, LITERAL_CenterLengthLengthRadiusNumberstringColorsArrayResourceColornumberRepeatingBoolean, IMPORT_default_Blender_FROM_api_ohos_graphics_uiEffect, IMPORT_CircleShape_FROM_api_ohos_arkui_shape, IMPORT_EllipseShape_FROM_api_ohos_arkui_shape, IMPORT_PathShape_FROM_api_ohos_arkui_shape, IMPORT_RectShape_FROM_api_ohos_arkui_shape, IMPORT_default_ColorFilter_FROM_api_ohos_graphics_drawing, LITERAL_WidthNumberHeightNumberComponentWidthNumberComponentHeightNumberLoadingStatusNumberContentWidthNumberContentHeightNumberContentOffsetXNumberContentOffsetYNumber, IMPORT_default_ResolutionQuality_FROM_api_ohos_multimedia_image, IMPORT_DrawableDescriptor_FROM_api_ohos_arkui_drawableDescriptor, IMPORT_default_Lattice_FROM_api_ohos_graphics_drawing } from "./SyntheticDeclarations" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { Optional, SafeAreaType, SafeAreaEdge, Rectangle, TouchTestInfo, TouchResult, CustomBuilder, PixelRoundPolicy, PixelMap, BlurStyle, BackgroundBlurStyleOptions, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, ForegroundBlurStyleOptions, BorderImageOption, OutlineStyle, ClickEvent, Callback, HoverEvent, AccessibilityCallback, AccessibilityHoverEvent, MouseEvent, TouchEvent, KeyEvent, AnimateParam, TransitionOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, sharedTransitionOptions, AlignRuleOption, LocalizedAlignRuleOptions, ChainStyle, ClickEffect, DragEvent, DragItemInfo, UniformDataType, DragPreviewOptions, DragInteractionOptions, PreDragStatus, ComponentContent, OverlayOptions, MotionPathOptions, ShadowOptions, ShadowStyle, BlendMode, BlendApplyType, Blender, CircleShape, EllipseShape, PathShape, RectShape, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, StateStyles, VisibleAreaChangeCallback, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, PointLightStyle } from "./ArkCommonInterfaces" +import { HitTestMode, Alignment, Color, ImageRepeat, ImageSize, BorderStyle, ColoringStrategy, HoverEffect, Visibility, ItemAlign, Direction, Axis, GradientDirection, ResponseType, FunctionKey, ModifierKey, ObscuredReasons, RenderFit, ImageFit, CopyOptions } from "./ArkEnumsInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ConflictedDeclarations" +import { GestureType, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureMask, GestureInfo, BaseGestureEvent, GestureJudgeResult } from "./ArkGestureInterfaces" +import { CircleAttribute } from "./ArkCircleInterfaces" +import { EllipseAttribute } from "./ArkEllipseInterfaces" +import { PathAttribute } from "./ArkPathInterfaces" +import { RectAttribute } from "./ArkRectInterfaces" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./ArkAttributeModifierMaterialized" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureRecognizer } from "./ArkGestureRecognizerMaterialized" +import { ImageAnalyzerConfig, ImageAIOptions } from "./ArkImageCommonInterfaces" import { KInt } from "@koalaui/interop" +/** + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ +export class ImageRenderMode { + /** + * Render according to the original image, including colors. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Render according to the original image, including colors. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Render according to the original image, including colors. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Render according to the original image, including colors. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Original: ImageRenderMode = new ImageRenderMode(0) + /** + * Render the image as a template image, ignoring the color information of the image. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Render the image as a template image, ignoring the color information of the image. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Render the image as a template image, ignoring the color information of the image. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Render the image as a template image, ignoring the color information of the image. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Template: ImageRenderMode = new ImageRenderMode(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): ImageRenderMode { + if ((arg0) == (ImageRenderMode.Original.value)) { + return ImageRenderMode.Original + } + if ((arg0) == (ImageRenderMode.Template.value)) { + return ImageRenderMode.Template + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ +export class DynamicRangeMode { + /** + * Allow image content to use an unrestricted extended range. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly HIGH: DynamicRangeMode = new DynamicRangeMode(0) + /** + * Allow image content to use some extended range. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly CONSTRAINT: DynamicRangeMode = new DynamicRangeMode(1) + /** + * Restrict the image content dynamic range to the standard range. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly STANDARD: DynamicRangeMode = new DynamicRangeMode(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): DynamicRangeMode { + if ((arg0) == (DynamicRangeMode.HIGH.value)) { + return DynamicRangeMode.HIGH + } + if ((arg0) == (DynamicRangeMode.CONSTRAINT.value)) { + return DynamicRangeMode.CONSTRAINT + } + if ((arg0) == (DynamicRangeMode.STANDARD.value)) { + return DynamicRangeMode.STANDARD + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ +export class ImageInterpolation { + /** + * Do not use interpolated image data. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Do not use interpolated image data. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Do not use interpolated image data. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Do not use interpolated image data. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly None: ImageInterpolation = new ImageInterpolation(0) + /** + * Low usage of interpolated image data. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Low usage of interpolated image data. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Low usage of interpolated image data. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Low usage of interpolated image data. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Low: ImageInterpolation = new ImageInterpolation(1) + /** + * Interpolated image data is used moderately. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Interpolated image data is used moderately. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Interpolated image data is used moderately. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Interpolated image data is used moderately. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Medium: ImageInterpolation = new ImageInterpolation(2) + /** + * High usage of interpolated image data may affect the speed of image rendering. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * High usage of interpolated image data may affect the speed of image rendering. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * High usage of interpolated image data may affect the speed of image rendering. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * High usage of interpolated image data may affect the speed of image rendering. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly High: ImageInterpolation = new ImageInterpolation(3) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): ImageInterpolation { + if ((arg0) == (ImageInterpolation.None.value)) { + return ImageInterpolation.None + } + if ((arg0) == (ImageInterpolation.Low.value)) { + return ImageInterpolation.Low + } + if ((arg0) == (ImageInterpolation.Medium.value)) { + return ImageInterpolation.Medium + } + if ((arg0) == (ImageInterpolation.High.value)) { + return ImageInterpolation.High + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Specify image's content. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ +export class ImageContent { + /** + * Make image empty. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly EMPTY: ImageContent = new ImageContent(0) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): ImageContent { + if ((arg0) == (ImageContent.EMPTY.value)) { + return ImageContent.EMPTY + } + throw new Error(`Enum member '${arg0}' not found`) + } +} export interface ImageAttribute { + alt(value: string | Resource | PixelMap): ImageAttribute; + matchTextDirection(value: boolean): ImageAttribute; + fitOriginalSize(value: boolean): ImageAttribute; + fillColor(value: ResourceColor): ImageAttribute; + objectFit(value: ImageFit): ImageAttribute; + objectRepeat(value: ImageRepeat): ImageAttribute; + autoResize(value: boolean): ImageAttribute; + renderMode(value: ImageRenderMode): ImageAttribute; + dynamicRangeMode(value: DynamicRangeMode): ImageAttribute; + interpolation(value: ImageInterpolation): ImageAttribute; + sourceSize(value: ImageSourceSize): ImageAttribute; + syncLoad(value: boolean): ImageAttribute; + colorFilter(value: ColorFilter | DrawingColorFilter): ImageAttribute; + copyOption(value: CopyOptions): ImageAttribute; + draggable(value: boolean): ImageAttribute; + pointLight(value: PointLightStyle): ImageAttribute; + edgeAntialiasing(value: number): ImageAttribute; + onComplete(callback: ((event: LITERAL_WidthNumberHeightNumberComponentWidthNumberComponentHeightNumberLoadingStatusNumberContentWidthNumberContentHeightNumberContentOffsetXNumberContentOffsetYNumber|undefined) => void)): ImageAttribute; + onError(callback: ImageErrorCallback): ImageAttribute; + onFinish(event: (() => void)): ImageAttribute; + enableAnalyzer(enable: boolean): ImageAttribute; + analyzerConfig(config: ImageAnalyzerConfig): ImageAttribute; + resizable(value: ResizableOptions): ImageAttribute; + privacySensitive(supported: boolean): ImageAttribute; + enhancedImageQuality(imageQuality: ResolutionQuality): ImageAttribute; } export interface ImageInterface { -} \ No newline at end of file +} +export interface ResizableOptions { + slice?: EdgeWidths + lattice?: DrawingLattice +} +export declare type DrawingLattice = IMPORT_default_Lattice_FROM_api_ohos_graphics_drawing +export interface ImageSourceSize { + width: number + height: number +} +export declare type DrawingColorFilter = IMPORT_default_ColorFilter_FROM_api_ohos_graphics_drawing +export declare type ImageErrorCallback = ((error: ImageError) => void) +export interface ImageError { + componentWidth: number + componentHeight: number + message: string +} +export declare type ResolutionQuality = IMPORT_default_ResolutionQuality_FROM_api_ohos_multimedia_image +export declare type DrawableDescriptor = IMPORT_DrawableDescriptor_FROM_api_ohos_arkui_drawableDescriptor \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkIndicatorBuilder.ts b/arkoala-arkts/arkui/src/generated/ArkIndicatorBuilder.ts index 6daed6402..b9c9474a8 100644 --- a/arkoala-arkts/arkui/src/generated/ArkIndicatorBuilder.ts +++ b/arkoala-arkts/arkui/src/generated/ArkIndicatorBuilder.ts @@ -1,6 +1,7 @@ import { Length, Resource, LengthMetrics } from "./ArkUnitsInterfaces" -import { IMPORT_Resource_FROM_resource_resource, IMPORT_LengthMetrics_FROM_api_arkui_Graphics } from "./SyntheticDeclarations" +import { IMPORT_Resource_FROM_api_global_resource, IMPORT_LengthMetrics_FROM_api_arkui_Graphics } from "./SyntheticDeclarations" import { DotIndicator } from "./ArkDotIndicatorBuilder" +import { DigitIndicator } from "./ArkDigitIndicatorBuilder" export class Indicator { _left?: Length _top?: Length diff --git a/arkoala-arkts/arkui/src/generated/ArkList.ts b/arkoala-arkts/arkui/src/generated/ArkList.ts index 007945c2c..9c404932a 100644 --- a/arkoala-arkts/arkui/src/generated/ArkList.ts +++ b/arkoala-arkts/arkui/src/generated/ArkList.ts @@ -24,23 +24,231 @@ import { TypeChecker } from "#components" import { ArkScrollableCommonMethodComponent } from "./ArkCommon" import { ArkListPeer } from "./peers/ArkListPeer" import { UseEventsProperties } from "./use_properties" -import { Optional, ListAttribute, OnScrollVisibleContentChangeCallback, VisibleListContentInfo, ListInterface } from "./ArkListInterfaces" +import { BarState, Color, EdgeEffect, ScrollSource, Axis } from "./ArkEnumsInterfaces" +import { EdgeEffectOptions, Optional, FadingEdgeOptions, NestedScrollOptions, ScrollResult, OnScrollCallback, ItemDragInfo } from "./ArkCommonInterfaces" +import { Resource, LengthConstrain, Length, Dimension, PX, VP, FP, LPX, Percentage, ResourceColor } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, LITERAL_MinLengthLengthMaxLengthLength, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, LITERAL_OffsetRemainNumber } from "./SyntheticDeclarations" +import { ScrollState, ListAttribute, ListItemAlign, ListDividerOptions, ChainAnimationOptions, StickyStyle, ScrollSnapAlign, OnScrollVisibleContentChangeCallback, VisibleListContentInfo, ListOptions, ListInterface, ChainEdgeEffect, ListItemGroupArea } from "./ArkListInterfaces" +import { OnWillScrollCallback } from "./ConflictedDeclarations" +import { ChildrenMainSize } from "./ArkChildrenMainSizeMaterialized" +import { Scroller } from "./ArkScrollerMaterialized" /** @memo:stable */ export class ArkListComponent extends ArkScrollableCommonMethodComponent { protected peer?: ArkListPeer /** @memo */ - setListOptions(): this { + setListOptions(options?: ListOptions): this { if (this.checkPriority("setListOptions")) { - this.peer?.setListOptionsAttribute() + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (ListOptions) + this.peer?.setListOptionsAttribute(options_casted) return this } return this } /** @memo */ - someOptional(param: boolean | undefined): this { - if (this.checkPriority("someOptional")) { - const param_casted = param as (boolean | undefined) - this.peer?.someOptionalAttribute(param_casted) + lanes(value: number | LengthConstrain, gutter?: Dimension): this { + if (this.checkPriority("lanes")) { + const value_casted = value as (number | LengthConstrain) + if ((gutter) == (undefined)) { + throw new Error("Arg 'gutter' is null"); + } + const gutter_casted = gutter as (Dimension) + this.peer?.lanesAttribute(value_casted, gutter_casted) + return this + } + return this + } + /** @memo */ + alignListItem(value: ListItemAlign): this { + if (this.checkPriority("alignListItem")) { + const value_casted = value as (ListItemAlign) + this.peer?.alignListItemAttribute(value_casted) + return this + } + return this + } + /** @memo */ + listDirection(value: Axis): this { + if (this.checkPriority("listDirection")) { + const value_casted = value as (Axis) + this.peer?.listDirectionAttribute(value_casted) + return this + } + return this + } + /** @memo */ + scrollBar(value: BarState): this { + if (this.checkPriority("scrollBar")) { + const value_casted = value as (BarState) + this.peer?.scrollBarAttribute(value_casted) + return this + } + return this + } + /** @memo */ + edgeEffect(value: EdgeEffect, options?: EdgeEffectOptions): this { + if (this.checkPriority("edgeEffect")) { + const value_casted = value as (EdgeEffect) + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (EdgeEffectOptions) + this.peer?.edgeEffectAttribute(value_casted, options_casted) + return this + } + return this + } + /** @memo */ + contentStartOffset(value: number): this { + if (this.checkPriority("contentStartOffset")) { + const value_casted = value as (number) + this.peer?.contentStartOffsetAttribute(value_casted) + return this + } + return this + } + /** @memo */ + contentEndOffset(value: number): this { + if (this.checkPriority("contentEndOffset")) { + const value_casted = value as (number) + this.peer?.contentEndOffsetAttribute(value_casted) + return this + } + return this + } + /** @memo */ + divider(value: ListDividerOptions | null): this { + if (this.checkPriority("divider")) { + const value_casted = value as (ListDividerOptions | null) + this.peer?.dividerAttribute(value_casted) + return this + } + return this + } + /** @memo */ + editMode(value: boolean): this { + if (this.checkPriority("editMode")) { + const value_casted = value as (boolean) + this.peer?.editModeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + multiSelectable(value: boolean): this { + if (this.checkPriority("multiSelectable")) { + const value_casted = value as (boolean) + this.peer?.multiSelectableAttribute(value_casted) + return this + } + return this + } + /** @memo */ + cachedCount(value: number): this { + if (this.checkPriority("cachedCount")) { + const value_casted = value as (number) + this.peer?.cachedCountAttribute(value_casted) + return this + } + return this + } + /** @memo */ + chainAnimation(value: boolean): this { + if (this.checkPriority("chainAnimation")) { + const value_casted = value as (boolean) + this.peer?.chainAnimationAttribute(value_casted) + return this + } + return this + } + /** @memo */ + chainAnimationOptions(value: ChainAnimationOptions): this { + if (this.checkPriority("chainAnimationOptions")) { + const value_casted = value as (ChainAnimationOptions) + this.peer?.chainAnimationOptionsAttribute(value_casted) + return this + } + return this + } + /** @memo */ + sticky(value: StickyStyle): this { + if (this.checkPriority("sticky")) { + const value_casted = value as (StickyStyle) + this.peer?.stickyAttribute(value_casted) + return this + } + return this + } + /** @memo */ + scrollSnapAlign(value: ScrollSnapAlign): this { + if (this.checkPriority("scrollSnapAlign")) { + const value_casted = value as (ScrollSnapAlign) + this.peer?.scrollSnapAlignAttribute(value_casted) + return this + } + return this + } + /** @memo */ + nestedScroll(value: NestedScrollOptions): this { + if (this.checkPriority("nestedScroll")) { + const value_casted = value as (NestedScrollOptions) + this.peer?.nestedScrollAttribute(value_casted) + return this + } + return this + } + /** @memo */ + enableScrollInteraction(value: boolean): this { + if (this.checkPriority("enableScrollInteraction")) { + const value_casted = value as (boolean) + this.peer?.enableScrollInteractionAttribute(value_casted) + return this + } + return this + } + /** @memo */ + friction(value: number | Resource): this { + if (this.checkPriority("friction")) { + const value_casted = value as (number | Resource) + this.peer?.frictionAttribute(value_casted) + return this + } + return this + } + /** @memo */ + childrenMainSize(value: ChildrenMainSize): this { + if (this.checkPriority("childrenMainSize")) { + const value_casted = value as (ChildrenMainSize) + this.peer?.childrenMainSizeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + maintainVisibleContentPosition(enabled: boolean): this { + if (this.checkPriority("maintainVisibleContentPosition")) { + const enabled_casted = enabled as (boolean) + this.peer?.maintainVisibleContentPositionAttribute(enabled_casted) + return this + } + return this + } + /** @memo */ + onScroll(event: ((scrollOffset: number, scrollState: ScrollState) => void)): this { + if (this.checkPriority("onScroll")) { + const event_casted = event as (((scrollOffset: number, scrollState: ScrollState) => void)) + this.peer?.onScrollAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onScrollIndex(event: ((start: number, end: number, center: number) => void)): this { + if (this.checkPriority("onScrollIndex")) { + const event_casted = event as (((start: number, end: number, center: number) => void)) + this.peer?.onScrollIndexAttribute(event_casted) return this } return this @@ -54,6 +262,114 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { } return this } + /** @memo */ + onReachStart(event: (() => void)): this { + if (this.checkPriority("onReachStart")) { + const event_casted = event as ((() => void)) + this.peer?.onReachStartAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onReachEnd(event: (() => void)): this { + if (this.checkPriority("onReachEnd")) { + const event_casted = event as ((() => void)) + this.peer?.onReachEndAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onScrollStart(event: (() => void)): this { + if (this.checkPriority("onScrollStart")) { + const event_casted = event as ((() => void)) + this.peer?.onScrollStartAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onScrollStop(event: (() => void)): this { + if (this.checkPriority("onScrollStop")) { + const event_casted = event as ((() => void)) + this.peer?.onScrollStopAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onItemDelete(event: ((index: number) => boolean)): this { + if (this.checkPriority("onItemDelete")) { + const event_casted = event as (((index: number) => boolean)) + this.peer?.onItemDeleteAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onItemMove(event: ((from: number, to: number) => boolean)): this { + if (this.checkPriority("onItemMove")) { + const event_casted = event as (((from: number, to: number) => boolean)) + this.peer?.onItemMoveAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onItemDragStart(event: ((event: ItemDragInfo, itemIndex: number) => (((() => Object))))): this { + if (this.checkPriority("onItemDragStart")) { + const event_casted = event as (((event: ItemDragInfo, itemIndex: number) => (((() => Object))))) + this.peer?.onItemDragStartAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onItemDragEnter(event: ((event: ItemDragInfo) => void)): this { + if (this.checkPriority("onItemDragEnter")) { + const event_casted = event as (((event: ItemDragInfo) => void)) + this.peer?.onItemDragEnterAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onItemDragMove(event: ((event: ItemDragInfo, itemIndex: number, insertIndex: number) => void)): this { + if (this.checkPriority("onItemDragMove")) { + const event_casted = event as (((event: ItemDragInfo, itemIndex: number, insertIndex: number) => void)) + this.peer?.onItemDragMoveAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onItemDragLeave(event: ((event: ItemDragInfo, itemIndex: number) => void)): this { + if (this.checkPriority("onItemDragLeave")) { + const event_casted = event as (((event: ItemDragInfo, itemIndex: number) => void)) + this.peer?.onItemDragLeaveAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onItemDrop(event: ((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => void)): this { + if (this.checkPriority("onItemDrop")) { + const event_casted = event as (((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => void)) + this.peer?.onItemDropAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onScrollFrameBegin(event: ((offset: number, state: ScrollState) => LITERAL_OffsetRemainNumber)): this { + if (this.checkPriority("onScrollFrameBegin")) { + const event_casted = event as (((offset: number, state: ScrollState) => LITERAL_OffsetRemainNumber)) + this.peer?.onScrollFrameBeginAttribute(event_casted) + return this + } + return this + } public applyAttributesFinish(): void { // we calls this function outside of class, so need to make it public super.applyAttributesFinish() @@ -66,13 +382,13 @@ export function ArkList( style: ((attributes: ArkListComponent) => void) | undefined, /** @memo */ content_: (() => void) | undefined, - + options?: ListOptions ) { const receiver = remember(() => { return new ArkListComponent() }) NodeAttach((): ArkListPeer => ArkListPeer.create(ArkUINodeType.List, receiver), (_: ArkListPeer) => { - receiver.setListOptions() + receiver.setListOptions(options) style?.(receiver) content_?.() receiver.applyAttributesFinish() diff --git a/arkoala-arkts/arkui/src/generated/ArkListInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkListInterfaces.ts index 557f4693e..680790740 100644 --- a/arkoala-arkts/arkui/src/generated/ArkListInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkListInterfaces.ts @@ -1,13 +1,681 @@ +import { BarState, Color, EdgeEffect, ScrollSource, Axis } from "./ArkEnumsInterfaces" +import { EdgeEffectOptions, Optional, FadingEdgeOptions, NestedScrollOptions, ScrollResult, OnScrollCallback, ItemDragInfo } from "./ArkCommonInterfaces" +import { Resource, LengthConstrain, Length, Dimension, PX, VP, FP, LPX, Percentage, ResourceColor } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, LITERAL_MinLengthLengthMaxLengthLength, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, LITERAL_OffsetRemainNumber } from "./SyntheticDeclarations" +import { OnWillScrollCallback } from "./ConflictedDeclarations" +import { ChildrenMainSize } from "./ArkChildrenMainSizeMaterialized" +import { Scroller } from "./ArkScrollerMaterialized" import { KInt } from "@koalaui/interop" +/* + * Copyright (c) 2021-2023 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +/** + * @file + * @kit ArkUI + */ +/** + * Declare scroll status + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Declare scroll status + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Declare scroll status + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Declare scroll status + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ +export class ScrollState { + /** + * Not activated. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Not activated. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Not activated. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Not activated. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Idle: ScrollState = new ScrollState(0) + /** + * Scrolling status. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Scrolling status. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Scrolling status. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Scrolling status. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Scroll: ScrollState = new ScrollState(1) + /** + * Drag status. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Drag status. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Drag status. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Drag status. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Fling: ScrollState = new ScrollState(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): ScrollState { + if ((arg0) == (ScrollState.Idle.value)) { + return ScrollState.Idle + } + if ((arg0) == (ScrollState.Scroll.value)) { + return ScrollState.Scroll + } + if ((arg0) == (ScrollState.Fling.value)) { + return ScrollState.Fling + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Declare list item alignment status + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Declare list item alignment status + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Declare list item alignment status + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ +export class ListItemAlign { + /** + * Start position in the direction of cross axis. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Start position in the direction of cross axis. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Start position in the direction of cross axis. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Start: ListItemAlign = new ListItemAlign(0) + /** + * Center position in the direction of cross axis. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Center position in the direction of cross axis. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Center position in the direction of cross axis. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Center: ListItemAlign = new ListItemAlign(1) + /** + * End position in the direction of cross axis + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * End position in the direction of cross axis + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * End position in the direction of cross axis + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly End: ListItemAlign = new ListItemAlign(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): ListItemAlign { + if ((arg0) == (ListItemAlign.Start.value)) { + return ListItemAlign.Start + } + if ((arg0) == (ListItemAlign.Center.value)) { + return ListItemAlign.Center + } + if ((arg0) == (ListItemAlign.End.value)) { + return ListItemAlign.End + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Declare edge effect of chain animation. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @systemapi + * @since 10 + */ +export class ChainEdgeEffect { + /** + * Default edge effect. Compress the space in the drag direction + * and stretch the space in the opposite drag direction. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @systemapi + * @since 10 + */ + static readonly DEFAULT: ChainEdgeEffect = new ChainEdgeEffect(0) + /** + * Stretch all space. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @systemapi + * @since 10 + */ + static readonly STRETCH: ChainEdgeEffect = new ChainEdgeEffect(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): ChainEdgeEffect { + if ((arg0) == (ChainEdgeEffect.DEFAULT.value)) { + return ChainEdgeEffect.DEFAULT + } + if ((arg0) == (ChainEdgeEffect.STRETCH.value)) { + return ChainEdgeEffect.STRETCH + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Declare item group sticky style. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Declare item group sticky style. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Declare item group sticky style. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ +export class StickyStyle { + /** + * The header and footer of each item group will not be pinned. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * The header and footer of each item group will not be pinned. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * The header and footer of each item group will not be pinned. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly None: StickyStyle = new StickyStyle(0) + /** + * The header of each item group will be pinned. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * The header of each item group will be pinned. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * The header of each item group will be pinned. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Header: StickyStyle = new StickyStyle(1) + /** + * The footer of each item group will be pinned. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * The footer of each item group will be pinned. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * The footer of each item group will be pinned. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Footer: StickyStyle = new StickyStyle(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): StickyStyle { + if ((arg0) == (StickyStyle.None.value)) { + return StickyStyle.None + } + if ((arg0) == (StickyStyle.Header.value)) { + return StickyStyle.Header + } + if ((arg0) == (StickyStyle.Footer.value)) { + return StickyStyle.Footer + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Declare limited position when scroll end. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Declare limited position when scroll end. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class ScrollSnapAlign { + /** + * Default no item scroll snap alignment effect. When scroll end, + * list item will stop without limit. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Default no item scroll snap alignment effect. When scroll end, + * list item will stop without limit. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly NONE: ScrollSnapAlign = new ScrollSnapAlign(0) + /** + * The first item in view will be aligned at the start of list. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * The first item in view will be aligned at the start of list. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly START: ScrollSnapAlign = new ScrollSnapAlign(1) + /** + * The middle item in view will be aligned at the center of list. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * The middle item in view will be aligned at the center of list. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly CENTER: ScrollSnapAlign = new ScrollSnapAlign(2) + /** + * The last item in view will be aligned at the end of list. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * The last item in view will be aligned at the end of list. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly END: ScrollSnapAlign = new ScrollSnapAlign(3) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): ScrollSnapAlign { + if ((arg0) == (ScrollSnapAlign.NONE.value)) { + return ScrollSnapAlign.NONE + } + if ((arg0) == (ScrollSnapAlign.START.value)) { + return ScrollSnapAlign.START + } + if ((arg0) == (ScrollSnapAlign.CENTER.value)) { + return ScrollSnapAlign.CENTER + } + if ((arg0) == (ScrollSnapAlign.END.value)) { + return ScrollSnapAlign.END + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Declare list item group area + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ +export class ListItemGroupArea { + /** + * List item group area is none + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly NONE: ListItemGroupArea = new ListItemGroupArea(0) + /** + * List item group area is list item + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly IN_LIST_ITEM_AREA: ListItemGroupArea = new ListItemGroupArea(1) + /** + * List item group area is header + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly IN_HEADER_AREA: ListItemGroupArea = new ListItemGroupArea(2) + /** + * List item group area is footer + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly IN_FOOTER_AREA: ListItemGroupArea = new ListItemGroupArea(3) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): ListItemGroupArea { + if ((arg0) == (ListItemGroupArea.NONE.value)) { + return ListItemGroupArea.NONE + } + if ((arg0) == (ListItemGroupArea.IN_LIST_ITEM_AREA.value)) { + return ListItemGroupArea.IN_LIST_ITEM_AREA + } + if ((arg0) == (ListItemGroupArea.IN_HEADER_AREA.value)) { + return ListItemGroupArea.IN_HEADER_AREA + } + if ((arg0) == (ListItemGroupArea.IN_FOOTER_AREA.value)) { + return ListItemGroupArea.IN_FOOTER_AREA + } + throw new Error(`Enum member '${arg0}' not found`) + } +} export interface ListAttribute { - someOptional(param: boolean | undefined): ListAttribute; + lanes(value: number | LengthConstrain,gutter: Dimension): ListAttribute; + alignListItem(value: ListItemAlign): ListAttribute; + listDirection(value: Axis): ListAttribute; + scrollBar(value: BarState): ListAttribute; + edgeEffect(value: EdgeEffect,options: EdgeEffectOptions): ListAttribute; + contentStartOffset(value: number): ListAttribute; + contentEndOffset(value: number): ListAttribute; + divider(value: ListDividerOptions | null): ListAttribute; + editMode(value: boolean): ListAttribute; + multiSelectable(value: boolean): ListAttribute; + cachedCount(value: number): ListAttribute; + chainAnimation(value: boolean): ListAttribute; + chainAnimationOptions(value: ChainAnimationOptions): ListAttribute; + sticky(value: StickyStyle): ListAttribute; + scrollSnapAlign(value: ScrollSnapAlign): ListAttribute; + nestedScroll(value: NestedScrollOptions): ListAttribute; + enableScrollInteraction(value: boolean): ListAttribute; + friction(value: number | Resource): ListAttribute; + childrenMainSize(value: ChildrenMainSize): ListAttribute; + maintainVisibleContentPosition(enabled: boolean): ListAttribute; + onScroll(event: ((scrollOffset: number, scrollState: ScrollState) => void)): ListAttribute; + onScrollIndex(event: ((start: number, end: number, center: number) => void)): ListAttribute; onScrollVisibleContentChange(handler: OnScrollVisibleContentChangeCallback): ListAttribute; + onReachStart(event: (() => void)): ListAttribute; + onReachEnd(event: (() => void)): ListAttribute; + onScrollStart(event: (() => void)): ListAttribute; + onScrollStop(event: (() => void)): ListAttribute; + onItemDelete(event: ((index: number) => boolean)): ListAttribute; + onItemMove(event: ((from: number, to: number) => boolean)): ListAttribute; + onItemDragStart(event: ((event: ItemDragInfo, itemIndex: number) => (((() => Object))))): ListAttribute; + onItemDragEnter(event: ((event: ItemDragInfo) => void)): ListAttribute; + onItemDragMove(event: ((event: ItemDragInfo, itemIndex: number, insertIndex: number) => void)): ListAttribute; + onItemDragLeave(event: ((event: ItemDragInfo, itemIndex: number) => void)): ListAttribute; + onItemDrop(event: ((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => void)): ListAttribute; + onScrollFrameBegin(event: ((offset: number, state: ScrollState) => LITERAL_OffsetRemainNumber)): ListAttribute; } export interface ListInterface { } -export declare type Optional = T | undefined +export interface ListDividerOptions { + strokeWidth: Length + color?: ResourceColor + startMargin?: Length + endMargin?: Length +} +export interface ChainAnimationOptions { + minSpace: Length + maxSpace: Length + conductivity?: number + intensity?: number + edgeEffect?: ChainEdgeEffect + stiffness?: number + damping?: number +} export declare type OnScrollVisibleContentChangeCallback = ((start: VisibleListContentInfo, end: VisibleListContentInfo) => void) export interface VisibleListContentInfo { index: number + itemGroupArea?: ListItemGroupArea itemIndexInGroup?: number +} +export interface ListOptions { + initialIndex?: number + space?: number | string + scroller?: Scroller } \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkNavDestination.ts b/arkoala-arkts/arkui/src/generated/ArkNavDestination.ts index 9fd68f52f..f3b355645 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNavDestination.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNavDestination.ts @@ -24,14 +24,13 @@ import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkNavDestinationPeer } from "./peers/ArkNavDestinationPeer" import { UseEventsProperties } from "./use_properties" -import { CustomBuilder, PixelMap, SymbolGlyphModifier, Callback } from "./ArkCommonInterfaces" -import { NavDestinationCommonTitle, NavDestinationCustomTitle, NavDestinationAttribute, NavDestinationMode, NavDestinationInterface, RouteMapConfig } from "./ArkNavDestinationInterfaces" +import { CustomBuilder, PixelMap, SymbolGlyphModifier, Callback, LayoutSafeAreaType, LayoutSafeAreaEdge, Optional } from "./ArkCommonInterfaces" +import { NavDestinationCommonTitle, NavDestinationCustomTitle, NavDestinationAttribute, NavDestinationMode, NavigationSystemTransitionType, NavDestinationInterface, RouteMapConfig } from "./ArkNavDestinationInterfaces" +import { Resource, ResourceStr, Length } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image, IMPORT_SymbolGlyphModifier_FROM_api_arkui_SymbolGlyphModifier, IMPORT_Callback_NavDestinationContext_FROM_api_ohos_base, IMPORT_default_SystemBarStyle_FROM_api_ohos_window } from "./SyntheticDeclarations" import { NavigationTitleOptions, NavigationMenuItem, SystemBarStyle } from "./ArkNavigationInterfaces" -import { ResourceStr, Resource, Length } from "./ArkUnitsInterfaces" -import { IMPORT_Resource_FROM_resource_resource, IMPORT_default_PixelMap_FROM_resource_image, IMPORT_SymbolGlyphModifier_FROM_resource_symbol, IMPORT_Callback_NavDestinationContext_FROM_api_ohos_base, IMPORT_default_SystemBarStyle_FROM_api_ohos_window } from "./SyntheticDeclarations" import { NavDestinationContext } from "./ArkNavDestinationContextMaterialized" -import { LayoutSafeAreaType, LayoutSafeAreaEdge, TitleHeight } from "./ArkColumnInterfaces" -import { Optional } from "./ArkListInterfaces" +import { TitleHeight } from "./ArkEnumsInterfaces" /** @memo:stable */ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { protected peer?: ArkNavDestinationPeer @@ -44,9 +43,9 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { return this } /** @memo */ - title(value: string | CustomBuilder | NavDestinationCommonTitle | NavDestinationCustomTitle, options?: NavigationTitleOptions): this { + title(value: string | CustomBuilder | NavDestinationCommonTitle | NavDestinationCustomTitle | Resource, options?: NavigationTitleOptions): this { if (this.checkPriority("title")) { - const value_casted = value as (string | CustomBuilder | NavDestinationCommonTitle | NavDestinationCustomTitle) + const value_casted = value as (string | CustomBuilder | NavDestinationCommonTitle | NavDestinationCustomTitle | Resource) if ((options) == (undefined)) { throw new Error("Arg 'options' is null"); } @@ -57,11 +56,25 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { return this } /** @memo */ - hideTitleBar(value: boolean): this { + hideTitleBar(hide: boolean | boolean, animated?: boolean): this { if (this.checkPriority("hideTitleBar")) { - const value_casted = value as (boolean) - this.peer?.hideTitleBarAttribute(value_casted) - return this + const hide_type = runtimeType(hide) + const animated_type = runtimeType(animated) + if ((((RuntimeType.BOOLEAN == hide_type))) && (((RuntimeType.BOOLEAN == animated_type)))) { + const hide_casted = hide as (boolean) + if ((animated) == (undefined)) { + throw new Error("Arg 'animated' is null"); + } + const animated_casted = animated as (boolean) + this.peer?.hideTitleBar1Attribute(hide_casted, animated_casted) + return this + } + if ((((RuntimeType.BOOLEAN == hide_type))) && (((RuntimeType.UNDEFINED == animated_type)))) { + const hide_casted = hide as (boolean) + this.peer?.hideTitleBar0Attribute(hide_casted) + return this + } + throw new Error("Can not select appropriate overload") } return this } @@ -189,6 +202,24 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { } return this } + /** @memo */ + recoverable(recoverable: boolean | undefined): this { + if (this.checkPriority("recoverable")) { + const recoverable_casted = recoverable as (boolean | undefined) + this.peer?.recoverableAttribute(recoverable_casted) + return this + } + return this + } + /** @memo */ + systemTransition(type: NavigationSystemTransitionType): this { + if (this.checkPriority("systemTransition")) { + const type_casted = type as (NavigationSystemTransitionType) + this.peer?.systemTransitionAttribute(type_casted) + return this + } + return this + } public applyAttributesFinish(): void { // we calls this function outside of class, so need to make it public super.applyAttributesFinish() diff --git a/arkoala-arkts/arkui/src/generated/ArkNavDestinationInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkNavDestinationInterfaces.ts index 7bb894bed..ea4c22403 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNavDestinationInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNavDestinationInterfaces.ts @@ -1,10 +1,9 @@ -import { CustomBuilder, PixelMap, SymbolGlyphModifier, Callback } from "./ArkCommonInterfaces" +import { CustomBuilder, PixelMap, SymbolGlyphModifier, Callback, LayoutSafeAreaType, LayoutSafeAreaEdge, Optional } from "./ArkCommonInterfaces" +import { Resource, ResourceStr, Length } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image, IMPORT_SymbolGlyphModifier_FROM_api_arkui_SymbolGlyphModifier, IMPORT_Callback_NavDestinationContext_FROM_api_ohos_base, IMPORT_default_SystemBarStyle_FROM_api_ohos_window } from "./SyntheticDeclarations" import { NavigationTitleOptions, NavigationMenuItem, SystemBarStyle } from "./ArkNavigationInterfaces" -import { ResourceStr, Resource, Length } from "./ArkUnitsInterfaces" -import { IMPORT_Resource_FROM_resource_resource, IMPORT_default_PixelMap_FROM_resource_image, IMPORT_SymbolGlyphModifier_FROM_resource_symbol, IMPORT_Callback_NavDestinationContext_FROM_api_ohos_base, IMPORT_default_SystemBarStyle_FROM_api_ohos_window } from "./SyntheticDeclarations" import { NavDestinationContext } from "./ArkNavDestinationContextMaterialized" -import { LayoutSafeAreaType, LayoutSafeAreaEdge, TitleHeight } from "./ArkColumnInterfaces" -import { Optional } from "./ArkListInterfaces" +import { TitleHeight } from "./ArkEnumsInterfaces" import { KInt } from "@koalaui/interop" /** * NavDestination mode. @@ -70,8 +69,74 @@ export class NavDestinationMode { throw new Error(`Enum member '${arg0}' not found`) } } +/** + * Types of system Transition. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 14 + */ +export class NavigationSystemTransitionType { + /** + * Default system transition. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 14 + */ + static readonly DEFAULT: NavigationSystemTransitionType = new NavigationSystemTransitionType(0) + /** + * None system transition. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 14 + */ + static readonly NONE: NavigationSystemTransitionType = new NavigationSystemTransitionType(1) + /** + * Configure only titlebar transition. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 14 + */ + static readonly TITLE: NavigationSystemTransitionType = new NavigationSystemTransitionType(2) + /** + * Configure only content transition. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 14 + */ + static readonly CONTENT: NavigationSystemTransitionType = new NavigationSystemTransitionType(3) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): NavigationSystemTransitionType { + if ((arg0) == (NavigationSystemTransitionType.DEFAULT.value)) { + return NavigationSystemTransitionType.DEFAULT + } + if ((arg0) == (NavigationSystemTransitionType.NONE.value)) { + return NavigationSystemTransitionType.NONE + } + if ((arg0) == (NavigationSystemTransitionType.TITLE.value)) { + return NavigationSystemTransitionType.TITLE + } + if ((arg0) == (NavigationSystemTransitionType.CONTENT.value)) { + return NavigationSystemTransitionType.CONTENT + } + throw new Error(`Enum member '${arg0}' not found`) + } +} export interface NavDestinationAttribute { - title(value: string | CustomBuilder | NavDestinationCommonTitle | NavDestinationCustomTitle,options: NavigationTitleOptions): NavDestinationAttribute; + title(value: string | CustomBuilder | NavDestinationCommonTitle | NavDestinationCustomTitle | Resource,options: NavigationTitleOptions): NavDestinationAttribute; hideTitleBar(value: boolean): NavDestinationAttribute; onShown(callback: (() => void)): NavDestinationAttribute; onHidden(callback: (() => void)): NavDestinationAttribute; @@ -86,12 +151,14 @@ export interface NavDestinationAttribute { onWillHide(callback: Callback): NavDestinationAttribute; ignoreLayoutSafeArea(types: Array,edges: Array): NavDestinationAttribute; systemBarStyle(style: SystemBarStyle | undefined): NavDestinationAttribute; + recoverable(recoverable: boolean | undefined): NavDestinationAttribute; + systemTransition(type: NavigationSystemTransitionType): NavDestinationAttribute; } export interface NavDestinationInterface { } export interface NavDestinationCommonTitle { - main: string - sub: string + main: string | Resource + sub: string | Resource } export interface NavDestinationCustomTitle { builder: CustomBuilder diff --git a/arkoala-arkts/arkui/src/generated/ArkNavigation.ts b/arkoala-arkts/arkui/src/generated/ArkNavigation.ts index 79a8ef05e..7fc0b63d9 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNavigation.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNavigation.ts @@ -25,13 +25,11 @@ import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkNavigationPeer } from "./peers/ArkNavigationPeer" import { UseEventsProperties } from "./use_properties" import { Length, Resource, Dimension, PX, VP, FP, LPX, Percentage, ResourceStr, ResourceColor, LengthMetrics } from "./ArkUnitsInterfaces" -import { IMPORT_Resource_FROM_resource_resource, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, IMPORT_default_PixelMap_FROM_resource_image, IMPORT_SymbolGlyphModifier_FROM_resource_symbol, IMPORT_default_SystemBarStyle_FROM_api_ohos_window, IMPORT_LengthMetrics_FROM_api_arkui_Graphics, IMPORT_Callback_PopInfo_FROM_api_ohos_base, LITERAL_NavBar } from "./SyntheticDeclarations" +import { IMPORT_Resource_FROM_api_global_resource, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image, IMPORT_SymbolGlyphModifier_FROM_api_arkui_SymbolGlyphModifier, IMPORT_default_SystemBarStyle_FROM_api_ohos_window, IMPORT_LengthMetrics_FROM_api_arkui_Graphics, TextModifier, IMPORT_Callback_PopInfo_FROM_api_ohos_base, LITERAL_NavBar } from "./SyntheticDeclarations" import { NavigationAttribute, NavBarPosition, NavigationMode, NavigationCommonTitle, NavigationCustomTitle, NavigationTitleOptions, NavigationTitleMode, NavigationMenuItem, ToolbarItem, NavigationToolbarOptions, NavContentInfo, NavigationOperation, NavigationAnimatedTransition, SystemBarStyle, NavigationInterface, BarStyle, PopInfo, NavPathInfo, LaunchMode, NavigationOptions, InterceptionShowCallback, NavBar, InterceptionModeCallback, NavigationInterception, ToolbarItemStatus } from "./ArkNavigationInterfaces" -import { PixelMap, SymbolGlyphModifier, CustomBuilder, BlurStyle } from "./ArkCommonInterfaces" -import { LayoutSafeAreaType, LayoutSafeAreaEdge, TitleHeight } from "./ArkColumnInterfaces" -import { Optional } from "./ArkListInterfaces" +import { PixelMap, SymbolGlyphModifier, CustomBuilder, LayoutSafeAreaType, LayoutSafeAreaEdge, Optional, BlurStyle } from "./ArkCommonInterfaces" import { NavPathStack } from "./ArkNavPathStackMaterialized" -import { Color } from "./ArkEnumsInterfaces" +import { Color, TitleHeight } from "./ArkEnumsInterfaces" import { NavDestinationContext } from "./ArkNavDestinationContextMaterialized" import { NavDestinationMode } from "./ArkNavDestinationInterfaces" import { NavigationTransitionProxy } from "./ArkNavigationTransitionProxyMaterialized" @@ -144,11 +142,25 @@ export class ArkNavigationComponent extends ArkCommonMethodComponent { return this } /** @memo */ - hideTitleBar(value: boolean): this { + hideTitleBar(hide: boolean | boolean, animated?: boolean): this { if (this.checkPriority("hideTitleBar")) { - const value_casted = value as (boolean) - this.peer?.hideTitleBarAttribute(value_casted) - return this + const hide_type = runtimeType(hide) + const animated_type = runtimeType(animated) + if ((((RuntimeType.BOOLEAN == hide_type))) && (((RuntimeType.BOOLEAN == animated_type)))) { + const hide_casted = hide as (boolean) + if ((animated) == (undefined)) { + throw new Error("Arg 'animated' is null"); + } + const animated_casted = animated as (boolean) + this.peer?.hideTitleBar1Attribute(hide_casted, animated_casted) + return this + } + if ((((RuntimeType.BOOLEAN == hide_type))) && (((RuntimeType.UNDEFINED == animated_type)))) { + const hide_casted = hide as (boolean) + this.peer?.hideTitleBar0Attribute(hide_casted) + return this + } + throw new Error("Can not select appropriate overload") } return this } @@ -202,11 +214,25 @@ export class ArkNavigationComponent extends ArkCommonMethodComponent { return this } /** @memo */ - hideToolBar(value: boolean): this { + hideToolBar(hide: boolean | boolean, animated?: boolean): this { if (this.checkPriority("hideToolBar")) { - const value_casted = value as (boolean) - this.peer?.hideToolBarAttribute(value_casted) - return this + const hide_type = runtimeType(hide) + const animated_type = runtimeType(animated) + if ((((RuntimeType.BOOLEAN == hide_type))) && (((RuntimeType.BOOLEAN == animated_type)))) { + const hide_casted = hide as (boolean) + if ((animated) == (undefined)) { + throw new Error("Arg 'animated' is null"); + } + const animated_casted = animated as (boolean) + this.peer?.hideToolBar1Attribute(hide_casted, animated_casted) + return this + } + if ((((RuntimeType.BOOLEAN == hide_type))) && (((RuntimeType.UNDEFINED == animated_type)))) { + const hide_casted = hide as (boolean) + this.peer?.hideToolBar0Attribute(hide_casted) + return this + } + throw new Error("Can not select appropriate overload") } return this } @@ -280,6 +306,15 @@ export class ArkNavigationComponent extends ArkCommonMethodComponent { } return this } + /** @memo */ + recoverable(recoverable: boolean | undefined): this { + if (this.checkPriority("recoverable")) { + const recoverable_casted = recoverable as (boolean | undefined) + this.peer?.recoverableAttribute(recoverable_casted) + return this + } + return this + } public applyAttributesFinish(): void { // we calls this function outside of class, so need to make it public super.applyAttributesFinish() diff --git a/arkoala-arkts/arkui/src/generated/ArkNavigationInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkNavigationInterfaces.ts index 54e06def3..0edee2a2b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNavigationInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNavigationInterfaces.ts @@ -1,10 +1,8 @@ import { Length, Resource, Dimension, PX, VP, FP, LPX, Percentage, ResourceStr, ResourceColor, LengthMetrics } from "./ArkUnitsInterfaces" -import { IMPORT_Resource_FROM_resource_resource, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, IMPORT_default_PixelMap_FROM_resource_image, IMPORT_SymbolGlyphModifier_FROM_resource_symbol, IMPORT_default_SystemBarStyle_FROM_api_ohos_window, IMPORT_LengthMetrics_FROM_api_arkui_Graphics, IMPORT_Callback_PopInfo_FROM_api_ohos_base, LITERAL_NavBar } from "./SyntheticDeclarations" -import { PixelMap, SymbolGlyphModifier, CustomBuilder, BlurStyle } from "./ArkCommonInterfaces" -import { LayoutSafeAreaType, LayoutSafeAreaEdge, TitleHeight } from "./ArkColumnInterfaces" -import { Optional } from "./ArkListInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image, IMPORT_SymbolGlyphModifier_FROM_api_arkui_SymbolGlyphModifier, IMPORT_default_SystemBarStyle_FROM_api_ohos_window, IMPORT_LengthMetrics_FROM_api_arkui_Graphics, TextModifier, IMPORT_Callback_PopInfo_FROM_api_ohos_base, LITERAL_NavBar } from "./SyntheticDeclarations" +import { PixelMap, SymbolGlyphModifier, CustomBuilder, LayoutSafeAreaType, LayoutSafeAreaEdge, Optional, BlurStyle } from "./ArkCommonInterfaces" import { NavPathStack } from "./ArkNavPathStackMaterialized" -import { Color } from "./ArkEnumsInterfaces" +import { Color, TitleHeight } from "./ArkEnumsInterfaces" import { NavDestinationContext } from "./ArkNavDestinationContextMaterialized" import { NavDestinationMode } from "./ArkNavDestinationInterfaces" import { NavigationTransitionProxy } from "./ArkNavigationTransitionProxyMaterialized" @@ -607,6 +605,7 @@ export interface NavigationAttribute { customNavContentTransition(delegate: ((from: NavContentInfo, to: NavContentInfo, operation: NavigationOperation) => NavigationAnimatedTransition | undefined)): NavigationAttribute; ignoreLayoutSafeArea(types: Array,edges: Array): NavigationAttribute; systemBarStyle(style: SystemBarStyle | undefined): NavigationAttribute; + recoverable(recoverable: boolean | undefined): NavigationAttribute; } export interface NavigationInterface { } @@ -616,10 +615,13 @@ export interface NavigationTitleOptions { barStyle?: BarStyle paddingStart?: LengthMetrics paddingEnd?: LengthMetrics + mainTitleModifier?: TextModifier + subTitleModifier?: TextModifier + enableHoverMode?: boolean } export interface NavigationMenuItem { - value: string - icon?: string + value: string | Resource + icon?: string | Resource symbolIcon?: SymbolGlyphModifier isEnabled?: boolean action?: (() => void) @@ -628,6 +630,7 @@ export declare class NavPathInfo { name: string; param?: Object; onPop?: IMPORT_Callback_PopInfo_FROM_api_ohos_base; + isEntry?: boolean; } export interface PopInfo { info: NavPathInfo @@ -647,8 +650,8 @@ export declare type NavBar = LITERAL_NavBar export declare type InterceptionModeCallback = ((mode: NavigationMode) => void) export declare type SystemBarStyle = IMPORT_default_SystemBarStyle_FROM_api_ohos_window export interface NavigationCommonTitle { - main: string - sub: string + main: string | Resource + sub: string | Resource } export interface NavigationCustomTitle { builder: CustomBuilder diff --git a/arkoala-arkts/arkui/src/generated/ArkScroll.ts b/arkoala-arkts/arkui/src/generated/ArkScroll.ts index 91673fb07..2c97ae6c9 100644 --- a/arkoala-arkts/arkui/src/generated/ArkScroll.ts +++ b/arkoala-arkts/arkui/src/generated/ArkScroll.ts @@ -23,9 +23,15 @@ import { ComponentBase } from "./ComponentBase" import { TypeChecker } from "#components" import { ArkScrollableCommonMethodComponent } from "./ArkCommon" import { ArkScrollPeer } from "./peers/ArkScrollPeer" -import { ScrollAttribute, ScrollInterface, ScrollAnimationOptions } from "./ArkScrollInterfaces" +import { UseEventsProperties } from "./use_properties" +import { BarState, Color, EdgeEffect, ScrollSource, Edge, Curve } from "./ArkEnumsInterfaces" +import { EdgeEffectOptions, Optional, FadingEdgeOptions, NestedScrollOptions, ScrollResult, OnScrollCallback } from "./ArkCommonInterfaces" +import { Resource, VoidCallback, LengthMetrics, Dimension, PX, VP, FP, LPX, Percentage } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, IMPORT_LengthMetrics_FROM_api_arkui_Graphics, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage } from "./SyntheticDeclarations" +import { ScrollState, ScrollSnapAlign } from "./ArkListInterfaces" +import { OnWillScrollCallback } from "./ConflictedDeclarations" +import { ScrollDirection, ScrollAttribute, ScrollOnWillScrollCallback, OffsetResult, ScrollOnScrollCallback, OnScrollEdgeCallback, OnScrollFrameBeginCallback, OnScrollFrameBeginHandlerResult, ScrollSnapOptions, OffsetOptions, ScrollInterface, ScrollAnimationOptions, ScrollOptions, ScrollEdgeOptions, ScrollToIndexOptions } from "./ArkScrollInterfaces" import { Scroller } from "./ArkScrollerMaterialized" -import { Curve } from "./ArkEnumsInterfaces" import { ICurve } from "./ArkICurveMaterialized" /** @memo:stable */ export class ArkScrollComponent extends ArkScrollableCommonMethodComponent { @@ -42,6 +48,172 @@ export class ArkScrollComponent extends ArkScrollableCommonMethodComponent { } return this } + /** @memo */ + scrollable(value: ScrollDirection): this { + if (this.checkPriority("scrollable")) { + const value_casted = value as (ScrollDirection) + this.peer?.scrollableAttribute(value_casted) + return this + } + return this + } + /** @memo */ + onScroll(event: ((xOffset: number, yOffset: number) => void)): this { + if (this.checkPriority("onScroll")) { + const event_casted = event as (((xOffset: number, yOffset: number) => void)) + this.peer?.onScrollAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onDidScroll(handler: ScrollOnScrollCallback): this { + if (this.checkPriority("onDidScroll")) { + const handler_casted = handler as (ScrollOnScrollCallback) + this.peer?.onDidScrollAttribute(handler_casted) + return this + } + return this + } + /** @memo */ + onScrollEdge(event: OnScrollEdgeCallback): this { + if (this.checkPriority("onScrollEdge")) { + const event_casted = event as (OnScrollEdgeCallback) + this.peer?.onScrollEdgeAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onScrollStart(event: VoidCallback): this { + if (this.checkPriority("onScrollStart")) { + const event_casted = event as (VoidCallback) + this.peer?.onScrollStartAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onScrollEnd(event: (() => void)): this { + if (this.checkPriority("onScrollEnd")) { + const event_casted = event as ((() => void)) + this.peer?.onScrollEndAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onScrollStop(event: VoidCallback): this { + if (this.checkPriority("onScrollStop")) { + const event_casted = event as (VoidCallback) + this.peer?.onScrollStopAttribute(event_casted) + return this + } + return this + } + /** @memo */ + scrollBar(barState: BarState): this { + if (this.checkPriority("scrollBar")) { + const barState_casted = barState as (BarState) + this.peer?.scrollBarAttribute(barState_casted) + return this + } + return this + } + /** @memo */ + scrollBarColor(color: Color | number | string): this { + if (this.checkPriority("scrollBarColor")) { + const color_casted = color as (Color | number | string) + this.peer?.scrollBarColorAttribute(color_casted) + return this + } + return this + } + /** @memo */ + scrollBarWidth(value: number | string): this { + if (this.checkPriority("scrollBarWidth")) { + const value_casted = value as (number | string) + this.peer?.scrollBarWidthAttribute(value_casted) + return this + } + return this + } + /** @memo */ + edgeEffect(edgeEffect: EdgeEffect, options?: EdgeEffectOptions): this { + if (this.checkPriority("edgeEffect")) { + const edgeEffect_casted = edgeEffect as (EdgeEffect) + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (EdgeEffectOptions) + this.peer?.edgeEffectAttribute(edgeEffect_casted, options_casted) + return this + } + return this + } + /** @memo */ + onScrollFrameBegin(event: OnScrollFrameBeginCallback): this { + if (this.checkPriority("onScrollFrameBegin")) { + const event_casted = event as (OnScrollFrameBeginCallback) + this.peer?.onScrollFrameBeginAttribute(event_casted) + return this + } + return this + } + /** @memo */ + nestedScroll(value: NestedScrollOptions): this { + if (this.checkPriority("nestedScroll")) { + const value_casted = value as (NestedScrollOptions) + this.peer?.nestedScrollAttribute(value_casted) + return this + } + return this + } + /** @memo */ + enableScrollInteraction(value: boolean): this { + if (this.checkPriority("enableScrollInteraction")) { + const value_casted = value as (boolean) + this.peer?.enableScrollInteractionAttribute(value_casted) + return this + } + return this + } + /** @memo */ + friction(value: number | Resource): this { + if (this.checkPriority("friction")) { + const value_casted = value as (number | Resource) + this.peer?.frictionAttribute(value_casted) + return this + } + return this + } + /** @memo */ + scrollSnap(value: ScrollSnapOptions): this { + if (this.checkPriority("scrollSnap")) { + const value_casted = value as (ScrollSnapOptions) + this.peer?.scrollSnapAttribute(value_casted) + return this + } + return this + } + /** @memo */ + enablePaging(value: boolean): this { + if (this.checkPriority("enablePaging")) { + const value_casted = value as (boolean) + this.peer?.enablePagingAttribute(value_casted) + return this + } + return this + } + /** @memo */ + initialOffset(value: OffsetOptions): this { + if (this.checkPriority("initialOffset")) { + const value_casted = value as (OffsetOptions) + this.peer?.initialOffsetAttribute(value_casted) + return this + } + return this + } public applyAttributesFinish(): void { // we calls this function outside of class, so need to make it public super.applyAttributesFinish() diff --git a/arkoala-arkts/arkui/src/generated/ArkScrollInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkScrollInterfaces.ts index 401b0aa75..d0080b005 100644 --- a/arkoala-arkts/arkui/src/generated/ArkScrollInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkScrollInterfaces.ts @@ -1,13 +1,308 @@ +import { BarState, Color, EdgeEffect, ScrollSource, Edge, Curve } from "./ArkEnumsInterfaces" +import { EdgeEffectOptions, Optional, FadingEdgeOptions, NestedScrollOptions, ScrollResult, OnScrollCallback } from "./ArkCommonInterfaces" +import { Resource, VoidCallback, LengthMetrics, Dimension, PX, VP, FP, LPX, Percentage } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, IMPORT_LengthMetrics_FROM_api_arkui_Graphics, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage } from "./SyntheticDeclarations" +import { ScrollState, ScrollSnapAlign } from "./ArkListInterfaces" +import { OnWillScrollCallback } from "./ConflictedDeclarations" import { Scroller } from "./ArkScrollerMaterialized" -import { Curve } from "./ArkEnumsInterfaces" import { ICurve } from "./ArkICurveMaterialized" import { KInt } from "@koalaui/interop" +/** + * ScrollAlign. + * + * @enum { number } ScrollAlign + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * ScrollAlign. + * + * @enum { number } ScrollAlign + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class ScrollAlign { + /** + * Start position alignment. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Start position alignment. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly START: ScrollAlign = new ScrollAlign(0) + /** + * Center alignment. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Center alignment. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly CENTER: ScrollAlign = new ScrollAlign(1) + /** + * End position alignment. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * End position alignment. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly END: ScrollAlign = new ScrollAlign(2) + /** + * Scroll the minimum distance to fully display the specified item. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Scroll the minimum distance to fully display the specified item. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly AUTO: ScrollAlign = new ScrollAlign(3) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): ScrollAlign { + if ((arg0) == (ScrollAlign.START.value)) { + return ScrollAlign.START + } + if ((arg0) == (ScrollAlign.CENTER.value)) { + return ScrollAlign.CENTER + } + if ((arg0) == (ScrollAlign.END.value)) { + return ScrollAlign.END + } + if ((arg0) == (ScrollAlign.AUTO.value)) { + return ScrollAlign.AUTO + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/* + * Copyright (c) 2021-2023 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +/** + * @file + * @kit ArkUI + */ +/** + * Content scroll direction. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Content scroll direction. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Content scroll direction. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class ScrollDirection { + /** + * Vertical scrolling is supported. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Vertical scrolling is supported. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Vertical scrolling is supported. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Vertical: ScrollDirection = new ScrollDirection(0) + /** + * Horizontal scrolling is supported. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Horizontal scrolling is supported. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Horizontal scrolling is supported. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Horizontal: ScrollDirection = new ScrollDirection(1) + /** + * Free scrolling is supported. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + * @deprecated since 9 + */ + static readonly Free: ScrollDirection = new ScrollDirection(2) + /** + * Non-scrollable. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Non-scrollable. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Non-scrollable. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly None: ScrollDirection = new ScrollDirection(3) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): ScrollDirection { + if ((arg0) == (ScrollDirection.Vertical.value)) { + return ScrollDirection.Vertical + } + if ((arg0) == (ScrollDirection.Horizontal.value)) { + return ScrollDirection.Horizontal + } + if ((arg0) == (ScrollDirection.Free.value)) { + return ScrollDirection.Free + } + if ((arg0) == (ScrollDirection.None.value)) { + return ScrollDirection.None + } + throw new Error(`Enum member '${arg0}' not found`) + } +} export interface ScrollAttribute { + scrollable(value: ScrollDirection): ScrollAttribute; + onScroll(event: ((xOffset: number, yOffset: number) => void)): ScrollAttribute; + onWillScroll(handler: ScrollOnWillScrollCallback): ScrollAttribute; + onDidScroll(handler: ScrollOnScrollCallback): ScrollAttribute; + onScrollEdge(event: OnScrollEdgeCallback): ScrollAttribute; + onScrollStart(event: VoidCallback): ScrollAttribute; + onScrollEnd(event: (() => void)): ScrollAttribute; + onScrollStop(event: VoidCallback): ScrollAttribute; + scrollBar(barState: BarState): ScrollAttribute; + scrollBarColor(color: Color | number | string): ScrollAttribute; + scrollBarWidth(value: number | string): ScrollAttribute; + edgeEffect(edgeEffect: EdgeEffect,options: EdgeEffectOptions): ScrollAttribute; + onScrollFrameBegin(event: OnScrollFrameBeginCallback): ScrollAttribute; + nestedScroll(value: NestedScrollOptions): ScrollAttribute; + enableScrollInteraction(value: boolean): ScrollAttribute; + friction(value: number | Resource): ScrollAttribute; + scrollSnap(value: ScrollSnapOptions): ScrollAttribute; + enablePaging(value: boolean): ScrollAttribute; + initialOffset(value: OffsetOptions): ScrollAttribute; } export interface ScrollInterface { } +export interface ScrollOptions { + xOffset: number | string + yOffset: number | string + animation?: ScrollAnimationOptions | boolean +} export interface ScrollAnimationOptions { duration?: number curve?: Curve | ICurve canOverScroll?: boolean +} +export interface ScrollEdgeOptions { + velocity?: number +} +export interface OffsetResult { + xOffset: number + yOffset: number +} +export interface ScrollToIndexOptions { + extraOffset?: LengthMetrics +} +export declare type ScrollOnWillScrollCallback = ((xOffset: number, yOffset: number, scrollState: ScrollState, scrollSource: ScrollSource) => OffsetResult) +export declare type ScrollOnScrollCallback = ((xOffset: number, yOffset: number, scrollState: ScrollState) => void) +export declare type OnScrollEdgeCallback = ((side: Edge) => void) +export declare type OnScrollFrameBeginCallback = ((offset: number, state: ScrollState) => OnScrollFrameBeginHandlerResult) +export interface OnScrollFrameBeginHandlerResult { + offsetRemain: number +} +export interface ScrollSnapOptions { + snapAlign: ScrollSnapAlign + snapPagination?: Dimension | Array + enableSnapToStart?: boolean + enableSnapToEnd?: boolean +} +export interface OffsetOptions { + xOffset?: Dimension + yOffset?: Dimension } \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkScrollerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkScrollerMaterialized.ts index 2ffa8b7c9..43e551e74 100644 --- a/arkoala-arkts/arkui/src/generated/ArkScrollerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkScrollerMaterialized.ts @@ -16,9 +16,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { ScrollAnimationOptions } from "./ArkScrollInterfaces" -import { Axis } from "./ArkEnumsInterfaces" -import { LITERAL_XOffsetNumberstringYOffsetNumberstringAnimationScrollAnimationOptionsboolean, LITERAL_NextBoolean, LITERAL_NextBooleanDirectionAxis } from "./SyntheticDeclarations" +import { ScrollOptions, ScrollEdgeOptions, OffsetResult, ScrollAlign, ScrollToIndexOptions } from "./ArkScrollInterfaces" +import { Edge, Axis } from "./ArkEnumsInterfaces" +import { Length, Resource } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, LITERAL_NextBoolean, LITERAL_NextBooleanDirectionAxis } from "./SyntheticDeclarations" +import { RectResult } from "./ArkCommonInterfaces" import { TypeChecker } from "#components" import { Finalizable } from "./Finalizable" @@ -59,9 +61,21 @@ export class Scroller { static getFinalizer(): KPointer { return NativeModule._Scroller_getFinalizer() } - scrollTo(value: LITERAL_XOffsetNumberstringYOffsetNumberstringAnimationScrollAnimationOptionsboolean): void { - const value_casted = value as (LITERAL_XOffsetNumberstringYOffsetNumberstringAnimationScrollAnimationOptionsboolean) - this.scrollTo_serialize(value_casted) + scrollTo(options: ScrollOptions): void { + const options_casted = options as (ScrollOptions) + this.scrollTo_serialize(options_casted) + } + scrollEdge(value: Edge, options?: ScrollEdgeOptions): void { + const value_casted = value as (Edge) + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (ScrollEdgeOptions) + this.scrollEdge_serialize(value_casted, options_casted) + } + fling(velocity: number): void { + const velocity_casted = velocity as (number) + this.fling_serialize(velocity_casted) } scrollPage(value: LITERAL_NextBoolean | LITERAL_NextBooleanDirectionAxis): void { const value_type = runtimeType(value) @@ -75,58 +89,65 @@ export class Scroller { } throw new Error("Can not select appropriate overload") } - private scrollTo_serialize(value: LITERAL_XOffsetNumberstringYOffsetNumberstringAnimationScrollAnimationOptionsboolean): void { - const thisSerializer = SerializerBase.hold(createSerializer) - const value_xOffset = value.xOffset - let value_xOffset_type = RuntimeType.UNDEFINED - value_xOffset_type = runtimeType(value_xOffset) - if (((RuntimeType.NUMBER == value_xOffset_type))) { - thisSerializer.writeInt8(0 as int32) - const value_xOffset_0 = value_xOffset as number - thisSerializer.writeNumber(value_xOffset_0) - } - else if (((RuntimeType.STRING == value_xOffset_type))) { - thisSerializer.writeInt8(1 as int32) - const value_xOffset_1 = value_xOffset as string - thisSerializer.writeString(value_xOffset_1) - } - const value_yOffset = value.yOffset - let value_yOffset_type = RuntimeType.UNDEFINED - value_yOffset_type = runtimeType(value_yOffset) - if (((RuntimeType.NUMBER == value_yOffset_type))) { - thisSerializer.writeInt8(0 as int32) - const value_yOffset_0 = value_yOffset as number - thisSerializer.writeNumber(value_yOffset_0) - } - else if (((RuntimeType.STRING == value_yOffset_type))) { - thisSerializer.writeInt8(1 as int32) - const value_yOffset_1 = value_yOffset as string - thisSerializer.writeString(value_yOffset_1) - } - const value_animation = value.animation - let value_animation_type = RuntimeType.UNDEFINED - if (value_animation != undefined) { - value_animation_type = RuntimeType.OBJECT - } - thisSerializer.writeInt8(value_animation_type as int32) - if ((RuntimeType.UNDEFINED) != (value_animation_type)) { - const value_animation_value = value_animation! - let value_animation_value_type = RuntimeType.UNDEFINED - value_animation_value_type = runtimeType(value_animation_value) - if (((RuntimeType.OBJECT == value_animation_value_type))) { - thisSerializer.writeInt8(0 as int32) - const value_animation_value_0 = value_animation_value as ScrollAnimationOptions - thisSerializer.writeScrollAnimationOptions(value_animation_value_0) - } - else if (((RuntimeType.BOOLEAN == value_animation_value_type))) { - thisSerializer.writeInt8(1 as int32) - const value_animation_value_1 = value_animation_value as boolean - thisSerializer.writeBoolean(value_animation_value_1) - } + currentOffset(): OffsetResult { + return this.currentOffset_serialize() + } + scrollToIndex(value: number, smooth?: boolean, align?: ScrollAlign, options?: ScrollToIndexOptions): void { + const value_casted = value as (number) + if ((smooth) == (undefined)) { + throw new Error("Arg 'smooth' is null"); } + const smooth_casted = smooth as (boolean) + if ((align) == (undefined)) { + throw new Error("Arg 'align' is null"); + } + const align_casted = align as (ScrollAlign) + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (ScrollToIndexOptions) + this.scrollToIndex_serialize(value_casted, smooth_casted, align_casted, options_casted) + } + scrollBy(dx: Length, dy: Length): void { + const dx_casted = dx as (Length) + const dy_casted = dy as (Length) + this.scrollBy_serialize(dx_casted, dy_casted) + } + isAtEnd(): boolean { + return this.isAtEnd_serialize() + } + getItemRect(index: number): RectResult { + const index_casted = index as (number) + return this.getItemRect_serialize(index_casted) + } + getItemIndex(x: number, y: number): number { + const x_casted = x as (number) + const y_casted = y as (number) + return this.getItemIndex_serialize(x_casted, y_casted) + } + private scrollTo_serialize(options: ScrollOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeScrollOptions(options) NativeModule._Scroller_scrollTo(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); thisSerializer.release(); } + private scrollEdge_serialize(value: Edge, options?: ScrollEdgeOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeScrollEdgeOptions(options_value) + } + NativeModule._Scroller_scrollEdge(this.peer!.ptr, (value.value as int32), thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private fling_serialize(velocity: number): void { + NativeModule._Scroller_fling(this.peer!.ptr, velocity); + } private scrollPage0_serialize(value: LITERAL_NextBoolean): void { const thisSerializer = SerializerBase.hold(createSerializer) const value_next = value.next @@ -151,4 +172,59 @@ export class Scroller { NativeModule._Scroller_scrollPage1(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); thisSerializer.release(); } + private currentOffset_serialize(): OffsetResult { + const retval = NativeModule._Scroller_currentOffset(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private scrollToIndex_serialize(value: number, smooth?: boolean, align?: ScrollAlign, options?: ScrollToIndexOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let smooth_type = RuntimeType.UNDEFINED + if (smooth != undefined) { + smooth_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(smooth_type as int32) + if ((RuntimeType.UNDEFINED) != (smooth_type)) { + const smooth_value = smooth! + thisSerializer.writeBoolean(smooth_value) + } + let align_type = RuntimeType.UNDEFINED + if (align != undefined) { + align_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(align_type as int32) + if ((RuntimeType.UNDEFINED) != (align_type)) { + const align_value = align! + thisSerializer.writeInt32((align_value.value as int32)) + } + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeScrollToIndexOptions(options_value) + } + NativeModule._Scroller_scrollToIndex(this.peer!.ptr, value, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private scrollBy_serialize(dx: Length, dy: Length): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeLength(dx); + thisSerializer.writeLength(dy); + NativeModule._Scroller_scrollBy(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private isAtEnd_serialize(): boolean { + const retval = NativeModule._Scroller_isAtEnd(this.peer!.ptr) + return retval + } + private getItemRect_serialize(index: number): RectResult { + const retval = NativeModule._Scroller_getItemRect(this.peer!.ptr, index) + throw new Error("Object deserialization is not implemented.") + } + private getItemIndex_serialize(x: number, y: number): number { + const retval = NativeModule._Scroller_getItemIndex(this.peer!.ptr, x, y) + return retval + } } diff --git a/arkoala-arkts/arkui/src/generated/ArkSecurityComponentInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkSecurityComponentInterfaces.ts index 5f3e82364..ec5155ee6 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSecurityComponentInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSecurityComponentInterfaces.ts @@ -1 +1,105 @@ -import { KInt } from "@koalaui/interop" \ No newline at end of file +import { Dimension, PX, VP, FP, LPX, Percentage, Resource, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions } from "./ArkUnitsInterfaces" +import { TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, IMPORT_Resource_FROM_api_global_resource, LITERAL_TopLengthRightLengthBottomLengthLeftLength } from "./SyntheticDeclarations" +import { FontStyle, FontWeight, Color, BorderStyle } from "./ArkEnumsInterfaces" +import { KInt } from "@koalaui/interop" +/* + * Copyright (c) 2023 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +/** + * @file + * @kit ArkUI + */ +/** + * Enumerates the layout direction of the icon and text. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Enumerates the layout direction of the icon and text. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ +export class SecurityComponentLayoutDirection { + /** + * Horizontal layout. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Horizontal layout. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ + static readonly HORIZONTAL: SecurityComponentLayoutDirection = new SecurityComponentLayoutDirection(0) + /** + * Vertical layout. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * Vertical layout. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ + static readonly VERTICAL: SecurityComponentLayoutDirection = new SecurityComponentLayoutDirection(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): SecurityComponentLayoutDirection { + if ((arg0) == (SecurityComponentLayoutDirection.HORIZONTAL.value)) { + return SecurityComponentLayoutDirection.HORIZONTAL + } + if ((arg0) == (SecurityComponentLayoutDirection.VERTICAL.value)) { + return SecurityComponentLayoutDirection.VERTICAL + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +export interface SecurityComponentMethod { + iconSize(value: Dimension): T; + layoutDirection(value: SecurityComponentLayoutDirection): T; + position(value: Position): T; + markAnchor(value: Position): T; + offset(value: Position | Edges | LocalizedEdges): T; + fontSize(value: Dimension): T; + fontStyle(value: FontStyle): T; + fontWeight(value: number | FontWeight | string): T; + fontFamily(value: string | Resource): T; + fontColor(value: ResourceColor): T; + iconColor(value: ResourceColor): T; + backgroundColor(value: ResourceColor): T; + borderStyle(value: BorderStyle): T; + borderWidth(value: Dimension): T; + borderColor(value: ResourceColor): T; + borderRadius(value: Dimension): T; + padding(value: Padding | Dimension): T; + textIconSpace(value: Dimension): T; + key(value: string): T; + width(value: Length): T; + height(value: Length): T; + size(value: SizeOptions): T; + constraintSize(value: ConstraintSizeOptions): T; +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkSelect.ts b/arkoala-arkts/arkui/src/generated/ArkSelect.ts index 91fc70b27..15aa3a616 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSelect.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSelect.ts @@ -23,11 +23,15 @@ import { ComponentBase } from "./ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkSelectPeer } from "./peers/ArkSelectPeer" -import { MenuItemConfiguration, SelectAttribute, SelectOption, SelectInterface } from "./ArkSelectInterfaces" +import { UseEventsProperties } from "./use_properties" +import { Resource, ResourceStr, Font, ResourceColor, Length, Offset, Dimension, PX, VP, FP, LPX, Percentage } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, LITERAL_DxLengthDyLength, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, IMPORT_SymbolGlyphModifier_FROM_api_arkui_SymbolGlyphModifier } from "./SyntheticDeclarations" +import { SelectAttribute, ArrowPosition, MenuAlignType, MenuItemConfiguration, SelectOption, SelectInterface } from "./ArkSelectInterfaces" +import { Color, OptionWidthMode } from "./ArkEnumsInterfaces" +import { BlurStyle, Optional, CommonConfiguration, SymbolGlyphModifier } from "./ArkCommonInterfaces" +import { ControlSize } from "./ArkButtonInterfaces" import { ContentModifier } from "./ConflictedDeclarations" -import { CommonConfiguration, SymbolGlyphModifier } from "./ArkCommonInterfaces" -import { ResourceStr, Resource } from "./ArkUnitsInterfaces" -import { IMPORT_Resource_FROM_resource_resource, IMPORT_SymbolGlyphModifier_FROM_resource_symbol } from "./SyntheticDeclarations" +import { DividerOptions } from "./ArkTextPickerInterfaces" /** @memo:stable */ export class ArkSelectComponent extends ArkCommonMethodComponent { protected peer?: ArkSelectPeer @@ -41,6 +45,181 @@ export class ArkSelectComponent extends ArkCommonMethodComponent { return this } /** @memo */ + selected(value: number | Resource): this { + if (this.checkPriority("selected")) { + const value_casted = value as (number | Resource) + this.peer?.selectedAttribute(value_casted) + return this + } + return this + } + /** @memo */ + value(value: ResourceStr): this { + if (this.checkPriority("value")) { + const value_casted = value as (ResourceStr) + this.peer?.valueAttribute(value_casted) + return this + } + return this + } + /** @memo */ + font(value: Font): this { + if (this.checkPriority("font")) { + const value_casted = value as (Font) + this.peer?.fontAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fontColor(value: ResourceColor): this { + if (this.checkPriority("fontColor")) { + const value_casted = value as (ResourceColor) + this.peer?.fontColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + selectedOptionBgColor(value: ResourceColor): this { + if (this.checkPriority("selectedOptionBgColor")) { + const value_casted = value as (ResourceColor) + this.peer?.selectedOptionBgColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + selectedOptionFont(value: Font): this { + if (this.checkPriority("selectedOptionFont")) { + const value_casted = value as (Font) + this.peer?.selectedOptionFontAttribute(value_casted) + return this + } + return this + } + /** @memo */ + selectedOptionFontColor(value: ResourceColor): this { + if (this.checkPriority("selectedOptionFontColor")) { + const value_casted = value as (ResourceColor) + this.peer?.selectedOptionFontColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + optionBgColor(value: ResourceColor): this { + if (this.checkPriority("optionBgColor")) { + const value_casted = value as (ResourceColor) + this.peer?.optionBgColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + optionFont(value: Font): this { + if (this.checkPriority("optionFont")) { + const value_casted = value as (Font) + this.peer?.optionFontAttribute(value_casted) + return this + } + return this + } + /** @memo */ + optionFontColor(value: ResourceColor): this { + if (this.checkPriority("optionFontColor")) { + const value_casted = value as (ResourceColor) + this.peer?.optionFontColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + onSelect(callback: ((index: number, value: string) => void)): this { + if (this.checkPriority("onSelect")) { + const callback_casted = callback as (((index: number, value: string) => void)) + this.peer?.onSelectAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + space(value: Length): this { + if (this.checkPriority("space")) { + const value_casted = value as (Length) + this.peer?.spaceAttribute(value_casted) + return this + } + return this + } + /** @memo */ + arrowPosition(value: ArrowPosition): this { + if (this.checkPriority("arrowPosition")) { + const value_casted = value as (ArrowPosition) + this.peer?.arrowPositionAttribute(value_casted) + return this + } + return this + } + /** @memo */ + menuAlign(alignType: MenuAlignType, offset?: Offset): this { + if (this.checkPriority("menuAlign")) { + const alignType_casted = alignType as (MenuAlignType) + if ((offset) == (undefined)) { + throw new Error("Arg 'offset' is null"); + } + const offset_casted = offset as (Offset) + this.peer?.menuAlignAttribute(alignType_casted, offset_casted) + return this + } + return this + } + /** @memo */ + optionWidth(value: Dimension | OptionWidthMode): this { + if (this.checkPriority("optionWidth")) { + const value_casted = value as (Dimension | OptionWidthMode) + this.peer?.optionWidthAttribute(value_casted) + return this + } + return this + } + /** @memo */ + optionHeight(value: Dimension): this { + if (this.checkPriority("optionHeight")) { + const value_casted = value as (Dimension) + this.peer?.optionHeightAttribute(value_casted) + return this + } + return this + } + /** @memo */ + menuBackgroundColor(value: ResourceColor): this { + if (this.checkPriority("menuBackgroundColor")) { + const value_casted = value as (ResourceColor) + this.peer?.menuBackgroundColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + menuBackgroundBlurStyle(value: BlurStyle): this { + if (this.checkPriority("menuBackgroundBlurStyle")) { + const value_casted = value as (BlurStyle) + this.peer?.menuBackgroundBlurStyleAttribute(value_casted) + return this + } + return this + } + /** @memo */ + controlSize(value: ControlSize): this { + if (this.checkPriority("controlSize")) { + const value_casted = value as (ControlSize) + this.peer?.controlSizeAttribute(value_casted) + return this + } + return this + } + /** @memo */ menuItemContentModifier(modifier: ContentModifier): this { if (this.checkPriority("menuItemContentModifier")) { const modifier_casted = modifier as (ContentModifier) @@ -49,6 +228,15 @@ export class ArkSelectComponent extends ArkCommonMethodComponent { } return this } + /** @memo */ + divider(options: DividerOptions | undefined | null): this { + if (this.checkPriority("divider")) { + const options_casted = options as (DividerOptions | undefined | null) + this.peer?.dividerAttribute(options_casted) + return this + } + return this + } public applyAttributesFinish(): void { // we calls this function outside of class, so need to make it public super.applyAttributesFinish() diff --git a/arkoala-arkts/arkui/src/generated/ArkSelectInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkSelectInterfaces.ts index 0244cf4dc..726513846 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSelectInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSelectInterfaces.ts @@ -1,10 +1,176 @@ +import { Resource, ResourceStr, Font, ResourceColor, Length, Offset, Dimension, PX, VP, FP, LPX, Percentage } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, LITERAL_DxLengthDyLength, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, IMPORT_SymbolGlyphModifier_FROM_api_arkui_SymbolGlyphModifier } from "./SyntheticDeclarations" +import { Color, OptionWidthMode } from "./ArkEnumsInterfaces" +import { BlurStyle, Optional, CommonConfiguration, SymbolGlyphModifier } from "./ArkCommonInterfaces" +import { ControlSize } from "./ArkButtonInterfaces" import { ContentModifier } from "./ConflictedDeclarations" -import { CommonConfiguration, SymbolGlyphModifier } from "./ArkCommonInterfaces" -import { ResourceStr, Resource } from "./ArkUnitsInterfaces" -import { IMPORT_Resource_FROM_resource_resource, IMPORT_SymbolGlyphModifier_FROM_resource_symbol } from "./SyntheticDeclarations" +import { DividerOptions } from "./ArkTextPickerInterfaces" import { KInt } from "@koalaui/interop" +/** + * The enum for arrow position in the select + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * The enum for arrow position in the select + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class ArrowPosition { + /** + * The value of arrow position end + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * The value of arrow position end + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly END: ArrowPosition = new ArrowPosition(0) + /** + * The value of arrow position start + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * The value of arrow position start + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly START: ArrowPosition = new ArrowPosition(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): ArrowPosition { + if ((arg0) == (ArrowPosition.END.value)) { + return ArrowPosition.END + } + if ((arg0) == (ArrowPosition.START.value)) { + return ArrowPosition.START + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * The type of alignment between select and menu. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * The type of alignment between select and menu. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class MenuAlignType { + /** + * The value of menu align type start. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * The value of menu align type start. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly START: MenuAlignType = new MenuAlignType(0) + /** + * The value of menu align type center. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * The value of menu align type center. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly CENTER: MenuAlignType = new MenuAlignType(1) + /** + * The value of menu align type end. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 10 + */ +/** + * The value of menu align type end. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly END: MenuAlignType = new MenuAlignType(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): MenuAlignType { + if ((arg0) == (MenuAlignType.START.value)) { + return MenuAlignType.START + } + if ((arg0) == (MenuAlignType.CENTER.value)) { + return MenuAlignType.CENTER + } + if ((arg0) == (MenuAlignType.END.value)) { + return MenuAlignType.END + } + throw new Error(`Enum member '${arg0}' not found`) + } +} export interface SelectAttribute { + selected(value: number | Resource): SelectAttribute; + value(value: ResourceStr): SelectAttribute; + font(value: Font): SelectAttribute; + fontColor(value: ResourceColor): SelectAttribute; + selectedOptionBgColor(value: ResourceColor): SelectAttribute; + selectedOptionFont(value: Font): SelectAttribute; + selectedOptionFontColor(value: ResourceColor): SelectAttribute; + optionBgColor(value: ResourceColor): SelectAttribute; + optionFont(value: Font): SelectAttribute; + optionFontColor(value: ResourceColor): SelectAttribute; + onSelect(callback: ((index: number, value: string) => void)): SelectAttribute; + space(value: Length): SelectAttribute; + arrowPosition(value: ArrowPosition): SelectAttribute; + menuAlign(alignType: MenuAlignType,offset: Offset): SelectAttribute; + optionWidth(value: Dimension | OptionWidthMode): SelectAttribute; + optionHeight(value: Dimension): SelectAttribute; + menuBackgroundColor(value: ResourceColor): SelectAttribute; + menuBackgroundBlurStyle(value: BlurStyle): SelectAttribute; + controlSize(value: ControlSize): SelectAttribute; menuItemContentModifier(modifier: ContentModifier): SelectAttribute; + divider(options: DividerOptions | undefined | null): SelectAttribute; } export interface SelectInterface { } @@ -13,6 +179,9 @@ export interface MenuItemConfiguration { contentModifier: ContentModifier value: ResourceStr icon?: ResourceStr + symbolIcon?: SymbolGlyphModifier + selected: boolean + index: number } export interface SelectOption { value: ResourceStr diff --git a/arkoala-arkts/arkui/src/generated/ArkShape.ts b/arkoala-arkts/arkui/src/generated/ArkShape.ts index 3c6b8c421..1c5dbfd6c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkShape.ts +++ b/arkoala-arkts/arkui/src/generated/ArkShape.ts @@ -22,15 +22,150 @@ import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from " import { ComponentBase } from "./ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" -import { ArkShapePeer } from "./peers/ArkShapePeer" +import { ArkShapePeer, ViewPortValuesType } from "./peers/ArkShapePeer" +import { LITERAL_XNumberstringYNumberstringWidthNumberstringHeightNumberstring, IMPORT_Resource_FROM_api_global_resource, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image } from "./SyntheticDeclarations" import { ShapeAttribute, ShapeInterface } from "./ArkShapeInterfaces" +import { ResourceColor, Resource } from "./ArkUnitsInterfaces" +import { Color, LineCapStyle, LineJoinStyle } from "./ArkEnumsInterfaces" +import { PixelMap } from "./ArkCommonInterfaces" /** @memo:stable */ export class ArkShapeComponent extends ArkCommonMethodComponent { protected peer?: ArkShapePeer /** @memo */ - setShapeOptions(): this { + setShapeOptions(value?: PixelMap): this { if (this.checkPriority("setShapeOptions")) { - this.peer?.setShapeOptionsAttribute() + const value_type = runtimeType(value) + if ((((RuntimeType.OBJECT == value_type)))) { + if ((value) == (undefined)) { + throw new Error("Arg 'value' is null"); + } + const value_casted = value as (PixelMap) + this.peer?.setShapeOptions0Attribute(value_casted) + return this + } + if ((((RuntimeType.UNDEFINED == value_type)))) { + this.peer?.setShapeOptions1Attribute() + return this + } + throw new Error("Can not select appropriate overload") + } + return this + } + /** @memo */ + viewPort(value: ViewPortValuesType): this { + if (this.checkPriority("viewPort")) { + const value_casted = value as (ViewPortValuesType) + this.peer?.viewPortAttribute(value_casted) + return this + } + return this + } + /** @memo */ + stroke(value: ResourceColor): this { + if (this.checkPriority("stroke")) { + const value_casted = value as (ResourceColor) + this.peer?.strokeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fill(value: ResourceColor): this { + if (this.checkPriority("fill")) { + const value_casted = value as (ResourceColor) + this.peer?.fillAttribute(value_casted) + return this + } + return this + } + /** @memo */ + strokeDashOffset(value: number | string): this { + if (this.checkPriority("strokeDashOffset")) { + const value_casted = value as (number | string) + this.peer?.strokeDashOffsetAttribute(value_casted) + return this + } + return this + } + /** @memo */ + strokeDashArray(value: Array): this { + if (this.checkPriority("strokeDashArray")) { + const value_casted = value as (Array) + this.peer?.strokeDashArrayAttribute(value_casted) + return this + } + return this + } + /** @memo */ + strokeLineCap(value: LineCapStyle): this { + if (this.checkPriority("strokeLineCap")) { + const value_casted = value as (LineCapStyle) + this.peer?.strokeLineCapAttribute(value_casted) + return this + } + return this + } + /** @memo */ + strokeLineJoin(value: LineJoinStyle): this { + if (this.checkPriority("strokeLineJoin")) { + const value_casted = value as (LineJoinStyle) + this.peer?.strokeLineJoinAttribute(value_casted) + return this + } + return this + } + /** @memo */ + strokeMiterLimit(value: number | string): this { + if (this.checkPriority("strokeMiterLimit")) { + const value_casted = value as (number | string) + this.peer?.strokeMiterLimitAttribute(value_casted) + return this + } + return this + } + /** @memo */ + strokeOpacity(value: number | string | Resource): this { + if (this.checkPriority("strokeOpacity")) { + const value_casted = value as (number | string | Resource) + this.peer?.strokeOpacityAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fillOpacity(value: number | string | Resource): this { + if (this.checkPriority("fillOpacity")) { + const value_casted = value as (number | string | Resource) + this.peer?.fillOpacityAttribute(value_casted) + return this + } + return this + } + /** @memo */ + strokeWidth(value: number | string): this { + if (this.checkPriority("strokeWidth")) { + const value_casted = value as (number | string) + this.peer?.strokeWidthAttribute(value_casted) + return this + } + return this + } + /** @memo */ + antiAlias(value: boolean): this { + if (this.checkPriority("antiAlias")) { + const value_casted = value as (boolean) + this.peer?.antiAliasAttribute(value_casted) + return this + } + return this + } + /** @memo */ + mesh(value: Array, column: number, row: number): this { + if (this.checkPriority("mesh")) { + const value_casted = value as (Array) + const column_casted = column as (number) + const row_casted = row as (number) + this.peer?.meshAttribute(value_casted, column_casted, row_casted) return this } return this @@ -47,13 +182,13 @@ export function ArkShape( style: ((attributes: ArkShapeComponent) => void) | undefined, /** @memo */ content_: (() => void) | undefined, - + value?: PixelMap ) { const receiver = remember(() => { return new ArkShapeComponent() }) NodeAttach((): ArkShapePeer => ArkShapePeer.create(ArkUINodeType.Shape, receiver), (_: ArkShapePeer) => { - receiver.setShapeOptions() + receiver.setShapeOptions(value) style?.(receiver) content_?.() receiver.applyAttributesFinish() diff --git a/arkoala-arkts/arkui/src/generated/ArkShapeInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkShapeInterfaces.ts index 603f16acd..9499f5250 100644 --- a/arkoala-arkts/arkui/src/generated/ArkShapeInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkShapeInterfaces.ts @@ -1,5 +1,22 @@ +import { LITERAL_XNumberstringYNumberstringWidthNumberstringHeightNumberstring, IMPORT_Resource_FROM_api_global_resource, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image } from "./SyntheticDeclarations" +import { ResourceColor, Resource } from "./ArkUnitsInterfaces" +import { Color, LineCapStyle, LineJoinStyle } from "./ArkEnumsInterfaces" +import { PixelMap } from "./ArkCommonInterfaces" import { KInt } from "@koalaui/interop" export interface ShapeAttribute { + viewPort(value: LITERAL_XNumberstringYNumberstringWidthNumberstringHeightNumberstring): ShapeAttribute; + stroke(value: ResourceColor): ShapeAttribute; + fill(value: ResourceColor): ShapeAttribute; + strokeDashOffset(value: number | string): ShapeAttribute; + strokeDashArray(value: Array): ShapeAttribute; + strokeLineCap(value: LineCapStyle): ShapeAttribute; + strokeLineJoin(value: LineJoinStyle): ShapeAttribute; + strokeMiterLimit(value: number | string): ShapeAttribute; + strokeOpacity(value: number | string | Resource): ShapeAttribute; + fillOpacity(value: number | string | Resource): ShapeAttribute; + strokeWidth(value: number | string): ShapeAttribute; + antiAlias(value: boolean): ShapeAttribute; + mesh(value: Array,column: number,row: number): ShapeAttribute; } export interface ShapeInterface { } \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkSidebar.ts b/arkoala-arkts/arkui/src/generated/ArkSidebar.ts index d6e298516..44afb4fd2 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSidebar.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSidebar.ts @@ -23,21 +23,82 @@ import { ComponentBase } from "./ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkSideBarContainerPeer } from "./peers/ArkSidebarPeer" -import { SideBarContainerAttribute, SideBarContainerInterface } from "./ArkSidebarInterfaces" -import { Length, Resource } from "./ArkUnitsInterfaces" -import { IMPORT_Resource_FROM_resource_resource } from "./SyntheticDeclarations" +import { UseEventsProperties } from "./use_properties" +import { SideBarContainerAttribute, ButtonStyle, SideBarPosition, SideBarContainerType, SideBarContainerInterface } from "./ArkSidebarInterfaces" +import { Length, Resource, Dimension, PX, VP, FP, LPX, Percentage } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image, LITERAL_ShownStringPixelMapResourceHiddenStringPixelMapResourceSwitchingStringPixelMapResource } from "./SyntheticDeclarations" +import { DividerStyle } from "./ArkTabsInterfaces" +import { PixelMap } from "./ArkCommonInterfaces" /** @memo:stable */ export class ArkSideBarContainerComponent extends ArkCommonMethodComponent { protected peer?: ArkSideBarContainerPeer /** @memo */ - setSideBarContainerOptions(): this { + setSideBarContainerOptions(type?: SideBarContainerType): this { if (this.checkPriority("setSideBarContainerOptions")) { - this.peer?.setSideBarContainerOptionsAttribute() + if ((type) == (undefined)) { + throw new Error("Arg 'type' is null"); + } + const type_casted = type as (SideBarContainerType) + this.peer?.setSideBarContainerOptionsAttribute(type_casted) + return this + } + return this + } + /** @memo */ + showSideBar(value: boolean): this { + if (this.checkPriority("showSideBar")) { + const value_casted = value as (boolean) + this.peer?.showSideBarAttribute(value_casted) + return this + } + return this + } + /** @memo */ + controlButton(value: ButtonStyle): this { + if (this.checkPriority("controlButton")) { + const value_casted = value as (ButtonStyle) + this.peer?.controlButtonAttribute(value_casted) return this } return this } /** @memo */ + showControlButton(value: boolean): this { + if (this.checkPriority("showControlButton")) { + const value_casted = value as (boolean) + this.peer?.showControlButtonAttribute(value_casted) + return this + } + return this + } + /** @memo */ + onChange(callback: ((value: boolean) => void)): this { + if (this.checkPriority("onChange")) { + const callback_casted = callback as (((value: boolean) => void)) + this.peer?.onChangeAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + sideBarWidth(value: number | Length): this { + if (this.checkPriority("sideBarWidth")) { + const value_type = runtimeType(value) + if ((((RuntimeType.NUMBER == value_type)))) { + const value_casted = value as (number) + this.peer?.sideBarWidth0Attribute(value_casted) + return this + } + if ((((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value))))) { + const value_casted = value as (Length) + this.peer?.sideBarWidth1Attribute(value_casted) + return this + } + throw new Error("Can not select appropriate overload") + } + return this + } + /** @memo */ minSideBarWidth(value: number | Length): this { if (this.checkPriority("minSideBarWidth")) { const value_type = runtimeType(value) @@ -55,6 +116,60 @@ export class ArkSideBarContainerComponent extends ArkCommonMethodComponent { } return this } + /** @memo */ + maxSideBarWidth(value: number | Length): this { + if (this.checkPriority("maxSideBarWidth")) { + const value_type = runtimeType(value) + if ((((RuntimeType.NUMBER == value_type)))) { + const value_casted = value as (number) + this.peer?.maxSideBarWidth0Attribute(value_casted) + return this + } + if ((((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value))))) { + const value_casted = value as (Length) + this.peer?.maxSideBarWidth1Attribute(value_casted) + return this + } + throw new Error("Can not select appropriate overload") + } + return this + } + /** @memo */ + autoHide(value: boolean): this { + if (this.checkPriority("autoHide")) { + const value_casted = value as (boolean) + this.peer?.autoHideAttribute(value_casted) + return this + } + return this + } + /** @memo */ + sideBarPosition(value: SideBarPosition): this { + if (this.checkPriority("sideBarPosition")) { + const value_casted = value as (SideBarPosition) + this.peer?.sideBarPositionAttribute(value_casted) + return this + } + return this + } + /** @memo */ + divider(value: DividerStyle | null): this { + if (this.checkPriority("divider")) { + const value_casted = value as (DividerStyle | null) + this.peer?.dividerAttribute(value_casted) + return this + } + return this + } + /** @memo */ + minContentWidth(value: Dimension): this { + if (this.checkPriority("minContentWidth")) { + const value_casted = value as (Dimension) + this.peer?.minContentWidthAttribute(value_casted) + return this + } + return this + } public applyAttributesFinish(): void { // we calls this function outside of class, so need to make it public super.applyAttributesFinish() @@ -67,13 +182,13 @@ export function ArkSideBarContainer( style: ((attributes: ArkSideBarContainerComponent) => void) | undefined, /** @memo */ content_: (() => void) | undefined, - + type?: SideBarContainerType ) { const receiver = remember(() => { return new ArkSideBarContainerComponent() }) NodeAttach((): ArkSideBarContainerPeer => ArkSideBarContainerPeer.create(ArkUINodeType.SideBarContainer, receiver), (_: ArkSideBarContainerPeer) => { - receiver.setSideBarContainerOptions() + receiver.setSideBarContainerOptions(type) style?.(receiver) content_?.() receiver.applyAttributesFinish() diff --git a/arkoala-arkts/arkui/src/generated/ArkSidebarInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkSidebarInterfaces.ts index 42fdeea0e..ab565b47b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSidebarInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSidebarInterfaces.ts @@ -1,8 +1,228 @@ -import { Length, Resource } from "./ArkUnitsInterfaces" -import { IMPORT_Resource_FROM_resource_resource } from "./SyntheticDeclarations" +import { Length, Resource, Dimension, PX, VP, FP, LPX, Percentage } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image, LITERAL_ShownStringPixelMapResourceHiddenStringPixelMapResourceSwitchingStringPixelMapResource } from "./SyntheticDeclarations" +import { DividerStyle } from "./ArkTabsInterfaces" +import { PixelMap } from "./ArkCommonInterfaces" import { KInt } from "@koalaui/interop" +/** + * Sets the sidebar position of showing + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 9 + */ +/** + * Sets the sidebar position of showing + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Sets the sidebar position of showing + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class SideBarPosition { + /** + * The sidebar is on the Start of the container + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 9 + */ +/** + * The sidebar is on the Start of the container + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * The sidebar is on the Start of the container + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Start: SideBarPosition = new SideBarPosition(0) + /** + * The sidebar is on the End of the container + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 9 + */ +/** + * The sidebar is on the End of the container + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * The sidebar is on the End of the container + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly End: SideBarPosition = new SideBarPosition(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): SideBarPosition { + if ((arg0) == (SideBarPosition.Start.value)) { + return SideBarPosition.Start + } + if ((arg0) == (SideBarPosition.End.value)) { + return SideBarPosition.End + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/* + * Copyright (c) 2021-2023 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +/** + * @file + * @kit ArkUI + */ +/** + * Sets the sidebar style of showing + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * Sets the sidebar style of showing + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Sets the sidebar style of showing + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class SideBarContainerType { + /** + * The sidebar invisible + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * The sidebar invisible + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * The sidebar invisible + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Embed: SideBarContainerType = new SideBarContainerType(0) + /** + * The sidebar visible + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * The sidebar visible + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * The sidebar visible + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Overlay: SideBarContainerType = new SideBarContainerType(1) + /** + * The sidebar AUTO + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * The sidebar AUTO + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly AUTO: SideBarContainerType = new SideBarContainerType(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): SideBarContainerType { + if ((arg0) == (SideBarContainerType.Embed.value)) { + return SideBarContainerType.Embed + } + if ((arg0) == (SideBarContainerType.Overlay.value)) { + return SideBarContainerType.Overlay + } + if ((arg0) == (SideBarContainerType.AUTO.value)) { + return SideBarContainerType.AUTO + } + throw new Error(`Enum member '${arg0}' not found`) + } +} export interface SideBarContainerAttribute { + showSideBar(value: boolean): SideBarContainerAttribute; + controlButton(value: ButtonStyle): SideBarContainerAttribute; + showControlButton(value: boolean): SideBarContainerAttribute; + onChange(callback: ((value: boolean) => void)): SideBarContainerAttribute; + sideBarWidth(value: number): SideBarContainerAttribute; minSideBarWidth(value: number): SideBarContainerAttribute; + maxSideBarWidth(value: number): SideBarContainerAttribute; + autoHide(value: boolean): SideBarContainerAttribute; + sideBarPosition(value: SideBarPosition): SideBarContainerAttribute; + divider(value: DividerStyle | null): SideBarContainerAttribute; + minContentWidth(value: Dimension): SideBarContainerAttribute; } export interface SideBarContainerInterface { +} +export interface ButtonStyle { + left?: number + top?: number + width?: number + height?: number + icons?: LITERAL_ShownStringPixelMapResourceHiddenStringPixelMapResourceSwitchingStringPixelMapResource } \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkSliderInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkSliderInterfaces.ts index 5f3e82364..424cae790 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSliderInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSliderInterfaces.ts @@ -1 +1,521 @@ -import { KInt } from "@koalaui/interop" \ No newline at end of file +import { ResourceColor, Resource, ResourceStr, Length, Dimension, PX, VP, FP, LPX, Percentage, SizeOptions } from "./ArkUnitsInterfaces" +import { Color, Axis } from "./ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage } from "./SyntheticDeclarations" +import { LinearGradient, ContentModifier } from "./ConflictedDeclarations" +import { CircleAttribute } from "./ArkCircleInterfaces" +import { EllipseAttribute } from "./ArkEllipseInterfaces" +import { PathAttribute } from "./ArkPathInterfaces" +import { RectAttribute } from "./ArkRectInterfaces" +import { CommonConfiguration } from "./ArkCommonInterfaces" +import { KInt } from "@koalaui/interop" +/** + * Declare SliderChangeMode + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Declare SliderChangeMode + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Declare SliderChangeMode + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Declare SliderChangeMode + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ +export class SliderChangeMode { + /** + * Start dragging the slider. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Start dragging the slider. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Start dragging the slider. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Start dragging the slider. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Begin: SliderChangeMode = new SliderChangeMode(0) + /** + * Drag the slider. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Drag the slider. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Drag the slider. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Drag the slider. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Moving: SliderChangeMode = new SliderChangeMode(1) + /** + * End dragging the slider. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * End dragging the slider. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * End dragging the slider. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * End dragging the slider. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly End: SliderChangeMode = new SliderChangeMode(2) + /** + * Click the slider. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 8 + */ +/** + * Click the slider. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Click the slider. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Click the slider. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly Click: SliderChangeMode = new SliderChangeMode(3) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): SliderChangeMode { + if ((arg0) == (SliderChangeMode.Begin.value)) { + return SliderChangeMode.Begin + } + if ((arg0) == (SliderChangeMode.Moving.value)) { + return SliderChangeMode.Moving + } + if ((arg0) == (SliderChangeMode.End.value)) { + return SliderChangeMode.End + } + if ((arg0) == (SliderChangeMode.Click.value)) { + return SliderChangeMode.Click + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Declare SliderBlockType + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Declare SliderBlockType + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class SliderBlockType { + /** + * Use the default block. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Use the default block. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly DEFAULT: SliderBlockType = new SliderBlockType(0) + /** + * Use an image as the slider block. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Use an image as the slider block. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly IMAGE: SliderBlockType = new SliderBlockType(1) + /** + * Use a shape as the slider block. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Use a shape as the slider block. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly SHAPE: SliderBlockType = new SliderBlockType(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): SliderBlockType { + if ((arg0) == (SliderBlockType.DEFAULT.value)) { + return SliderBlockType.DEFAULT + } + if ((arg0) == (SliderBlockType.IMAGE.value)) { + return SliderBlockType.IMAGE + } + if ((arg0) == (SliderBlockType.SHAPE.value)) { + return SliderBlockType.SHAPE + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Declare SliderInteraction + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ +export class SliderInteraction { + /** + * Allow user to slide the block and click track to move the block + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly SLIDE_AND_CLICK: SliderInteraction = new SliderInteraction(0) + /** + * Only allow user to slide the block + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly SLIDE_ONLY: SliderInteraction = new SliderInteraction(1) + /** + * Allow user to slide the block and click track to move the block, but click value only change when touch up. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly SLIDE_AND_CLICK_UP: SliderInteraction = new SliderInteraction(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): SliderInteraction { + if ((arg0) == (SliderInteraction.SLIDE_AND_CLICK.value)) { + return SliderInteraction.SLIDE_AND_CLICK + } + if ((arg0) == (SliderInteraction.SLIDE_ONLY.value)) { + return SliderInteraction.SLIDE_ONLY + } + if ((arg0) == (SliderInteraction.SLIDE_AND_CLICK_UP.value)) { + return SliderInteraction.SLIDE_AND_CLICK_UP + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/* + * Copyright (c) 2021-2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +/** + * @file + * @kit ArkUI + */ +/** + * Declare sliderstyle + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Declare sliderstyle + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * Declare sliderstyle + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Declare sliderstyle + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ +export class SliderStyle { + /** + * The slider is on the slide rail. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * The slider is on the slide rail. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * The slider is on the slide rail. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * The slider is on the slide rail. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly OutSet: SliderStyle = new SliderStyle(0) + /** + * The slider is in the slide rail. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * The slider is in the slide rail. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 9 + */ +/** + * The slider is in the slide rail. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * The slider is in the slide rail. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly InSet: SliderStyle = new SliderStyle(1) + /** + * No slider. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly NONE: SliderStyle = new SliderStyle(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): SliderStyle { + if ((arg0) == (SliderStyle.OutSet.value)) { + return SliderStyle.OutSet + } + if ((arg0) == (SliderStyle.InSet.value)) { + return SliderStyle.InSet + } + if ((arg0) == (SliderStyle.NONE.value)) { + return SliderStyle.NONE + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +export interface SliderAttribute { + blockColor(value: ResourceColor): SliderAttribute; + trackColor(value: ResourceColor | LinearGradient): SliderAttribute; + selectedColor(value: ResourceColor): SliderAttribute; + minLabel(value: string): SliderAttribute; + maxLabel(value: string): SliderAttribute; + showSteps(value: boolean): SliderAttribute; + showTips(value: boolean,content: ResourceStr): SliderAttribute; + trackThickness(value: Length): SliderAttribute; + onChange(callback: ((value: number, mode: SliderChangeMode) => void)): SliderAttribute; + blockBorderColor(value: ResourceColor): SliderAttribute; + blockBorderWidth(value: Length): SliderAttribute; + stepColor(value: ResourceColor): SliderAttribute; + trackBorderRadius(value: Length): SliderAttribute; + selectedBorderRadius(value: Dimension): SliderAttribute; + blockSize(value: SizeOptions): SliderAttribute; + blockStyle(value: SliderBlockStyle): SliderAttribute; + stepSize(value: Length): SliderAttribute; + sliderInteractionMode(value: SliderInteraction): SliderAttribute; + minResponsiveDistance(value: number): SliderAttribute; + contentModifier(modifier: ContentModifier): SliderAttribute; + slideRange(value: SlideRange): SliderAttribute; +} +export interface SliderInterface { +} +export interface SliderBlockStyle { + type: SliderBlockType + image?: ResourceStr + shape?: CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute +} +export interface SliderConfiguration { + enabled: boolean + contentModifier: ContentModifier + value: number + min: number + max: number + step: number + triggerChange: SliderTriggerChangeCallback +} +export declare type SliderTriggerChangeCallback = ((value: number, mode: SliderChangeMode) => void) +export interface SlideRange { + from?: number + to?: number +} +export interface SliderOptions { + value?: number + min?: number + max?: number + step?: number + style?: SliderStyle + direction?: Axis + reverse?: boolean +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkSpanInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkSpanInterfaces.ts index 5f3e82364..ace058489 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSpanInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSpanInterfaces.ts @@ -1 +1,29 @@ -import { KInt } from "@koalaui/interop" \ No newline at end of file +import { LengthMetrics, Font, ResourceColor, Resource, Length, Dimension, PX, VP, FP, LPX, Percentage, BorderRadiuses } from "./ArkUnitsInterfaces" +import { IMPORT_LengthMetrics_FROM_api_arkui_Graphics, IMPORT_Resource_FROM_api_global_resource, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, LITERAL_TopLeftLengthTopRightLengthBottomLeftLengthBottomRightLength } from "./SyntheticDeclarations" +import { Color, FontStyle, FontWeight, TextCase } from "./ArkEnumsInterfaces" +import { DecorationStyleInterface } from "./ArkStyledStringInterfaces" +import { ShadowOptions } from "./ArkCommonInterfaces" +import { KInt } from "@koalaui/interop" +export interface BaseSpan { + textBackgroundStyle(style: TextBackgroundStyle): T; + baselineOffset(value: LengthMetrics): T; +} +export interface SpanAttribute { + font(value: Font): SpanAttribute; + fontColor(value: ResourceColor): SpanAttribute; + fontSize(value: number | string | Resource): SpanAttribute; + fontStyle(value: FontStyle): SpanAttribute; + fontWeight(value: number | FontWeight | string): SpanAttribute; + fontFamily(value: string | Resource): SpanAttribute; + decoration(value: DecorationStyleInterface): SpanAttribute; + letterSpacing(value: number | string): SpanAttribute; + textCase(value: TextCase): SpanAttribute; + lineHeight(value: Length): SpanAttribute; + textShadow(value: ShadowOptions | Array): SpanAttribute; +} +export interface SpanInterface { +} +export interface TextBackgroundStyle { + color?: ResourceColor + radius?: Dimension | BorderRadiuses +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkStyledStringInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkStyledStringInterfaces.ts index 5f3e82364..449aee89a 100644 --- a/arkoala-arkts/arkui/src/generated/ArkStyledStringInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkStyledStringInterfaces.ts @@ -1 +1,281 @@ -import { KInt } from "@koalaui/interop" \ No newline at end of file +import { TextDecorationType, Color, TextDecorationStyle, ImageSpanAlignment, ImageFit, TextAlign, TextOverflow, WordBreak } from "./ArkEnumsInterfaces" +import { ResourceColor, Resource, SizeOptions, LengthMetrics, Margin, Padding, Length, BorderRadiuses } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image, IMPORT_LengthMetrics_FROM_api_arkui_Graphics, LITERAL_TopLengthRightLengthBottomLengthLeftLength, LITERAL_TopLeftLengthTopRightLengthBottomLeftLengthBottomRightLength } from "./SyntheticDeclarations" +import { PixelMap, ShadowOptions, ClickEvent, Callback } from "./ArkCommonInterfaces" +import { TextStyle } from "./ArkAlertDialogInterfaces" +import { CustomSpan } from "./ArkCustomSpanMaterialized" +import { GestureEvent } from "./ArkGestureInterfaces" +import { LeadingMarginPlaceholder } from "./ArkRichEditorInterfaces" +import { TextBackgroundStyle } from "./ArkSpanInterfaces" +import { KInt } from "@koalaui/interop" +/** + * the attribute type of the StyledString + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ +export class StyledStringKey { + /** + * The key of TextStyle. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly FONT: StyledStringKey = new StyledStringKey(0) + /** + * The key of DecorationStyle. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly DECORATION: StyledStringKey = new StyledStringKey(1) + /** + * The key of BaselineOffsetStyle. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly BASELINE_OFFSET: StyledStringKey = new StyledStringKey(2) + /** + * The key of LetterSpacingStyle. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly LETTER_SPACING: StyledStringKey = new StyledStringKey(3) + /** + * The key of TextShadowStyle. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly TEXT_SHADOW: StyledStringKey = new StyledStringKey(4) + /** + * The key of LineHeightStyle. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly LINE_HEIGHT: StyledStringKey = new StyledStringKey(5) + /** + * The key of BackgroundColorStyle. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 13 + */ + static readonly BACKGROUND_COLOR: StyledStringKey = new StyledStringKey(6) + /** + * The key of UrlStyle. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 13 + */ + static readonly URL: StyledStringKey = new StyledStringKey(7) + /** + * The key of GestureStyle. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly GESTURE: StyledStringKey = new StyledStringKey(100) + /** + * The key of ParagraphStyle. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly PARAGRAPH_STYLE: StyledStringKey = new StyledStringKey(200) + /** + * The key of ImageAttachment. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly IMAGE: StyledStringKey = new StyledStringKey(300) + /** + * The key of CustomSpan. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly CUSTOM_SPAN: StyledStringKey = new StyledStringKey(400) + /** + * The key of UserDataSpan. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly USER_DATA: StyledStringKey = new StyledStringKey(500) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): StyledStringKey { + if ((arg0) == (StyledStringKey.FONT.value)) { + return StyledStringKey.FONT + } + if ((arg0) == (StyledStringKey.DECORATION.value)) { + return StyledStringKey.DECORATION + } + if ((arg0) == (StyledStringKey.BASELINE_OFFSET.value)) { + return StyledStringKey.BASELINE_OFFSET + } + if ((arg0) == (StyledStringKey.LETTER_SPACING.value)) { + return StyledStringKey.LETTER_SPACING + } + if ((arg0) == (StyledStringKey.TEXT_SHADOW.value)) { + return StyledStringKey.TEXT_SHADOW + } + if ((arg0) == (StyledStringKey.LINE_HEIGHT.value)) { + return StyledStringKey.LINE_HEIGHT + } + if ((arg0) == (StyledStringKey.BACKGROUND_COLOR.value)) { + return StyledStringKey.BACKGROUND_COLOR + } + if ((arg0) == (StyledStringKey.URL.value)) { + return StyledStringKey.URL + } + if ((arg0) == (StyledStringKey.GESTURE.value)) { + return StyledStringKey.GESTURE + } + if ((arg0) == (StyledStringKey.PARAGRAPH_STYLE.value)) { + return StyledStringKey.PARAGRAPH_STYLE + } + if ((arg0) == (StyledStringKey.IMAGE.value)) { + return StyledStringKey.IMAGE + } + if ((arg0) == (StyledStringKey.CUSTOM_SPAN.value)) { + return StyledStringKey.CUSTOM_SPAN + } + if ((arg0) == (StyledStringKey.USER_DATA.value)) { + return StyledStringKey.USER_DATA + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +export interface DecorationStyleInterface { + type: TextDecorationType + color?: ResourceColor + style?: TextDecorationStyle +} +export declare class ImageAttachment { + value: PixelMap; + size?: SizeOptions; + verticalAlign?: ImageSpanAlignment; + objectFit?: ImageFit; + layoutStyle?: ImageAttachmentLayoutStyle; +} +export interface ImageAttachmentInterface { + value: PixelMap + size?: SizeOptions + verticalAlign?: ImageSpanAlignment + objectFit?: ImageFit + layoutStyle?: ImageAttachmentLayoutStyle +} +export interface ImageAttachmentLayoutStyle { + margin?: LengthMetrics | Margin + padding?: LengthMetrics | Padding + borderRadius?: LengthMetrics | BorderRadiuses +} +export interface CustomSpanMeasureInfo { + fontSize: number +} +export interface CustomSpanMetrics { + width: number + height?: number +} +export interface CustomSpanDrawInfo { + x: number + lineTop: number + lineBottom: number + baseline: number +} +export interface StyleOptions { + start?: number + length?: number + styledKey: StyledStringKey + styledValue: StyledStringValue +} +export declare type StyledStringValue = TextStyle | DecorationStyle | BaselineOffsetStyle | LetterSpacingStyle | TextShadowStyle | GestureStyle | ImageAttachment | ParagraphStyle | LineHeightStyle | UrlStyle | CustomSpan | UserDataSpan | BackgroundColorStyle +export declare class DecorationStyle { + type: TextDecorationType; + color?: ResourceColor; + style?: TextDecorationStyle; +} +export declare class BaselineOffsetStyle { + baselineOffset: number; +} +export declare class LetterSpacingStyle { + letterSpacing: number; +} +export declare class TextShadowStyle { + textShadow: Array; +} +export declare class GestureStyle { +} +export interface GestureStyleInterface { + onClick?: Callback + onLongPress?: Callback +} +export declare class ParagraphStyle { + textAlign?: TextAlign; + textIndent?: number; + maxLines?: number; + overflow?: TextOverflow; + wordBreak?: WordBreak; + leadingMargin?: number | LeadingMarginPlaceholder; +} +export interface ParagraphStyleInterface { + textAlign?: TextAlign + textIndent?: LengthMetrics + maxLines?: number + overflow?: TextOverflow + wordBreak?: WordBreak + leadingMargin?: LengthMetrics | LeadingMarginPlaceholder +} +export declare class LineHeightStyle { + lineHeight: number; +} +export declare class UrlStyle { + url: string; +} +export declare class UserDataSpan { +} +export declare class BackgroundColorStyle { + textBackgroundStyle: TextBackgroundStyle; +} +export interface SpanStyle { + start: number + length: number + styledKey: StyledStringKey + styledValue: StyledStringValue +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkStyledStringMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkStyledStringMaterialized.ts index 99b43c78c..9644ab000 100644 --- a/arkoala-arkts/arkui/src/generated/ArkStyledStringMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkStyledStringMaterialized.ts @@ -16,6 +16,8 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! +import { ImageAttachment, StyleOptions, StyledStringKey, SpanStyle } from "./ArkStyledStringInterfaces" +import { CustomSpan } from "./ArkCustomSpanMaterialized" import { TypeChecker } from "#components" import { Finalizable } from "./Finalizable" @@ -48,16 +50,48 @@ export class StyledString { get length(): number { return this.getLength() } - static ctor(): KPointer { - const retval = NativeModule._StyledString_ctor() + static ctor(value: string | ImageAttachment | CustomSpan, styles?: Array): KPointer { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as string + thisSerializer.writeString(value_0) + } + else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof ImageAttachment)) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as ImageAttachment + thisSerializer.writeImageAttachment(value_1) + } + else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof CustomSpan)) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as CustomSpan + thisSerializer.writeMaterialized(value_2) + } + let styles_type = RuntimeType.UNDEFINED + if (styles != undefined) { + styles_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(styles_type as int32) + if ((RuntimeType.UNDEFINED) != (styles_type)) { + const styles_value = styles! + thisSerializer.writeInt8(runtimeType(styles_value) as int32) + thisSerializer.writeInt32(styles_value.length as int32) + for (let i = 0; i < styles_value.length; i++) { + const styles_value_element = styles_value[i] + thisSerializer.writeStyleOptions(styles_value_element) + } + } + const retval = NativeModule._StyledString_ctor(thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release(); return retval } - constructor() { - // Constructor does not have parameters. - // It means that the static method call invokes ctor method as well - // when all arguments are undefined. - const ctorPtr = StyledString.ctor() - this.peer = new Finalizable(ctorPtr, StyledString.getFinalizer()) + constructor(value?: string | ImageAttachment | CustomSpan, styles?: Array) { + if (((value) !== (undefined)) && ((styles) !== (undefined))) { + const ctorPtr = StyledString.ctor(value, styles) + this.peer = new Finalizable(ctorPtr, StyledString.getFinalizer()) + } } static getFinalizer(): KPointer { return NativeModule._StyledString_getFinalizer() @@ -65,6 +99,15 @@ export class StyledString { getString(): string { return this.getString_serialize() } + getStyles(start: number, length: number, styledKey?: StyledStringKey): Array { + const start_casted = start as (number) + const length_casted = length as (number) + if ((styledKey) == (undefined)) { + throw new Error("Arg 'styledKey' is null"); + } + const styledKey_casted = styledKey as (StyledStringKey) + return this.getStyles_serialize(start_casted, length_casted, styledKey_casted) + } equals(other: StyledString): boolean { const other_casted = other as (StyledString) return this.equals_serialize(other_casted) @@ -78,10 +121,18 @@ export class StyledString { this.subStyledString_serialize(start_casted, length_casted) return this } + static fromHtml(html: string): Promise { + const html_casted = html as (string) + return StyledString.fromHtml_serialize(html_casted) + } static marshalling(styledString: StyledString): ArrayBuffer { const styledString_casted = styledString as (StyledString) return StyledString.marshalling_serialize(styledString_casted) } + static unmarshalling(buffer: ArrayBuffer): Promise { + const buffer_casted = buffer as (ArrayBuffer) + return StyledString.unmarshalling_serialize(buffer_casted) + } private getLength(): number { return this.getLength_serialize() } @@ -89,6 +140,21 @@ export class StyledString { const retval = NativeModule._StyledString_getString(this.peer!.ptr) return retval } + private getStyles_serialize(start: number, length: number, styledKey?: StyledStringKey): Array { + const thisSerializer = SerializerBase.hold(createSerializer) + let styledKey_type = RuntimeType.UNDEFINED + if (styledKey != undefined) { + styledKey_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(styledKey_type as int32) + if ((RuntimeType.UNDEFINED) != (styledKey_type)) { + const styledKey_value = styledKey! + thisSerializer.writeInt32((styledKey_value.value as int32)) + } + const retval = NativeModule._StyledString_getStyles(this.peer!.ptr, start, length, thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release(); + throw new Error("Object deserialization is not implemented.") + } private equals_serialize(other: StyledString): boolean { const thisSerializer = SerializerBase.hold(createSerializer) thisSerializer.writeMaterialized(other) @@ -111,6 +177,10 @@ export class StyledString { thisSerializer.release(); return this } + private static fromHtml_serialize(html: string): Promise { + const retval = NativeModule._StyledString_fromHtml(html) + throw new Error("Object deserialization is not implemented.") + } private static marshalling_serialize(styledString: StyledString): ArrayBuffer { const thisSerializer = SerializerBase.hold(createSerializer) thisSerializer.writeMaterialized(styledString) @@ -118,6 +188,13 @@ export class StyledString { thisSerializer.release(); throw new Error("Object deserialization is not implemented.") } + private static unmarshalling_serialize(buffer: ArrayBuffer): Promise { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeArrayBuffer(buffer) + const retval = NativeModule._StyledString_unmarshalling(thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release(); + throw new Error("Object deserialization is not implemented.") + } private getLength_serialize(): number { const retval = NativeModule._StyledString_getLength(this.peer!.ptr) return retval diff --git a/arkoala-arkts/arkui/src/generated/ArkSubTabBarStyleBuilder.ts b/arkoala-arkts/arkui/src/generated/ArkSubTabBarStyleBuilder.ts index 1ced1d531..0d89cdcdc 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSubTabBarStyleBuilder.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSubTabBarStyleBuilder.ts @@ -1,7 +1,8 @@ -import { ResourceStr, Resource, Length, Dimension, PX, VP, FP, LPX, Percentage, LocalizedPadding } from "./ArkUnitsInterfaces" -import { IMPORT_Resource_FROM_resource_resource, IMPORT_ComponentContent_FROM_api_arkui_ComponentContent, LITERAL_TopLengthRightLengthBottomLengthLeftLength, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage } from "./SyntheticDeclarations" -import { ComponentContent, Padding } from "./ArkCommonInterfaces" -import { IndicatorStyle, SelectedMode, BoardStyle } from "./ArkTabContentInterfaces" +import { ResourceStr, Resource, Padding, Length, Dimension, PX, VP, FP, LPX, Percentage, LocalizedPadding } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, IMPORT_ComponentContent_T_FROM_api_arkui_ComponentContent, LITERAL_TopLengthRightLengthBottomLengthLeftLength, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage } from "./SyntheticDeclarations" +import { ComponentContent } from "./ArkCommonInterfaces" +import { IndicatorStyle } from "./ArkSwiperInterfaces" +import { SelectedMode, BoardStyle } from "./ArkTabContentInterfaces" import { LabelStyle } from "./ArkButtonInterfaces" export class SubTabBarStyle { _content?: ResourceStr | ResourceStr | ComponentContent diff --git a/arkoala-arkts/arkui/src/generated/ArkSwiper.ts b/arkoala-arkts/arkui/src/generated/ArkSwiper.ts index a3f0ceb50..cac4dbd2a 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSwiper.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSwiper.ts @@ -23,9 +23,17 @@ import { ComponentBase } from "./ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkSwiperPeer } from "./peers/ArkSwiperPeer" -import { SwiperAttribute, SwiperInterface } from "./ArkSwiperInterfaces" +import { UseEventsProperties } from "./use_properties" +import { SwiperAttribute, ArrowStyle, SwiperDisplayMode, SwiperAutoFill, IndicatorStyle, SwiperAnimationEvent, SwiperNestedScrollMode, SwiperContentAnimatedTransition, ContentDidScrollCallback, SwiperInterface } from "./ArkSwiperInterfaces" import { DotIndicator } from "./ArkDotIndicatorBuilder" +import { DigitIndicator } from "./ArkDigitIndicatorBuilder" +import { VP, Length, Resource, ResourceColor } from "./ArkUnitsInterfaces" +import { TEMPLATE_LITERAL_number_vp, LITERAL_MinSizeVP, IMPORT_Resource_FROM_api_global_resource } from "./SyntheticDeclarations" +import { EdgeEffect, Curve, Color } from "./ArkEnumsInterfaces" +import { ICurve } from "./ArkICurveMaterialized" import { SwiperController } from "./ArkSwiperControllerMaterialized" +import { SwiperContentTransitionProxy } from "./ArkSwiperContentTransitionProxyMaterialized" +import { Callback } from "./ArkCommonInterfaces" /** @memo:stable */ export class ArkSwiperComponent extends ArkCommonMethodComponent { protected peer?: ArkSwiperPeer @@ -51,14 +59,249 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { return this } /** @memo */ - indicator(value: DotIndicator): this { + autoPlay(value: boolean): this { + if (this.checkPriority("autoPlay")) { + const value_casted = value as (boolean) + this.peer?.autoPlayAttribute(value_casted) + return this + } + return this + } + /** @memo */ + interval(value: number): this { + if (this.checkPriority("interval")) { + const value_casted = value as (number) + this.peer?.intervalAttribute(value_casted) + return this + } + return this + } + /** @memo */ + indicator(value: DotIndicator | DigitIndicator | boolean): this { if (this.checkPriority("indicator")) { - const value_casted = value as (DotIndicator) + const value_casted = value as (DotIndicator | DigitIndicator | boolean) this.peer?.indicatorAttribute(value_casted) return this } return this } + /** @memo */ + displayArrow(value: ArrowStyle | boolean, isHoverShow?: boolean): this { + if (this.checkPriority("displayArrow")) { + const value_casted = value as (ArrowStyle | boolean) + if ((isHoverShow) == (undefined)) { + throw new Error("Arg 'isHoverShow' is null"); + } + const isHoverShow_casted = isHoverShow as (boolean) + this.peer?.displayArrowAttribute(value_casted, isHoverShow_casted) + return this + } + return this + } + /** @memo */ + loop(value: boolean): this { + if (this.checkPriority("loop")) { + const value_casted = value as (boolean) + this.peer?.loopAttribute(value_casted) + return this + } + return this + } + /** @memo */ + duration(value: number): this { + if (this.checkPriority("duration")) { + const value_casted = value as (number) + this.peer?.durationAttribute(value_casted) + return this + } + return this + } + /** @memo */ + vertical(value: boolean): this { + if (this.checkPriority("vertical")) { + const value_casted = value as (boolean) + this.peer?.verticalAttribute(value_casted) + return this + } + return this + } + /** @memo */ + itemSpace(value: number | string): this { + if (this.checkPriority("itemSpace")) { + const value_casted = value as (number | string) + this.peer?.itemSpaceAttribute(value_casted) + return this + } + return this + } + /** @memo */ + displayMode(value: SwiperDisplayMode): this { + if (this.checkPriority("displayMode")) { + const value_casted = value as (SwiperDisplayMode) + this.peer?.displayModeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + cachedCount(value: number): this { + if (this.checkPriority("cachedCount")) { + const value_casted = value as (number) + this.peer?.cachedCountAttribute(value_casted) + return this + } + return this + } + /** @memo */ + displayCount(value: number | string | SwiperAutoFill, swipeByGroup?: boolean): this { + if (this.checkPriority("displayCount")) { + const value_casted = value as (number | string | SwiperAutoFill) + if ((swipeByGroup) == (undefined)) { + throw new Error("Arg 'swipeByGroup' is null"); + } + const swipeByGroup_casted = swipeByGroup as (boolean) + this.peer?.displayCountAttribute(value_casted, swipeByGroup_casted) + return this + } + return this + } + /** @memo */ + effectMode(value: EdgeEffect): this { + if (this.checkPriority("effectMode")) { + const value_casted = value as (EdgeEffect) + this.peer?.effectModeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + disableSwipe(value: boolean): this { + if (this.checkPriority("disableSwipe")) { + const value_casted = value as (boolean) + this.peer?.disableSwipeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + curve(value: Curve | string | ICurve): this { + if (this.checkPriority("curve")) { + const value_casted = value as (Curve | string | ICurve) + this.peer?.curveAttribute(value_casted) + return this + } + return this + } + /** @memo */ + onChange(event: ((index: number) => void)): this { + if (this.checkPriority("onChange")) { + const event_casted = event as (((index: number) => void)) + this.peer?.onChangeAttribute(event_casted) + return this + } + return this + } + /** @memo */ + indicatorStyle(value?: IndicatorStyle): this { + if (this.checkPriority("indicatorStyle")) { + if ((value) == (undefined)) { + throw new Error("Arg 'value' is null"); + } + const value_casted = value as (IndicatorStyle) + this.peer?.indicatorStyleAttribute(value_casted) + return this + } + return this + } + /** @memo */ + prevMargin(value: Length, ignoreBlank?: boolean): this { + if (this.checkPriority("prevMargin")) { + const value_casted = value as (Length) + if ((ignoreBlank) == (undefined)) { + throw new Error("Arg 'ignoreBlank' is null"); + } + const ignoreBlank_casted = ignoreBlank as (boolean) + this.peer?.prevMarginAttribute(value_casted, ignoreBlank_casted) + return this + } + return this + } + /** @memo */ + nextMargin(value: Length, ignoreBlank?: boolean): this { + if (this.checkPriority("nextMargin")) { + const value_casted = value as (Length) + if ((ignoreBlank) == (undefined)) { + throw new Error("Arg 'ignoreBlank' is null"); + } + const ignoreBlank_casted = ignoreBlank as (boolean) + this.peer?.nextMarginAttribute(value_casted, ignoreBlank_casted) + return this + } + return this + } + /** @memo */ + onAnimationStart(event: ((index: number, targetIndex: number, extraInfo: SwiperAnimationEvent) => void)): this { + if (this.checkPriority("onAnimationStart")) { + const event_casted = event as (((index: number, targetIndex: number, extraInfo: SwiperAnimationEvent) => void)) + this.peer?.onAnimationStartAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onAnimationEnd(event: ((index: number, extraInfo: SwiperAnimationEvent) => void)): this { + if (this.checkPriority("onAnimationEnd")) { + const event_casted = event as (((index: number, extraInfo: SwiperAnimationEvent) => void)) + this.peer?.onAnimationEndAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onGestureSwipe(event: ((index: number, extraInfo: SwiperAnimationEvent) => void)): this { + if (this.checkPriority("onGestureSwipe")) { + const event_casted = event as (((index: number, extraInfo: SwiperAnimationEvent) => void)) + this.peer?.onGestureSwipeAttribute(event_casted) + return this + } + return this + } + /** @memo */ + nestedScroll(value: SwiperNestedScrollMode): this { + if (this.checkPriority("nestedScroll")) { + const value_casted = value as (SwiperNestedScrollMode) + this.peer?.nestedScrollAttribute(value_casted) + return this + } + return this + } + /** @memo */ + customContentTransition(transition: SwiperContentAnimatedTransition): this { + if (this.checkPriority("customContentTransition")) { + const transition_casted = transition as (SwiperContentAnimatedTransition) + this.peer?.customContentTransitionAttribute(transition_casted) + return this + } + return this + } + /** @memo */ + onContentDidScroll(handler: ContentDidScrollCallback): this { + if (this.checkPriority("onContentDidScroll")) { + const handler_casted = handler as (ContentDidScrollCallback) + this.peer?.onContentDidScrollAttribute(handler_casted) + return this + } + return this + } + /** @memo */ + indicatorInteractive(value: boolean): this { + if (this.checkPriority("indicatorInteractive")) { + const value_casted = value as (boolean) + this.peer?.indicatorInteractiveAttribute(value_casted) + return this + } + return this + } public applyAttributesFinish(): void { // we calls this function outside of class, so need to make it public super.applyAttributesFinish() diff --git a/arkoala-arkts/arkui/src/generated/ArkSwiperInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkSwiperInterfaces.ts index 6942c7d96..675914607 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSwiperInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSwiperInterfaces.ts @@ -1,9 +1,215 @@ import { DotIndicator } from "./ArkDotIndicatorBuilder" +import { DigitIndicator } from "./ArkDigitIndicatorBuilder" +import { VP, Length, Resource, ResourceColor } from "./ArkUnitsInterfaces" +import { TEMPLATE_LITERAL_number_vp, LITERAL_MinSizeVP, IMPORT_Resource_FROM_api_global_resource } from "./SyntheticDeclarations" +import { EdgeEffect, Curve, Color } from "./ArkEnumsInterfaces" +import { ICurve } from "./ArkICurveMaterialized" import { SwiperController } from "./ArkSwiperControllerMaterialized" +import { SwiperContentTransitionProxy } from "./ArkSwiperContentTransitionProxyMaterialized" +import { Callback } from "./ArkCommonInterfaces" import { KInt } from "@koalaui/interop" +/** + * Declare the size of the swiper on the spindle. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Declare the size of the swiper on the spindle. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Declare the size of the swiper on the spindle. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ +export class SwiperDisplayMode { + /** + * Carousel map extension. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 7 + * @deprecated since 10 + * @useinstead SwiperDisplayMode#STRETCH + */ + static readonly Stretch: SwiperDisplayMode = new SwiperDisplayMode(0) + /** + * The rotation chart is self linear. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @form + * @since 7 + * @deprecated since 10 + * @useinstead SwiperDisplayMode#AUTO_LINEAR + */ + static readonly AutoLinear: SwiperDisplayMode = new SwiperDisplayMode(1) + /** + * Carousel map extension. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * Carousel map extension. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + */ + static readonly STRETCH: SwiperDisplayMode = new SwiperDisplayMode(2) + /** + * The rotation chart is self linear. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @since 10 + */ +/** + * The rotation chart is self linear. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 11 + * @deprecated since 12 + * @useinstead Scroller#scrollTo + */ + static readonly AUTO_LINEAR: SwiperDisplayMode = new SwiperDisplayMode(3) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): SwiperDisplayMode { + if ((arg0) == (SwiperDisplayMode.Stretch.value)) { + return SwiperDisplayMode.Stretch + } + if ((arg0) == (SwiperDisplayMode.AutoLinear.value)) { + return SwiperDisplayMode.AutoLinear + } + if ((arg0) == (SwiperDisplayMode.STRETCH.value)) { + return SwiperDisplayMode.STRETCH + } + if ((arg0) == (SwiperDisplayMode.AUTO_LINEAR.value)) { + return SwiperDisplayMode.AUTO_LINEAR + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Swiper nested scroll nested mode + + * @enum { number } SwiperNestedScrollMode + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ +export class SwiperNestedScrollMode { + /** + * Only Self response scrolling. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ + static readonly SELF_ONLY: SwiperNestedScrollMode = new SwiperNestedScrollMode(0) + /** + * Self priority response scrolling. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 11 + */ + static readonly SELF_FIRST: SwiperNestedScrollMode = new SwiperNestedScrollMode(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): SwiperNestedScrollMode { + if ((arg0) == (SwiperNestedScrollMode.SELF_ONLY.value)) { + return SwiperNestedScrollMode.SELF_ONLY + } + if ((arg0) == (SwiperNestedScrollMode.SELF_FIRST.value)) { + return SwiperNestedScrollMode.SELF_FIRST + } + throw new Error(`Enum member '${arg0}' not found`) + } +} export interface SwiperAttribute { index(value: number): SwiperAttribute; - indicator(value: DotIndicator): SwiperAttribute; + autoPlay(value: boolean): SwiperAttribute; + interval(value: number): SwiperAttribute; + indicator(value: DotIndicator | DigitIndicator | boolean): SwiperAttribute; + displayArrow(value: ArrowStyle | boolean,isHoverShow: boolean): SwiperAttribute; + loop(value: boolean): SwiperAttribute; + duration(value: number): SwiperAttribute; + vertical(value: boolean): SwiperAttribute; + itemSpace(value: number | string): SwiperAttribute; + displayMode(value: SwiperDisplayMode): SwiperAttribute; + cachedCount(value: number): SwiperAttribute; + displayCount(value: number | string | SwiperAutoFill,swipeByGroup: boolean): SwiperAttribute; + effectMode(value: EdgeEffect): SwiperAttribute; + disableSwipe(value: boolean): SwiperAttribute; + curve(value: Curve | string | ICurve): SwiperAttribute; + onChange(event: ((index: number) => void)): SwiperAttribute; + indicatorStyle(value: IndicatorStyle): SwiperAttribute; + prevMargin(value: Length,ignoreBlank: boolean): SwiperAttribute; + nextMargin(value: Length,ignoreBlank: boolean): SwiperAttribute; + onAnimationStart(event: ((index: number, targetIndex: number, extraInfo: SwiperAnimationEvent) => void)): SwiperAttribute; + onAnimationEnd(event: ((index: number, extraInfo: SwiperAnimationEvent) => void)): SwiperAttribute; + onGestureSwipe(event: ((index: number, extraInfo: SwiperAnimationEvent) => void)): SwiperAttribute; + nestedScroll(value: SwiperNestedScrollMode): SwiperAttribute; + customContentTransition(transition: SwiperContentAnimatedTransition): SwiperAttribute; + onContentDidScroll(handler: ContentDidScrollCallback): SwiperAttribute; + indicatorInteractive(value: boolean): SwiperAttribute; } export interface SwiperInterface { -} \ No newline at end of file +} +export interface ArrowStyle { + showBackground?: boolean + isSidebarMiddle?: boolean + backgroundSize?: Length + backgroundColor?: ResourceColor + arrowSize?: Length + arrowColor?: ResourceColor +} +export interface SwiperAutoFill { + minSize: VP +} +export interface IndicatorStyle { + left?: Length + top?: Length + right?: Length + bottom?: Length + size?: Length + mask?: boolean + color?: ResourceColor + selectedColor?: ResourceColor +} +export interface SwiperAnimationEvent { + currentOffset: number + targetOffset: number + velocity: number +} +export interface SwiperContentAnimatedTransition { + timeout?: number + transition: Callback +} +export declare type ContentDidScrollCallback = ((selectedIndex: number, index: number, position: number, mainAxisLength: number) => void) \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkSymbolglyph.ts b/arkoala-arkts/arkui/src/generated/ArkSymbolglyph.ts index 564f71e46..3771e604a 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSymbolglyph.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSymbolglyph.ts @@ -23,9 +23,10 @@ import { ComponentBase } from "./ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkSymbolGlyphPeer } from "./peers/ArkSymbolglyphPeer" -import { Resource } from "./ArkUnitsInterfaces" -import { IMPORT_Resource_FROM_resource_resource } from "./SyntheticDeclarations" -import { SymbolGlyphAttribute, SymbolGlyphInterface } from "./ArkSymbolglyphInterfaces" +import { Resource, ResourceColor } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource } from "./SyntheticDeclarations" +import { SymbolGlyphAttribute, SymbolEffectStrategy, SymbolRenderingStrategy, SymbolEffect, SymbolGlyphInterface } from "./ArkSymbolglyphInterfaces" +import { Color, FontWeight } from "./ArkEnumsInterfaces" /** @memo:stable */ export class ArkSymbolGlyphComponent extends ArkCommonMethodComponent { protected peer?: ArkSymbolGlyphPeer @@ -50,6 +51,69 @@ export class ArkSymbolGlyphComponent extends ArkCommonMethodComponent { } return this } + /** @memo */ + fontColor(value: Array): this { + if (this.checkPriority("fontColor")) { + const value_casted = value as (Array) + this.peer?.fontColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fontWeight(value: number | FontWeight | string): this { + if (this.checkPriority("fontWeight")) { + const value_casted = value as (number | FontWeight | string) + this.peer?.fontWeightAttribute(value_casted) + return this + } + return this + } + /** @memo */ + effectStrategy(value: SymbolEffectStrategy): this { + if (this.checkPriority("effectStrategy")) { + const value_casted = value as (SymbolEffectStrategy) + this.peer?.effectStrategyAttribute(value_casted) + return this + } + return this + } + /** @memo */ + renderingStrategy(value: SymbolRenderingStrategy): this { + if (this.checkPriority("renderingStrategy")) { + const value_casted = value as (SymbolRenderingStrategy) + this.peer?.renderingStrategyAttribute(value_casted) + return this + } + return this + } + /** @memo */ + symbolEffect(symbolEffect: SymbolEffect | SymbolEffect, isActive?: boolean | number): this { + if (this.checkPriority("symbolEffect")) { + const symbolEffect_type = runtimeType(symbolEffect) + const isActive_type = runtimeType(isActive) + if ((((RuntimeType.OBJECT) == (symbolEffect_type)) && (symbolEffect instanceof SymbolEffect)) && (((RuntimeType.BOOLEAN == isActive_type)) || ((RuntimeType.UNDEFINED == isActive_type)))) { + const symbolEffect_casted = symbolEffect as (SymbolEffect) + if ((isActive) == (undefined)) { + throw new Error("Arg 'isActive' is null"); + } + const isActive_casted = isActive as (boolean) + this.peer?.symbolEffect0Attribute(symbolEffect_casted, isActive_casted) + return this + } + if ((((RuntimeType.OBJECT) == (symbolEffect_type)) && (symbolEffect instanceof SymbolEffect)) && (((RuntimeType.NUMBER == isActive_type)) || ((RuntimeType.UNDEFINED == isActive_type)))) { + const symbolEffect_casted = symbolEffect as (SymbolEffect) + if ((isActive) == (undefined)) { + throw new Error("Arg 'isActive' is null"); + } + const isActive_casted = isActive as (number) + this.peer?.symbolEffect1Attribute(symbolEffect_casted, isActive_casted) + return this + } + throw new Error("Can not select appropriate overload") + } + return this + } public applyAttributesFinish(): void { // we calls this function outside of class, so need to make it public super.applyAttributesFinish() diff --git a/arkoala-arkts/arkui/src/generated/ArkSymbolglyphInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkSymbolglyphInterfaces.ts index 8f0feca71..f7bc069fe 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSymbolglyphInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSymbolglyphInterfaces.ts @@ -1,8 +1,190 @@ -import { Resource } from "./ArkUnitsInterfaces" -import { IMPORT_Resource_FROM_resource_resource } from "./SyntheticDeclarations" +import { Resource, ResourceColor } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource } from "./SyntheticDeclarations" +import { Color, FontWeight } from "./ArkEnumsInterfaces" import { KInt } from "@koalaui/interop" +/** + * The symbol effect strategy. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * The symbol effect strategy. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ +export class SymbolEffectStrategy { + /** + * There is no effect strategy. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * There is no effect strategy. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly NONE: SymbolEffectStrategy = new SymbolEffectStrategy(0) + /** + * The scale effect strategy. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * The scale effect strategy. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly SCALE: SymbolEffectStrategy = new SymbolEffectStrategy(1) + /** + * The hierarchical effect strategy. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * The hierarchical effect strategy. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly HIERARCHICAL: SymbolEffectStrategy = new SymbolEffectStrategy(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): SymbolEffectStrategy { + if ((arg0) == (SymbolEffectStrategy.NONE.value)) { + return SymbolEffectStrategy.NONE + } + if ((arg0) == (SymbolEffectStrategy.SCALE.value)) { + return SymbolEffectStrategy.SCALE + } + if ((arg0) == (SymbolEffectStrategy.HIERARCHICAL.value)) { + return SymbolEffectStrategy.HIERARCHICAL + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * The symbol rendering strategy. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * The symbol rendering strategy. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ +export class SymbolRenderingStrategy { + /** + * The single rendering strategy. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * The single rendering strategy. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly SINGLE: SymbolRenderingStrategy = new SymbolRenderingStrategy(0) + /** + * The multiple color rendering strategy. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * The multiple color rendering strategy. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly MULTIPLE_COLOR: SymbolRenderingStrategy = new SymbolRenderingStrategy(1) + /** + * The multiple opacity rendering strategy. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * The multiple opacity rendering strategy. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @form + * @atomicservice + * @since 12 + */ + static readonly MULTIPLE_OPACITY: SymbolRenderingStrategy = new SymbolRenderingStrategy(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): SymbolRenderingStrategy { + if ((arg0) == (SymbolRenderingStrategy.SINGLE.value)) { + return SymbolRenderingStrategy.SINGLE + } + if ((arg0) == (SymbolRenderingStrategy.MULTIPLE_COLOR.value)) { + return SymbolRenderingStrategy.MULTIPLE_COLOR + } + if ((arg0) == (SymbolRenderingStrategy.MULTIPLE_OPACITY.value)) { + return SymbolRenderingStrategy.MULTIPLE_OPACITY + } + throw new Error(`Enum member '${arg0}' not found`) + } +} export interface SymbolGlyphAttribute { fontSize(value: number | string | Resource): SymbolGlyphAttribute; + fontColor(value: Array): SymbolGlyphAttribute; + fontWeight(value: number | FontWeight | string): SymbolGlyphAttribute; + effectStrategy(value: SymbolEffectStrategy): SymbolGlyphAttribute; + renderingStrategy(value: SymbolRenderingStrategy): SymbolGlyphAttribute; + symbolEffect(symbolEffect: SymbolEffect,isActive: boolean): SymbolGlyphAttribute; } export interface SymbolGlyphInterface { +} +export declare class SymbolEffect { } \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkTabContent.ts b/arkoala-arkts/arkui/src/generated/ArkTabContent.ts index 021448139..c9e630620 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTabContent.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTabContent.ts @@ -23,13 +23,14 @@ import { ComponentBase } from "./ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTabContentPeer } from "./peers/ArkTabContentPeer" +import { UseEventsProperties } from "./use_properties" +import { Resource, VoidCallback, Length, ResourceColor } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, LITERAL_IconStringResourceTextStringResource, IMPORT_SymbolGlyphModifier_FROM_api_arkui_SymbolGlyphModifier } from "./SyntheticDeclarations" +import { CustomBuilder, SymbolGlyphModifier } from "./ArkCommonInterfaces" +import { TabContentAttribute, TabContentInterface, BoardStyle, TabBarSymbol, TabBarIconStyle } from "./ArkTabContentInterfaces" import { SubTabBarStyle } from "./ArkSubTabBarStyleBuilder" -import { TabContentAttribute, TabContentInterface, IndicatorStyle, BoardStyle, TabBarSymbol } from "./ArkTabContentInterfaces" import { BottomTabBarStyle } from "./ArkBottomTabBarStyleBuilder" -import { ResourceColor, Resource, Length } from "./ArkUnitsInterfaces" import { Color } from "./ArkEnumsInterfaces" -import { IMPORT_Resource_FROM_resource_resource, IMPORT_SymbolGlyphModifier_FROM_resource_symbol } from "./SyntheticDeclarations" -import { SymbolGlyphModifier } from "./ArkCommonInterfaces" /** @memo:stable */ export class ArkTabContentComponent extends ArkCommonMethodComponent { protected peer?: ArkTabContentPeer @@ -42,11 +43,11 @@ export class ArkTabContentComponent extends ArkCommonMethodComponent { return this } /** @memo */ - tabBar(value: SubTabBarStyle | SubTabBarStyle | BottomTabBarStyle): this { + tabBar(value: string | Resource | CustomBuilder | LITERAL_IconStringResourceTextStringResource | SubTabBarStyle | BottomTabBarStyle): this { if (this.checkPriority("tabBar")) { const value_type = runtimeType(value) - if ((((RuntimeType.OBJECT) == (value_type)) && (value instanceof SubTabBarStyle))) { - const value_casted = value as (SubTabBarStyle) + if ((((RuntimeType.STRING == value_type)) || ((RuntimeType.OBJECT == value_type)) || ((RuntimeType.FUNCTION == value_type)) || ((RuntimeType.UNDEFINED == value_type)) || ((RuntimeType.OBJECT == value_type)))) { + const value_casted = value as (string | Resource | CustomBuilder | LITERAL_IconStringResourceTextStringResource) this.peer?.tabBar0Attribute(value_casted) return this } @@ -59,6 +60,24 @@ export class ArkTabContentComponent extends ArkCommonMethodComponent { } return this } + /** @memo */ + onWillShow(event: VoidCallback): this { + if (this.checkPriority("onWillShow")) { + const event_casted = event as (VoidCallback) + this.peer?.onWillShowAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onWillHide(event: VoidCallback): this { + if (this.checkPriority("onWillHide")) { + const event_casted = event as (VoidCallback) + this.peer?.onWillHideAttribute(event_casted) + return this + } + return this + } public applyAttributesFinish(): void { // we calls this function outside of class, so need to make it public super.applyAttributesFinish() diff --git a/arkoala-arkts/arkui/src/generated/ArkTabContentInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkTabContentInterfaces.ts index 5efff7c6b..e4a3295f8 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTabContentInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTabContentInterfaces.ts @@ -1,12 +1,12 @@ +import { Resource, VoidCallback, Length, ResourceColor } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, LITERAL_IconStringResourceTextStringResource, IMPORT_SymbolGlyphModifier_FROM_api_arkui_SymbolGlyphModifier } from "./SyntheticDeclarations" +import { CustomBuilder, SymbolGlyphModifier } from "./ArkCommonInterfaces" import { SubTabBarStyle } from "./ArkSubTabBarStyleBuilder" import { BottomTabBarStyle } from "./ArkBottomTabBarStyleBuilder" -import { ResourceColor, Resource, Length } from "./ArkUnitsInterfaces" import { Color } from "./ArkEnumsInterfaces" -import { IMPORT_Resource_FROM_resource_resource, IMPORT_SymbolGlyphModifier_FROM_resource_symbol } from "./SyntheticDeclarations" -import { SymbolGlyphModifier } from "./ArkCommonInterfaces" import { KInt } from "@koalaui/interop" /* - * Copyright (c) 2024 Huawei Device Co., Ltd. + * Copyright (c) 2021-2023 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -19,8 +19,59 @@ import { KInt } from "@koalaui/interop" * See the License for the specific language governing permissions and * limitations under the License. */ +/** + * @file + * @kit ArkUI + */ +/** + * Enum for the mode of the tab bar when selected. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Enum for the mode of the tab bar when selected. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ export class SelectedMode { + /** + * The value of indicator + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * The value of indicator + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ static readonly INDICATOR: SelectedMode = new SelectedMode(0) + /** + * The value of board + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * The value of board + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ static readonly BOARD: SelectedMode = new SelectedMode(1) constructor(value: KInt) { this.value = value @@ -36,18 +87,104 @@ export class SelectedMode { throw new Error(`Enum member '${arg0}' not found`) } } +/** + * Enum for the layout mode of the content in the tab bar. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Enum for the layout mode of the content in the tab bar. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class LayoutMode { + /** + * The the content is laid vertically or horizontally, according to its width. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * The the content is laid vertically or horizontally, according to its width. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly AUTO: LayoutMode = new LayoutMode(0) + /** + * The the content is laid vertically + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * The the content is laid vertically + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly VERTICAL: LayoutMode = new LayoutMode(1) + /** + * The the content is laid horizontally + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * The the content is laid horizontally + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly HORIZONTAL: LayoutMode = new LayoutMode(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): LayoutMode { + if ((arg0) == (LayoutMode.AUTO.value)) { + return LayoutMode.AUTO + } + if ((arg0) == (LayoutMode.VERTICAL.value)) { + return LayoutMode.VERTICAL + } + if ((arg0) == (LayoutMode.HORIZONTAL.value)) { + return LayoutMode.HORIZONTAL + } + throw new Error(`Enum member '${arg0}' not found`) + } +} export interface TabContentAttribute { - tabBar(value: SubTabBarStyle): TabContentAttribute; + tabBar(value: string | Resource | CustomBuilder | LITERAL_IconStringResourceTextStringResource): TabContentAttribute; + onWillShow(event: VoidCallback): TabContentAttribute; + onWillHide(event: VoidCallback): TabContentAttribute; } export interface TabContentInterface { } -export interface IndicatorStyle { - color?: ResourceColor -} export interface BoardStyle { borderRadius?: Length } export declare class TabBarSymbol { normal: SymbolGlyphModifier; selected?: SymbolGlyphModifier; +} +export interface TabBarIconStyle { + selectedColor?: ResourceColor + unselectedColor?: ResourceColor } \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkTabs.ts b/arkoala-arkts/arkui/src/generated/ArkTabs.ts index 815a1908b..1d04757ad 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTabs.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTabs.ts @@ -23,23 +23,246 @@ import { ComponentBase } from "./ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTabsPeer } from "./peers/ArkTabsPeer" -import { BarMode, TabsAttribute, TabsInterface } from "./ArkTabsInterfaces" +import { UseEventsProperties } from "./use_properties" +import { TabsAttribute, BarPosition, BarMode, ScrollableBarModeOptions, AnimationMode, TabsAnimationEvent, DividerStyle, BarGridColumnOptions, TabContentAnimatedTransition, TabsInterface, LayoutStyle } from "./ArkTabsInterfaces" +import { Length, Resource, ResourceColor, Dimension, PX, VP, FP, LPX, Percentage } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, LITERAL_BarPositionBarPositionIndexNumberControllerTabsController, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage } from "./SyntheticDeclarations" +import { Optional, BlurStyle } from "./ArkCommonInterfaces" +import { EdgeEffect, Color } from "./ArkEnumsInterfaces" +import { TabsController } from "./ArkTabsControllerMaterialized" +import { TabContentTransitionProxy } from "./ArkTabContentTransitionProxyMaterialized" /** @memo:stable */ export class ArkTabsComponent extends ArkCommonMethodComponent { protected peer?: ArkTabsPeer /** @memo */ - setTabsOptions(): this { + setTabsOptions(value?: LITERAL_BarPositionBarPositionIndexNumberControllerTabsController): this { if (this.checkPriority("setTabsOptions")) { - this.peer?.setTabsOptionsAttribute() + if ((value) == (undefined)) { + throw new Error("Arg 'value' is null"); + } + const value_casted = value as (LITERAL_BarPositionBarPositionIndexNumberControllerTabsController) + this.peer?.setTabsOptionsAttribute(value_casted) return this } return this } /** @memo */ - barMode(value: BarMode): this { + vertical(value: boolean): this { + if (this.checkPriority("vertical")) { + const value_casted = value as (boolean) + this.peer?.verticalAttribute(value_casted) + return this + } + return this + } + /** @memo */ + barPosition(value: BarPosition): this { + if (this.checkPriority("barPosition")) { + const value_casted = value as (BarPosition) + this.peer?.barPositionAttribute(value_casted) + return this + } + return this + } + /** @memo */ + scrollable(value: boolean): this { + if (this.checkPriority("scrollable")) { + const value_casted = value as (boolean) + this.peer?.scrollableAttribute(value_casted) + return this + } + return this + } + /** @memo */ + barMode(value: BarMode | BarMode | BarMode, options?: ScrollableBarModeOptions | ScrollableBarModeOptions): this { if (this.checkPriority("barMode")) { - const value_casted = value as (BarMode) - this.peer?.barModeAttribute(value_casted) + const value_type = runtimeType(value) + const options_type = runtimeType(options) + if ((((RuntimeType.OBJECT) == (value_type)) && (value instanceof BarMode)) && (TypeChecker.isScrollableBarModeOptions(options, false, false))) { + const value_casted = value as (BarMode) + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (ScrollableBarModeOptions) + this.peer?.barMode1Attribute(value_casted, options_casted) + return this + } + if ((((RuntimeType.OBJECT) == (value_type)) && (value instanceof BarMode)) && (((RuntimeType.OBJECT == options_type)) || ((RuntimeType.UNDEFINED == options_type)))) { + const value_casted = value as (BarMode) + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (ScrollableBarModeOptions) + this.peer?.barMode2Attribute(value_casted, options_casted) + return this + } + if ((((RuntimeType.OBJECT) == (value_type)) && (value instanceof BarMode)) && (((RuntimeType.UNDEFINED == options_type)))) { + const value_casted = value as (BarMode) + this.peer?.barMode0Attribute(value_casted) + return this + } + throw new Error("Can not select appropriate overload") + } + return this + } + /** @memo */ + barWidth(value: Length): this { + if (this.checkPriority("barWidth")) { + const value_casted = value as (Length) + this.peer?.barWidthAttribute(value_casted) + return this + } + return this + } + /** @memo */ + barHeight(value: Length): this { + if (this.checkPriority("barHeight")) { + const value_casted = value as (Length) + this.peer?.barHeightAttribute(value_casted) + return this + } + return this + } + /** @memo */ + animationDuration(value: number): this { + if (this.checkPriority("animationDuration")) { + const value_casted = value as (number) + this.peer?.animationDurationAttribute(value_casted) + return this + } + return this + } + /** @memo */ + animationMode(mode: AnimationMode | undefined): this { + if (this.checkPriority("animationMode")) { + const mode_casted = mode as (AnimationMode | undefined) + this.peer?.animationModeAttribute(mode_casted) + return this + } + return this + } + /** @memo */ + edgeEffect(edgeEffect: EdgeEffect | undefined): this { + if (this.checkPriority("edgeEffect")) { + const edgeEffect_casted = edgeEffect as (EdgeEffect | undefined) + this.peer?.edgeEffectAttribute(edgeEffect_casted) + return this + } + return this + } + /** @memo */ + onChange(event: ((index: number) => void)): this { + if (this.checkPriority("onChange")) { + const event_casted = event as (((index: number) => void)) + this.peer?.onChangeAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onTabBarClick(event: ((index: number) => void)): this { + if (this.checkPriority("onTabBarClick")) { + const event_casted = event as (((index: number) => void)) + this.peer?.onTabBarClickAttribute(event_casted) + return this + } + return this + } + /** @memo */ + onAnimationStart(handler: ((index: number, targetIndex: number, event: TabsAnimationEvent) => void)): this { + if (this.checkPriority("onAnimationStart")) { + const handler_casted = handler as (((index: number, targetIndex: number, event: TabsAnimationEvent) => void)) + this.peer?.onAnimationStartAttribute(handler_casted) + return this + } + return this + } + /** @memo */ + onAnimationEnd(handler: ((index: number, event: TabsAnimationEvent) => void)): this { + if (this.checkPriority("onAnimationEnd")) { + const handler_casted = handler as (((index: number, event: TabsAnimationEvent) => void)) + this.peer?.onAnimationEndAttribute(handler_casted) + return this + } + return this + } + /** @memo */ + onGestureSwipe(handler: ((index: number, event: TabsAnimationEvent) => void)): this { + if (this.checkPriority("onGestureSwipe")) { + const handler_casted = handler as (((index: number, event: TabsAnimationEvent) => void)) + this.peer?.onGestureSwipeAttribute(handler_casted) + return this + } + return this + } + /** @memo */ + fadingEdge(value: boolean): this { + if (this.checkPriority("fadingEdge")) { + const value_casted = value as (boolean) + this.peer?.fadingEdgeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + divider(value: DividerStyle | null): this { + if (this.checkPriority("divider")) { + const value_casted = value as (DividerStyle | null) + this.peer?.dividerAttribute(value_casted) + return this + } + return this + } + /** @memo */ + barOverlap(value: boolean): this { + if (this.checkPriority("barOverlap")) { + const value_casted = value as (boolean) + this.peer?.barOverlapAttribute(value_casted) + return this + } + return this + } + /** @memo */ + barBackgroundColor(value: ResourceColor): this { + if (this.checkPriority("barBackgroundColor")) { + const value_casted = value as (ResourceColor) + this.peer?.barBackgroundColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + barGridAlign(value: BarGridColumnOptions): this { + if (this.checkPriority("barGridAlign")) { + const value_casted = value as (BarGridColumnOptions) + this.peer?.barGridAlignAttribute(value_casted) + return this + } + return this + } + /** @memo */ + customContentTransition(delegate: ((from: number, to: number) => TabContentAnimatedTransition | undefined)): this { + if (this.checkPriority("customContentTransition")) { + const delegate_casted = delegate as (((from: number, to: number) => TabContentAnimatedTransition | undefined)) + this.peer?.customContentTransitionAttribute(delegate_casted) + return this + } + return this + } + /** @memo */ + barBackgroundBlurStyle(value: BlurStyle): this { + if (this.checkPriority("barBackgroundBlurStyle")) { + const value_casted = value as (BlurStyle) + this.peer?.barBackgroundBlurStyleAttribute(value_casted) + return this + } + return this + } + /** @memo */ + onContentWillChange(handler: ((currentIndex: number, comingIndex: number) => boolean)): this { + if (this.checkPriority("onContentWillChange")) { + const handler_casted = handler as (((currentIndex: number, comingIndex: number) => boolean)) + this.peer?.onContentWillChangeAttribute(handler_casted) return this } return this @@ -56,13 +279,13 @@ export function ArkTabs( style: ((attributes: ArkTabsComponent) => void) | undefined, /** @memo */ content_: (() => void) | undefined, - + value?: LITERAL_BarPositionBarPositionIndexNumberControllerTabsController ) { const receiver = remember(() => { return new ArkTabsComponent() }) NodeAttach((): ArkTabsPeer => ArkTabsPeer.create(ArkUINodeType.Tabs, receiver), (_: ArkTabsPeer) => { - receiver.setTabsOptions() + receiver.setTabsOptions(value) style?.(receiver) content_?.() receiver.applyAttributesFinish() diff --git a/arkoala-arkts/arkui/src/generated/ArkTabsInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkTabsInterfaces.ts index 09aa7e306..f5b344299 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTabsInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTabsInterfaces.ts @@ -1,6 +1,95 @@ +import { Length, Resource, ResourceColor, Dimension, PX, VP, FP, LPX, Percentage } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, LITERAL_BarPositionBarPositionIndexNumberControllerTabsController, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage } from "./SyntheticDeclarations" +import { Optional, BlurStyle } from "./ArkCommonInterfaces" +import { EdgeEffect, Color } from "./ArkEnumsInterfaces" +import { TabsController } from "./ArkTabsControllerMaterialized" +import { TabContentTransitionProxy } from "./ArkTabContentTransitionProxyMaterialized" import { KInt } from "@koalaui/interop" +/** + * Declare the location of the bar chart. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Declare the location of the bar chart. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Declare the location of the bar chart. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class BarPosition { + /** + * When the vertical attribute method is set to true, the tab is on the left of the container. When the vertical property method is set to false, the tab is at the top of the container. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * When the vertical attribute method is set to true, the tab is on the left of the container. When the vertical property method is set to false, the tab is at the top of the container. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * When the vertical attribute method is set to true, the tab is on the left of the container. When the vertical property method is set to false, the tab is at the top of the container. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Start: BarPosition = new BarPosition(0) + /** + * When the vertical attribute method is set to true, the tab is located on the right of the container. When the vertical property method is set to false, the tab is at the bottom of the container. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * When the vertical attribute method is set to true, the tab is located on the right of the container. When the vertical property method is set to false, the tab is at the bottom of the container. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * When the vertical attribute method is set to true, the tab is located on the right of the container. When the vertical property method is set to false, the tab is at the bottom of the container. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly End: BarPosition = new BarPosition(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): BarPosition { + if ((arg0) == (BarPosition.Start.value)) { + return BarPosition.Start + } + if ((arg0) == (BarPosition.End.value)) { + return BarPosition.End + } + throw new Error(`Enum member '${arg0}' not found`) + } +} /* - * Copyright (c) 2024 Huawei Device Co., Ltd. + * Copyright (c) 2021-2023 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,8 +102,78 @@ import { KInt } from "@koalaui/interop" * See the License for the specific language governing permissions and * limitations under the License. */ +/** + * @file + * @kit ArkUI + */ +/** + * Declare the graphic format of the bar chart. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Declare the graphic format of the bar chart. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Declare the graphic format of the bar chart. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ export class BarMode { + /** + * The actual layout width of the TabBar is used. If the width exceeds the total width, you can slide the tabbar. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * The actual layout width of the TabBar is used. If the width exceeds the total width, you can slide the tabbar. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * The actual layout width of the TabBar is used. If the width exceeds the total width, you can slide the tabbar. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ static readonly Scrollable: BarMode = new BarMode(0) + /** + * The width of all TabBars is evenly allocated. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * The width of all TabBars is evenly allocated. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * The width of all TabBars is evenly allocated. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ static readonly Fixed: BarMode = new BarMode(1) constructor(value: KInt) { this.value = value @@ -30,8 +189,194 @@ export class BarMode { throw new Error(`Enum member '${arg0}' not found`) } } +/** + * Declare the layout style of the tab bar items. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Declare the layout style of the tab bar items. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class LayoutStyle { + /** + * The tab bar items are laid in the center of the tab bar. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * The tab bar items are laid in the center of the tab bar. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly ALWAYS_CENTER: LayoutStyle = new LayoutStyle(0) + /** + * The tab bar items are laid in the tab bar by an average split. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * The tab bar items are laid in the tab bar by an average split. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly ALWAYS_AVERAGE_SPLIT: LayoutStyle = new LayoutStyle(1) + /** + * The tab bar items are laid in the center of the bar when their total length is more than half of the tab bar. + * Otherwise, they are laid in the center half of the tab bar with the same space between them. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * The tab bar items are laid in the center of the bar when their total length is more than half of the tab bar. + * Otherwise, they are laid in the center half of the tab bar with the same space between them. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly SPACE_BETWEEN_OR_CENTER: LayoutStyle = new LayoutStyle(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): LayoutStyle { + if ((arg0) == (LayoutStyle.ALWAYS_CENTER.value)) { + return LayoutStyle.ALWAYS_CENTER + } + if ((arg0) == (LayoutStyle.ALWAYS_AVERAGE_SPLIT.value)) { + return LayoutStyle.ALWAYS_AVERAGE_SPLIT + } + if ((arg0) == (LayoutStyle.SPACE_BETWEEN_OR_CENTER.value)) { + return LayoutStyle.SPACE_BETWEEN_OR_CENTER + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Declare the animation mode of tab content. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ +export class AnimationMode { + /** + * Start animation after tabcontent is fully measured. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly CONTENT_FIRST: AnimationMode = new AnimationMode(0) + /** + * Start animation before tabcontent is fully measured. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly ACTION_FIRST: AnimationMode = new AnimationMode(1) + /** + * Disable default animation. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly NO_ANIMATION: AnimationMode = new AnimationMode(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): AnimationMode { + if ((arg0) == (AnimationMode.CONTENT_FIRST.value)) { + return AnimationMode.CONTENT_FIRST + } + if ((arg0) == (AnimationMode.ACTION_FIRST.value)) { + return AnimationMode.ACTION_FIRST + } + if ((arg0) == (AnimationMode.NO_ANIMATION.value)) { + return AnimationMode.NO_ANIMATION + } + throw new Error(`Enum member '${arg0}' not found`) + } +} export interface TabsAttribute { + vertical(value: boolean): TabsAttribute; + barPosition(value: BarPosition): TabsAttribute; + scrollable(value: boolean): TabsAttribute; barMode(value: BarMode): TabsAttribute; + barWidth(value: Length): TabsAttribute; + barHeight(value: Length): TabsAttribute; + animationDuration(value: number): TabsAttribute; + animationMode(mode: AnimationMode | undefined): TabsAttribute; + edgeEffect(edgeEffect: EdgeEffect | undefined): TabsAttribute; + onChange(event: ((index: number) => void)): TabsAttribute; + onTabBarClick(event: ((index: number) => void)): TabsAttribute; + onAnimationStart(handler: ((index: number, targetIndex: number, event: TabsAnimationEvent) => void)): TabsAttribute; + onAnimationEnd(handler: ((index: number, event: TabsAnimationEvent) => void)): TabsAttribute; + onGestureSwipe(handler: ((index: number, event: TabsAnimationEvent) => void)): TabsAttribute; + fadingEdge(value: boolean): TabsAttribute; + divider(value: DividerStyle | null): TabsAttribute; + barOverlap(value: boolean): TabsAttribute; + barBackgroundColor(value: ResourceColor): TabsAttribute; + barGridAlign(value: BarGridColumnOptions): TabsAttribute; + customContentTransition(delegate: ((from: number, to: number) => TabContentAnimatedTransition | undefined)): TabsAttribute; + barBackgroundBlurStyle(value: BlurStyle): TabsAttribute; + onContentWillChange(handler: ((currentIndex: number, comingIndex: number) => boolean)): TabsAttribute; } export interface TabsInterface { +} +export interface ScrollableBarModeOptions { + margin?: Dimension + nonScrollableLayoutStyle?: LayoutStyle +} +export interface TabsAnimationEvent { + currentOffset: number + targetOffset: number + velocity: number +} +export interface DividerStyle { + strokeWidth: Length + color?: ResourceColor + startMargin?: Length + endMargin?: Length +} +export interface BarGridColumnOptions { + sm?: number + md?: number + lg?: number + margin?: Dimension + gutter?: Dimension +} +export interface TabContentAnimatedTransition { + timeout?: number + transition: ((proxy: TabContentTransitionProxy) => void) } \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkText.ts b/arkoala-arkts/arkui/src/generated/ArkText.ts index b7f7c7ca7..1d9c77c8a 100644 --- a/arkoala-arkts/arkui/src/generated/ArkText.ts +++ b/arkoala-arkts/arkui/src/generated/ArkText.ts @@ -23,10 +23,29 @@ import { ComponentBase } from "./ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTextPeer } from "./peers/ArkTextPeer" -import { Font, ResourceColor, Resource } from "./ArkUnitsInterfaces" -import { TextAttribute, TextOptions, TextInterface } from "./ArkTextInterfaces" -import { Color } from "./ArkEnumsInterfaces" -import { IMPORT_Resource_FROM_resource_resource } from "./SyntheticDeclarations" +import { UseEventsProperties } from "./use_properties" +import { Length, Resource, SizeOptions, ConstraintSizeOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, ResourceStr, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, PX, VP, FP, LPX, Percentage, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, Font, LengthMetrics } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, LITERAL_TopLengthRightLengthBottomLengthLeftLength, LITERAL_AlignAlignment, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image, IMPORT_default_VisualEffect_FROM_api_ohos_graphics_uiEffect, IMPORT_default_Filter_FROM_api_ohos_graphics_uiEffect, LITERAL_TopBorderStyleRightBorderStyleBottomBorderStyleLeftBorderStyle, LITERAL_TopResourceColorRightResourceColorBottomResourceColorLeftResourceColor, LITERAL_TopLeftLengthTopRightLengthBottomLeftLengthBottomRightLength, LITERAL_TopOutlineStyleRightOutlineStyleBottomOutlineStyleLeftOutlineStyle, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, LITERAL_TopDimensionRightDimensionBottomDimensionLeftDimension, LITERAL_TopLeftDimensionTopRightDimensionBottomLeftDimensionBottomRightDimension, LITERAL_SpanNumberOffsetNumber, LITERAL_XsNumberLITERALSpanNumberOffsetNumberSmNumberLITERALSpanNumberOffsetNumberMdNumberLITERALSpanNumberOffsetNumberLgNumberLITERALSpanNumberOffsetNumber, IMPORT_default_UniformDataType_FROM_api_ohos_data_uniformTypeDescriptor, IMPORT_ComponentContent_T_FROM_api_arkui_ComponentContent, LITERAL_AngleNumberstringDirectionGradientDirectionColorsArrayResourceColornumberRepeatingBoolean, LITERAL_CenterLengthLengthStartNumberstringEndNumberstringRotationNumberstringColorsArrayResourceColornumberRepeatingBoolean, LITERAL_CenterLengthLengthRadiusNumberstringColorsArrayResourceColornumberRepeatingBoolean, IMPORT_default_Blender_FROM_api_ohos_graphics_uiEffect, IMPORT_CircleShape_FROM_api_ohos_arkui_shape, IMPORT_EllipseShape_FROM_api_ohos_arkui_shape, IMPORT_PathShape_FROM_api_ohos_arkui_shape, IMPORT_RectShape_FROM_api_ohos_arkui_shape, IMPORT_LengthMetrics_FROM_api_arkui_Graphics } from "./SyntheticDeclarations" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { Optional, SafeAreaType, SafeAreaEdge, Rectangle, TouchTestInfo, TouchResult, CustomBuilder, PixelRoundPolicy, PixelMap, BlurStyle, BackgroundBlurStyleOptions, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, ForegroundBlurStyleOptions, BorderImageOption, OutlineStyle, ClickEvent, Callback, HoverEvent, AccessibilityCallback, AccessibilityHoverEvent, MouseEvent, TouchEvent, KeyEvent, AnimateParam, TransitionOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, sharedTransitionOptions, AlignRuleOption, LocalizedAlignRuleOptions, ChainStyle, ClickEffect, DragEvent, DragItemInfo, UniformDataType, DragPreviewOptions, DragInteractionOptions, PreDragStatus, ComponentContent, OverlayOptions, MotionPathOptions, ShadowOptions, ShadowStyle, BlendMode, BlendApplyType, Blender, CircleShape, EllipseShape, PathShape, RectShape, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, StateStyles, VisibleAreaChangeCallback, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback } from "./ArkCommonInterfaces" +import { HitTestMode, Alignment, Color, ImageRepeat, ImageSize, BorderStyle, ColoringStrategy, HoverEffect, Visibility, ItemAlign, Direction, Axis, GradientDirection, ResponseType, FunctionKey, ModifierKey, ObscuredReasons, RenderFit, FontStyle, FontWeight, TextAlign, TextCase, CopyOptions, TextHeightAdaptivePolicy, WordBreak, LineBreakStrategy, EllipsisMode, TextSelectableMode, TextOverflow } from "./ArkEnumsInterfaces" +import { ResizableOptions } from "./ArkImageInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ConflictedDeclarations" +import { GestureType, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureMask, GestureInfo, BaseGestureEvent, GestureJudgeResult } from "./ArkGestureInterfaces" +import { CircleAttribute } from "./ArkCircleInterfaces" +import { EllipseAttribute } from "./ArkEllipseInterfaces" +import { PathAttribute } from "./ArkPathInterfaces" +import { RectAttribute } from "./ArkRectInterfaces" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./ArkAttributeModifierMaterialized" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureRecognizer } from "./ArkGestureRecognizerMaterialized" +import { TextAttribute, TextOverflowOptions, TextSpanType, TextResponseType, TextOptions, TextInterface } from "./ArkTextInterfaces" +import { FontSettingOptions, TextDataDetectorConfig } from "./ArkTextCommonInterfaces" +import { DecorationStyleInterface } from "./ArkStyledStringInterfaces" +import { SelectionMenuOptions } from "./ArkRichEditorInterfaces" +import { EditMenuOptions } from "./ArkEditMenuOptionsMaterialized" import { TextController } from "./ArkTextControllerMaterialized" /** @memo:stable */ export class ArkTextComponent extends ArkCommonMethodComponent { @@ -48,11 +67,25 @@ export class ArkTextComponent extends ArkCommonMethodComponent { return this } /** @memo */ - font(value: Font): this { + font(fontValue: Font | Font, options?: FontSettingOptions): this { if (this.checkPriority("font")) { - const value_casted = value as (Font) - this.peer?.fontAttribute(value_casted) - return this + const fontValue_type = runtimeType(fontValue) + const options_type = runtimeType(options) + if ((TypeChecker.isFont(fontValue, true, true, true, true)) && (((RuntimeType.OBJECT == options_type)) || ((RuntimeType.UNDEFINED == options_type)))) { + const fontValue_casted = fontValue as (Font) + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (FontSettingOptions) + this.peer?.font1Attribute(fontValue_casted, options_casted) + return this + } + if ((TypeChecker.isFont(fontValue, true, true, true, true)) && (((RuntimeType.UNDEFINED == options_type)))) { + const fontValue_casted = fontValue as (Font) + this.peer?.font0Attribute(fontValue_casted) + return this + } + throw new Error("Can not select appropriate overload") } return this } @@ -65,6 +98,360 @@ export class ArkTextComponent extends ArkCommonMethodComponent { } return this } + /** @memo */ + fontSize(value: number | string | Resource): this { + if (this.checkPriority("fontSize")) { + const value_casted = value as (number | string | Resource) + this.peer?.fontSizeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + minFontSize(value: number | string | Resource): this { + if (this.checkPriority("minFontSize")) { + const value_casted = value as (number | string | Resource) + this.peer?.minFontSizeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + maxFontSize(value: number | string | Resource): this { + if (this.checkPriority("maxFontSize")) { + const value_casted = value as (number | string | Resource) + this.peer?.maxFontSizeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + minFontScale(scale: number | Resource): this { + if (this.checkPriority("minFontScale")) { + const scale_casted = scale as (number | Resource) + this.peer?.minFontScaleAttribute(scale_casted) + return this + } + return this + } + /** @memo */ + maxFontScale(scale: number | Resource): this { + if (this.checkPriority("maxFontScale")) { + const scale_casted = scale as (number | Resource) + this.peer?.maxFontScaleAttribute(scale_casted) + return this + } + return this + } + /** @memo */ + fontStyle(value: FontStyle): this { + if (this.checkPriority("fontStyle")) { + const value_casted = value as (FontStyle) + this.peer?.fontStyleAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fontWeight(weight: number | FontWeight | string | number | FontWeight | string, options?: FontSettingOptions): this { + if (this.checkPriority("fontWeight")) { + const weight_type = runtimeType(weight) + const options_type = runtimeType(options) + if ((((RuntimeType.NUMBER == weight_type)) || ((RuntimeType.OBJECT == weight_type)) || ((RuntimeType.STRING == weight_type))) && (((RuntimeType.OBJECT == options_type)) || ((RuntimeType.UNDEFINED == options_type)))) { + const weight_casted = weight as (number | FontWeight | string) + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (FontSettingOptions) + this.peer?.fontWeight1Attribute(weight_casted, options_casted) + return this + } + if ((((RuntimeType.NUMBER == weight_type)) || ((RuntimeType.OBJECT == weight_type)) || ((RuntimeType.STRING == weight_type))) && (((RuntimeType.UNDEFINED == options_type)))) { + const weight_casted = weight as (number | FontWeight | string) + this.peer?.fontWeight0Attribute(weight_casted) + return this + } + throw new Error("Can not select appropriate overload") + } + return this + } + /** @memo */ + lineSpacing(value: LengthMetrics): this { + if (this.checkPriority("lineSpacing")) { + const value_casted = value as (LengthMetrics) + this.peer?.lineSpacingAttribute(value_casted) + return this + } + return this + } + /** @memo */ + textAlign(value: TextAlign): this { + if (this.checkPriority("textAlign")) { + const value_casted = value as (TextAlign) + this.peer?.textAlignAttribute(value_casted) + return this + } + return this + } + /** @memo */ + lineHeight(value: number | string | Resource): this { + if (this.checkPriority("lineHeight")) { + const value_casted = value as (number | string | Resource) + this.peer?.lineHeightAttribute(value_casted) + return this + } + return this + } + /** @memo */ + textOverflow(options: TextOverflowOptions): this { + if (this.checkPriority("textOverflow")) { + const options_casted = options as (TextOverflowOptions) + this.peer?.textOverflowAttribute(options_casted) + return this + } + return this + } + /** @memo */ + fontFamily(value: string | Resource): this { + if (this.checkPriority("fontFamily")) { + const value_casted = value as (string | Resource) + this.peer?.fontFamilyAttribute(value_casted) + return this + } + return this + } + /** @memo */ + maxLines(value: number): this { + if (this.checkPriority("maxLines")) { + const value_casted = value as (number) + this.peer?.maxLinesAttribute(value_casted) + return this + } + return this + } + /** @memo */ + decoration(value: DecorationStyleInterface): this { + if (this.checkPriority("decoration")) { + const value_casted = value as (DecorationStyleInterface) + this.peer?.decorationAttribute(value_casted) + return this + } + return this + } + /** @memo */ + letterSpacing(value: number | string): this { + if (this.checkPriority("letterSpacing")) { + const value_casted = value as (number | string) + this.peer?.letterSpacingAttribute(value_casted) + return this + } + return this + } + /** @memo */ + textCase(value: TextCase): this { + if (this.checkPriority("textCase")) { + const value_casted = value as (TextCase) + this.peer?.textCaseAttribute(value_casted) + return this + } + return this + } + /** @memo */ + baselineOffset(value: number | string): this { + if (this.checkPriority("baselineOffset")) { + const value_casted = value as (number | string) + this.peer?.baselineOffsetAttribute(value_casted) + return this + } + return this + } + /** @memo */ + copyOption(value: CopyOptions): this { + if (this.checkPriority("copyOption")) { + const value_casted = value as (CopyOptions) + this.peer?.copyOptionAttribute(value_casted) + return this + } + return this + } + /** @memo */ + draggable(value: boolean): this { + if (this.checkPriority("draggable")) { + const value_casted = value as (boolean) + this.peer?.draggableAttribute(value_casted) + return this + } + return this + } + /** @memo */ + textShadow(value: ShadowOptions | Array): this { + if (this.checkPriority("textShadow")) { + const value_casted = value as (ShadowOptions | Array) + this.peer?.textShadowAttribute(value_casted) + return this + } + return this + } + /** @memo */ + heightAdaptivePolicy(value: TextHeightAdaptivePolicy): this { + if (this.checkPriority("heightAdaptivePolicy")) { + const value_casted = value as (TextHeightAdaptivePolicy) + this.peer?.heightAdaptivePolicyAttribute(value_casted) + return this + } + return this + } + /** @memo */ + textIndent(value: Length): this { + if (this.checkPriority("textIndent")) { + const value_casted = value as (Length) + this.peer?.textIndentAttribute(value_casted) + return this + } + return this + } + /** @memo */ + wordBreak(value: WordBreak): this { + if (this.checkPriority("wordBreak")) { + const value_casted = value as (WordBreak) + this.peer?.wordBreakAttribute(value_casted) + return this + } + return this + } + /** @memo */ + lineBreakStrategy(strategy: LineBreakStrategy): this { + if (this.checkPriority("lineBreakStrategy")) { + const strategy_casted = strategy as (LineBreakStrategy) + this.peer?.lineBreakStrategyAttribute(strategy_casted) + return this + } + return this + } + /** @memo */ + onCopy(callback: ((value: string) => void)): this { + if (this.checkPriority("onCopy")) { + const callback_casted = callback as (((value: string) => void)) + this.peer?.onCopyAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + selection(selectionStart: number, selectionEnd: number): this { + if (this.checkPriority("selection")) { + const selectionStart_casted = selectionStart as (number) + const selectionEnd_casted = selectionEnd as (number) + this.peer?.selectionAttribute(selectionStart_casted, selectionEnd_casted) + return this + } + return this + } + /** @memo */ + ellipsisMode(value: EllipsisMode): this { + if (this.checkPriority("ellipsisMode")) { + const value_casted = value as (EllipsisMode) + this.peer?.ellipsisModeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + enableDataDetector(enable: boolean): this { + if (this.checkPriority("enableDataDetector")) { + const enable_casted = enable as (boolean) + this.peer?.enableDataDetectorAttribute(enable_casted) + return this + } + return this + } + /** @memo */ + dataDetectorConfig(config: TextDataDetectorConfig): this { + if (this.checkPriority("dataDetectorConfig")) { + const config_casted = config as (TextDataDetectorConfig) + this.peer?.dataDetectorConfigAttribute(config_casted) + return this + } + return this + } + /** @memo */ + bindSelectionMenu(spanType: TextSpanType, content: CustomBuilder, responseType: TextResponseType, options?: SelectionMenuOptions): this { + if (this.checkPriority("bindSelectionMenu")) { + const spanType_casted = spanType as (TextSpanType) + const content_casted = content as (CustomBuilder) + const responseType_casted = responseType as (TextResponseType) + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (SelectionMenuOptions) + this.peer?.bindSelectionMenuAttribute(spanType_casted, content_casted, responseType_casted, options_casted) + return this + } + return this + } + /** @memo */ + onTextSelectionChange(callback: ((selectionStart: number, selectionEnd: number) => void)): this { + if (this.checkPriority("onTextSelectionChange")) { + const callback_casted = callback as (((selectionStart: number, selectionEnd: number) => void)) + this.peer?.onTextSelectionChangeAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + fontFeature(value: string): this { + if (this.checkPriority("fontFeature")) { + const value_casted = value as (string) + this.peer?.fontFeatureAttribute(value_casted) + return this + } + return this + } + /** @memo */ + privacySensitive(supported: boolean): this { + if (this.checkPriority("privacySensitive")) { + const supported_casted = supported as (boolean) + this.peer?.privacySensitiveAttribute(supported_casted) + return this + } + return this + } + /** @memo */ + textSelectable(mode: TextSelectableMode): this { + if (this.checkPriority("textSelectable")) { + const mode_casted = mode as (TextSelectableMode) + this.peer?.textSelectableAttribute(mode_casted) + return this + } + return this + } + /** @memo */ + editMenuOptions(editMenu: EditMenuOptions): this { + if (this.checkPriority("editMenuOptions")) { + const editMenu_casted = editMenu as (EditMenuOptions) + this.peer?.editMenuOptionsAttribute(editMenu_casted) + return this + } + return this + } + /** @memo */ + halfLeading(halfLeading: boolean): this { + if (this.checkPriority("halfLeading")) { + const halfLeading_casted = halfLeading as (boolean) + this.peer?.halfLeadingAttribute(halfLeading_casted) + return this + } + return this + } + /** @memo */ + enableHapticFeedback(isEnabled: boolean): this { + if (this.checkPriority("enableHapticFeedback")) { + const isEnabled_casted = isEnabled as (boolean) + this.peer?.enableHapticFeedbackAttribute(isEnabled_casted) + return this + } + return this + } public applyAttributesFinish(): void { // we calls this function outside of class, so need to make it public super.applyAttributesFinish() diff --git a/arkoala-arkts/arkui/src/generated/ArkTextControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextControllerMaterialized.ts index 89226e5fd..e362b5abc 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextControllerMaterialized.ts @@ -17,6 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { StyledString } from "./ArkStyledStringMaterialized" +import { LayoutManager } from "./ArkLayoutManagerMaterialized" import { TypeChecker } from "#components" import { Finalizable } from "./Finalizable" @@ -64,6 +65,9 @@ export class TextController { const value_casted = value as (StyledString) this.setStyledString_serialize(value_casted) } + getLayoutManager(): LayoutManager { + return this.getLayoutManager_serialize() + } private closeSelectionMenu_serialize(): void { NativeModule._TextController_closeSelectionMenu(this.peer!.ptr); } @@ -73,4 +77,8 @@ export class TextController { NativeModule._TextController_setStyledString(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); thisSerializer.release(); } + private getLayoutManager_serialize(): LayoutManager { + const retval = NativeModule._TextController_getLayoutManager(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } } diff --git a/arkoala-arkts/arkui/src/generated/ArkTextInput.ts b/arkoala-arkts/arkui/src/generated/ArkTextInput.ts index 5a5697e47..ea66905ba 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextInput.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextInput.ts @@ -22,11 +22,19 @@ import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from " import { ComponentBase } from "./ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" -import { ArkTextInputPeer } from "./peers/ArkTextInputPeer" +import { ArkTextInputPeer, CancelButtonValuesType } from "./peers/ArkTextInputPeer" import { UseEventsProperties } from "./use_properties" -import { InputType, TextInputAttribute, ContentType, TextInputOptions, TextInputInterface } from "./ArkTextInputInterfaces" -import { ResourceStr, Resource } from "./ArkUnitsInterfaces" -import { IMPORT_Resource_FROM_resource_resource } from "./SyntheticDeclarations" +import { InputType, TextInputAttribute, EnterKeyType, SubmitEvent, TextInputStyle, PasswordIcon, UnderlineColor, TextInputOptions, TextInputInterface } from "./ArkTextInputInterfaces" +import { ContentType } from "./ArkTextAreaInterfaces" +import { ResourceColor, Resource, Dimension, PX, VP, FP, LPX, Percentage, Font, Length, ResourceStr } from "./ArkUnitsInterfaces" +import { Color, TextOverflow, FontStyle, FontWeight, CopyOptions, TextAlign, TextContentStyle, BarState, WordBreak, LineBreakStrategy, TextHeightAdaptivePolicy } from "./ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, LITERAL_StyleCancelButtonStyleIconIconOptions } from "./SyntheticDeclarations" +import { EditableTextOnChangeCallback, PreviewText, CaretStyle, InsertValue, DeleteValue } from "./ArkTextCommonInterfaces" +import { PasteEvent, KeyboardOptions } from "./ArkRichEditorInterfaces" +import { CustomBuilder, InputCounterOptions, TextDecorationOptions, Callback } from "./ArkCommonInterfaces" +import { CancelButtonStyle, IconOptions } from "./ArkSearchInterfaces" +import { EditMenuOptions } from "./ArkEditMenuOptionsMaterialized" +import { TextInputController } from "./ArkTextInputControllerMaterialized" /** @memo:stable */ export class ArkTextInputComponent extends ArkCommonMethodComponent { protected peer?: ArkTextInputPeer @@ -61,6 +69,63 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { return this } /** @memo */ + placeholderColor(value: ResourceColor): this { + if (this.checkPriority("placeholderColor")) { + const value_casted = value as (ResourceColor) + this.peer?.placeholderColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + textOverflow(value: TextOverflow): this { + if (this.checkPriority("textOverflow")) { + const value_casted = value as (TextOverflow) + this.peer?.textOverflowAttribute(value_casted) + return this + } + return this + } + /** @memo */ + textIndent(value: Dimension): this { + if (this.checkPriority("textIndent")) { + const value_casted = value as (Dimension) + this.peer?.textIndentAttribute(value_casted) + return this + } + return this + } + /** @memo */ + placeholderFont(value?: Font): this { + if (this.checkPriority("placeholderFont")) { + if ((value) == (undefined)) { + throw new Error("Arg 'value' is null"); + } + const value_casted = value as (Font) + this.peer?.placeholderFontAttribute(value_casted) + return this + } + return this + } + /** @memo */ + enterKeyType(value: EnterKeyType): this { + if (this.checkPriority("enterKeyType")) { + const value_casted = value as (EnterKeyType) + this.peer?.enterKeyTypeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + caretColor(value: ResourceColor): this { + if (this.checkPriority("caretColor")) { + const value_casted = value as (ResourceColor) + this.peer?.caretColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ onEditChanged(callback: ((isEditing: boolean) => void)): this { if (this.checkPriority("onEditChanged")) { const callback_casted = callback as (((isEditing: boolean) => void)) @@ -69,6 +134,516 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { } return this } + /** @memo */ + onEditChange(callback: ((isEditing: boolean) => void)): this { + if (this.checkPriority("onEditChange")) { + const callback_casted = callback as (((isEditing: boolean) => void)) + this.peer?.onEditChangeAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onSubmit(callback: ((enterKey: EnterKeyType, event: SubmitEvent) => void)): this { + if (this.checkPriority("onSubmit")) { + const callback_casted = callback as (((enterKey: EnterKeyType, event: SubmitEvent) => void)) + this.peer?.onSubmitAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onChange(callback: EditableTextOnChangeCallback): this { + if (this.checkPriority("onChange")) { + const callback_casted = callback as (EditableTextOnChangeCallback) + this.peer?.onChangeAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onTextSelectionChange(callback: ((selectionStart: number, selectionEnd: number) => void)): this { + if (this.checkPriority("onTextSelectionChange")) { + const callback_casted = callback as (((selectionStart: number, selectionEnd: number) => void)) + this.peer?.onTextSelectionChangeAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onContentScroll(callback: ((totalOffsetX: number, totalOffsetY: number) => void)): this { + if (this.checkPriority("onContentScroll")) { + const callback_casted = callback as (((totalOffsetX: number, totalOffsetY: number) => void)) + this.peer?.onContentScrollAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + maxLength(value: number): this { + if (this.checkPriority("maxLength")) { + const value_casted = value as (number) + this.peer?.maxLengthAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fontColor(value: ResourceColor): this { + if (this.checkPriority("fontColor")) { + const value_casted = value as (ResourceColor) + this.peer?.fontColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fontSize(value: Length): this { + if (this.checkPriority("fontSize")) { + const value_casted = value as (Length) + this.peer?.fontSizeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fontStyle(value: FontStyle): this { + if (this.checkPriority("fontStyle")) { + const value_casted = value as (FontStyle) + this.peer?.fontStyleAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fontWeight(value: number | FontWeight | string): this { + if (this.checkPriority("fontWeight")) { + const value_casted = value as (number | FontWeight | string) + this.peer?.fontWeightAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fontFamily(value: ResourceStr): this { + if (this.checkPriority("fontFamily")) { + const value_casted = value as (ResourceStr) + this.peer?.fontFamilyAttribute(value_casted) + return this + } + return this + } + /** @memo */ + inputFilter(value: ResourceStr, error?: ((value: string) => void)): this { + if (this.checkPriority("inputFilter")) { + const value_casted = value as (ResourceStr) + if ((error) == (undefined)) { + throw new Error("Arg 'error' is null"); + } + const error_casted = error as (((value: string) => void)) + this.peer?.inputFilterAttribute(value_casted, error_casted) + return this + } + return this + } + /** @memo */ + onCopy(callback: ((value: string) => void)): this { + if (this.checkPriority("onCopy")) { + const callback_casted = callback as (((value: string) => void)) + this.peer?.onCopyAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onCut(callback: ((value: string) => void)): this { + if (this.checkPriority("onCut")) { + const callback_casted = callback as (((value: string) => void)) + this.peer?.onCutAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onPaste(callback: ((value: string, event: PasteEvent) => void)): this { + if (this.checkPriority("onPaste")) { + const callback_casted = callback as (((value: string, event: PasteEvent) => void)) + this.peer?.onPasteAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + copyOption(value: CopyOptions): this { + if (this.checkPriority("copyOption")) { + const value_casted = value as (CopyOptions) + this.peer?.copyOptionAttribute(value_casted) + return this + } + return this + } + /** @memo */ + showPasswordIcon(value: boolean): this { + if (this.checkPriority("showPasswordIcon")) { + const value_casted = value as (boolean) + this.peer?.showPasswordIconAttribute(value_casted) + return this + } + return this + } + /** @memo */ + textAlign(value: TextAlign): this { + if (this.checkPriority("textAlign")) { + const value_casted = value as (TextAlign) + this.peer?.textAlignAttribute(value_casted) + return this + } + return this + } + /** @memo */ + style(value: TextInputStyle | TextContentStyle): this { + if (this.checkPriority("style")) { + const value_casted = value as (TextInputStyle | TextContentStyle) + this.peer?.styleAttribute(value_casted) + return this + } + return this + } + /** @memo */ + caretStyle(value: CaretStyle): this { + if (this.checkPriority("caretStyle")) { + const value_casted = value as (CaretStyle) + this.peer?.caretStyleAttribute(value_casted) + return this + } + return this + } + /** @memo */ + selectedBackgroundColor(value: ResourceColor): this { + if (this.checkPriority("selectedBackgroundColor")) { + const value_casted = value as (ResourceColor) + this.peer?.selectedBackgroundColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + caretPosition(value: number): this { + if (this.checkPriority("caretPosition")) { + const value_casted = value as (number) + this.peer?.caretPositionAttribute(value_casted) + return this + } + return this + } + /** @memo */ + enableKeyboardOnFocus(value: boolean): this { + if (this.checkPriority("enableKeyboardOnFocus")) { + const value_casted = value as (boolean) + this.peer?.enableKeyboardOnFocusAttribute(value_casted) + return this + } + return this + } + /** @memo */ + passwordIcon(value: PasswordIcon): this { + if (this.checkPriority("passwordIcon")) { + const value_casted = value as (PasswordIcon) + this.peer?.passwordIconAttribute(value_casted) + return this + } + return this + } + /** @memo */ + showError(value?: ResourceStr | undefined): this { + if (this.checkPriority("showError")) { + if ((value) == (undefined)) { + throw new Error("Arg 'value' is null"); + } + const value_casted = value as (ResourceStr | undefined) + this.peer?.showErrorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + showUnit(value: CustomBuilder): this { + if (this.checkPriority("showUnit")) { + const value_casted = value as (CustomBuilder) + this.peer?.showUnitAttribute(value_casted) + return this + } + return this + } + /** @memo */ + showUnderline(value: boolean): this { + if (this.checkPriority("showUnderline")) { + const value_casted = value as (boolean) + this.peer?.showUnderlineAttribute(value_casted) + return this + } + return this + } + /** @memo */ + underlineColor(value: ResourceColor | UnderlineColor | undefined): this { + if (this.checkPriority("underlineColor")) { + const value_casted = value as (ResourceColor | UnderlineColor | undefined) + this.peer?.underlineColorAttribute(value_casted) + return this + } + return this + } + /** @memo */ + selectionMenuHidden(value: boolean): this { + if (this.checkPriority("selectionMenuHidden")) { + const value_casted = value as (boolean) + this.peer?.selectionMenuHiddenAttribute(value_casted) + return this + } + return this + } + /** @memo */ + barState(value: BarState): this { + if (this.checkPriority("barState")) { + const value_casted = value as (BarState) + this.peer?.barStateAttribute(value_casted) + return this + } + return this + } + /** @memo */ + maxLines(value: number): this { + if (this.checkPriority("maxLines")) { + const value_casted = value as (number) + this.peer?.maxLinesAttribute(value_casted) + return this + } + return this + } + /** @memo */ + wordBreak(value: WordBreak): this { + if (this.checkPriority("wordBreak")) { + const value_casted = value as (WordBreak) + this.peer?.wordBreakAttribute(value_casted) + return this + } + return this + } + /** @memo */ + lineBreakStrategy(strategy: LineBreakStrategy): this { + if (this.checkPriority("lineBreakStrategy")) { + const strategy_casted = strategy as (LineBreakStrategy) + this.peer?.lineBreakStrategyAttribute(strategy_casted) + return this + } + return this + } + /** @memo */ + customKeyboard(value: CustomBuilder, options?: KeyboardOptions): this { + if (this.checkPriority("customKeyboard")) { + const value_casted = value as (CustomBuilder) + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (KeyboardOptions) + this.peer?.customKeyboardAttribute(value_casted, options_casted) + return this + } + return this + } + /** @memo */ + showCounter(value: boolean, options?: InputCounterOptions): this { + if (this.checkPriority("showCounter")) { + const value_casted = value as (boolean) + if ((options) == (undefined)) { + throw new Error("Arg 'options' is null"); + } + const options_casted = options as (InputCounterOptions) + this.peer?.showCounterAttribute(value_casted, options_casted) + return this + } + return this + } + /** @memo */ + cancelButton(value: CancelButtonValuesType): this { + if (this.checkPriority("cancelButton")) { + const value_casted = value as (CancelButtonValuesType) + this.peer?.cancelButtonAttribute(value_casted) + return this + } + return this + } + /** @memo */ + selectAll(value: boolean): this { + if (this.checkPriority("selectAll")) { + const value_casted = value as (boolean) + this.peer?.selectAllAttribute(value_casted) + return this + } + return this + } + /** @memo */ + minFontSize(value: number | string | Resource): this { + if (this.checkPriority("minFontSize")) { + const value_casted = value as (number | string | Resource) + this.peer?.minFontSizeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + maxFontSize(value: number | string | Resource): this { + if (this.checkPriority("maxFontSize")) { + const value_casted = value as (number | string | Resource) + this.peer?.maxFontSizeAttribute(value_casted) + return this + } + return this + } + /** @memo */ + heightAdaptivePolicy(value: TextHeightAdaptivePolicy): this { + if (this.checkPriority("heightAdaptivePolicy")) { + const value_casted = value as (TextHeightAdaptivePolicy) + this.peer?.heightAdaptivePolicyAttribute(value_casted) + return this + } + return this + } + /** @memo */ + enableAutoFill(value: boolean): this { + if (this.checkPriority("enableAutoFill")) { + const value_casted = value as (boolean) + this.peer?.enableAutoFillAttribute(value_casted) + return this + } + return this + } + /** @memo */ + decoration(value: TextDecorationOptions): this { + if (this.checkPriority("decoration")) { + const value_casted = value as (TextDecorationOptions) + this.peer?.decorationAttribute(value_casted) + return this + } + return this + } + /** @memo */ + letterSpacing(value: number | string | Resource): this { + if (this.checkPriority("letterSpacing")) { + const value_casted = value as (number | string | Resource) + this.peer?.letterSpacingAttribute(value_casted) + return this + } + return this + } + /** @memo */ + lineHeight(value: number | string | Resource): this { + if (this.checkPriority("lineHeight")) { + const value_casted = value as (number | string | Resource) + this.peer?.lineHeightAttribute(value_casted) + return this + } + return this + } + /** @memo */ + passwordRules(value: string): this { + if (this.checkPriority("passwordRules")) { + const value_casted = value as (string) + this.peer?.passwordRulesAttribute(value_casted) + return this + } + return this + } + /** @memo */ + fontFeature(value: string): this { + if (this.checkPriority("fontFeature")) { + const value_casted = value as (string) + this.peer?.fontFeatureAttribute(value_casted) + return this + } + return this + } + /** @memo */ + showPassword(visible: boolean): this { + if (this.checkPriority("showPassword")) { + const visible_casted = visible as (boolean) + this.peer?.showPasswordAttribute(visible_casted) + return this + } + return this + } + /** @memo */ + onSecurityStateChange(callback: Callback): this { + if (this.checkPriority("onSecurityStateChange")) { + const callback_casted = callback as (Callback) + this.peer?.onSecurityStateChangeAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onWillInsert(callback: Callback): this { + if (this.checkPriority("onWillInsert")) { + const callback_casted = callback as (Callback) + this.peer?.onWillInsertAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onDidInsert(callback: Callback): this { + if (this.checkPriority("onDidInsert")) { + const callback_casted = callback as (Callback) + this.peer?.onDidInsertAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onWillDelete(callback: Callback): this { + if (this.checkPriority("onWillDelete")) { + const callback_casted = callback as (Callback) + this.peer?.onWillDeleteAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onDidDelete(callback: Callback): this { + if (this.checkPriority("onDidDelete")) { + const callback_casted = callback as (Callback) + this.peer?.onDidDeleteAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + editMenuOptions(editMenu: EditMenuOptions): this { + if (this.checkPriority("editMenuOptions")) { + const editMenu_casted = editMenu as (EditMenuOptions) + this.peer?.editMenuOptionsAttribute(editMenu_casted) + return this + } + return this + } + /** @memo */ + enablePreviewText(enable: boolean): this { + if (this.checkPriority("enablePreviewText")) { + const enable_casted = enable as (boolean) + this.peer?.enablePreviewTextAttribute(enable_casted) + return this + } + return this + } + /** @memo */ + enableHapticFeedback(isEnabled: boolean): this { + if (this.checkPriority("enableHapticFeedback")) { + const isEnabled_casted = isEnabled as (boolean) + this.peer?.enableHapticFeedbackAttribute(isEnabled_casted) + return this + } + return this + } public applyAttributesFinish(): void { // we calls this function outside of class, so need to make it public super.applyAttributesFinish() diff --git a/arkoala-arkts/arkui/src/generated/ArkTextInputInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkTextInputInterfaces.ts index 4180513b2..dc4a12637 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextInputInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextInputInterfaces.ts @@ -1,8 +1,212 @@ -import { ResourceStr, Resource } from "./ArkUnitsInterfaces" -import { IMPORT_Resource_FROM_resource_resource } from "./SyntheticDeclarations" +import { ContentType } from "./ArkTextAreaInterfaces" +import { ResourceColor, Resource, Dimension, PX, VP, FP, LPX, Percentage, Font, Length, ResourceStr } from "./ArkUnitsInterfaces" +import { Color, TextOverflow, FontStyle, FontWeight, CopyOptions, TextAlign, TextContentStyle, BarState, WordBreak, LineBreakStrategy, TextHeightAdaptivePolicy } from "./ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, LITERAL_StyleCancelButtonStyleIconIconOptions } from "./SyntheticDeclarations" +import { EditableTextOnChangeCallback, PreviewText, CaretStyle, InsertValue, DeleteValue } from "./ArkTextCommonInterfaces" +import { PasteEvent, KeyboardOptions } from "./ArkRichEditorInterfaces" +import { CustomBuilder, InputCounterOptions, TextDecorationOptions, Callback } from "./ArkCommonInterfaces" +import { CancelButtonStyle, IconOptions } from "./ArkSearchInterfaces" +import { EditMenuOptions } from "./ArkEditMenuOptionsMaterialized" +import { TextInputController } from "./ArkTextInputControllerMaterialized" import { KInt } from "@koalaui/interop" +/** + * Declare the type of soft keyboard. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Declare the type of soft keyboard. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Declare the type of soft keyboard. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class EnterKeyType { + /** + * Go. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Go. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Go. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Go: EnterKeyType = new EnterKeyType(2) + /** + * Search. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Search. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Search. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Search: EnterKeyType = new EnterKeyType(3) + /** + * Send. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Send. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Send. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Send: EnterKeyType = new EnterKeyType(4) + /** + * Next. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Next. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Next. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Next: EnterKeyType = new EnterKeyType(5) + /** + * Done. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Done. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Done. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Done: EnterKeyType = new EnterKeyType(6) + /** + * Showed as 'previous' pattern. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * Showed as 'previous' pattern. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly PREVIOUS: EnterKeyType = new EnterKeyType(7) + /** + * Showed as 'new line' pattern. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * Showed as 'new line' pattern. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly NEW_LINE: EnterKeyType = new EnterKeyType(8) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): EnterKeyType { + if ((arg0) == (EnterKeyType.Go.value)) { + return EnterKeyType.Go + } + if ((arg0) == (EnterKeyType.Search.value)) { + return EnterKeyType.Search + } + if ((arg0) == (EnterKeyType.Send.value)) { + return EnterKeyType.Send + } + if ((arg0) == (EnterKeyType.Next.value)) { + return EnterKeyType.Next + } + if ((arg0) == (EnterKeyType.Done.value)) { + return EnterKeyType.Done + } + if ((arg0) == (EnterKeyType.PREVIOUS.value)) { + return EnterKeyType.PREVIOUS + } + if ((arg0) == (EnterKeyType.NEW_LINE.value)) { + return EnterKeyType.NEW_LINE + } + throw new Error(`Enum member '${arg0}' not found`) + } +} /* - * Copyright (c) 2024 Huawei Device Co., Ltd. + * Copyright (c) 2021-2024 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -15,9 +219,215 @@ import { KInt } from "@koalaui/interop" * See the License for the specific language governing permissions and * limitations under the License. */ +/** + * @file + * @kit ArkUI + */ +/** + * Declare the type of input box + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Declare the type of input box + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Declare the type of input box + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ export class InputType { + /** + * Basic input mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Basic input mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Basic input mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ static readonly Normal: InputType = new InputType(0) + /** + * Pure digital input mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Pure digital input mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Pure digital input mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ static readonly Number: InputType = new InputType(1) + /** + * Phone number entry mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 9 + */ +/** + * Phone number entry mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Phone number entry mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly PhoneNumber: InputType = new InputType(2) + /** + * E-mail address input mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * E-mail address input mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * E-mail address input mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Email: InputType = new InputType(3) + /** + * Password entry mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 7 + */ +/** + * Password entry mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Password entry mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Password: InputType = new InputType(4) + /** + * Number Password entry mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * Number Password entry mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly NUMBER_PASSWORD: InputType = new InputType(8) + /** + * Screen Lock Password entry mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @systemapi + * @since 11 + */ + static readonly SCREEN_LOCK_PASSWORD: InputType = new InputType(9) + /** + * UserName entry mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 11 + */ +/** + * UserName entry mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly USER_NAME: InputType = new InputType(10) + /** + * NewPassword entry mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 11 + */ +/** + * NewPassword entry mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @atomicservice + * @since 12 + */ + static readonly NEW_PASSWORD: InputType = new InputType(11) + /** + * Number decimal entry mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly NUMBER_DECIMAL: InputType = new InputType(12) + /** + * URL entry mode. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly URL: InputType = new InputType(13) constructor(value: KInt) { this.value = value } @@ -29,22 +439,115 @@ export class InputType { if ((arg0) == (InputType.Number.value)) { return InputType.Number } + if ((arg0) == (InputType.PhoneNumber.value)) { + return InputType.PhoneNumber + } + if ((arg0) == (InputType.Email.value)) { + return InputType.Email + } + if ((arg0) == (InputType.Password.value)) { + return InputType.Password + } + if ((arg0) == (InputType.NUMBER_PASSWORD.value)) { + return InputType.NUMBER_PASSWORD + } + if ((arg0) == (InputType.SCREEN_LOCK_PASSWORD.value)) { + return InputType.SCREEN_LOCK_PASSWORD + } + if ((arg0) == (InputType.USER_NAME.value)) { + return InputType.USER_NAME + } + if ((arg0) == (InputType.NEW_PASSWORD.value)) { + return InputType.NEW_PASSWORD + } + if ((arg0) == (InputType.NUMBER_DECIMAL.value)) { + return InputType.NUMBER_DECIMAL + } + if ((arg0) == (InputType.URL.value)) { + return InputType.URL + } throw new Error(`Enum member '${arg0}' not found`) } } -export class ContentType { - static readonly USER_NAME: ContentType = new ContentType(0) - static readonly PASSWORD: ContentType = new ContentType(1) +/** + * Text input style. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 9 + */ +/** + * Text input style. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Text input style. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ +export class TextInputStyle { + /** + * Text input default style. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 9 + */ +/** + * Text input default style. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Text input default style. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Default: TextInputStyle = new TextInputStyle(0) + /** + * Text input inline style. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @since 9 + */ +/** + * Text input inline style. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 10 + */ +/** + * Text input inline style. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Inline: TextInputStyle = new TextInputStyle(1) constructor(value: KInt) { this.value = value } public readonly value: KInt - public static of(arg0: KInt): ContentType { - if ((arg0) == (ContentType.USER_NAME.value)) { - return ContentType.USER_NAME + public static of(arg0: KInt): TextInputStyle { + if ((arg0) == (TextInputStyle.Default.value)) { + return TextInputStyle.Default } - if ((arg0) == (ContentType.PASSWORD.value)) { - return ContentType.PASSWORD + if ((arg0) == (TextInputStyle.Inline.value)) { + return TextInputStyle.Inline } throw new Error(`Enum member '${arg0}' not found`) } @@ -52,11 +555,86 @@ export class ContentType { export interface TextInputAttribute { type(value: InputType): TextInputAttribute; contentType(value: ContentType): TextInputAttribute; + placeholderColor(value: ResourceColor): TextInputAttribute; + textOverflow(value: TextOverflow): TextInputAttribute; + textIndent(value: Dimension): TextInputAttribute; + placeholderFont(value: Font): TextInputAttribute; + enterKeyType(value: EnterKeyType): TextInputAttribute; + caretColor(value: ResourceColor): TextInputAttribute; onEditChanged(callback: ((isEditing: boolean) => void)): TextInputAttribute; + onEditChange(callback: ((isEditing: boolean) => void)): TextInputAttribute; + onSubmit(callback: ((enterKey: EnterKeyType, event: SubmitEvent) => void)): TextInputAttribute; + onChange(callback: EditableTextOnChangeCallback): TextInputAttribute; + onTextSelectionChange(callback: ((selectionStart: number, selectionEnd: number) => void)): TextInputAttribute; + onContentScroll(callback: ((totalOffsetX: number, totalOffsetY: number) => void)): TextInputAttribute; + maxLength(value: number): TextInputAttribute; + fontColor(value: ResourceColor): TextInputAttribute; + fontSize(value: Length): TextInputAttribute; + fontStyle(value: FontStyle): TextInputAttribute; + fontWeight(value: number | FontWeight | string): TextInputAttribute; + fontFamily(value: ResourceStr): TextInputAttribute; + inputFilter(value: ResourceStr,error: ((value: string) => void)): TextInputAttribute; + onCopy(callback: ((value: string) => void)): TextInputAttribute; + onCut(callback: ((value: string) => void)): TextInputAttribute; + onPaste(callback: ((value: string, event: PasteEvent) => void)): TextInputAttribute; + copyOption(value: CopyOptions): TextInputAttribute; + showPasswordIcon(value: boolean): TextInputAttribute; + textAlign(value: TextAlign): TextInputAttribute; + style(value: TextInputStyle | TextContentStyle): TextInputAttribute; + caretStyle(value: CaretStyle): TextInputAttribute; + selectedBackgroundColor(value: ResourceColor): TextInputAttribute; + caretPosition(value: number): TextInputAttribute; + enableKeyboardOnFocus(value: boolean): TextInputAttribute; + passwordIcon(value: PasswordIcon): TextInputAttribute; + showError(value: ResourceStr | undefined): TextInputAttribute; + showUnit(value: CustomBuilder): TextInputAttribute; + showUnderline(value: boolean): TextInputAttribute; + underlineColor(value: ResourceColor | UnderlineColor | undefined): TextInputAttribute; + selectionMenuHidden(value: boolean): TextInputAttribute; + barState(value: BarState): TextInputAttribute; + maxLines(value: number): TextInputAttribute; + wordBreak(value: WordBreak): TextInputAttribute; + lineBreakStrategy(strategy: LineBreakStrategy): TextInputAttribute; + customKeyboard(value: CustomBuilder,options: KeyboardOptions): TextInputAttribute; + showCounter(value: boolean,options: InputCounterOptions): TextInputAttribute; + cancelButton(value: LITERAL_StyleCancelButtonStyleIconIconOptions): TextInputAttribute; + selectAll(value: boolean): TextInputAttribute; + minFontSize(value: number | string | Resource): TextInputAttribute; + maxFontSize(value: number | string | Resource): TextInputAttribute; + heightAdaptivePolicy(value: TextHeightAdaptivePolicy): TextInputAttribute; + enableAutoFill(value: boolean): TextInputAttribute; + decoration(value: TextDecorationOptions): TextInputAttribute; + letterSpacing(value: number | string | Resource): TextInputAttribute; + lineHeight(value: number | string | Resource): TextInputAttribute; + passwordRules(value: string): TextInputAttribute; + fontFeature(value: string): TextInputAttribute; + showPassword(visible: boolean): TextInputAttribute; + onSecurityStateChange(callback: Callback): TextInputAttribute; + onWillInsert(callback: Callback): TextInputAttribute; + onDidInsert(callback: Callback): TextInputAttribute; + onWillDelete(callback: Callback): TextInputAttribute; + onDidDelete(callback: Callback): TextInputAttribute; + editMenuOptions(editMenu: EditMenuOptions): TextInputAttribute; + enablePreviewText(enable: boolean): TextInputAttribute; + enableHapticFeedback(isEnabled: boolean): TextInputAttribute; } export interface TextInputInterface { } +export interface SubmitEvent { + text: string +} +export interface PasswordIcon { + onIconSrc?: string | Resource + offIconSrc?: string | Resource +} +export interface UnderlineColor { + typing?: ResourceColor | undefined + normal?: ResourceColor | undefined + error?: ResourceColor | undefined + disable?: ResourceColor | undefined +} export interface TextInputOptions { placeholder?: ResourceStr text?: ResourceStr + controller?: TextInputController } \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkTextInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkTextInterfaces.ts index 24f64344c..525292ebd 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextInterfaces.ts @@ -1,14 +1,238 @@ -import { Font, ResourceColor, Resource } from "./ArkUnitsInterfaces" -import { Color } from "./ArkEnumsInterfaces" -import { IMPORT_Resource_FROM_resource_resource } from "./SyntheticDeclarations" +import { Length, Resource, SizeOptions, ConstraintSizeOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, ResourceStr, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, PX, VP, FP, LPX, Percentage, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, Font, LengthMetrics } from "./ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, LITERAL_TopLengthRightLengthBottomLengthLeftLength, LITERAL_AlignAlignment, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image, IMPORT_default_VisualEffect_FROM_api_ohos_graphics_uiEffect, IMPORT_default_Filter_FROM_api_ohos_graphics_uiEffect, LITERAL_TopBorderStyleRightBorderStyleBottomBorderStyleLeftBorderStyle, LITERAL_TopResourceColorRightResourceColorBottomResourceColorLeftResourceColor, LITERAL_TopLeftLengthTopRightLengthBottomLeftLengthBottomRightLength, LITERAL_TopOutlineStyleRightOutlineStyleBottomOutlineStyleLeftOutlineStyle, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, LITERAL_TopDimensionRightDimensionBottomDimensionLeftDimension, LITERAL_TopLeftDimensionTopRightDimensionBottomLeftDimensionBottomRightDimension, LITERAL_SpanNumberOffsetNumber, LITERAL_XsNumberLITERALSpanNumberOffsetNumberSmNumberLITERALSpanNumberOffsetNumberMdNumberLITERALSpanNumberOffsetNumberLgNumberLITERALSpanNumberOffsetNumber, IMPORT_default_UniformDataType_FROM_api_ohos_data_uniformTypeDescriptor, IMPORT_ComponentContent_T_FROM_api_arkui_ComponentContent, LITERAL_AngleNumberstringDirectionGradientDirectionColorsArrayResourceColornumberRepeatingBoolean, LITERAL_CenterLengthLengthStartNumberstringEndNumberstringRotationNumberstringColorsArrayResourceColornumberRepeatingBoolean, LITERAL_CenterLengthLengthRadiusNumberstringColorsArrayResourceColornumberRepeatingBoolean, IMPORT_default_Blender_FROM_api_ohos_graphics_uiEffect, IMPORT_CircleShape_FROM_api_ohos_arkui_shape, IMPORT_EllipseShape_FROM_api_ohos_arkui_shape, IMPORT_PathShape_FROM_api_ohos_arkui_shape, IMPORT_RectShape_FROM_api_ohos_arkui_shape, IMPORT_LengthMetrics_FROM_api_arkui_Graphics } from "./SyntheticDeclarations" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { Optional, SafeAreaType, SafeAreaEdge, Rectangle, TouchTestInfo, TouchResult, CustomBuilder, PixelRoundPolicy, PixelMap, BlurStyle, BackgroundBlurStyleOptions, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, ForegroundBlurStyleOptions, BorderImageOption, OutlineStyle, ClickEvent, Callback, HoverEvent, AccessibilityCallback, AccessibilityHoverEvent, MouseEvent, TouchEvent, KeyEvent, AnimateParam, TransitionOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, sharedTransitionOptions, AlignRuleOption, LocalizedAlignRuleOptions, ChainStyle, ClickEffect, DragEvent, DragItemInfo, UniformDataType, DragPreviewOptions, DragInteractionOptions, PreDragStatus, ComponentContent, OverlayOptions, MotionPathOptions, ShadowOptions, ShadowStyle, BlendMode, BlendApplyType, Blender, CircleShape, EllipseShape, PathShape, RectShape, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, StateStyles, VisibleAreaChangeCallback, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback } from "./ArkCommonInterfaces" +import { HitTestMode, Alignment, Color, ImageRepeat, ImageSize, BorderStyle, ColoringStrategy, HoverEffect, Visibility, ItemAlign, Direction, Axis, GradientDirection, ResponseType, FunctionKey, ModifierKey, ObscuredReasons, RenderFit, FontStyle, FontWeight, TextAlign, TextCase, CopyOptions, TextHeightAdaptivePolicy, WordBreak, LineBreakStrategy, EllipsisMode, TextSelectableMode, TextOverflow } from "./ArkEnumsInterfaces" +import { ResizableOptions } from "./ArkImageInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ConflictedDeclarations" +import { GestureType, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureMask, GestureInfo, BaseGestureEvent, GestureJudgeResult } from "./ArkGestureInterfaces" +import { CircleAttribute } from "./ArkCircleInterfaces" +import { EllipseAttribute } from "./ArkEllipseInterfaces" +import { PathAttribute } from "./ArkPathInterfaces" +import { RectAttribute } from "./ArkRectInterfaces" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./ArkAttributeModifierMaterialized" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureRecognizer } from "./ArkGestureRecognizerMaterialized" +import { FontSettingOptions, TextDataDetectorConfig } from "./ArkTextCommonInterfaces" +import { DecorationStyleInterface } from "./ArkStyledStringInterfaces" +import { SelectionMenuOptions } from "./ArkRichEditorInterfaces" +import { EditMenuOptions } from "./ArkEditMenuOptionsMaterialized" import { TextController } from "./ArkTextControllerMaterialized" import { KInt } from "@koalaui/interop" +/** + * Defines span type. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * Defines span type. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ +export class TextSpanType { + /** + * Only contains text. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * Only contains text. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly TEXT: TextSpanType = new TextSpanType(0) + /** + * Only contains image. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * Only contains image. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly IMAGE: TextSpanType = new TextSpanType(1) + /** + * Contains both text and image. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * Contains both text and image. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly MIXED: TextSpanType = new TextSpanType(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): TextSpanType { + if ((arg0) == (TextSpanType.TEXT.value)) { + return TextSpanType.TEXT + } + if ((arg0) == (TextSpanType.IMAGE.value)) { + return TextSpanType.IMAGE + } + if ((arg0) == (TextSpanType.MIXED.value)) { + return TextSpanType.MIXED + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * ResponseType for contextMenu + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * ResponseType for contextMenu + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ +export class TextResponseType { + /** + * Right click. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * Right click. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly RIGHT_CLICK: TextResponseType = new TextResponseType(0) + /** + * Long press. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * Long press. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly LONG_PRESS: TextResponseType = new TextResponseType(1) + /** + * Selected by mouse. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @since 11 + */ +/** + * Selected by mouse. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @crossplatform + * @atomicservice + * @since 12 + */ + static readonly SELECT: TextResponseType = new TextResponseType(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): TextResponseType { + if ((arg0) == (TextResponseType.RIGHT_CLICK.value)) { + return TextResponseType.RIGHT_CLICK + } + if ((arg0) == (TextResponseType.LONG_PRESS.value)) { + return TextResponseType.LONG_PRESS + } + if ((arg0) == (TextResponseType.SELECT.value)) { + return TextResponseType.SELECT + } + throw new Error(`Enum member '${arg0}' not found`) + } +} export interface TextAttribute { font(value: Font): TextAttribute; fontColor(value: ResourceColor): TextAttribute; + fontSize(value: number | string | Resource): TextAttribute; + minFontSize(value: number | string | Resource): TextAttribute; + maxFontSize(value: number | string | Resource): TextAttribute; + minFontScale(scale: number | Resource): TextAttribute; + maxFontScale(scale: number | Resource): TextAttribute; + fontStyle(value: FontStyle): TextAttribute; + fontWeight(value: number | FontWeight | string): TextAttribute; + lineSpacing(value: LengthMetrics): TextAttribute; + textAlign(value: TextAlign): TextAttribute; + lineHeight(value: number | string | Resource): TextAttribute; + textOverflow(options: TextOverflowOptions): TextAttribute; + fontFamily(value: string | Resource): TextAttribute; + maxLines(value: number): TextAttribute; + decoration(value: DecorationStyleInterface): TextAttribute; + letterSpacing(value: number | string): TextAttribute; + textCase(value: TextCase): TextAttribute; + baselineOffset(value: number | string): TextAttribute; + copyOption(value: CopyOptions): TextAttribute; + draggable(value: boolean): TextAttribute; + textShadow(value: ShadowOptions | Array): TextAttribute; + heightAdaptivePolicy(value: TextHeightAdaptivePolicy): TextAttribute; + textIndent(value: Length): TextAttribute; + wordBreak(value: WordBreak): TextAttribute; + lineBreakStrategy(strategy: LineBreakStrategy): TextAttribute; + onCopy(callback: ((value: string) => void)): TextAttribute; + selection(selectionStart: number,selectionEnd: number): TextAttribute; + ellipsisMode(value: EllipsisMode): TextAttribute; + enableDataDetector(enable: boolean): TextAttribute; + dataDetectorConfig(config: TextDataDetectorConfig): TextAttribute; + bindSelectionMenu(spanType: TextSpanType,content: CustomBuilder,responseType: TextResponseType,options: SelectionMenuOptions): TextAttribute; + onTextSelectionChange(callback: ((selectionStart: number, selectionEnd: number) => void)): TextAttribute; + fontFeature(value: string): TextAttribute; + privacySensitive(supported: boolean): TextAttribute; + textSelectable(mode: TextSelectableMode): TextAttribute; + editMenuOptions(editMenu: EditMenuOptions): TextAttribute; + halfLeading(halfLeading: boolean): TextAttribute; + enableHapticFeedback(isEnabled: boolean): TextAttribute; } export interface TextInterface { } +export interface TextOverflowOptions { + overflow: TextOverflow +} export interface TextOptions { controller: TextController } \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkTextPicker.ts b/arkoala-arkts/arkui/src/generated/ArkTextPicker.ts index 4c3fc04fc..863b18b6b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextPicker.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextPicker.ts @@ -25,8 +25,9 @@ import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTextPickerPeer } from "./peers/ArkTextPickerPeer" import { UseEventsProperties } from "./use_properties" import { TextPickerAttribute, DividerOptions, TextPickerOptions, TextPickerInterface, TextPickerRangeContent, TextCascadePickerRangeContent } from "./ArkTextPickerInterfaces" +import { PickerTextStyle } from "./ArkCommonInterfaces" import { Dimension, PX, VP, FP, LPX, Percentage, Resource, ResourceColor } from "./ArkUnitsInterfaces" -import { TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, IMPORT_Resource_FROM_resource_resource } from "./SyntheticDeclarations" +import { TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, IMPORT_Resource_FROM_api_global_resource } from "./SyntheticDeclarations" import { Color } from "./ArkEnumsInterfaces" /** @memo:stable */ export class ArkTextPickerComponent extends ArkCommonMethodComponent { @@ -62,6 +63,33 @@ export class ArkTextPickerComponent extends ArkCommonMethodComponent { return this } /** @memo */ + disappearTextStyle(value: PickerTextStyle): this { + if (this.checkPriority("disappearTextStyle")) { + const value_casted = value as (PickerTextStyle) + this.peer?.disappearTextStyleAttribute(value_casted) + return this + } + return this + } + /** @memo */ + textStyle(value: PickerTextStyle): this { + if (this.checkPriority("textStyle")) { + const value_casted = value as (PickerTextStyle) + this.peer?.textStyleAttribute(value_casted) + return this + } + return this + } + /** @memo */ + selectedTextStyle(value: PickerTextStyle): this { + if (this.checkPriority("selectedTextStyle")) { + const value_casted = value as (PickerTextStyle) + this.peer?.selectedTextStyleAttribute(value_casted) + return this + } + return this + } + /** @memo */ onAccept(callback: ((value: string, index: number) => void)): this { if (this.checkPriority("onAccept")) { const callback_casted = callback as (((value: string, index: number) => void)) diff --git a/arkoala-arkts/arkui/src/generated/ArkTextPickerInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkTextPickerInterfaces.ts index 23ce9b53b..ecc7f1f4c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextPickerInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextPickerInterfaces.ts @@ -1,10 +1,14 @@ +import { PickerTextStyle } from "./ArkCommonInterfaces" import { Dimension, PX, VP, FP, LPX, Percentage, Resource, ResourceColor } from "./ArkUnitsInterfaces" -import { TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, IMPORT_Resource_FROM_resource_resource } from "./SyntheticDeclarations" +import { TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, IMPORT_Resource_FROM_api_global_resource } from "./SyntheticDeclarations" import { Color } from "./ArkEnumsInterfaces" import { KInt } from "@koalaui/interop" export interface TextPickerAttribute { defaultPickerItemHeight(value: number | string): TextPickerAttribute; canLoop(value: boolean): TextPickerAttribute; + disappearTextStyle(value: PickerTextStyle): TextPickerAttribute; + textStyle(value: PickerTextStyle): TextPickerAttribute; + selectedTextStyle(value: PickerTextStyle): TextPickerAttribute; onAccept(callback: ((value: string, index: number) => void)): TextPickerAttribute; onCancel(callback: (() => void)): TextPickerAttribute; onChange(callback: ((value: string | string[], index: number | number[]) => void)): TextPickerAttribute; diff --git a/arkoala-arkts/arkui/src/generated/ArkUIExtensionProxyMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkUIExtensionProxyMaterialized.ts index d0c286087..6ad85e7d4 100644 --- a/arkoala-arkts/arkui/src/generated/ArkUIExtensionProxyMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkUIExtensionProxyMaterialized.ts @@ -16,7 +16,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { LITERAL_AsyncReceiverRegister, LITERAL_SyncReceiverRegister, INTERFACE_UIExtensionProxy } from "./SyntheticDeclarations" +import { LITERAL_KeyStringObject, LITERAL_AsyncReceiverRegister, LITERAL_SyncReceiverRegister, INTERFACE_UIExtensionProxy } from "./SyntheticDeclarations" import { TypeChecker } from "#components" import { Finalizable } from "./Finalizable" @@ -57,12 +57,12 @@ export class UIExtensionProxy implements INTERFACE_UIExtensionProxy { static getFinalizer(): KPointer { return NativeModule._UIExtensionProxy_getFinalizer() } - send(data: Record): void { - const data_casted = data as (Record) + send(data: LITERAL_KeyStringObject): void { + const data_casted = data as (LITERAL_KeyStringObject) this.send_serialize(data_casted) } - sendSync(data: Record): Record { - const data_casted = data as (Record) + sendSync(data: LITERAL_KeyStringObject): LITERAL_KeyStringObject { + const data_casted = data as (LITERAL_KeyStringObject) return this.sendSync_serialize(data_casted) } on(type: LITERAL_AsyncReceiverRegister | LITERAL_SyncReceiverRegister, callback: ((proxy: UIExtensionProxy) => void) | ((proxy: UIExtensionProxy) => void)): void { @@ -101,15 +101,13 @@ export class UIExtensionProxy implements INTERFACE_UIExtensionProxy { } throw new Error("Can not select appropriate overload") } - private send_serialize(data: Record): void { + private send_serialize(data: LITERAL_KeyStringObject): void { const thisSerializer = SerializerBase.hold(createSerializer) - thisSerializer.writeCustomObject("Record", data) NativeModule._UIExtensionProxy_send(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); thisSerializer.release(); } - private sendSync_serialize(data: Record): Record { + private sendSync_serialize(data: LITERAL_KeyStringObject): LITERAL_KeyStringObject { const thisSerializer = SerializerBase.hold(createSerializer) - thisSerializer.writeCustomObject("Record", data) const retval = NativeModule._UIExtensionProxy_sendSync(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release(); throw new Error("Object deserialization is not implemented.") diff --git a/arkoala-arkts/arkui/src/generated/ArkUiExtensionComponent.ts b/arkoala-arkts/arkui/src/generated/ArkUiExtensionComponent.ts index eb050efd4..2de32324a 100644 --- a/arkoala-arkts/arkui/src/generated/ArkUiExtensionComponent.ts +++ b/arkoala-arkts/arkui/src/generated/ArkUiExtensionComponent.ts @@ -25,7 +25,7 @@ import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkUIExtensionComponentPeer } from "./peers/ArkUiExtensionComponentPeer" import { UseEventsProperties } from "./use_properties" import { UIExtensionProxy } from "./ArkUIExtensionProxyMaterialized" -import { IMPORT_Callback_UIExtensionProxy_FROM_api_ohos_base, LITERAL_KeyStringObject, IMPORT_Callback_LITERAL_KeyStringObject_FROM_api_ohos_base, IMPORT_default_FROM_api_ohos_app_ability_Want, LITERAL_CodeNumberWantIMPORTdefaultFROMapiohosappabilityWant, IMPORT_Callback_LITERAL_CodeNumberWantIMPORTdefaultFROMapiohosappabilityWant_FROM_api_ohos_base, IMPORT_Callback_number_FROM_api_ohos_base, IMPORT_ErrorCallback_FROM_api_ohos_base, IMPORT_ComponentContent_FROM_api_arkui_ComponentContent } from "./SyntheticDeclarations" +import { IMPORT_Callback_UIExtensionProxy_FROM_api_ohos_base, LITERAL_KeyStringObject, IMPORT_Callback_LITERAL_KeyStringObject_FROM_api_ohos_base, IMPORT_default_FROM_api_ohos_app_ability_Want, LITERAL_CodeNumberWantIMPORTdefaultFROMapiohosappabilityWant, IMPORT_Callback_LITERAL_CodeNumberWantIMPORTdefaultFROMapiohosappabilityWant_FROM_api_ohos_base, IMPORT_Callback_number_FROM_api_ohos_base, IMPORT_ErrorCallback_FROM_api_ohos_base, IMPORT_ComponentContent_T_FROM_api_arkui_ComponentContent } from "./SyntheticDeclarations" import { UIExtensionComponentAttribute, UIExtensionOptions, UIExtensionComponentInterface, DpiFollowStrategy } from "./ArkUiExtensionComponentInterfaces" import { TerminationInfo } from "./ArkEmbeddedComponentInterfaces" import { Callback, ComponentContent } from "./ArkCommonInterfaces" diff --git a/arkoala-arkts/arkui/src/generated/ArkUiExtensionComponentInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkUiExtensionComponentInterfaces.ts index d1115f358..9994087a1 100644 --- a/arkoala-arkts/arkui/src/generated/ArkUiExtensionComponentInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkUiExtensionComponentInterfaces.ts @@ -1,5 +1,5 @@ import { UIExtensionProxy } from "./ArkUIExtensionProxyMaterialized" -import { IMPORT_Callback_UIExtensionProxy_FROM_api_ohos_base, LITERAL_KeyStringObject, IMPORT_Callback_LITERAL_KeyStringObject_FROM_api_ohos_base, IMPORT_default_FROM_api_ohos_app_ability_Want, LITERAL_CodeNumberWantIMPORTdefaultFROMapiohosappabilityWant, IMPORT_Callback_LITERAL_CodeNumberWantIMPORTdefaultFROMapiohosappabilityWant_FROM_api_ohos_base, IMPORT_Callback_number_FROM_api_ohos_base, IMPORT_ErrorCallback_FROM_api_ohos_base, IMPORT_ComponentContent_FROM_api_arkui_ComponentContent } from "./SyntheticDeclarations" +import { IMPORT_Callback_UIExtensionProxy_FROM_api_ohos_base, LITERAL_KeyStringObject, IMPORT_Callback_LITERAL_KeyStringObject_FROM_api_ohos_base, IMPORT_default_FROM_api_ohos_app_ability_Want, LITERAL_CodeNumberWantIMPORTdefaultFROMapiohosappabilityWant, IMPORT_Callback_LITERAL_CodeNumberWantIMPORTdefaultFROMapiohosappabilityWant_FROM_api_ohos_base, IMPORT_Callback_number_FROM_api_ohos_base, IMPORT_ErrorCallback_FROM_api_ohos_base, IMPORT_ComponentContent_T_FROM_api_arkui_ComponentContent } from "./SyntheticDeclarations" import { TerminationInfo } from "./ArkEmbeddedComponentInterfaces" import { Callback, ComponentContent } from "./ArkCommonInterfaces" import { KInt } from "@koalaui/interop" @@ -17,8 +17,34 @@ import { KInt } from "@koalaui/interop" * See the License for the specific language governing permissions and * limitations under the License. */ +/** + * @file + * @kit ArkUI + */ +/** + * Enumeration of different types of DpiFollowStrategy. + * + * @enum { number } + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @systemapi + * @since 12 + */ export class DpiFollowStrategy { + /** + * Followed the host DPI. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @systemapi + * @since 12 + */ static readonly FOLLOW_HOST_DPI: DpiFollowStrategy = new DpiFollowStrategy(0) + /** + * Followed the UIExtensionAbility. + * + * @syscap SystemCapability.ArkUI.ArkUI.Full + * @systemapi + * @since 12 + */ static readonly FOLLOW_UI_EXTENSION_ABILITY_DPI: DpiFollowStrategy = new DpiFollowStrategy(1) constructor(value: KInt) { this.value = value @@ -47,5 +73,6 @@ export interface UIExtensionComponentInterface { export interface UIExtensionOptions { isTransferringCaller?: boolean placeholder?: ComponentContent + areaChangePlaceholder?: Record dpiFollowStrategy?: DpiFollowStrategy } \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkUnitsInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkUnitsInterfaces.ts index 672cda04c..0129af1c3 100644 --- a/arkoala-arkts/arkui/src/generated/ArkUnitsInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkUnitsInterfaces.ts @@ -1,17 +1,147 @@ -import { IMPORT_Resource_FROM_resource_resource, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, IMPORT_LengthMetrics_FROM_api_arkui_Graphics, LITERAL_DxLengthDyLength, LITERAL_Dx1LengthDy2Length, IMPORT_LengthMetricsUnit_FROM_api_arkui_Graphics } from "./SyntheticDeclarations" -import { Color, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, LITERAL_TopLengthRightLengthBottomLengthLeftLength, IMPORT_LengthMetrics_FROM_api_arkui_Graphics, LITERAL_TopResourceColorRightResourceColorBottomResourceColorLeftResourceColor, LITERAL_TopLeftLengthTopRightLengthBottomLeftLengthBottomRightLength, LITERAL_TopBorderStyleRightBorderStyleBottomBorderStyleLeftBorderStyle, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, LITERAL_TopDimensionRightDimensionBottomDimensionLeftDimension, LITERAL_TopLeftDimensionTopRightDimensionBottomLeftDimensionBottomRightDimension, LITERAL_TopOutlineStyleRightOutlineStyleBottomOutlineStyleLeftOutlineStyle, IMPORT_ColorMetrics_FROM_api_arkui_Graphics, LITERAL_DxLengthDyLength, IMPORT_LengthMetricsUnit_FROM_api_arkui_Graphics, LITERAL_MinLengthLengthMaxLengthLength } from "./SyntheticDeclarations" +import { Color, BorderStyle, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { OutlineStyle } from "./ArkCommonInterfaces" import { KInt } from "@koalaui/interop" export declare type Length = string | number | Resource -export declare type Resource = IMPORT_Resource_FROM_resource_resource +export declare type Resource = IMPORT_Resource_FROM_api_global_resource +export interface SizeOptions { + width?: Length + height?: Length +} +export interface ConstraintSizeOptions { + minWidth?: Length + maxWidth?: Length + minHeight?: Length + maxHeight?: Length +} +export interface Padding { + top?: Length + right?: Length + bottom?: Length + left?: Length +} +export interface LocalizedPadding { + top?: LengthMetrics + end?: LengthMetrics + bottom?: LengthMetrics + start?: LengthMetrics +} +export declare type LengthMetrics = IMPORT_LengthMetrics_FROM_api_arkui_Graphics +export declare type Margin = Padding +export declare type LocalizedMargin = LocalizedPadding +export declare type ResourceColor = Color | number | string | Resource +export declare type ResourceStr = string | Resource +export interface Position { + x?: Length + y?: Length +} +export interface EdgeWidths { + top?: Length + right?: Length + bottom?: Length + left?: Length +} +export interface BorderOptions { + width?: EdgeWidths | Length | LocalizedEdgeWidths + color?: EdgeColors | ResourceColor | LocalizedEdgeColors + radius?: BorderRadiuses | Length | LocalizedBorderRadiuses + style?: EdgeStyles | BorderStyle + dashGap?: EdgeWidths | LengthMetrics | LocalizedEdgeWidths + dashWidth?: EdgeWidths | LengthMetrics | LocalizedEdgeWidths +} +export interface LocalizedEdgeWidths { + top?: LengthMetrics + end?: LengthMetrics + bottom?: LengthMetrics + start?: LengthMetrics +} +export interface EdgeColors { + top?: ResourceColor + right?: ResourceColor + bottom?: ResourceColor + left?: ResourceColor +} +export interface LocalizedEdgeColors { + top?: ResourceColor + end?: ResourceColor + bottom?: ResourceColor + start?: ResourceColor +} +export interface BorderRadiuses { + topLeft?: Length + topRight?: Length + bottomLeft?: Length + bottomRight?: Length +} +export interface LocalizedBorderRadiuses { + topStart?: LengthMetrics + topEnd?: LengthMetrics + bottomStart?: LengthMetrics + bottomEnd?: LengthMetrics +} +export interface EdgeStyles { + top?: BorderStyle + right?: BorderStyle + bottom?: BorderStyle + left?: BorderStyle +} +export interface OutlineOptions { + width?: EdgeOutlineWidths | Dimension + color?: EdgeColors | ResourceColor | LocalizedEdgeColors + radius?: OutlineRadiuses | Dimension + style?: EdgeOutlineStyles | OutlineStyle +} +export interface EdgeOutlineWidths { + top?: Dimension + right?: Dimension + bottom?: Dimension + left?: Dimension +} export declare type Dimension = PX | VP | FP | LPX | Percentage | Resource export declare type PX = TEMPLATE_LITERAL_number_PX export declare type VP = TEMPLATE_LITERAL_number_vp | number export declare type FP = TEMPLATE_LITERAL_number_FP export declare type LPX = TEMPLATE_LITERAL_number_LPX export declare type Percentage = TEMPLATE_LITERAL_number_Percentage -export declare type ResourceColor = Color | number | string | Resource -export declare type ResourceStr = string | Resource -export declare type LengthMetrics = IMPORT_LengthMetrics_FROM_api_arkui_Graphics +export interface OutlineRadiuses { + topLeft?: Dimension + topRight?: Dimension + bottomLeft?: Dimension + bottomRight?: Dimension +} +export interface EdgeOutlineStyles { + top?: OutlineStyle + right?: OutlineStyle + bottom?: OutlineStyle + left?: OutlineStyle +} +export interface Area { + width: Length + height: Length + position: Position + globalPosition: Position +} +export declare type ColorMetrics = IMPORT_ColorMetrics_FROM_api_arkui_Graphics +export interface Edges { + top?: Dimension + left?: Dimension + bottom?: Dimension + right?: Dimension +} +export interface LocalizedEdges { + top?: LengthMetrics + start?: LengthMetrics + bottom?: LengthMetrics + end?: LengthMetrics +} +export interface LocalizedPosition { + start?: LengthMetrics + top?: LengthMetrics +} +export interface Bias { + horizontal?: number + vertical?: number +} export interface Font { size?: Length weight?: FontWeight | number | string @@ -22,14 +152,22 @@ export interface Offset { dx: Length dy: Length } -export interface AltOffset { - dx1: Length - dy2: Length -} export declare type LengthMetricsUnit = IMPORT_LengthMetricsUnit_FROM_api_arkui_Graphics -export interface LocalizedPadding { - top?: LengthMetrics - end?: LengthMetrics - bottom?: LengthMetrics - start?: LengthMetrics +export interface MarkStyle { + strokeColor?: ResourceColor + size?: Length + strokeWidth?: Length +} +export declare type VoidCallback = (() => void) +export declare class ColorFilter { +} +export interface LengthConstrain { + minLength: Length + maxLength: Length +} +export interface DividerStyleOptions { + strokeWidth?: LengthMetrics + color?: ResourceColor + startMargin?: LengthMetrics + endMargin?: LengthMetrics } \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkWeb.ts b/arkoala-arkts/arkui/src/generated/ArkWeb.ts index db03edabc..2e64ff07d 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWeb.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWeb.ts @@ -24,26 +24,419 @@ import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkWebPeer } from "./peers/ArkWebPeer" import { UseEventsProperties } from "./use_properties" -import { NativeEmbedDataInfo, WebAttribute, OnRenderExitedEvent, OnHttpErrorReceiveEvent, WebInterface, NativeEmbedInfo, RenderExitReason } from "./ArkWebInterfaces" -import { Callback } from "./ArkCommonInterfaces" -import { LITERAL_DetailObject } from "./SyntheticDeclarations" +import { WebAttribute, MixedMode, JavaScriptProxy, CacheMode, WebDarkMode, WebMediaOptions, OverScrollMode, OnPageEndEvent, OnPageBeginEvent, OnProgressChangeEvent, OnTitleReceiveEvent, OnGeolocationShowEvent, OnAlertEvent, OnBeforeUnloadEvent, OnConfirmEvent, OnPromptEvent, OnConsoleEvent, OnErrorReceiveEvent, OnHttpErrorReceiveEvent, OnDownloadStartEvent, OnRefreshAccessedHistoryEvent, OnRenderExitedEvent, OnShowFileSelectorEvent, OnResourceLoadEvent, OnFullScreenEnterCallback, FullScreenEnterEvent, OnScaleChangeEvent, OnHttpAuthRequestEvent, OnInterceptRequestEvent, OnPermissionRequestEvent, OnScreenCaptureRequestEvent, OnContextMenuShowEvent, OnContextMenuHideCallback, OnSearchResultReceiveEvent, OnScrollEvent, OnSslErrorEventReceiveEvent, OnSslErrorEventCallback, SslErrorEvent, OnClientAuthenticationEvent, OnWindowNewEvent, OnTouchIconUrlReceivedEvent, OnFaviconReceivedEvent, OnPageVisibleEvent, OnDataResubmittedEvent, OnAudioStateChangedEvent, OnFirstContentfulPaintEvent, OnFirstMeaningfulPaintCallback, FirstMeaningfulPaint, OnLargestContentfulPaintCallback, LargestContentfulPaint, OnLoadInterceptEvent, OnOverScrollEvent, OnSafeBrowsingCheckResultCallback, ThreatType, OnNavigationEntryCommittedCallback, LoadCommittedDetails, OnIntelligentTrackingPreventionCallback, IntelligentTrackingPreventionDetails, ScriptItem, WebLayoutMode, NestedScrollOptionsExt, NativeEmbedDataInfo, OnNativeEmbedVisibilityChangeCallback, NativeEmbedVisibilityInfo, NativeEmbedTouchInfo, OnOverrideUrlLoadingCallback, NativeMediaPlayerConfig, OnRenderProcessNotRespondingCallback, RenderProcessNotRespondingData, OnRenderProcessRespondingCallback, ExpandedMenuItemOptions, OnViewportFitChangedCallback, ViewportFit, WebKeyboardCallback, WebKeyboardCallbackInfo, WebKeyboardOptions, OnAdsBlockedCallback, AdsBlockedDetails, WebKeyboardAvoidMode, WebOptions, WebInterface, WebviewController, Header, RenderExitReason, WebCaptureMode, ScreenCaptureConfig, SslError, WebNavigationType, NativeEmbedStatus, NativeEmbedInfo, RenderProcessNotRespondingReason, RenderMode } from "./ArkWebInterfaces" +import { Callback, KeyEvent, NestedScrollOptions, PixelMap, TouchEvent, CustomBuilder } from "./ArkCommonInterfaces" +import { WebResourceRequest } from "./ArkWebResourceRequestMaterialized" +import { LITERAL_DataStringWebResourceRequest, LITERAL_HandlerFunctionErrorObject, LITERAL_DetailObject, LITERAL_CallbackFunctionFileSelectorObject, IMPORT_default_WebviewController_FROM_api_ohos_web_webview, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image, IMPORT_Resource_FROM_api_global_resource, LITERAL_PlainTextString } from "./SyntheticDeclarations" import { WebResourceResponse } from "./ArkWebResourceResponseMaterialized" +import { CopyOptions, NestedScrollMode } from "./ArkEnumsInterfaces" +import { EditMenuOptions } from "./ArkEditMenuOptionsMaterialized" +import { WebController } from "./ArkWebControllerMaterialized" +import { JsGeolocation } from "./ArkJsGeolocationMaterialized" +import { JsResult } from "./ArkJsResultMaterialized" +import { ConsoleMessage } from "./ArkConsoleMessageMaterialized" +import { WebResourceError } from "./ArkWebResourceErrorMaterialized" +import { FileSelectorResult } from "./ArkFileSelectorResultMaterialized" +import { FileSelectorParam } from "./ArkFileSelectorParamMaterialized" +import { FullScreenExitHandler } from "./ArkFullScreenExitHandlerMaterialized" +import { HttpAuthHandler } from "./ArkHttpAuthHandlerMaterialized" +import { PermissionRequest } from "./ArkPermissionRequestMaterialized" +import { ScreenCaptureHandler } from "./ArkScreenCaptureHandlerMaterialized" +import { WebContextMenuParam } from "./ArkWebContextMenuParamMaterialized" +import { WebContextMenuResult } from "./ArkWebContextMenuResultMaterialized" +import { SslErrorHandler } from "./ArkSslErrorHandlerMaterialized" +import { ClientAuthenticationHandler } from "./ArkClientAuthenticationHandlerMaterialized" +import { ControllerHandler } from "./ArkControllerHandlerMaterialized" +import { DataResubmissionHandler } from "./ArkDataResubmissionHandlerMaterialized" +import { Position, ResourceStr, Resource } from "./ArkUnitsInterfaces" +import { EventResult } from "./ArkEventResultMaterialized" +import { WebKeyboardController } from "./ArkWebKeyboardControllerMaterialized" /** @memo:stable */ export class ArkWebComponent extends ArkCommonMethodComponent { protected peer?: ArkWebPeer /** @memo */ - setWebOptions(): this { + setWebOptions(value: WebOptions): this { if (this.checkPriority("setWebOptions")) { - this.peer?.setWebOptionsAttribute() + const value_casted = value as (WebOptions) + this.peer?.setWebOptionsAttribute(value_casted) return this } return this } /** @memo */ - onNativeEmbedLifecycleChange(callback: ((event: NativeEmbedDataInfo) => void)): this { - if (this.checkPriority("onNativeEmbedLifecycleChange")) { - const callback_casted = callback as (((event: NativeEmbedDataInfo) => void)) - this.peer?.onNativeEmbedLifecycleChangeAttribute(callback_casted) + javaScriptAccess(javaScriptAccess: boolean): this { + if (this.checkPriority("javaScriptAccess")) { + const javaScriptAccess_casted = javaScriptAccess as (boolean) + this.peer?.javaScriptAccessAttribute(javaScriptAccess_casted) + return this + } + return this + } + /** @memo */ + fileAccess(fileAccess: boolean): this { + if (this.checkPriority("fileAccess")) { + const fileAccess_casted = fileAccess as (boolean) + this.peer?.fileAccessAttribute(fileAccess_casted) + return this + } + return this + } + /** @memo */ + onlineImageAccess(onlineImageAccess: boolean): this { + if (this.checkPriority("onlineImageAccess")) { + const onlineImageAccess_casted = onlineImageAccess as (boolean) + this.peer?.onlineImageAccessAttribute(onlineImageAccess_casted) + return this + } + return this + } + /** @memo */ + domStorageAccess(domStorageAccess: boolean): this { + if (this.checkPriority("domStorageAccess")) { + const domStorageAccess_casted = domStorageAccess as (boolean) + this.peer?.domStorageAccessAttribute(domStorageAccess_casted) + return this + } + return this + } + /** @memo */ + imageAccess(imageAccess: boolean): this { + if (this.checkPriority("imageAccess")) { + const imageAccess_casted = imageAccess as (boolean) + this.peer?.imageAccessAttribute(imageAccess_casted) + return this + } + return this + } + /** @memo */ + mixedMode(mixedMode: MixedMode): this { + if (this.checkPriority("mixedMode")) { + const mixedMode_casted = mixedMode as (MixedMode) + this.peer?.mixedModeAttribute(mixedMode_casted) + return this + } + return this + } + /** @memo */ + zoomAccess(zoomAccess: boolean): this { + if (this.checkPriority("zoomAccess")) { + const zoomAccess_casted = zoomAccess as (boolean) + this.peer?.zoomAccessAttribute(zoomAccess_casted) + return this + } + return this + } + /** @memo */ + geolocationAccess(geolocationAccess: boolean): this { + if (this.checkPriority("geolocationAccess")) { + const geolocationAccess_casted = geolocationAccess as (boolean) + this.peer?.geolocationAccessAttribute(geolocationAccess_casted) + return this + } + return this + } + /** @memo */ + javaScriptProxy(javaScriptProxy: JavaScriptProxy): this { + if (this.checkPriority("javaScriptProxy")) { + const javaScriptProxy_casted = javaScriptProxy as (JavaScriptProxy) + this.peer?.javaScriptProxyAttribute(javaScriptProxy_casted) + return this + } + return this + } + /** @memo */ + password(password: boolean): this { + if (this.checkPriority("password")) { + const password_casted = password as (boolean) + this.peer?.passwordAttribute(password_casted) + return this + } + return this + } + /** @memo */ + cacheMode(cacheMode: CacheMode): this { + if (this.checkPriority("cacheMode")) { + const cacheMode_casted = cacheMode as (CacheMode) + this.peer?.cacheModeAttribute(cacheMode_casted) + return this + } + return this + } + /** @memo */ + darkMode(mode: WebDarkMode): this { + if (this.checkPriority("darkMode")) { + const mode_casted = mode as (WebDarkMode) + this.peer?.darkModeAttribute(mode_casted) + return this + } + return this + } + /** @memo */ + forceDarkAccess(access: boolean): this { + if (this.checkPriority("forceDarkAccess")) { + const access_casted = access as (boolean) + this.peer?.forceDarkAccessAttribute(access_casted) + return this + } + return this + } + /** @memo */ + mediaOptions(options: WebMediaOptions): this { + if (this.checkPriority("mediaOptions")) { + const options_casted = options as (WebMediaOptions) + this.peer?.mediaOptionsAttribute(options_casted) + return this + } + return this + } + /** @memo */ + tableData(tableData: boolean): this { + if (this.checkPriority("tableData")) { + const tableData_casted = tableData as (boolean) + this.peer?.tableDataAttribute(tableData_casted) + return this + } + return this + } + /** @memo */ + wideViewModeAccess(wideViewModeAccess: boolean): this { + if (this.checkPriority("wideViewModeAccess")) { + const wideViewModeAccess_casted = wideViewModeAccess as (boolean) + this.peer?.wideViewModeAccessAttribute(wideViewModeAccess_casted) + return this + } + return this + } + /** @memo */ + overviewModeAccess(overviewModeAccess: boolean): this { + if (this.checkPriority("overviewModeAccess")) { + const overviewModeAccess_casted = overviewModeAccess as (boolean) + this.peer?.overviewModeAccessAttribute(overviewModeAccess_casted) + return this + } + return this + } + /** @memo */ + overScrollMode(mode: OverScrollMode): this { + if (this.checkPriority("overScrollMode")) { + const mode_casted = mode as (OverScrollMode) + this.peer?.overScrollModeAttribute(mode_casted) + return this + } + return this + } + /** @memo */ + textZoomAtio(textZoomAtio: number): this { + if (this.checkPriority("textZoomAtio")) { + const textZoomAtio_casted = textZoomAtio as (number) + this.peer?.textZoomAtioAttribute(textZoomAtio_casted) + return this + } + return this + } + /** @memo */ + textZoomRatio(textZoomRatio: number): this { + if (this.checkPriority("textZoomRatio")) { + const textZoomRatio_casted = textZoomRatio as (number) + this.peer?.textZoomRatioAttribute(textZoomRatio_casted) + return this + } + return this + } + /** @memo */ + databaseAccess(databaseAccess: boolean): this { + if (this.checkPriority("databaseAccess")) { + const databaseAccess_casted = databaseAccess as (boolean) + this.peer?.databaseAccessAttribute(databaseAccess_casted) + return this + } + return this + } + /** @memo */ + initialScale(percent: number): this { + if (this.checkPriority("initialScale")) { + const percent_casted = percent as (number) + this.peer?.initialScaleAttribute(percent_casted) + return this + } + return this + } + /** @memo */ + userAgent(userAgent: string): this { + if (this.checkPriority("userAgent")) { + const userAgent_casted = userAgent as (string) + this.peer?.userAgentAttribute(userAgent_casted) + return this + } + return this + } + /** @memo */ + metaViewport(enabled: boolean): this { + if (this.checkPriority("metaViewport")) { + const enabled_casted = enabled as (boolean) + this.peer?.metaViewportAttribute(enabled_casted) + return this + } + return this + } + /** @memo */ + onPageEnd(callback: Callback): this { + if (this.checkPriority("onPageEnd")) { + const callback_casted = callback as (Callback) + this.peer?.onPageEndAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onPageBegin(callback: Callback): this { + if (this.checkPriority("onPageBegin")) { + const callback_casted = callback as (Callback) + this.peer?.onPageBeginAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onProgressChange(callback: Callback): this { + if (this.checkPriority("onProgressChange")) { + const callback_casted = callback as (Callback) + this.peer?.onProgressChangeAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onTitleReceive(callback: Callback): this { + if (this.checkPriority("onTitleReceive")) { + const callback_casted = callback as (Callback) + this.peer?.onTitleReceiveAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onGeolocationHide(callback: (() => void)): this { + if (this.checkPriority("onGeolocationHide")) { + const callback_casted = callback as ((() => void)) + this.peer?.onGeolocationHideAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onGeolocationShow(callback: Callback): this { + if (this.checkPriority("onGeolocationShow")) { + const callback_casted = callback as (Callback) + this.peer?.onGeolocationShowAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onRequestSelected(callback: (() => void)): this { + if (this.checkPriority("onRequestSelected")) { + const callback_casted = callback as ((() => void)) + this.peer?.onRequestSelectedAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onAlert(callback: Callback): this { + if (this.checkPriority("onAlert")) { + const callback_casted = callback as (Callback) + this.peer?.onAlertAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onBeforeUnload(callback: Callback): this { + if (this.checkPriority("onBeforeUnload")) { + const callback_casted = callback as (Callback) + this.peer?.onBeforeUnloadAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onConfirm(callback: Callback): this { + if (this.checkPriority("onConfirm")) { + const callback_casted = callback as (Callback) + this.peer?.onConfirmAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onPrompt(callback: Callback): this { + if (this.checkPriority("onPrompt")) { + const callback_casted = callback as (Callback) + this.peer?.onPromptAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onConsole(callback: Callback): this { + if (this.checkPriority("onConsole")) { + const callback_casted = callback as (Callback) + this.peer?.onConsoleAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onErrorReceive(callback: Callback): this { + if (this.checkPriority("onErrorReceive")) { + const callback_casted = callback as (Callback) + this.peer?.onErrorReceiveAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onHttpErrorReceive(callback: Callback): this { + if (this.checkPriority("onHttpErrorReceive")) { + const callback_casted = callback as (Callback) + this.peer?.onHttpErrorReceiveAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onDownloadStart(callback: Callback): this { + if (this.checkPriority("onDownloadStart")) { + const callback_casted = callback as (Callback) + this.peer?.onDownloadStartAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onRefreshAccessedHistory(callback: Callback): this { + if (this.checkPriority("onRefreshAccessedHistory")) { + const callback_casted = callback as (Callback) + this.peer?.onRefreshAccessedHistoryAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onUrlLoadIntercept(callback: ((event: LITERAL_DataStringWebResourceRequest|undefined) => boolean)): this { + if (this.checkPriority("onUrlLoadIntercept")) { + const callback_casted = callback as (((event: LITERAL_DataStringWebResourceRequest|undefined) => boolean)) + this.peer?.onUrlLoadInterceptAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onSslErrorReceive(callback: ((event: LITERAL_HandlerFunctionErrorObject|undefined) => void)): this { + if (this.checkPriority("onSslErrorReceive")) { + const callback_casted = callback as (((event: LITERAL_HandlerFunctionErrorObject|undefined) => void)) + this.peer?.onSslErrorReceiveAttribute(callback_casted) return this } return this @@ -67,10 +460,686 @@ export class ArkWebComponent extends ArkCommonMethodComponent { return this } /** @memo */ - onHttpErrorReceive(callback: Callback): this { - if (this.checkPriority("onHttpErrorReceive")) { - const callback_casted = callback as (Callback) - this.peer?.onHttpErrorReceiveAttribute(callback_casted) + onShowFileSelector(callback: Callback): this { + if (this.checkPriority("onShowFileSelector")) { + const callback_casted = callback as (Callback) + this.peer?.onShowFileSelectorAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onFileSelectorShow(callback: ((event: LITERAL_CallbackFunctionFileSelectorObject|undefined) => void)): this { + if (this.checkPriority("onFileSelectorShow")) { + const callback_casted = callback as (((event: LITERAL_CallbackFunctionFileSelectorObject|undefined) => void)) + this.peer?.onFileSelectorShowAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onResourceLoad(callback: Callback): this { + if (this.checkPriority("onResourceLoad")) { + const callback_casted = callback as (Callback) + this.peer?.onResourceLoadAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onFullScreenExit(callback: (() => void)): this { + if (this.checkPriority("onFullScreenExit")) { + const callback_casted = callback as ((() => void)) + this.peer?.onFullScreenExitAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onFullScreenEnter(callback: OnFullScreenEnterCallback): this { + if (this.checkPriority("onFullScreenEnter")) { + const callback_casted = callback as (OnFullScreenEnterCallback) + this.peer?.onFullScreenEnterAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onScaleChange(callback: Callback): this { + if (this.checkPriority("onScaleChange")) { + const callback_casted = callback as (Callback) + this.peer?.onScaleChangeAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onHttpAuthRequest(callback: Callback): this { + if (this.checkPriority("onHttpAuthRequest")) { + const callback_casted = callback as (Callback) + this.peer?.onHttpAuthRequestAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onInterceptRequest(callback: Callback): this { + if (this.checkPriority("onInterceptRequest")) { + const callback_casted = callback as (Callback) + this.peer?.onInterceptRequestAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onPermissionRequest(callback: Callback): this { + if (this.checkPriority("onPermissionRequest")) { + const callback_casted = callback as (Callback) + this.peer?.onPermissionRequestAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onScreenCaptureRequest(callback: Callback): this { + if (this.checkPriority("onScreenCaptureRequest")) { + const callback_casted = callback as (Callback) + this.peer?.onScreenCaptureRequestAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onContextMenuShow(callback: Callback): this { + if (this.checkPriority("onContextMenuShow")) { + const callback_casted = callback as (Callback) + this.peer?.onContextMenuShowAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onContextMenuHide(callback: OnContextMenuHideCallback): this { + if (this.checkPriority("onContextMenuHide")) { + const callback_casted = callback as (OnContextMenuHideCallback) + this.peer?.onContextMenuHideAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + mediaPlayGestureAccess(access: boolean): this { + if (this.checkPriority("mediaPlayGestureAccess")) { + const access_casted = access as (boolean) + this.peer?.mediaPlayGestureAccessAttribute(access_casted) + return this + } + return this + } + /** @memo */ + onSearchResultReceive(callback: Callback): this { + if (this.checkPriority("onSearchResultReceive")) { + const callback_casted = callback as (Callback) + this.peer?.onSearchResultReceiveAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onScroll(callback: Callback): this { + if (this.checkPriority("onScroll")) { + const callback_casted = callback as (Callback) + this.peer?.onScrollAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onSslErrorEventReceive(callback: Callback): this { + if (this.checkPriority("onSslErrorEventReceive")) { + const callback_casted = callback as (Callback) + this.peer?.onSslErrorEventReceiveAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onSslErrorEvent(callback: OnSslErrorEventCallback): this { + if (this.checkPriority("onSslErrorEvent")) { + const callback_casted = callback as (OnSslErrorEventCallback) + this.peer?.onSslErrorEventAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onClientAuthenticationRequest(callback: Callback): this { + if (this.checkPriority("onClientAuthenticationRequest")) { + const callback_casted = callback as (Callback) + this.peer?.onClientAuthenticationRequestAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onWindowNew(callback: Callback): this { + if (this.checkPriority("onWindowNew")) { + const callback_casted = callback as (Callback) + this.peer?.onWindowNewAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onWindowExit(callback: (() => void)): this { + if (this.checkPriority("onWindowExit")) { + const callback_casted = callback as ((() => void)) + this.peer?.onWindowExitAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + multiWindowAccess(multiWindow: boolean): this { + if (this.checkPriority("multiWindowAccess")) { + const multiWindow_casted = multiWindow as (boolean) + this.peer?.multiWindowAccessAttribute(multiWindow_casted) + return this + } + return this + } + /** @memo */ + onInterceptKeyEvent(callback: ((event: KeyEvent) => boolean)): this { + if (this.checkPriority("onInterceptKeyEvent")) { + const callback_casted = callback as (((event: KeyEvent) => boolean)) + this.peer?.onInterceptKeyEventAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + webStandardFont(family: string): this { + if (this.checkPriority("webStandardFont")) { + const family_casted = family as (string) + this.peer?.webStandardFontAttribute(family_casted) + return this + } + return this + } + /** @memo */ + webSerifFont(family: string): this { + if (this.checkPriority("webSerifFont")) { + const family_casted = family as (string) + this.peer?.webSerifFontAttribute(family_casted) + return this + } + return this + } + /** @memo */ + webSansSerifFont(family: string): this { + if (this.checkPriority("webSansSerifFont")) { + const family_casted = family as (string) + this.peer?.webSansSerifFontAttribute(family_casted) + return this + } + return this + } + /** @memo */ + webFixedFont(family: string): this { + if (this.checkPriority("webFixedFont")) { + const family_casted = family as (string) + this.peer?.webFixedFontAttribute(family_casted) + return this + } + return this + } + /** @memo */ + webFantasyFont(family: string): this { + if (this.checkPriority("webFantasyFont")) { + const family_casted = family as (string) + this.peer?.webFantasyFontAttribute(family_casted) + return this + } + return this + } + /** @memo */ + webCursiveFont(family: string): this { + if (this.checkPriority("webCursiveFont")) { + const family_casted = family as (string) + this.peer?.webCursiveFontAttribute(family_casted) + return this + } + return this + } + /** @memo */ + defaultFixedFontSize(size: number): this { + if (this.checkPriority("defaultFixedFontSize")) { + const size_casted = size as (number) + this.peer?.defaultFixedFontSizeAttribute(size_casted) + return this + } + return this + } + /** @memo */ + defaultFontSize(size: number): this { + if (this.checkPriority("defaultFontSize")) { + const size_casted = size as (number) + this.peer?.defaultFontSizeAttribute(size_casted) + return this + } + return this + } + /** @memo */ + minFontSize(size: number): this { + if (this.checkPriority("minFontSize")) { + const size_casted = size as (number) + this.peer?.minFontSizeAttribute(size_casted) + return this + } + return this + } + /** @memo */ + minLogicalFontSize(size: number): this { + if (this.checkPriority("minLogicalFontSize")) { + const size_casted = size as (number) + this.peer?.minLogicalFontSizeAttribute(size_casted) + return this + } + return this + } + /** @memo */ + defaultTextEncodingFormat(textEncodingFormat: string): this { + if (this.checkPriority("defaultTextEncodingFormat")) { + const textEncodingFormat_casted = textEncodingFormat as (string) + this.peer?.defaultTextEncodingFormatAttribute(textEncodingFormat_casted) + return this + } + return this + } + /** @memo */ + forceDisplayScrollBar(enabled: boolean): this { + if (this.checkPriority("forceDisplayScrollBar")) { + const enabled_casted = enabled as (boolean) + this.peer?.forceDisplayScrollBarAttribute(enabled_casted) + return this + } + return this + } + /** @memo */ + blockNetwork(block: boolean): this { + if (this.checkPriority("blockNetwork")) { + const block_casted = block as (boolean) + this.peer?.blockNetworkAttribute(block_casted) + return this + } + return this + } + /** @memo */ + horizontalScrollBarAccess(horizontalScrollBar: boolean): this { + if (this.checkPriority("horizontalScrollBarAccess")) { + const horizontalScrollBar_casted = horizontalScrollBar as (boolean) + this.peer?.horizontalScrollBarAccessAttribute(horizontalScrollBar_casted) + return this + } + return this + } + /** @memo */ + verticalScrollBarAccess(verticalScrollBar: boolean): this { + if (this.checkPriority("verticalScrollBarAccess")) { + const verticalScrollBar_casted = verticalScrollBar as (boolean) + this.peer?.verticalScrollBarAccessAttribute(verticalScrollBar_casted) + return this + } + return this + } + /** @memo */ + onTouchIconUrlReceived(callback: Callback): this { + if (this.checkPriority("onTouchIconUrlReceived")) { + const callback_casted = callback as (Callback) + this.peer?.onTouchIconUrlReceivedAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onFaviconReceived(callback: Callback): this { + if (this.checkPriority("onFaviconReceived")) { + const callback_casted = callback as (Callback) + this.peer?.onFaviconReceivedAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onPageVisible(callback: Callback): this { + if (this.checkPriority("onPageVisible")) { + const callback_casted = callback as (Callback) + this.peer?.onPageVisibleAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onDataResubmitted(callback: Callback): this { + if (this.checkPriority("onDataResubmitted")) { + const callback_casted = callback as (Callback) + this.peer?.onDataResubmittedAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + pinchSmooth(isEnabled: boolean): this { + if (this.checkPriority("pinchSmooth")) { + const isEnabled_casted = isEnabled as (boolean) + this.peer?.pinchSmoothAttribute(isEnabled_casted) + return this + } + return this + } + /** @memo */ + allowWindowOpenMethod(flag: boolean): this { + if (this.checkPriority("allowWindowOpenMethod")) { + const flag_casted = flag as (boolean) + this.peer?.allowWindowOpenMethodAttribute(flag_casted) + return this + } + return this + } + /** @memo */ + onAudioStateChanged(callback: Callback): this { + if (this.checkPriority("onAudioStateChanged")) { + const callback_casted = callback as (Callback) + this.peer?.onAudioStateChangedAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onFirstContentfulPaint(callback: Callback): this { + if (this.checkPriority("onFirstContentfulPaint")) { + const callback_casted = callback as (Callback) + this.peer?.onFirstContentfulPaintAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onFirstMeaningfulPaint(callback: OnFirstMeaningfulPaintCallback): this { + if (this.checkPriority("onFirstMeaningfulPaint")) { + const callback_casted = callback as (OnFirstMeaningfulPaintCallback) + this.peer?.onFirstMeaningfulPaintAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onLargestContentfulPaint(callback: OnLargestContentfulPaintCallback): this { + if (this.checkPriority("onLargestContentfulPaint")) { + const callback_casted = callback as (OnLargestContentfulPaintCallback) + this.peer?.onLargestContentfulPaintAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onLoadIntercept(callback: Callback): this { + if (this.checkPriority("onLoadIntercept")) { + const callback_casted = callback as (Callback) + this.peer?.onLoadInterceptAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onControllerAttached(callback: (() => void)): this { + if (this.checkPriority("onControllerAttached")) { + const callback_casted = callback as ((() => void)) + this.peer?.onControllerAttachedAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onOverScroll(callback: Callback): this { + if (this.checkPriority("onOverScroll")) { + const callback_casted = callback as (Callback) + this.peer?.onOverScrollAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onSafeBrowsingCheckResult(callback: OnSafeBrowsingCheckResultCallback): this { + if (this.checkPriority("onSafeBrowsingCheckResult")) { + const callback_casted = callback as (OnSafeBrowsingCheckResultCallback) + this.peer?.onSafeBrowsingCheckResultAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onNavigationEntryCommitted(callback: OnNavigationEntryCommittedCallback): this { + if (this.checkPriority("onNavigationEntryCommitted")) { + const callback_casted = callback as (OnNavigationEntryCommittedCallback) + this.peer?.onNavigationEntryCommittedAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onIntelligentTrackingPreventionResult(callback: OnIntelligentTrackingPreventionCallback): this { + if (this.checkPriority("onIntelligentTrackingPreventionResult")) { + const callback_casted = callback as (OnIntelligentTrackingPreventionCallback) + this.peer?.onIntelligentTrackingPreventionResultAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + javaScriptOnDocumentStart(scripts: Array): this { + if (this.checkPriority("javaScriptOnDocumentStart")) { + const scripts_casted = scripts as (Array) + this.peer?.javaScriptOnDocumentStartAttribute(scripts_casted) + return this + } + return this + } + /** @memo */ + javaScriptOnDocumentEnd(scripts: Array): this { + if (this.checkPriority("javaScriptOnDocumentEnd")) { + const scripts_casted = scripts as (Array) + this.peer?.javaScriptOnDocumentEndAttribute(scripts_casted) + return this + } + return this + } + /** @memo */ + layoutMode(mode: WebLayoutMode): this { + if (this.checkPriority("layoutMode")) { + const mode_casted = mode as (WebLayoutMode) + this.peer?.layoutModeAttribute(mode_casted) + return this + } + return this + } + /** @memo */ + nestedScroll(value: NestedScrollOptions | NestedScrollOptionsExt): this { + if (this.checkPriority("nestedScroll")) { + const value_casted = value as (NestedScrollOptions | NestedScrollOptionsExt) + this.peer?.nestedScrollAttribute(value_casted) + return this + } + return this + } + /** @memo */ + enableNativeEmbedMode(mode: boolean): this { + if (this.checkPriority("enableNativeEmbedMode")) { + const mode_casted = mode as (boolean) + this.peer?.enableNativeEmbedModeAttribute(mode_casted) + return this + } + return this + } + /** @memo */ + registerNativeEmbedRule(tag: string, type: string): this { + if (this.checkPriority("registerNativeEmbedRule")) { + const tag_casted = tag as (string) + const type_casted = type as (string) + this.peer?.registerNativeEmbedRuleAttribute(tag_casted, type_casted) + return this + } + return this + } + /** @memo */ + onNativeEmbedLifecycleChange(callback: ((event: NativeEmbedDataInfo) => void)): this { + if (this.checkPriority("onNativeEmbedLifecycleChange")) { + const callback_casted = callback as (((event: NativeEmbedDataInfo) => void)) + this.peer?.onNativeEmbedLifecycleChangeAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onNativeEmbedVisibilityChange(callback: OnNativeEmbedVisibilityChangeCallback): this { + if (this.checkPriority("onNativeEmbedVisibilityChange")) { + const callback_casted = callback as (OnNativeEmbedVisibilityChangeCallback) + this.peer?.onNativeEmbedVisibilityChangeAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onNativeEmbedGestureEvent(callback: ((event: NativeEmbedTouchInfo) => void)): this { + if (this.checkPriority("onNativeEmbedGestureEvent")) { + const callback_casted = callback as (((event: NativeEmbedTouchInfo) => void)) + this.peer?.onNativeEmbedGestureEventAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + copyOptions(value: CopyOptions): this { + if (this.checkPriority("copyOptions")) { + const value_casted = value as (CopyOptions) + this.peer?.copyOptionsAttribute(value_casted) + return this + } + return this + } + /** @memo */ + onOverrideUrlLoading(callback: OnOverrideUrlLoadingCallback): this { + if (this.checkPriority("onOverrideUrlLoading")) { + const callback_casted = callback as (OnOverrideUrlLoadingCallback) + this.peer?.onOverrideUrlLoadingAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + textAutosizing(textAutosizing: boolean): this { + if (this.checkPriority("textAutosizing")) { + const textAutosizing_casted = textAutosizing as (boolean) + this.peer?.textAutosizingAttribute(textAutosizing_casted) + return this + } + return this + } + /** @memo */ + enableNativeMediaPlayer(config: NativeMediaPlayerConfig): this { + if (this.checkPriority("enableNativeMediaPlayer")) { + const config_casted = config as (NativeMediaPlayerConfig) + this.peer?.enableNativeMediaPlayerAttribute(config_casted) + return this + } + return this + } + /** @memo */ + enableSmoothDragResize(mode: boolean): this { + if (this.checkPriority("enableSmoothDragResize")) { + const mode_casted = mode as (boolean) + this.peer?.enableSmoothDragResizeAttribute(mode_casted) + return this + } + return this + } + /** @memo */ + onRenderProcessNotResponding(callback: OnRenderProcessNotRespondingCallback): this { + if (this.checkPriority("onRenderProcessNotResponding")) { + const callback_casted = callback as (OnRenderProcessNotRespondingCallback) + this.peer?.onRenderProcessNotRespondingAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onRenderProcessResponding(callback: OnRenderProcessRespondingCallback): this { + if (this.checkPriority("onRenderProcessResponding")) { + const callback_casted = callback as (OnRenderProcessRespondingCallback) + this.peer?.onRenderProcessRespondingAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + selectionMenuOptions(expandedMenuOptions: Array): this { + if (this.checkPriority("selectionMenuOptions")) { + const expandedMenuOptions_casted = expandedMenuOptions as (Array) + this.peer?.selectionMenuOptionsAttribute(expandedMenuOptions_casted) + return this + } + return this + } + /** @memo */ + onViewportFitChanged(callback: OnViewportFitChangedCallback): this { + if (this.checkPriority("onViewportFitChanged")) { + const callback_casted = callback as (OnViewportFitChangedCallback) + this.peer?.onViewportFitChangedAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onInterceptKeyboardAttach(callback: WebKeyboardCallback): this { + if (this.checkPriority("onInterceptKeyboardAttach")) { + const callback_casted = callback as (WebKeyboardCallback) + this.peer?.onInterceptKeyboardAttachAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + onAdsBlocked(callback: OnAdsBlockedCallback): this { + if (this.checkPriority("onAdsBlocked")) { + const callback_casted = callback as (OnAdsBlockedCallback) + this.peer?.onAdsBlockedAttribute(callback_casted) + return this + } + return this + } + /** @memo */ + keyboardAvoidMode(mode: WebKeyboardAvoidMode): this { + if (this.checkPriority("keyboardAvoidMode")) { + const mode_casted = mode as (WebKeyboardAvoidMode) + this.peer?.keyboardAvoidModeAttribute(mode_casted) + return this + } + return this + } + /** @memo */ + editMenuOptions(editMenu: EditMenuOptions): this { + if (this.checkPriority("editMenuOptions")) { + const editMenu_casted = editMenu as (EditMenuOptions) + this.peer?.editMenuOptionsAttribute(editMenu_casted) + return this + } + return this + } + /** @memo */ + enableHapticFeedback(enabled: boolean): this { + if (this.checkPriority("enableHapticFeedback")) { + const enabled_casted = enabled as (boolean) + this.peer?.enableHapticFeedbackAttribute(enabled_casted) return this } return this @@ -87,13 +1156,13 @@ export function ArkWeb( style: ((attributes: ArkWebComponent) => void) | undefined, /** @memo */ content_: (() => void) | undefined, - + value: WebOptions ) { const receiver = remember(() => { return new ArkWebComponent() }) NodeAttach((): ArkWebPeer => ArkWebPeer.create(ArkUINodeType.Web, receiver), (_: ArkWebPeer) => { - receiver.setWebOptions() + receiver.setWebOptions(value) style?.(receiver) content_?.() receiver.applyAttributesFinish() diff --git a/arkoala-arkts/arkui/src/generated/ArkWebInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkWebInterfaces.ts index 962873cd4..9ef3b49e8 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWebInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWebInterfaces.ts @@ -1,12 +1,671 @@ -import { Callback } from "./ArkCommonInterfaces" -import { LITERAL_DetailObject } from "./SyntheticDeclarations" +import { Callback, KeyEvent, NestedScrollOptions, PixelMap, TouchEvent, CustomBuilder } from "./ArkCommonInterfaces" +import { WebResourceRequest } from "./ArkWebResourceRequestMaterialized" +import { LITERAL_DataStringWebResourceRequest, LITERAL_HandlerFunctionErrorObject, LITERAL_DetailObject, LITERAL_CallbackFunctionFileSelectorObject, IMPORT_default_WebviewController_FROM_api_ohos_web_webview, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image, IMPORT_Resource_FROM_api_global_resource, LITERAL_PlainTextString } from "./SyntheticDeclarations" import { WebResourceResponse } from "./ArkWebResourceResponseMaterialized" +import { CopyOptions, NestedScrollMode } from "./ArkEnumsInterfaces" +import { EditMenuOptions } from "./ArkEditMenuOptionsMaterialized" +import { WebController } from "./ArkWebControllerMaterialized" +import { JsGeolocation } from "./ArkJsGeolocationMaterialized" +import { JsResult } from "./ArkJsResultMaterialized" +import { ConsoleMessage } from "./ArkConsoleMessageMaterialized" +import { WebResourceError } from "./ArkWebResourceErrorMaterialized" +import { FileSelectorResult } from "./ArkFileSelectorResultMaterialized" +import { FileSelectorParam } from "./ArkFileSelectorParamMaterialized" +import { FullScreenExitHandler } from "./ArkFullScreenExitHandlerMaterialized" +import { HttpAuthHandler } from "./ArkHttpAuthHandlerMaterialized" +import { PermissionRequest } from "./ArkPermissionRequestMaterialized" +import { ScreenCaptureHandler } from "./ArkScreenCaptureHandlerMaterialized" +import { WebContextMenuParam } from "./ArkWebContextMenuParamMaterialized" +import { WebContextMenuResult } from "./ArkWebContextMenuResultMaterialized" +import { SslErrorHandler } from "./ArkSslErrorHandlerMaterialized" +import { ClientAuthenticationHandler } from "./ArkClientAuthenticationHandlerMaterialized" +import { ControllerHandler } from "./ArkControllerHandlerMaterialized" +import { DataResubmissionHandler } from "./ArkDataResubmissionHandlerMaterialized" +import { Position, ResourceStr, Resource } from "./ArkUnitsInterfaces" +import { EventResult } from "./ArkEventResultMaterialized" +import { WebKeyboardController } from "./ArkWebKeyboardControllerMaterialized" import { KInt } from "@koalaui/interop" +/** + * The Web's behavior to load from HTTP or HTTPS. Defaults to MixedMode.None. + * + * @enum { number } + * @syscap SystemCapability.Web.Webview.Core + * @since 8 + */ +/** + * The Web's behavior to load from HTTP or HTTPS. Defaults to MixedMode.None. + * + * @enum { number } + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ +export class MixedMode { + /** + * Allows all sources. + * + * @syscap SystemCapability.Web.Webview.Core + * @since 8 + */ +/** + * Allows all sources. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ + static readonly All: MixedMode = new MixedMode(0) + /** + * Allows sources Compatibly. + * + * @syscap SystemCapability.Web.Webview.Core + * @since 8 + */ +/** + * Allows sources Compatibly. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ + static readonly Compatible: MixedMode = new MixedMode(1) + /** + * Don't allow unsecure sources from a secure origin. + * + * @syscap SystemCapability.Web.Webview.Core + * @since 8 + */ +/** + * Don't allow unsecure sources from a secure origin. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ + static readonly None: MixedMode = new MixedMode(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): MixedMode { + if ((arg0) == (MixedMode.All.value)) { + return MixedMode.All + } + if ((arg0) == (MixedMode.Compatible.value)) { + return MixedMode.Compatible + } + if ((arg0) == (MixedMode.None.value)) { + return MixedMode.None + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Enum type supplied to {@link getHitTest} for indicating the cursor node HitTest. + * + * @enum { number } + * @syscap SystemCapability.Web.Webview.Core + * @since 8 + */ +/** + * Enum type supplied to {@link getHitTest} for indicating the cursor node HitTest. + * + * @enum { number } + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ +export class HitTestType { + /** + * The edit text. + * + * @syscap SystemCapability.Web.Webview.Core + * @since 8 + */ +/** + * The edit text. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ + static readonly EditText: HitTestType = new HitTestType(0) + /** + * The email address. + * + * @syscap SystemCapability.Web.Webview.Core + * @since 8 + */ +/** + * The email address. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ + static readonly Email: HitTestType = new HitTestType(1) + /** + * The HTML::a tag with src=http. + * + * @syscap SystemCapability.Web.Webview.Core + * @since 8 + */ +/** + * The HTML::a tag with src=http. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ + static readonly HttpAnchor: HitTestType = new HitTestType(2) + /** + * The HTML::a tag with src=http + HTML::img. + * + * @syscap SystemCapability.Web.Webview.Core + * @since 8 + */ +/** + * The HTML::a tag with src=http + HTML::img. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ + static readonly HttpAnchorImg: HitTestType = new HitTestType(3) + /** + * The HTML::img tag. + * + * @syscap SystemCapability.Web.Webview.Core + * @since 8 + */ +/** + * The HTML::img tag. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ + static readonly Img: HitTestType = new HitTestType(4) + /** + * The map address. + * + * @syscap SystemCapability.Web.Webview.Core + * @since 8 + */ +/** + * The map address. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ + static readonly Map: HitTestType = new HitTestType(5) + /** + * The phone number. + * + * @syscap SystemCapability.Web.Webview.Core + * @since 8 + */ +/** + * The phone number. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ + static readonly Phone: HitTestType = new HitTestType(6) + /** + * Other unknown HitTest. + * + * @syscap SystemCapability.Web.Webview.Core + * @since 8 + */ +/** + * Other unknown HitTest. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ + static readonly Unknown: HitTestType = new HitTestType(7) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): HitTestType { + if ((arg0) == (HitTestType.EditText.value)) { + return HitTestType.EditText + } + if ((arg0) == (HitTestType.Email.value)) { + return HitTestType.Email + } + if ((arg0) == (HitTestType.HttpAnchor.value)) { + return HitTestType.HttpAnchor + } + if ((arg0) == (HitTestType.HttpAnchorImg.value)) { + return HitTestType.HttpAnchorImg + } + if ((arg0) == (HitTestType.Img.value)) { + return HitTestType.Img + } + if ((arg0) == (HitTestType.Map.value)) { + return HitTestType.Map + } + if ((arg0) == (HitTestType.Phone.value)) { + return HitTestType.Phone + } + if ((arg0) == (HitTestType.Unknown.value)) { + return HitTestType.Unknown + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Enum type supplied to {@link cacheMode} for setting the Web cache mode. + * + * @enum { number } + * @syscap SystemCapability.Web.Webview.Core + * @since 8 + */ +/** + * Enum type supplied to {@link cacheMode} for setting the Web cache mode. + * + * @enum { number } + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ +export class CacheMode { + /** + * load cache when they are available and not expired, otherwise load online. + * + * @syscap SystemCapability.Web.Webview.Core + * @since 9 + */ +/** + * load cache when they are available and not expired, otherwise load online. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ + static readonly Default: CacheMode = new CacheMode(0) + /** + * load cache when they are available, otherwise load online. + * + * @syscap SystemCapability.Web.Webview.Core + * @since 8 + */ +/** + * load cache when they are available, otherwise load online. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ + static readonly None: CacheMode = new CacheMode(1) + /** + * Load online and not cache. + * + * @syscap SystemCapability.Web.Webview.Core + * @since 8 + */ +/** + * Load online and not cache. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ + static readonly Online: CacheMode = new CacheMode(2) + /** + * load cache and not online. + * + * @syscap SystemCapability.Web.Webview.Core + * @since 8 + */ +/** + * load cache and not online. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ + static readonly Only: CacheMode = new CacheMode(3) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): CacheMode { + if ((arg0) == (CacheMode.Default.value)) { + return CacheMode.Default + } + if ((arg0) == (CacheMode.None.value)) { + return CacheMode.None + } + if ((arg0) == (CacheMode.Online.value)) { + return CacheMode.Online + } + if ((arg0) == (CacheMode.Only.value)) { + return CacheMode.Only + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Enum type supplied to {@link darkMode} for setting the web dark mode. + * + * @enum { number } + * @syscap SystemCapability.Web.Webview.Core + * @since 9 + */ +/** + * Enum type supplied to {@link darkMode} for setting the web dark mode. + * + * @enum { number } + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ +export class WebDarkMode { + /** + * Disable the web dark mode. + * + * @syscap SystemCapability.Web.Webview.Core + * @since 9 + */ +/** + * Disable the web dark mode. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ + static readonly Off: WebDarkMode = new WebDarkMode(0) + /** + * Enable the web dark mode. + * + * @syscap SystemCapability.Web.Webview.Core + * @since 9 + */ +/** + * Enable the web dark mode. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ + static readonly On: WebDarkMode = new WebDarkMode(1) + /** + * Make web dark mode follow the system. + * + * @syscap SystemCapability.Web.Webview.Core + * @since 9 + */ +/** + * Make web dark mode follow the system. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ + static readonly Auto: WebDarkMode = new WebDarkMode(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): WebDarkMode { + if ((arg0) == (WebDarkMode.Off.value)) { + return WebDarkMode.Off + } + if ((arg0) == (WebDarkMode.On.value)) { + return WebDarkMode.On + } + if ((arg0) == (WebDarkMode.Auto.value)) { + return WebDarkMode.Auto + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Enum type supplied to {@link overScrollMode} for setting the web overScroll mode. + * + * @enum { number } + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ +export class OverScrollMode { + /** + * Disable the web over-scroll mode. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ + static readonly NEVER: OverScrollMode = new OverScrollMode(0) + /** + * Enable the web over-scroll mode. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ + static readonly ALWAYS: OverScrollMode = new OverScrollMode(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): OverScrollMode { + if ((arg0) == (OverScrollMode.NEVER.value)) { + return OverScrollMode.NEVER + } + if ((arg0) == (OverScrollMode.ALWAYS.value)) { + return OverScrollMode.ALWAYS + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Enum type supplied to {@link getMessageLevel} for receiving the console log level of JavaScript. + * + * @enum { number } + * @syscap SystemCapability.Web.Webview.Core + * @since 8 + */ +/** + * Enum type supplied to {@link getMessageLevel} for receiving the console log level of JavaScript. + * + * @enum { number } + * @syscap SystemCapability.Web.Webview.Core + * @crossplatform + * @atomicservice + * @since 11 + */ +export class MessageLevel { + /** + * Debug level. + * + * @syscap SystemCapability.Web.Webview.Core + * @since 8 + */ +/** + * Debug level. + * + * @syscap SystemCapability.Web.Webview.Core + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Debug: MessageLevel = new MessageLevel(0) + /** + * Error level. + * + * @syscap SystemCapability.Web.Webview.Core + * @since 8 + */ +/** + * Error level. + * + * @syscap SystemCapability.Web.Webview.Core + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Error: MessageLevel = new MessageLevel(1) + /** + * Info level. + * + * @syscap SystemCapability.Web.Webview.Core + * @since 8 + */ +/** + * Info level. + * + * @syscap SystemCapability.Web.Webview.Core + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Info: MessageLevel = new MessageLevel(2) + /** + * Log level. + * + * @syscap SystemCapability.Web.Webview.Core + * @since 8 + */ +/** + * Log level. + * + * @syscap SystemCapability.Web.Webview.Core + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Log: MessageLevel = new MessageLevel(3) + /** + * Warn level. + * + * @syscap SystemCapability.Web.Webview.Core + * @since 8 + */ +/** + * Warn level. + * + * @syscap SystemCapability.Web.Webview.Core + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly Warn: MessageLevel = new MessageLevel(4) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): MessageLevel { + if ((arg0) == (MessageLevel.Debug.value)) { + return MessageLevel.Debug + } + if ((arg0) == (MessageLevel.Error.value)) { + return MessageLevel.Error + } + if ((arg0) == (MessageLevel.Info.value)) { + return MessageLevel.Info + } + if ((arg0) == (MessageLevel.Log.value)) { + return MessageLevel.Log + } + if ((arg0) == (MessageLevel.Warn.value)) { + return MessageLevel.Warn + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Enum type supplied to {@link renderExitReason} when onRenderExited being called. + * + * @enum { number } + * @syscap SystemCapability.Web.Webview.Core + * @since 9 + */ +/** + * Enum type supplied to {@link renderExitReason} when onRenderExited being called. + * + * @enum { number } + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ export class RenderExitReason { + /** + * Render process non-zero exit status. + * + * @syscap SystemCapability.Web.Webview.Core + * @since 9 + */ +/** + * Render process non-zero exit status. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ static readonly ProcessAbnormalTermination: RenderExitReason = new RenderExitReason(0) + /** + * SIGKILL or task manager kill. + * + * @syscap SystemCapability.Web.Webview.Core + * @since 9 + */ +/** + * SIGKILL or task manager kill. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ static readonly ProcessWasKilled: RenderExitReason = new RenderExitReason(1) + /** + * Segmentation fault. + * + * @syscap SystemCapability.Web.Webview.Core + * @since 9 + */ +/** + * Segmentation fault. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ static readonly ProcessCrashed: RenderExitReason = new RenderExitReason(2) + /** + * Out of memory. + * + * @syscap SystemCapability.Web.Webview.Core + * @since 9 + */ +/** + * Out of memory. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ static readonly ProcessOom: RenderExitReason = new RenderExitReason(3) + /** + * Unknown reason. + * + * @syscap SystemCapability.Web.Webview.Core + * @since 9 + */ +/** + * Unknown reason. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ static readonly ProcessExitUnknown: RenderExitReason = new RenderExitReason(4) constructor(value: KInt) { this.value = value @@ -31,22 +690,1328 @@ export class RenderExitReason { throw new Error(`Enum member '${arg0}' not found`) } } +/** + * Enum type supplied to {@link FileSelectorParam} when onFileSelectorShow being called. + * + * @enum { number } + * @syscap SystemCapability.Web.Webview.Core + * @since 9 + */ +/** + * Enum type supplied to {@link FileSelectorParam} when onFileSelectorShow being called. + * + * @enum { number } + * @syscap SystemCapability.Web.Webview.Core + * @crossplatform + * @atomicservice + * @since 11 + */ +export class FileSelectorMode { + /** + * Allows single file to be selected. + * + * @syscap SystemCapability.Web.Webview.Core + * @since 9 + */ +/** + * Allows single file to be selected. + * + * @syscap SystemCapability.Web.Webview.Core + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly FileOpenMode: FileSelectorMode = new FileSelectorMode(0) + /** + * Allows multiple files to be selected. + * + * @syscap SystemCapability.Web.Webview.Core + * @since 9 + */ +/** + * Allows multiple files to be selected. + * + * @syscap SystemCapability.Web.Webview.Core + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly FileOpenMultipleMode: FileSelectorMode = new FileSelectorMode(1) + /** + * Allows file folders to be selected. + * + * @syscap SystemCapability.Web.Webview.Core + * @since 9 + */ +/** + * Allows file folders to be selected. + * + * @syscap SystemCapability.Web.Webview.Core + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly FileOpenFolderMode: FileSelectorMode = new FileSelectorMode(2) + /** + * Allows select files to save. + * + * @syscap SystemCapability.Web.Webview.Core + * @since 9 + */ +/** + * Allows select files to save. + * + * @syscap SystemCapability.Web.Webview.Core + * @crossplatform + * @atomicservice + * @since 11 + */ + static readonly FileSaveMode: FileSelectorMode = new FileSelectorMode(3) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): FileSelectorMode { + if ((arg0) == (FileSelectorMode.FileOpenMode.value)) { + return FileSelectorMode.FileOpenMode + } + if ((arg0) == (FileSelectorMode.FileOpenMultipleMode.value)) { + return FileSelectorMode.FileOpenMultipleMode + } + if ((arg0) == (FileSelectorMode.FileOpenFolderMode.value)) { + return FileSelectorMode.FileOpenFolderMode + } + if ((arg0) == (FileSelectorMode.FileSaveMode.value)) { + return FileSelectorMode.FileSaveMode + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Enum type supplied to {@link captureMode} for setting the web capture mode. + * + * @enum { number } + * @syscap SystemCapability.Web.Webview.Core + * @since 10 + */ +/** + * Enum type supplied to {@link captureMode} for setting the web capture mode. + * + * @enum { number } + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ +export class WebCaptureMode { + /** + * The home screen. + * @syscap SystemCapability.Web.Webview.Core + * @since 10 + */ +/** + * The home screen. + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ + static readonly HOME_SCREEN: WebCaptureMode = new WebCaptureMode(0) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): WebCaptureMode { + if ((arg0) == (WebCaptureMode.HOME_SCREEN.value)) { + return WebCaptureMode.HOME_SCREEN + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Defines the context menu media type, related to {@link onContextMenuShow} method. + * + * @enum { number } + * @syscap SystemCapability.Web.Webview.Core + * @since 9 + */ +/** + * Defines the context menu media type, related to {@link onContextMenuShow} method. + * + * @enum { number } + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ +export class ContextMenuMediaType { + /** + * Not a special node or other media types. + * + * @syscap SystemCapability.Web.Webview.Core + * @since 9 + */ +/** + * Not a special node or other media types. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ + static readonly None: ContextMenuMediaType = new ContextMenuMediaType(0) + /** + * Image. + * + * @syscap SystemCapability.Web.Webview.Core + * @since 9 + */ +/** + * Image. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ + static readonly Image: ContextMenuMediaType = new ContextMenuMediaType(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): ContextMenuMediaType { + if ((arg0) == (ContextMenuMediaType.None.value)) { + return ContextMenuMediaType.None + } + if ((arg0) == (ContextMenuMediaType.Image.value)) { + return ContextMenuMediaType.Image + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Defines the context menu source type, related to {@link onContextMenuShow} method. + * + * @enum { number } + * @syscap SystemCapability.Web.Webview.Core + * @since 9 + */ +/** + * Defines the context menu source type, related to {@link onContextMenuShow} method. + * + * @enum { number } + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ +export class ContextMenuSourceType { + /** + * Other source types. + * + * @syscap SystemCapability.Web.Webview.Core + * @since 9 + */ +/** + * Other source types. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ + static readonly None: ContextMenuSourceType = new ContextMenuSourceType(0) + /** + * Mouse. + * + * @syscap SystemCapability.Web.Webview.Core + * @since 9 + */ +/** + * Mouse. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ + static readonly Mouse: ContextMenuSourceType = new ContextMenuSourceType(1) + /** + * Long press. + * + * @syscap SystemCapability.Web.Webview.Core + * @since 9 + */ +/** + * Long press. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ + static readonly LongPress: ContextMenuSourceType = new ContextMenuSourceType(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): ContextMenuSourceType { + if ((arg0) == (ContextMenuSourceType.None.value)) { + return ContextMenuSourceType.None + } + if ((arg0) == (ContextMenuSourceType.Mouse.value)) { + return ContextMenuSourceType.Mouse + } + if ((arg0) == (ContextMenuSourceType.LongPress.value)) { + return ContextMenuSourceType.LongPress + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Defines the context menu input field type, related to {@link onContextMenuShow} method. + * + * @enum { number } + * @syscap SystemCapability.Web.Webview.Core + * @since 9 + */ +/** + * Defines the context menu input field type, related to {@link onContextMenuShow} method. + * + * @enum { number } + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ +export class ContextMenuInputFieldType { + /** + * Not an input field. + * + * @syscap SystemCapability.Web.Webview.Core + * @since 9 + */ +/** + * Not an input field. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ + static readonly None: ContextMenuInputFieldType = new ContextMenuInputFieldType(0) + /** + * The plain text type. + * + * @syscap SystemCapability.Web.Webview.Core + * @since 9 + */ +/** + * The plain text type. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ + static readonly PlainText: ContextMenuInputFieldType = new ContextMenuInputFieldType(1) + /** + * The password type. + * + * @syscap SystemCapability.Web.Webview.Core + * @since 9 + */ +/** + * The password type. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ + static readonly Password: ContextMenuInputFieldType = new ContextMenuInputFieldType(2) + /** + * The number type. + * + * @syscap SystemCapability.Web.Webview.Core + * @since 9 + */ +/** + * The number type. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ + static readonly Number: ContextMenuInputFieldType = new ContextMenuInputFieldType(3) + /** + * The telephone type. + * + * @syscap SystemCapability.Web.Webview.Core + * @since 9 + */ +/** + * The telephone type. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ + static readonly Telephone: ContextMenuInputFieldType = new ContextMenuInputFieldType(4) + /** + * Other types. + * + * @syscap SystemCapability.Web.Webview.Core + * @since 9 + */ +/** + * Other types. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ + static readonly Other: ContextMenuInputFieldType = new ContextMenuInputFieldType(5) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): ContextMenuInputFieldType { + if ((arg0) == (ContextMenuInputFieldType.None.value)) { + return ContextMenuInputFieldType.None + } + if ((arg0) == (ContextMenuInputFieldType.PlainText.value)) { + return ContextMenuInputFieldType.PlainText + } + if ((arg0) == (ContextMenuInputFieldType.Password.value)) { + return ContextMenuInputFieldType.Password + } + if ((arg0) == (ContextMenuInputFieldType.Number.value)) { + return ContextMenuInputFieldType.Number + } + if ((arg0) == (ContextMenuInputFieldType.Telephone.value)) { + return ContextMenuInputFieldType.Telephone + } + if ((arg0) == (ContextMenuInputFieldType.Other.value)) { + return ContextMenuInputFieldType.Other + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Enum type supplied to {@link error} when onSslErrorEventReceive being called. + * + * @enum { number } + * @syscap SystemCapability.Web.Webview.Core + * @since 9 + */ +/** + * Enum type supplied to {@link error} when onSslErrorEventReceive being called. + * + * @enum { number } + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ +export class SslError { + /** + * General error. + * + * @syscap SystemCapability.Web.Webview.Core + * @since 9 + */ +/** + * General error. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ + static readonly Invalid: SslError = new SslError(0) + /** + * Hostname mismatch. + * + * @syscap SystemCapability.Web.Webview.Core + * @since 9 + */ +/** + * Hostname mismatch. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ + static readonly HostMismatch: SslError = new SslError(1) + /** + * The certificate date is invalid. + * + * @syscap SystemCapability.Web.Webview.Core + * @since 9 + */ +/** + * The certificate date is invalid. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ + static readonly DateInvalid: SslError = new SslError(2) + /** + * The certificate authority is not trusted. + * + * @syscap SystemCapability.Web.Webview.Core + * @since 9 + */ +/** + * The certificate authority is not trusted. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ + static readonly Untrusted: SslError = new SslError(3) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): SslError { + if ((arg0) == (SslError.Invalid.value)) { + return SslError.Invalid + } + if ((arg0) == (SslError.HostMismatch.value)) { + return SslError.HostMismatch + } + if ((arg0) == (SslError.DateInvalid.value)) { + return SslError.DateInvalid + } + if ((arg0) == (SslError.Untrusted.value)) { + return SslError.Untrusted + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Enum type supplied to {@link threatType} for the website's threat type. + * + * @enum { number } + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ +export class ThreatType { + /** + * Illegal websites. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ + static readonly THREAT_ILLEGAL: ThreatType = new ThreatType(0) + /** + * Fraud websites. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ + static readonly THREAT_FRAUD: ThreatType = new ThreatType(1) + /** + * Websites with security risks. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ + static readonly THREAT_RISK: ThreatType = new ThreatType(2) + /** + * Websites suspected of containing unhealthy content. + * ArkWeb will not intercept this type of website and apps could handle it themselves. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ + static readonly THREAT_WARNING: ThreatType = new ThreatType(3) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): ThreatType { + if ((arg0) == (ThreatType.THREAT_ILLEGAL.value)) { + return ThreatType.THREAT_ILLEGAL + } + if ((arg0) == (ThreatType.THREAT_FRAUD.value)) { + return ThreatType.THREAT_FRAUD + } + if ((arg0) == (ThreatType.THREAT_RISK.value)) { + return ThreatType.THREAT_RISK + } + if ((arg0) == (ThreatType.THREAT_WARNING.value)) { + return ThreatType.THREAT_WARNING + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Enum type supplied to {@link navigationType} for the navigation's type. + * + * @enum { number } + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ +export class WebNavigationType { + /** + * Unknown type. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ + static readonly UNKNOWN: WebNavigationType = new WebNavigationType(0) + /** + * A new entry was created due to a navigation happened on the main frame. + * Contains all situations that will generate a mainframe navigation entry, + * which means that navigations to a hash on the same document or history.pushState + * also belong to this type. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ + static readonly MAIN_FRAME_NEW_ENTRY: WebNavigationType = new WebNavigationType(1) + /** + * Navigate to an existing entry due to a navigation on the main frame. + * e.g. + * 1. History navigations. + * 2. Reloads (contains loading the same url). + * 3. Same-document navigations(history.replaceState(), location.replace()). + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ + static readonly MAIN_FRAME_EXISTING_ENTRY: WebNavigationType = new WebNavigationType(2) + /** + * A navigation happened on subframe which was triggered by user. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ + static readonly NAVIGATION_TYPE_NEW_SUBFRAME: WebNavigationType = new WebNavigationType(4) + /** + * A navigation happened on the subframe automatically. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ + static readonly NAVIGATION_TYPE_AUTO_SUBFRAME: WebNavigationType = new WebNavigationType(5) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): WebNavigationType { + if ((arg0) == (WebNavigationType.UNKNOWN.value)) { + return WebNavigationType.UNKNOWN + } + if ((arg0) == (WebNavigationType.MAIN_FRAME_NEW_ENTRY.value)) { + return WebNavigationType.MAIN_FRAME_NEW_ENTRY + } + if ((arg0) == (WebNavigationType.MAIN_FRAME_EXISTING_ENTRY.value)) { + return WebNavigationType.MAIN_FRAME_EXISTING_ENTRY + } + if ((arg0) == (WebNavigationType.NAVIGATION_TYPE_NEW_SUBFRAME.value)) { + return WebNavigationType.NAVIGATION_TYPE_NEW_SUBFRAME + } + if ((arg0) == (WebNavigationType.NAVIGATION_TYPE_AUTO_SUBFRAME.value)) { + return WebNavigationType.NAVIGATION_TYPE_AUTO_SUBFRAME + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Enum type supplied to {@link layoutMode} for setting the web layout mode. + * + * @enum { number } + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ +export class WebLayoutMode { + /** + * Web layout follows the system. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ + static readonly NONE: WebLayoutMode = new WebLayoutMode(0) + /** + * Adaptive web layout based on page size. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ + static readonly FIT_CONTENT: WebLayoutMode = new WebLayoutMode(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): WebLayoutMode { + if ((arg0) == (WebLayoutMode.NONE.value)) { + return WebLayoutMode.NONE + } + if ((arg0) == (WebLayoutMode.FIT_CONTENT.value)) { + return WebLayoutMode.FIT_CONTENT + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Defines the embed status, related to {@link NativeEmbedDataInfo}. + * + * @enum { number } + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ +export class NativeEmbedStatus { + /** + * The embed tag create. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ + static readonly CREATE: NativeEmbedStatus = new NativeEmbedStatus(0) + /** + * The embed tag update. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ + static readonly UPDATE: NativeEmbedStatus = new NativeEmbedStatus(1) + /** + * The embed tag destroy. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 11 + */ + static readonly DESTROY: NativeEmbedStatus = new NativeEmbedStatus(2) + /** + * The embed tag enter backforward cache. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 12 + */ + static readonly ENTER_BFCACHE: NativeEmbedStatus = new NativeEmbedStatus(3) + /** + * The embed tag leave backforward cache. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 12 + */ + static readonly LEAVE_BFCACHE: NativeEmbedStatus = new NativeEmbedStatus(4) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): NativeEmbedStatus { + if ((arg0) == (NativeEmbedStatus.CREATE.value)) { + return NativeEmbedStatus.CREATE + } + if ((arg0) == (NativeEmbedStatus.UPDATE.value)) { + return NativeEmbedStatus.UPDATE + } + if ((arg0) == (NativeEmbedStatus.DESTROY.value)) { + return NativeEmbedStatus.DESTROY + } + if ((arg0) == (NativeEmbedStatus.ENTER_BFCACHE.value)) { + return NativeEmbedStatus.ENTER_BFCACHE + } + if ((arg0) == (NativeEmbedStatus.LEAVE_BFCACHE.value)) { + return NativeEmbedStatus.LEAVE_BFCACHE + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Enum type supplied to {@link RenderProcessNotRespondingData} when onRenderProcessNotResponding is called. + * + * @enum { number } + * @syscap SystemCapability.Web.Webview.Core + * @since 12 + */ +export class RenderProcessNotRespondingReason { + /** + * Timeout for input sent to render process. + * + * @syscap SystemCapability.Web.Webview.Core + * @since 12 + */ + static readonly INPUT_TIMEOUT: RenderProcessNotRespondingReason = new RenderProcessNotRespondingReason(0) + /** + * Timeout for navigation commit. + * + * @syscap SystemCapability.Web.Webview.Core + * @since 12 + */ + static readonly NAVIGATION_COMMIT_TIMEOUT: RenderProcessNotRespondingReason = new RenderProcessNotRespondingReason(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): RenderProcessNotRespondingReason { + if ((arg0) == (RenderProcessNotRespondingReason.INPUT_TIMEOUT.value)) { + return RenderProcessNotRespondingReason.INPUT_TIMEOUT + } + if ((arg0) == (RenderProcessNotRespondingReason.NAVIGATION_COMMIT_TIMEOUT.value)) { + return RenderProcessNotRespondingReason.NAVIGATION_COMMIT_TIMEOUT + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Defines the viewport-fit type, related to {@link ViewportFit}. + * + * @enum { number } + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 12 + */ +export class ViewportFit { + /** + * No effect - the whole web page is viewable(default) + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 12 + */ + static readonly AUTO: ViewportFit = new ViewportFit(0) + /** + * The initial layout viewport and the visual viewport are set to the + * largest rectangle which is inscribe in the display of the device. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 12 + */ + static readonly CONTAINS: ViewportFit = new ViewportFit(1) + /** + * The initial layout viewport and the visual viewport are set to the + * circumscribe rectangle of the physical screen of the device. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 12 + */ + static readonly COVER: ViewportFit = new ViewportFit(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): ViewportFit { + if ((arg0) == (ViewportFit.AUTO.value)) { + return ViewportFit.AUTO + } + if ((arg0) == (ViewportFit.CONTAINS.value)) { + return ViewportFit.CONTAINS + } + if ((arg0) == (ViewportFit.COVER.value)) { + return ViewportFit.COVER + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Enum type supplied to {@link keyboardAvoidMode} for setting the web keyboard avoid mode. + * + * @enum { number } + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 12 + */ +export class WebKeyboardAvoidMode { + /** + * Resize the visual viewport when keyboard avoidance occurs. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 12 + */ + static readonly RESIZE_VISUAL: WebKeyboardAvoidMode = new WebKeyboardAvoidMode(0) + /** + * Resize the visual and layout viewport when keyboard avoidance occurs. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 12 + */ + static readonly RESIZE_CONTENT: WebKeyboardAvoidMode = new WebKeyboardAvoidMode(1) + /** + * Do not resize any viewport when keyboard avoidance occurs. + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 12 + */ + static readonly OVERLAYS_CONTENT: WebKeyboardAvoidMode = new WebKeyboardAvoidMode(2) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): WebKeyboardAvoidMode { + if ((arg0) == (WebKeyboardAvoidMode.RESIZE_VISUAL.value)) { + return WebKeyboardAvoidMode.RESIZE_VISUAL + } + if ((arg0) == (WebKeyboardAvoidMode.RESIZE_CONTENT.value)) { + return WebKeyboardAvoidMode.RESIZE_CONTENT + } + if ((arg0) == (WebKeyboardAvoidMode.OVERLAYS_CONTENT.value)) { + return WebKeyboardAvoidMode.OVERLAYS_CONTENT + } + throw new Error(`Enum member '${arg0}' not found`) + } +} +/** + * Defines the web render mode, related to {@link RenderMode}. + * + * @enum { number } + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 12 + */ +export class RenderMode { + /** + * Web and arkui render asynchronously + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 12 + */ + static readonly ASYNC_RENDER: RenderMode = new RenderMode(0) + /** + * Web and arkui render synchronously + * + * @syscap SystemCapability.Web.Webview.Core + * @atomicservice + * @since 12 + */ + static readonly SYNC_RENDER: RenderMode = new RenderMode(1) + constructor(value: KInt) { + this.value = value + } + public readonly value: KInt + public static of(arg0: KInt): RenderMode { + if ((arg0) == (RenderMode.ASYNC_RENDER.value)) { + return RenderMode.ASYNC_RENDER + } + if ((arg0) == (RenderMode.SYNC_RENDER.value)) { + return RenderMode.SYNC_RENDER + } + throw new Error(`Enum member '${arg0}' not found`) + } +} export interface WebAttribute { - onNativeEmbedLifecycleChange(callback: ((event: NativeEmbedDataInfo) => void)): WebAttribute; - onRenderExited(callback: Callback): WebAttribute; + javaScriptAccess(javaScriptAccess: boolean): WebAttribute; + fileAccess(fileAccess: boolean): WebAttribute; + onlineImageAccess(onlineImageAccess: boolean): WebAttribute; + domStorageAccess(domStorageAccess: boolean): WebAttribute; + imageAccess(imageAccess: boolean): WebAttribute; + mixedMode(mixedMode: MixedMode): WebAttribute; + zoomAccess(zoomAccess: boolean): WebAttribute; + geolocationAccess(geolocationAccess: boolean): WebAttribute; + javaScriptProxy(javaScriptProxy: JavaScriptProxy): WebAttribute; + password(password: boolean): WebAttribute; + cacheMode(cacheMode: CacheMode): WebAttribute; + darkMode(mode: WebDarkMode): WebAttribute; + forceDarkAccess(access: boolean): WebAttribute; + mediaOptions(options: WebMediaOptions): WebAttribute; + tableData(tableData: boolean): WebAttribute; + wideViewModeAccess(wideViewModeAccess: boolean): WebAttribute; + overviewModeAccess(overviewModeAccess: boolean): WebAttribute; + overScrollMode(mode: OverScrollMode): WebAttribute; + textZoomAtio(textZoomAtio: number): WebAttribute; + textZoomRatio(textZoomRatio: number): WebAttribute; + databaseAccess(databaseAccess: boolean): WebAttribute; + initialScale(percent: number): WebAttribute; + userAgent(userAgent: string): WebAttribute; + metaViewport(enabled: boolean): WebAttribute; + onPageEnd(callback: Callback): WebAttribute; + onPageBegin(callback: Callback): WebAttribute; + onProgressChange(callback: Callback): WebAttribute; + onTitleReceive(callback: Callback): WebAttribute; + onGeolocationHide(callback: (() => void)): WebAttribute; + onGeolocationShow(callback: Callback): WebAttribute; + onRequestSelected(callback: (() => void)): WebAttribute; + onAlert(callback: Callback): WebAttribute; + onBeforeUnload(callback: Callback): WebAttribute; + onConfirm(callback: Callback): WebAttribute; + onPrompt(callback: Callback): WebAttribute; + onConsole(callback: Callback): WebAttribute; + onErrorReceive(callback: Callback): WebAttribute; onHttpErrorReceive(callback: Callback): WebAttribute; + onDownloadStart(callback: Callback): WebAttribute; + onRefreshAccessedHistory(callback: Callback): WebAttribute; + onUrlLoadIntercept(callback: ((event: LITERAL_DataStringWebResourceRequest|undefined) => boolean)): WebAttribute; + onSslErrorReceive(callback: ((event: LITERAL_HandlerFunctionErrorObject|undefined) => void)): WebAttribute; + onRenderExited(callback: Callback): WebAttribute; + onShowFileSelector(callback: Callback): WebAttribute; + onFileSelectorShow(callback: ((event: LITERAL_CallbackFunctionFileSelectorObject|undefined) => void)): WebAttribute; + onResourceLoad(callback: Callback): WebAttribute; + onFullScreenExit(callback: (() => void)): WebAttribute; + onFullScreenEnter(callback: OnFullScreenEnterCallback): WebAttribute; + onScaleChange(callback: Callback): WebAttribute; + onHttpAuthRequest(callback: Callback): WebAttribute; + onInterceptRequest(callback: Callback): WebAttribute; + onPermissionRequest(callback: Callback): WebAttribute; + onScreenCaptureRequest(callback: Callback): WebAttribute; + onContextMenuShow(callback: Callback): WebAttribute; + onContextMenuHide(callback: OnContextMenuHideCallback): WebAttribute; + mediaPlayGestureAccess(access: boolean): WebAttribute; + onSearchResultReceive(callback: Callback): WebAttribute; + onScroll(callback: Callback): WebAttribute; + onSslErrorEventReceive(callback: Callback): WebAttribute; + onSslErrorEvent(callback: OnSslErrorEventCallback): WebAttribute; + onClientAuthenticationRequest(callback: Callback): WebAttribute; + onWindowNew(callback: Callback): WebAttribute; + onWindowExit(callback: (() => void)): WebAttribute; + multiWindowAccess(multiWindow: boolean): WebAttribute; + onInterceptKeyEvent(callback: ((event: KeyEvent) => boolean)): WebAttribute; + webStandardFont(family: string): WebAttribute; + webSerifFont(family: string): WebAttribute; + webSansSerifFont(family: string): WebAttribute; + webFixedFont(family: string): WebAttribute; + webFantasyFont(family: string): WebAttribute; + webCursiveFont(family: string): WebAttribute; + defaultFixedFontSize(size: number): WebAttribute; + defaultFontSize(size: number): WebAttribute; + minFontSize(size: number): WebAttribute; + minLogicalFontSize(size: number): WebAttribute; + defaultTextEncodingFormat(textEncodingFormat: string): WebAttribute; + forceDisplayScrollBar(enabled: boolean): WebAttribute; + blockNetwork(block: boolean): WebAttribute; + horizontalScrollBarAccess(horizontalScrollBar: boolean): WebAttribute; + verticalScrollBarAccess(verticalScrollBar: boolean): WebAttribute; + onTouchIconUrlReceived(callback: Callback): WebAttribute; + onFaviconReceived(callback: Callback): WebAttribute; + onPageVisible(callback: Callback): WebAttribute; + onDataResubmitted(callback: Callback): WebAttribute; + pinchSmooth(isEnabled: boolean): WebAttribute; + allowWindowOpenMethod(flag: boolean): WebAttribute; + onAudioStateChanged(callback: Callback): WebAttribute; + onFirstContentfulPaint(callback: Callback): WebAttribute; + onFirstMeaningfulPaint(callback: OnFirstMeaningfulPaintCallback): WebAttribute; + onLargestContentfulPaint(callback: OnLargestContentfulPaintCallback): WebAttribute; + onLoadIntercept(callback: Callback): WebAttribute; + onControllerAttached(callback: (() => void)): WebAttribute; + onOverScroll(callback: Callback): WebAttribute; + onSafeBrowsingCheckResult(callback: OnSafeBrowsingCheckResultCallback): WebAttribute; + onNavigationEntryCommitted(callback: OnNavigationEntryCommittedCallback): WebAttribute; + onIntelligentTrackingPreventionResult(callback: OnIntelligentTrackingPreventionCallback): WebAttribute; + javaScriptOnDocumentStart(scripts: Array): WebAttribute; + javaScriptOnDocumentEnd(scripts: Array): WebAttribute; + layoutMode(mode: WebLayoutMode): WebAttribute; + nestedScroll(value: NestedScrollOptions | NestedScrollOptionsExt): WebAttribute; + enableNativeEmbedMode(mode: boolean): WebAttribute; + registerNativeEmbedRule(tag: string,type: string): WebAttribute; + onNativeEmbedLifecycleChange(callback: ((event: NativeEmbedDataInfo) => void)): WebAttribute; + onNativeEmbedVisibilityChange(callback: OnNativeEmbedVisibilityChangeCallback): WebAttribute; + onNativeEmbedGestureEvent(callback: ((event: NativeEmbedTouchInfo) => void)): WebAttribute; + copyOptions(value: CopyOptions): WebAttribute; + onOverrideUrlLoading(callback: OnOverrideUrlLoadingCallback): WebAttribute; + textAutosizing(textAutosizing: boolean): WebAttribute; + enableNativeMediaPlayer(config: NativeMediaPlayerConfig): WebAttribute; + enableSmoothDragResize(mode: boolean): WebAttribute; + onRenderProcessNotResponding(callback: OnRenderProcessNotRespondingCallback): WebAttribute; + onRenderProcessResponding(callback: OnRenderProcessRespondingCallback): WebAttribute; + selectionMenuOptions(expandedMenuOptions: Array): WebAttribute; + onViewportFitChanged(callback: OnViewportFitChangedCallback): WebAttribute; + onInterceptKeyboardAttach(callback: WebKeyboardCallback): WebAttribute; + onAdsBlocked(callback: OnAdsBlockedCallback): WebAttribute; + keyboardAvoidMode(mode: WebKeyboardAvoidMode): WebAttribute; + editMenuOptions(editMenu: EditMenuOptions): WebAttribute; + enableHapticFeedback(enabled: boolean): WebAttribute; } export interface WebInterface { } +export interface JavaScriptProxy { + object: Object + name: string + methodList: Array + controller: WebController | WebviewController + asyncMethodList?: Array + permission?: string +} +export interface Header { + headerKey: string + headerValue: string +} +export declare type WebviewController = IMPORT_default_WebviewController_FROM_api_ohos_web_webview +export interface WebMediaOptions { + resumeInterval?: number + audioExclusive?: boolean +} +export interface OnPageEndEvent { + url: string +} +export interface OnPageBeginEvent { + url: string +} +export interface OnProgressChangeEvent { + newProgress: number +} +export interface OnTitleReceiveEvent { + title: string +} +export interface OnGeolocationShowEvent { + origin: string + geolocation: JsGeolocation +} +export interface OnAlertEvent { + url: string + message: string + result: JsResult +} +export interface OnBeforeUnloadEvent { + url: string + message: string + result: JsResult +} +export interface OnConfirmEvent { + url: string + message: string + result: JsResult +} +export interface OnPromptEvent { + url: string + message: string + value: string + result: JsResult +} +export interface OnConsoleEvent { + message: ConsoleMessage +} +export interface OnErrorReceiveEvent { + request: WebResourceRequest + error: WebResourceError +} +export interface OnHttpErrorReceiveEvent { + request: WebResourceRequest + response: WebResourceResponse +} +export interface OnDownloadStartEvent { + url: string + userAgent: string + contentDisposition: string + mimetype: string + contentLength: number +} +export interface OnRefreshAccessedHistoryEvent { + url: string + isRefreshed: boolean +} +export interface OnRenderExitedEvent { + renderExitReason: RenderExitReason +} +export interface OnShowFileSelectorEvent { + result: FileSelectorResult + fileSelector: FileSelectorParam +} +export interface OnResourceLoadEvent { + url: string +} +export declare type OnFullScreenEnterCallback = ((event: FullScreenEnterEvent) => void) +export interface FullScreenEnterEvent { + handler: FullScreenExitHandler + videoWidth?: number + videoHeight?: number +} +export interface OnScaleChangeEvent { + oldScale: number + newScale: number +} +export interface OnHttpAuthRequestEvent { + handler: HttpAuthHandler + host: string + realm: string +} +export interface OnInterceptRequestEvent { + request: WebResourceRequest +} +export interface OnPermissionRequestEvent { + request: PermissionRequest +} +export interface OnScreenCaptureRequestEvent { + handler: ScreenCaptureHandler +} +export interface ScreenCaptureConfig { + captureMode: WebCaptureMode +} +export interface OnContextMenuShowEvent { + param: WebContextMenuParam + result: WebContextMenuResult +} +export declare type OnContextMenuHideCallback = (() => void) +export interface OnSearchResultReceiveEvent { + activeMatchOrdinal: number + numberOfMatches: number + isDoneCounting: boolean +} +export interface OnScrollEvent { + xOffset: number + yOffset: number +} +export interface OnSslErrorEventReceiveEvent { + handler: SslErrorHandler + error: SslError +} +export declare type OnSslErrorEventCallback = ((sslErrorEvent: SslErrorEvent) => void) +export interface SslErrorEvent { + handler: SslErrorHandler + error: SslError + url: string + originalUrl: string + referrer: string + isFatalError: boolean + isMainFrame: boolean +} +export interface OnClientAuthenticationEvent { + handler: ClientAuthenticationHandler + host: string + port: number + keyTypes: Array + issuers: Array +} +export interface OnWindowNewEvent { + isAlert: boolean + isUserTrigger: boolean + targetUrl: string + handler: ControllerHandler +} +export interface OnTouchIconUrlReceivedEvent { + url: string + precomposed: boolean +} +export interface OnFaviconReceivedEvent { + favicon: PixelMap +} +export interface OnPageVisibleEvent { + url: string +} +export interface OnDataResubmittedEvent { + handler: DataResubmissionHandler +} +export interface OnAudioStateChangedEvent { + playing: boolean +} +export interface OnFirstContentfulPaintEvent { + navigationStartTick: number + firstContentfulPaintMs: number +} +export declare type OnFirstMeaningfulPaintCallback = ((firstMeaningfulPaint: FirstMeaningfulPaint) => void) +export interface FirstMeaningfulPaint { + navigationStartTime?: number + firstMeaningfulPaintTime?: number +} +export declare type OnLargestContentfulPaintCallback = ((largestContentfulPaint: LargestContentfulPaint) => void) +export interface LargestContentfulPaint { + navigationStartTime?: number + largestImagePaintTime?: number + largestTextPaintTime?: number + imageBPP?: number + largestImageLoadStartTime?: number + largestImageLoadEndTime?: number +} +export interface OnLoadInterceptEvent { + data: WebResourceRequest +} +export interface OnOverScrollEvent { + xOffset: number + yOffset: number +} +export declare type OnSafeBrowsingCheckResultCallback = ((threatType: ThreatType) => void) +export declare type OnNavigationEntryCommittedCallback = ((loadCommittedDetails: LoadCommittedDetails) => void) +export interface LoadCommittedDetails { + isMainFrame: boolean + isSameDocument: boolean + didReplaceEntry: boolean + navigationType: WebNavigationType + url: string +} +export declare type OnIntelligentTrackingPreventionCallback = ((details: IntelligentTrackingPreventionDetails) => void) +export interface IntelligentTrackingPreventionDetails { + host: string + trackerHost: string +} +export interface ScriptItem { + script: string + scriptRules: Array +} +export interface NestedScrollOptionsExt { + scrollUp?: NestedScrollMode + scrollDown?: NestedScrollMode + scrollRight?: NestedScrollMode + scrollLeft?: NestedScrollMode +} export interface NativeEmbedDataInfo { + status?: NativeEmbedStatus + surfaceId?: string + embedId?: string info?: NativeEmbedInfo } export interface NativeEmbedInfo { + id?: string + type?: string + src?: string + position?: Position + width?: number + height?: number + url?: string + tag?: string params?: Map } -export interface OnRenderExitedEvent { - renderExitReason: RenderExitReason +export declare type OnNativeEmbedVisibilityChangeCallback = ((nativeEmbedVisibilityInfo: NativeEmbedVisibilityInfo) => void) +export interface NativeEmbedVisibilityInfo { + visibility: boolean + embedId: string } -export interface OnHttpErrorReceiveEvent { - response: WebResourceResponse +export interface NativeEmbedTouchInfo { + embedId?: string + touchEvent?: TouchEvent + result?: EventResult +} +export declare type OnOverrideUrlLoadingCallback = ((webResourceRequest: WebResourceRequest) => boolean) +export interface NativeMediaPlayerConfig { + enable: boolean + shouldOverlay: boolean +} +export declare type OnRenderProcessNotRespondingCallback = ((data: RenderProcessNotRespondingData) => void) +export interface RenderProcessNotRespondingData { + jsStack: string + pid: number + reason: RenderProcessNotRespondingReason +} +export declare type OnRenderProcessRespondingCallback = (() => void) +export interface ExpandedMenuItemOptions { + content: ResourceStr + startIcon?: ResourceStr + action: ((selectedText: LITERAL_PlainTextString) => void) +} +export declare type OnViewportFitChangedCallback = ((viewportFit: ViewportFit) => void) +export declare type WebKeyboardCallback = ((keyboardCallbackInfo: WebKeyboardCallbackInfo) => WebKeyboardOptions) +export interface WebKeyboardCallbackInfo { + controller: WebKeyboardController + attributes: Record +} +export interface WebKeyboardOptions { + useSystemKeyboard: boolean + enterKeyType?: number + customKeyboard?: CustomBuilder +} +export declare type OnAdsBlockedCallback = ((details: AdsBlockedDetails) => void) +export interface AdsBlockedDetails { + url: string + adsBlocked: Array +} +export interface WebOptions { + src: string | Resource + controller: WebController | WebviewController + renderMode?: RenderMode + incognitoMode?: boolean + sharedRenderProcessToken?: string } \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ArkWebResourceResponseMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkWebResourceResponseMaterialized.ts index 770fb6ebe..743198fc9 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWebResourceResponseMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWebResourceResponseMaterialized.ts @@ -17,7 +17,8 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { Resource } from "./ArkUnitsInterfaces" -import { IMPORT_Resource_FROM_resource_resource } from "./SyntheticDeclarations" +import { IMPORT_Resource_FROM_api_global_resource } from "./SyntheticDeclarations" +import { Header } from "./ArkWebInterfaces" import { TypeChecker } from "#components" import { Finalizable } from "./Finalizable" @@ -58,10 +59,86 @@ export class WebResourceResponse { static getFinalizer(): KPointer { return NativeModule._WebResourceResponse_getFinalizer() } + getResponseData(): string { + return this.getResponseData_serialize() + } + getResponseDataEx(): string | number | ArrayBuffer | Resource | undefined { + return this.getResponseDataEx_serialize() + } + getResponseEncoding(): string { + return this.getResponseEncoding_serialize() + } + getResponseMimeType(): string { + return this.getResponseMimeType_serialize() + } + getReasonMessage(): string { + return this.getReasonMessage_serialize() + } + getResponseHeader(): Array
{ + return this.getResponseHeader_serialize() + } + getResponseCode(): number { + return this.getResponseCode_serialize() + } setResponseData(data: string | number | Resource | ArrayBuffer): void { const data_casted = data as (string | number | Resource | ArrayBuffer) this.setResponseData_serialize(data_casted) } + setResponseEncoding(encoding: string): void { + const encoding_casted = encoding as (string) + this.setResponseEncoding_serialize(encoding_casted) + } + setResponseMimeType(mimeType: string): void { + const mimeType_casted = mimeType as (string) + this.setResponseMimeType_serialize(mimeType_casted) + } + setReasonMessage(reason: string): void { + const reason_casted = reason as (string) + this.setReasonMessage_serialize(reason_casted) + } + setResponseHeader(header: Array
): void { + const header_casted = header as (Array
) + this.setResponseHeader_serialize(header_casted) + } + setResponseCode(code: number): void { + const code_casted = code as (number) + this.setResponseCode_serialize(code_casted) + } + setResponseIsReady(IsReady: boolean): void { + const IsReady_casted = IsReady as (boolean) + this.setResponseIsReady_serialize(IsReady_casted) + } + getResponseIsReady(): boolean { + return this.getResponseIsReady_serialize() + } + private getResponseData_serialize(): string { + const retval = NativeModule._WebResourceResponse_getResponseData(this.peer!.ptr) + return retval + } + private getResponseDataEx_serialize(): string | number | ArrayBuffer | Resource | undefined { + const retval = NativeModule._WebResourceResponse_getResponseDataEx(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private getResponseEncoding_serialize(): string { + const retval = NativeModule._WebResourceResponse_getResponseEncoding(this.peer!.ptr) + return retval + } + private getResponseMimeType_serialize(): string { + const retval = NativeModule._WebResourceResponse_getResponseMimeType(this.peer!.ptr) + return retval + } + private getReasonMessage_serialize(): string { + const retval = NativeModule._WebResourceResponse_getReasonMessage(this.peer!.ptr) + return retval + } + private getResponseHeader_serialize(): Array
{ + const retval = NativeModule._WebResourceResponse_getResponseHeader(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private getResponseCode_serialize(): number { + const retval = NativeModule._WebResourceResponse_getResponseCode(this.peer!.ptr) + return retval + } private setResponseData_serialize(data: string | number | Resource | ArrayBuffer): void { const thisSerializer = SerializerBase.hold(createSerializer) let data_type = RuntimeType.UNDEFINED @@ -89,4 +166,34 @@ export class WebResourceResponse { NativeModule._WebResourceResponse_setResponseData(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); thisSerializer.release(); } + private setResponseEncoding_serialize(encoding: string): void { + NativeModule._WebResourceResponse_setResponseEncoding(this.peer!.ptr, encoding); + } + private setResponseMimeType_serialize(mimeType: string): void { + NativeModule._WebResourceResponse_setResponseMimeType(this.peer!.ptr, mimeType); + } + private setReasonMessage_serialize(reason: string): void { + NativeModule._WebResourceResponse_setReasonMessage(this.peer!.ptr, reason); + } + private setResponseHeader_serialize(header: Array
): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeInt8(runtimeType(header) as int32) + thisSerializer.writeInt32(header.length as int32) + for (let i = 0; i < header.length; i++) { + const header_element = header[i] + thisSerializer.writeHeader(header_element) + } + NativeModule._WebResourceResponse_setResponseHeader(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + private setResponseCode_serialize(code: number): void { + NativeModule._WebResourceResponse_setResponseCode(this.peer!.ptr, code); + } + private setResponseIsReady_serialize(IsReady: boolean): void { + NativeModule._WebResourceResponse_setResponseIsReady(this.peer!.ptr, IsReady ? 1 : 0); + } + private getResponseIsReady_serialize(): boolean { + const retval = NativeModule._WebResourceResponse_getResponseIsReady(this.peer!.ptr) + return retval + } } diff --git a/arkoala-arkts/arkui/src/generated/ConflictedDeclarations.ts b/arkoala-arkts/arkui/src/generated/ConflictedDeclarations.ts index fde08681e..ab0fa6262 100644 --- a/arkoala-arkts/arkui/src/generated/ConflictedDeclarations.ts +++ b/arkoala-arkts/arkui/src/generated/ConflictedDeclarations.ts @@ -1,4 +1,10 @@ +export class LinearGradient { +} +export class TransitionEffect { +} export class GestureControl_GestureType { } export class ContentModifier { +} +export class OnWillScrollCallback { } \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/SyntheticDeclarations.ts b/arkoala-arkts/arkui/src/generated/SyntheticDeclarations.ts index 7d2959368..a8159cd12 100644 --- a/arkoala-arkts/arkui/src/generated/SyntheticDeclarations.ts +++ b/arkoala-arkts/arkui/src/generated/SyntheticDeclarations.ts @@ -14,77 +14,331 @@ */ import { ArkResource } from "./shared/ArkResource" -import { Length, Resource, ResourceColor } from "./ArkUnitsInterfaces" -import { GradientDirection, BorderStyle, UIGestureEvent } from "./ArkCommonInterfaces" -import { Color, Axis } from "./ArkEnumsInterfaces" -import { ScrollAnimationOptions } from "./ArkScrollInterfaces" +import { Length, Resource, ResourceColor, Dimension, PX, VP, FP, LPX, Percentage, ResourceStr } from "./ArkUnitsInterfaces" +import { Alignment, BorderStyle, Color, GradientDirection, HorizontalAlign, VerticalAlign, Axis, XComponentType } from "./ArkEnumsInterfaces" +import { OutlineStyle, TransitionEdge, PixelMap, UIGestureEvent, SelectionOptions } from "./ArkCommonInterfaces" +import { TransitionEffect, LinearGradient } from "./ConflictedDeclarations" +import { PanDirection, SwipeDirection } from "./ArkGestureInterfaces" +import { MonthData } from "./ArkCalendarInterfaces" +import { CalendarController } from "./ArkCalendarControllerMaterialized" +import { NavigationType } from "./ArkNavigatorInterfaces" +import { PluginComponentTemplate } from "./ArkPluginComponentInterfaces" +import { SearchController } from "./ArkSearchControllerMaterialized" +import { BarPosition } from "./ArkTabsInterfaces" +import { TabsController } from "./ArkTabsControllerMaterialized" +import { CancelButtonStyle, IconOptions } from "./ArkSearchInterfaces" +import { WebResourceRequest } from "./ArkWebResourceRequestMaterialized" +import { Header } from "./ArkWebInterfaces" +import { XComponentController } from "./ArkXComponentControllerMaterialized" import { Matrix2D } from "./ArkMatrix2DMaterialized" import { NavPathInfo, NavContentInfo } from "./ArkNavigationInterfaces" import { NavPathStack } from "./ArkNavPathStackMaterialized" import { RouteMapConfig } from "./ArkNavDestinationInterfaces" +import { TextMenuItem, TextRange, PreviewText, PositionWithAffinity, LineMetrics, RectWidthStyle, RectHeightStyle, TextBox } from "./ArkTextCommonInterfaces" +import { LayoutManager } from "./ArkLayoutManagerMaterialized" +import { StyledString } from "./ArkStyledStringMaterialized" +import { MutableStyledString } from "./ArkMutableStyledStringMaterialized" import { UIExtensionProxy } from "./ArkUIExtensionProxyMaterialized" -export declare type IMPORT_Resource_FROM_resource_resource = ArkResource +export declare type IMPORT_Resource_FROM_api_global_resource = ArkResource export interface LITERAL_TopLengthRightLengthBottomLengthLeftLength { top?: Length right?: Length bottom?: Length left?: Length } +export interface LITERAL_AlignAlignment { + align?: Alignment +} +export declare type IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image = Object +export declare type IMPORT_default_VisualEffect_FROM_api_ohos_graphics_uiEffect = Object +export declare type IMPORT_default_Filter_FROM_api_ohos_graphics_uiEffect = Object +export interface LITERAL_TopBorderStyleRightBorderStyleBottomBorderStyleLeftBorderStyle { + top?: BorderStyle + right?: BorderStyle + bottom?: BorderStyle + left?: BorderStyle +} +export interface LITERAL_TopResourceColorRightResourceColorBottomResourceColorLeftResourceColor { + top?: ResourceColor + right?: ResourceColor + bottom?: ResourceColor + left?: ResourceColor +} +export interface LITERAL_TopLeftLengthTopRightLengthBottomLeftLengthBottomRightLength { + topLeft?: Length + topRight?: Length + bottomLeft?: Length + bottomRight?: Length +} +export interface LITERAL_TopOutlineStyleRightOutlineStyleBottomOutlineStyleLeftOutlineStyle { + top?: OutlineStyle + right?: OutlineStyle + bottom?: OutlineStyle + left?: OutlineStyle +} export declare type TEMPLATE_LITERAL_number_PX = string export declare type TEMPLATE_LITERAL_number_vp = string export declare type TEMPLATE_LITERAL_number_FP = string export declare type TEMPLATE_LITERAL_number_LPX = string export declare type TEMPLATE_LITERAL_number_Percentage = string +export interface LITERAL_TopDimensionRightDimensionBottomDimensionLeftDimension { + top?: Dimension + right?: Dimension + bottom?: Dimension + left?: Dimension +} +export interface LITERAL_TopLeftDimensionTopRightDimensionBottomLeftDimensionBottomRightDimension { + topLeft?: Dimension + topRight?: Dimension + bottomLeft?: Dimension + bottomRight?: Dimension +} +export interface LITERAL_SpanNumberOffsetNumber { + span: number + offset: number +} +export interface LITERAL_XsNumberLITERALSpanNumberOffsetNumberSmNumberLITERALSpanNumberOffsetNumberMdNumberLITERALSpanNumberOffsetNumberLgNumberLITERALSpanNumberOffsetNumber { + xs?: number | LITERAL_SpanNumberOffsetNumber + sm?: number | LITERAL_SpanNumberOffsetNumber + md?: number | LITERAL_SpanNumberOffsetNumber + lg?: number | LITERAL_SpanNumberOffsetNumber +} +export declare type IMPORT_default_UniformDataType_FROM_api_ohos_data_uniformTypeDescriptor = Object +export declare type IMPORT_ComponentContent_T_FROM_api_arkui_ComponentContent = Object export interface LITERAL_AngleNumberstringDirectionGradientDirectionColorsArrayResourceColornumberRepeatingBoolean { angle?: number | string direction?: GradientDirection colors: Array<[ResourceColor, number]> repeating?: boolean } -export interface LITERAL_TopResourceColorRightResourceColorBottomResourceColorLeftResourceColor { - top?: ResourceColor - right?: ResourceColor - bottom?: ResourceColor - left?: ResourceColor +export interface LITERAL_CenterLengthLengthStartNumberstringEndNumberstringRotationNumberstringColorsArrayResourceColornumberRepeatingBoolean { + center: [Length, Length] + start?: number | string + end?: number | string + rotation?: number | string + colors: Array<[ResourceColor, number]> + repeating?: boolean } -export interface LITERAL_TopBorderStyleRightBorderStyleBottomBorderStyleLeftBorderStyle { - top?: BorderStyle - right?: BorderStyle - bottom?: BorderStyle - left?: BorderStyle +export interface LITERAL_CenterLengthLengthRadiusNumberstringColorsArrayResourceColornumberRepeatingBoolean { + center: [Length, Length] + radius: number | string + colors: Array<[ResourceColor, number]> + repeating?: boolean } -export declare type IMPORT_UIContext_FROM_api_ohos_arkui_UIContext = Object +export declare type IMPORT_default_Blender_FROM_api_ohos_graphics_uiEffect = Object +export declare type IMPORT_CircleShape_FROM_api_ohos_arkui_shape = Object +export declare type IMPORT_EllipseShape_FROM_api_ohos_arkui_shape = Object +export declare type IMPORT_PathShape_FROM_api_ohos_arkui_shape = Object +export declare type IMPORT_RectShape_FROM_api_ohos_arkui_shape = Object +export declare type IMPORT_DrawContext_FROM_api_arkui_Graphics = Object export declare type IMPORT_LengthMetrics_FROM_api_arkui_Graphics = Object +export declare type IMPORT_default_Lattice_FROM_api_ohos_graphics_drawing = Object +export declare type IMPORT_IntentionCode_FROM_api_ohos_multimodalInput_intentionCode = Object +export declare type IMPORT_ColorMetrics_FROM_api_arkui_Graphics = Object +export declare class LITERAL_Identity { +} +export declare class LITERAL_Opacity { +} +export declare class LITERAL_Asymmetric { +} +export declare class LITERAL_Move { +} +export interface LITERAL_AppearTransitionEffectLITERALMoveTransitionEdgeDisappearTransitionEffectLITERALMoveTransitionEdge { + appear: TransitionEffect + disappear: TransitionEffect +} +export declare class LITERAL_SlideSwitch { +} +export declare class LITERAL_Translate { +} +export declare class LITERAL_Rotate { +} +export declare class LITERAL_Scale { +} +export interface LITERAL_FingersNumberRepeatBooleanDurationNumber { + fingers?: number + repeat?: boolean + duration?: number +} +export interface LITERAL_FingersNumberDirectionPanDirectionDistanceNumber { + fingers?: number + direction?: PanDirection + distance?: number +} +export interface LITERAL_FingersNumberDistanceNumber { + fingers?: number + distance?: number +} +export interface LITERAL_FingersNumberDirectionSwipeDirectionSpeedNumber { + fingers?: number + direction?: SwipeDirection + speed?: number +} +export interface LITERAL_FingersNumberAngleNumber { + fingers?: number + angle?: number +} +export interface LITERAL_AnchorStringAlignHorizontalAlign { + anchor: string + align: HorizontalAlign +} +export interface LITERAL_AnchorStringAlignVerticalAlign { + anchor: string + align: VerticalAlign +} +export declare type IMPORT_default_UnifiedData_FROM_api_ohos_data_unifiedDataChannel = Object +export declare type IMPORT_default_Summary_FROM_api_ohos_data_unifiedDataChannel = Object export declare type IMPORT_ImageModifier_FROM_api_arkui_ImageModifier = Object +export interface LITERAL_ValueStringActionVoid { + value: string + action: (() => void) +} +export interface LITERAL_IsVisibleBoolean { + isVisible: boolean +} +export interface LITERAL_ColorResourceColor { + color: ResourceColor +} +export declare type IMPORT_SymbolGlyphModifier_FROM_api_arkui_SymbolGlyphModifier = Object +export declare type IMPORT_UIContext_FROM_api_ohos_arkui_UIContext = Object +export declare type IMPORT_default_FROM_api_ohos_app_ability_Want = Object +export interface LITERAL_WantIMPORTdefaultFROMapiohosappabilityWant { + want: IMPORT_default_FROM_api_ohos_app_ability_Want +} +export interface LITERAL_YearNumberMonthNumberDayNumber { + year: number + month: number + day: number +} +export interface LITERAL_DateLITERALYearNumberMonthNumberDayNumberCurrentDataMonthDataPreDataMonthDataNextDataMonthDataControllerCalendarController { + date: LITERAL_YearNumberMonthNumberDayNumber + currentData: MonthData + preData: MonthData + nextData: MonthData + controller?: CalendarController +} export interface LITERAL_DxLengthDyLength { dx: Length dy: Length } -export interface LITERAL_Dx1LengthDy2Length { - dx1: Length - dy2: Length -} export declare class LITERAL_Evenodd { } export declare class LITERAL_Nonzero { } +export declare class LITERAL_High { +} +export declare class LITERAL_Low { +} +export declare class LITERAL_Medium { +} +export declare class LITERAL_Butt { +} +export declare class LITERAL_Round { +} +export declare class LITERAL_Square { +} +export declare class LITERAL_Bevel { +} +export declare class LITERAL_Miter { +} +export declare class LITERAL_Inherit { +} +export declare class LITERAL_Ltr { +} +export declare class LITERAL_Rtl { +} +export declare class LITERAL_Center { +} +export declare class LITERAL_End { +} +export declare class LITERAL_Left { +} +export declare class LITERAL_Right { +} +export declare class LITERAL_Start { +} +export declare class LITERAL_Alphabetic { +} +export declare class LITERAL_Bottom { +} +export declare class LITERAL_Hanging { +} +export declare class LITERAL_Ideographic { +} +export declare class LITERAL_Middle { +} +export declare class LITERAL_Top { +} export declare type IMPORT_LengthMetricsUnit_FROM_api_arkui_Graphics = Object +export declare type IMPORT_default_Canvas_FROM_api_ohos_graphics_drawing = Object +export declare type IMPORT_Scene_FROM_api_ohos_graphics_scene = Object +export interface LITERAL_WidthStringnumberHeightStringnumber { + width?: string | number + height?: string | number +} export declare type IMPORT_Callback_TerminationInfo_FROM_api_ohos_base = Object export declare type IMPORT_ErrorCallback_FROM_api_ohos_base = Object -export declare type IMPORT_default_FROM_api_ohos_app_ability_Want = Object +export declare type IMPORT_default_WindowStatusType_FROM_api_ohos_window = Object export interface LITERAL_WidthNumberHeightNumber { width: number height: number } +export interface LITERAL_ErrcodeNumberMsgString { + errcode: number + msg: string +} +export declare type UNION_ResourceColorLinearGradient = ResourceColor | LinearGradient +export interface LITERAL_OffsetRemainNumber { + offsetRemain: number +} +export interface LITERAL_NextBoolean { + next: boolean +} +export interface LITERAL_NextBooleanDirectionAxis { + next: boolean + direction?: Axis +} export declare class LITERAL_Auto { } -export declare type IMPORT_default_PixelMap_FROM_resource_image = Object -export declare type IMPORT_SymbolGlyphModifier_FROM_resource_symbol = Object +export declare type IMPORT_default_ColorFilter_FROM_api_ohos_graphics_drawing = Object +export interface LITERAL_WidthNumberHeightNumberComponentWidthNumberComponentHeightNumberLoadingStatusNumberContentWidthNumberContentHeightNumberContentOffsetXNumberContentOffsetYNumber { + width: number + height: number + componentWidth: number + componentHeight: number + loadingStatus: number + contentWidth: number + contentHeight: number + contentOffsetX: number + contentOffsetY: number +} +export declare type IMPORT_default_ResolutionQuality_FROM_api_ohos_multimedia_image = Object +export declare type IMPORT_DrawableDescriptor_FROM_api_ohos_arkui_drawableDescriptor = Object +export interface LITERAL_MinLengthLengthMaxLengthLength { + minLength: Length + maxLength: Length +} export declare type IMPORT_Callback_NavDestinationContext_FROM_api_ohos_base = Object export declare type IMPORT_default_SystemBarStyle_FROM_api_ohos_window = Object +export declare type TextModifier = IMPORT_TextModifier_FROM_api_arkui_TextModifier export declare type IMPORT_Callback_PopInfo_FROM_api_ohos_base = Object export declare class LITERAL_NavBar { } +export interface LITERAL_TargetStringTypeNavigationType { + target: string + type?: NavigationType +} +export declare type IMPORT_NodeController_FROM_api_ohos_arkui_node = Object +export interface LITERAL_WidthNumberstringHeightNumberstringCommandsString { + width?: number | string + height?: number | string + commands?: string +} +export declare type IMPORT_Callback_number_FROM_api_ohos_base = Object +export interface LITERAL_TemplatePluginComponentTemplateDataObject { + template: PluginComponentTemplate + data: Object +} export interface LITERAL_WidthNumberstringHeightNumberstringRadiusNumberstringArrayObject { width?: number | string height?: number | string @@ -96,19 +350,111 @@ export interface LITERAL_WidthNumberstringHeightNumberstringRadiusWidthNumberstr radiusWidth?: number | string radiusHeight?: number | string } -export interface LITERAL_XOffsetNumberstringYOffsetNumberstringAnimationScrollAnimationOptionsboolean { - xOffset: number | string - yOffset: number | string - animation?: ScrollAnimationOptions | boolean +export declare type IMPORT_default_LineMetrics_FROM_api_ohos_graphics_text = Object +export declare type IMPORT_default_RectWidthStyle_FROM_api_ohos_graphics_text = Object +export declare type IMPORT_default_RectHeightStyle_FROM_api_ohos_graphics_text = Object +export declare type IMPORT_default_TextBox_FROM_api_ohos_graphics_text = Object +export declare type IMPORT_default_Affinity_FROM_api_ohos_graphics_text = Object +export interface LITERAL_ValueStringPlaceholderResourceStrIconStringControllerSearchController { + value?: string + placeholder?: ResourceStr + icon?: string + controller?: SearchController } -export interface LITERAL_NextBoolean { - next: boolean +export interface LITERAL_XNumberstringYNumberstringWidthNumberstringHeightNumberstring { + x?: number | string + y?: number | string + width?: number | string + height?: number | string } -export interface LITERAL_NextBooleanDirectionAxis { - next: boolean - direction?: Axis +export interface LITERAL_IndexNumber { + index?: number +} +export interface LITERAL_MinSizeVP { + minSize: VP +} +export interface LITERAL_BarPositionBarPositionIndexNumberControllerTabsController { + barPosition?: BarPosition + index?: number + controller?: TabsController +} +export interface LITERAL_IconStringResourceTextStringResource { + icon?: string | Resource + text?: string | Resource +} +export declare type IMPORT_default_DateTimeOptions_FROM_api_ohos_intl = Object +export interface LITERAL_StyleCancelButtonStyleIconIconOptions { + style?: CancelButtonStyle + icon?: IconOptions +} +export interface LITERAL_FullscreenBoolean { + fullscreen: boolean +} +export interface LITERAL_DurationNumber { + duration: number +} +export interface LITERAL_TimeNumber { + time: number +} +export interface LITERAL_DataStringWebResourceRequest { + data: string | WebResourceRequest +} +export interface LITERAL_HandlerFunctionErrorObject { + handler: () => void + error: Object +} +export interface LITERAL_DetailObject { + detail: Object +} +export interface LITERAL_CallbackFunctionFileSelectorObject { + callback: () => void + fileSelector: Object +} +export declare type IMPORT_default_WebviewController_FROM_api_ohos_web_webview = Object +export interface LITERAL_ScriptStringCallbackResultstringvoid { + script: string + callback?: ((result: string) => void) +} +export interface LITERAL_DataStringMimeTypeStringEncodingStringBaseUrlStringHistoryUrlString { + data: string + mimeType: string + encoding: string + baseUrl?: string + historyUrl?: string +} +export interface LITERAL_UrlStringResourceHeadersArrayHeader { + url: string | Resource + headers?: Array
+} +export interface LITERAL_ObjectObjectNameStringMethodListArraystring { + object: Object + name: string + methodList: Array +} +export interface LITERAL_PlainTextString { + plainText: string +} +export interface LITERAL_IdStringTypeStringLibrarynameStringControllerXComponentController { + id: string + type: string + libraryname?: string + controller?: XComponentController +} +export interface LITERAL_IdStringTypeXComponentTypeLibrarynameStringControllerXComponentController { + id: string + type: XComponentType + libraryname?: string + controller?: XComponentController +} +export interface LITERAL_SurfaceWidthNumberSurfaceHeightNumber { + surfaceWidth: number + surfaceHeight: number +} +export interface LITERAL_ShownStringPixelMapResourceHiddenStringPixelMapResourceSwitchingStringPixelMapResource { + shown: string | PixelMap | Resource + hidden: string | PixelMap | Resource + switching?: string | PixelMap | Resource } -export declare type IMPORT_ComponentContent_FROM_api_arkui_ComponentContent = Object export declare type IMPORT_Callback_UIExtensionProxy_FROM_api_ohos_base = Object export declare type IMPORT_Callback_LITERAL_KeyStringObject_FROM_api_ohos_base = Object export interface LITERAL_KeyStringObject { @@ -118,35 +464,29 @@ export interface LITERAL_CodeNumberWantIMPORTdefaultFROMapiohosappabilityWant { code: number want?: IMPORT_default_FROM_api_ohos_app_ability_Want } -export declare type IMPORT_Callback_number_FROM_api_ohos_base = Object export declare class LITERAL_AsyncReceiverRegister { } export declare class LITERAL_SyncReceiverRegister { } -export interface LITERAL_X0NumberX1NumberX2NumberX3Number { - x0: number - x1: number - x2: number - x3: number -} -export interface LITERAL_TNumberXNumberYNumberZNumber { - t: number - x: number - y: number - z: number -} -export interface LITERAL_DetailObject { - detail: Object -} export declare type IMPORT_Callback_key_string_Object_FROM_api_ohos_base = Object export declare type IMPORT_Callback_code_number_want_IMPORT_default_FROM_api_ohos_app_ability_Want_FROM_api_ohos_base = Object +export interface INTERFACE_ICurve { + interpolate(fraction: number): number +} +export interface INTERFACE_AttributeModifier { + applyNormalAttribute(instance: T): void + applyPressedAttribute(instance: T): void + applyFocusedAttribute(instance: T): void + applyDisabledAttribute(instance: T): void + applySelectedAttribute(instance: T): void +} export interface INTERFACE_GestureModifier { - applyGesture(): void applyGesture(event: UIGestureEvent): void } export interface INTERFACE_CanvasPattern { setTransform(transform?: Matrix2D): void } +export declare type IMPORT_TextModifier_FROM_api_arkui_TextModifier = Object export interface INTERFACE_NavDestinationContext { pathInfo: NavPathInfo pathStack: NavPathStack @@ -157,12 +497,45 @@ export interface INTERFACE_NavigationTransitionProxy { to: NavContentInfo isInteractive?: boolean } -export interface INTERFACE_ICurve { - interpolate(fraction: number): number +export interface INTERFACE_EditMenuOptions { + onCreateMenu(menuItems: Array): Array + onMenuItemClick(menuItem: TextMenuItem, range: TextRange): boolean +} +export interface INTERFACE_TextEditControllerEx { + isEditing(): boolean + stopEditing(): void + setCaretOffset(offset: number): boolean + getCaretOffset(): number + getPreviewText(): PreviewText +} +export interface INTERFACE_TextBaseController { + setSelection(selectionStart: number, selectionEnd: number, options?: SelectionOptions): void + closeSelectionMenu(): void + getLayoutManager(): LayoutManager +} +export interface INTERFACE_LayoutManager { + getLineCount(): number + getGlyphPositionAtCoordinate(x: number, y: number): PositionWithAffinity + getLineMetrics(lineNumber: number): LineMetrics + getRectsForRange(range: TextRange, widthStyle: RectWidthStyle, heightStyle: RectHeightStyle): Array +} +export interface INTERFACE_StyledStringController { + setStyledString(styledString: StyledString): void + getStyledString(): MutableStyledString +} +export interface INTERFACE_SwiperContentTransitionProxy { + selectedIndex: number + index: number + position: number + mainAxisLength: number +} +export interface INTERFACE_TabContentTransitionProxy { + from: number + to: number } export interface INTERFACE_UIExtensionProxy { - send(data: Record): void - sendSync(data: Record): Record + send(data: LITERAL_KeyStringObject): void + sendSync(data: LITERAL_KeyStringObject): LITERAL_KeyStringObject on(type: LITERAL_AsyncReceiverRegister, callback: ((proxy: UIExtensionProxy) => void)): void on(type: LITERAL_SyncReceiverRegister, callback: ((proxy: UIExtensionProxy) => void)): void off(type: LITERAL_AsyncReceiverRegister, callback?: ((proxy: UIExtensionProxy) => void)): void diff --git a/arkoala-arkts/arkui/src/generated/arkts/NativeModule.ts b/arkoala-arkts/arkui/src/generated/arkts/NativeModule.ts index c3653c229..eba9c3b65 100644 --- a/arkoala-arkts/arkui/src/generated/arkts/NativeModule.ts +++ b/arkoala-arkts/arkui/src/generated/arkts/NativeModule.ts @@ -54,53 +54,585 @@ export class NativeModule { return callCallback(id, args, length) } + native static _AbilityComponentInterface_setAbilityComponentOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _AbilityComponentAttribute_onConnect(ptr: KPointer, callback: KInt): void + native static _AbilityComponentAttribute_onDisconnect(ptr: KPointer, callback: KInt): void + native static _AlphabetIndexerInterface_setAlphabetIndexerOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _AlphabetIndexerAttribute_onSelected(ptr: KPointer, callback: KInt): void + native static _AlphabetIndexerAttribute_color(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _AlphabetIndexerAttribute_selectedColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _AlphabetIndexerAttribute_popupColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _AlphabetIndexerAttribute_selectedBackgroundColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _AlphabetIndexerAttribute_popupBackground(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _AlphabetIndexerAttribute_popupSelectedColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _AlphabetIndexerAttribute_popupUnselectedColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _AlphabetIndexerAttribute_popupItemBackgroundColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _AlphabetIndexerAttribute_usingPopup(ptr: KPointer, value: KInt): void + native static _AlphabetIndexerAttribute_selectedFont(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _AlphabetIndexerAttribute_popupFont(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _AlphabetIndexerAttribute_popupItemFont(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _AlphabetIndexerAttribute_itemSize(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _AlphabetIndexerAttribute_font(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _AlphabetIndexerAttribute_alignStyle(ptr: KPointer, value: KInt, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _AlphabetIndexerAttribute_onSelect(ptr: KPointer, callback: KInt): void + native static _AlphabetIndexerAttribute_onRequestPopupData(ptr: KPointer, callback: KInt): void + native static _AlphabetIndexerAttribute_onPopupSelect(ptr: KPointer, callback: KInt): void + native static _AlphabetIndexerAttribute_selected(ptr: KPointer, index: number): void + native static _AlphabetIndexerAttribute_popupPosition(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _AlphabetIndexerAttribute_autoCollapse(ptr: KPointer, value: KInt): void + native static _AlphabetIndexerAttribute_popupItemBorderRadius(ptr: KPointer, value: number): void + native static _AlphabetIndexerAttribute_itemBorderRadius(ptr: KPointer, value: number): void + native static _AlphabetIndexerAttribute_popupBackgroundBlurStyle(ptr: KPointer, value: KInt): void + native static _AlphabetIndexerAttribute_popupTitleBackground(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _AlphabetIndexerAttribute_enableHapticFeedback(ptr: KPointer, value: KInt): void + native static _AnimatorInterface_setAnimatorOptions(ptr: KPointer, value: KStringPtr): void + native static _AnimatorAttribute_state(ptr: KPointer, value: KInt): void + native static _AnimatorAttribute_duration(ptr: KPointer, value: number): void + native static _AnimatorAttribute_curve(ptr: KPointer, value: KInt): void + native static _AnimatorAttribute_delay(ptr: KPointer, value: number): void + native static _AnimatorAttribute_fillMode(ptr: KPointer, value: KInt): void + native static _AnimatorAttribute_iterations(ptr: KPointer, value: number): void + native static _AnimatorAttribute_playMode(ptr: KPointer, value: KInt): void + native static _AnimatorAttribute_motion(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _AnimatorAttribute_onStart(ptr: KPointer, event: KInt): void + native static _AnimatorAttribute_onPause(ptr: KPointer, event: KInt): void + native static _AnimatorAttribute_onRepeat(ptr: KPointer, event: KInt): void + native static _AnimatorAttribute_onCancel(ptr: KPointer, event: KInt): void + native static _AnimatorAttribute_onFinish(ptr: KPointer, event: KInt): void + native static _AnimatorAttribute_onFrame(ptr: KPointer, event: KInt): void + native static _BadgeInterface_setBadgeOptions0(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _BadgeInterface_setBadgeOptions1(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _BlankInterface_setBlankOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _BlankAttribute_color(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _ButtonInterface_setButtonOptions(ptr: KPointer): void + native static _ButtonInterface_setButtonOptions0(ptr: KPointer): void + native static _ButtonInterface_setButtonOptions1(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ButtonInterface_setButtonOptions2(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _ButtonAttribute_type(ptr: KPointer, value: KInt): void + native static _ButtonAttribute_stateEffect(ptr: KPointer, value: KInt): void + native static _ButtonAttribute_buttonStyle(ptr: KPointer, value: KInt): void + native static _ButtonAttribute_controlSize(ptr: KPointer, value: KInt): void + native static _ButtonAttribute_role(ptr: KPointer, value: KInt): void + native static _ButtonAttribute_fontColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ButtonAttribute_fontSize(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ButtonAttribute_fontWeight(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ButtonAttribute_fontStyle(ptr: KPointer, value: KInt): void + native static _ButtonAttribute_fontFamily(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ButtonAttribute_contentModifier(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _ButtonAttribute_labelStyle(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _CalendarPickerInterface_setCalendarPickerOptions(ptr: KPointer): void + native static _CalendarInterface_setCalendarOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CalendarAttribute_showLunar(ptr: KPointer, value: KInt): void + native static _CalendarAttribute_showHoliday(ptr: KPointer, value: KInt): void + native static _CalendarAttribute_needSlide(ptr: KPointer, value: KInt): void + native static _CalendarAttribute_startOfWeek(ptr: KPointer, value: number): void + native static _CalendarAttribute_offDays(ptr: KPointer, value: number): void + native static _CalendarAttribute_direction(ptr: KPointer, value: KInt): void + native static _CalendarAttribute_currentDayStyle(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CalendarAttribute_nonCurrentDayStyle(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CalendarAttribute_todayStyle(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CalendarAttribute_weekStyle(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CalendarAttribute_workStateStyle(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CalendarAttribute_onSelectChange(ptr: KPointer, event: KInt): void + native static _CalendarAttribute_onRequestData(ptr: KPointer, event: KInt): void + native static _CalendarPickerInterface_setCalendarPickerOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _CalendarPickerAttribute_edgeAlign(ptr: KPointer, alignType: KInt, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _CalendarPickerAttribute_altEdgeAlign(ptr: KPointer, alignType: KInt, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _CanvasInterface_setCanvasOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CalendarPickerAttribute_textStyle(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CalendarPickerAttribute_onChange(ptr: KPointer, callback: KInt): void + native static _CanvasInterface_setCanvasOptions0(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CanvasInterface_setCanvasOptions1(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _CanvasAttribute_onReady(ptr: KPointer, event: KInt): void native static _CanvasAttribute_enableAnalyzer(ptr: KPointer, enable: KInt): void - native static _ColumnInterface_setColumnOptions(ptr: KPointer): void + native static _CheckboxInterface_setCheckboxOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CheckboxAttribute_select(ptr: KPointer, value: KInt): void + native static _CheckboxAttribute_selectedColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CheckboxAttribute_shape(ptr: KPointer, value: KInt): void + native static _CheckboxAttribute_unselectedColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CheckboxAttribute_mark(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CheckboxAttribute_onChange(ptr: KPointer, callback: KInt): void + native static _CheckboxAttribute_contentModifier(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CheckboxGroupInterface_setCheckboxGroupOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CheckboxGroupAttribute_selectAll(ptr: KPointer, value: KInt): void + native static _CheckboxGroupAttribute_selectedColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CheckboxGroupAttribute_unselectedColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CheckboxGroupAttribute_mark(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CheckboxGroupAttribute_onChange(ptr: KPointer, callback: KInt): void + native static _CheckboxGroupAttribute_checkboxShape(ptr: KPointer, value: KInt): void + native static _CircleInterface_setCircleOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ColumnInterface_setColumnOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _ColumnAttribute_alignItems(ptr: KPointer, value: KInt): void - native static _CommonMethod_stateStyles(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _CommonMethod_backdropBlur(ptr: KPointer, value: number, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _CommonMethod_width(ptr: KPointer, value: string|number|object): void - native static _CommonMethod_height(ptr: KPointer, value: string|number|object): void - native static _CommonMethod_key(ptr: KPointer, value: KStringPtr): void - native static _CommonMethod_restoreId(ptr: KPointer, value: number): void + native static _ColumnAttribute_justifyContent(ptr: KPointer, value: KInt): void + native static _ColumnAttribute_pointLight(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ColumnAttribute_reverse(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ColumnSplitInterface_setColumnSplitOptions(ptr: KPointer): void + native static _ColumnSplitAttribute_resizeable(ptr: KPointer, value: KInt): void + native static _ColumnSplitAttribute_divider(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_width(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_height(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_drawModifier(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_customProperty(ptr: KPointer, name: KStringPtr, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_expandSafeArea(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_responseRegion(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_mouseResponseRegion(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_size(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_constraintSize(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_touchable(ptr: KPointer, value: KInt): void + native static _CommonMethod_hitTestBehavior(ptr: KPointer, value: KInt): void + native static _CommonMethod_onChildTouchTest(ptr: KPointer, event: KInt): void + native static _CommonMethod_layoutWeight(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _CommonMethod_padding(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _CommonMethod_bindSheet(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_margin(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_background(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_backgroundColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_pixelRound(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_backgroundImage(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_backgroundImageSize(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_backgroundImagePosition(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _CommonMethod_backgroundBlurStyle(ptr: KPointer, value: KInt, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_backgroundEffect(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_backgroundImageResizable(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_foregroundEffect(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_visualEffect(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_backgroundFilter(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_foregroundFilter(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_compositingFilter(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_foregroundBlurStyle(ptr: KPointer, value: KInt, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_opacity(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_border(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_borderStyle(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_borderWidth(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_borderColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_borderRadius(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_borderImage(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_outline(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_outlineStyle(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_outlineWidth(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_outlineColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_outlineRadius(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_foregroundColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_onClick0(ptr: KPointer, event: KInt): void + native static _CommonMethod_onClick1(ptr: KPointer, event: KInt, distanceThreshold: number): void + native static _CommonMethod_onHover(ptr: KPointer, event: KInt): void + native static _CommonMethod_onAccessibilityHover(ptr: KPointer, callback: KInt): void + native static _CommonMethod_hoverEffect(ptr: KPointer, value: KInt): void + native static _CommonMethod_onMouse(ptr: KPointer, event: KInt): void + native static _CommonMethod_onTouch(ptr: KPointer, event: KInt): void + native static _CommonMethod_onKeyEvent(ptr: KPointer, event: KInt): void + native static _CommonMethod_onKeyPreIme(ptr: KPointer, event: KInt): void + native static _CommonMethod_focusable(ptr: KPointer, value: KInt): void + native static _CommonMethod_onFocus(ptr: KPointer, event: KInt): void + native static _CommonMethod_onBlur(ptr: KPointer, event: KInt): void + native static _CommonMethod_tabIndex(ptr: KPointer, index: number): void + native static _CommonMethod_defaultFocus(ptr: KPointer, value: KInt): void + native static _CommonMethod_groupDefaultFocus(ptr: KPointer, value: KInt): void + native static _CommonMethod_focusOnTouch(ptr: KPointer, value: KInt): void + native static _CommonMethod_focusBox(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_focusScopeId(ptr: KPointer, id: KStringPtr, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_focusScopePriority(ptr: KPointer, scopeId: KStringPtr, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_animation(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_transition0(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_transition1(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_gesture(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_priorityGesture(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_parallelGesture(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_blur(ptr: KPointer, value: number, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_linearGradientBlur(ptr: KPointer, value: number, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_motionBlur(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_brightness(ptr: KPointer, value: number): void + native static _CommonMethod_contrast(ptr: KPointer, value: number): void + native static _CommonMethod_grayscale(ptr: KPointer, value: number): void + native static _CommonMethod_colorBlend(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_saturate(ptr: KPointer, value: number): void + native static _CommonMethod_sepia(ptr: KPointer, value: number): void + native static _CommonMethod_invert(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_systemBarEffect(ptr: KPointer): void + native static _CommonMethod_hueRotate(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_useShadowBatching(ptr: KPointer, value: KInt): void + native static _CommonMethod_useEffect(ptr: KPointer, value: KInt): void + native static _CommonMethod_backdropBlur(ptr: KPointer, value: number, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_renderGroup(ptr: KPointer, value: KInt): void + native static _CommonMethod_freeze(ptr: KPointer, value: KInt): void + native static _CommonMethod_translate(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_scale(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_gridSpan(ptr: KPointer, value: number): void + native static _CommonMethod_gridOffset(ptr: KPointer, value: number): void + native static _CommonMethod_rotate(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_transform(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_onAppear(ptr: KPointer, event: KInt): void + native static _CommonMethod_onDisAppear(ptr: KPointer, event: KInt): void + native static _CommonMethod_onAttach(ptr: KPointer, callback: KInt): void + native static _CommonMethod_onDetach(ptr: KPointer, callback: KInt): void + native static _CommonMethod_onAreaChange(ptr: KPointer, event: KInt): void + native static _CommonMethod_visibility(ptr: KPointer, value: KInt): void + native static _CommonMethod_flexGrow(ptr: KPointer, value: number): void + native static _CommonMethod_flexShrink(ptr: KPointer, value: number): void + native static _CommonMethod_flexBasis(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_alignSelf(ptr: KPointer, value: KInt): void + native static _CommonMethod_displayPriority(ptr: KPointer, value: number): void + native static _CommonMethod_zIndex(ptr: KPointer, value: number): void + native static _CommonMethod_sharedTransition(ptr: KPointer, id: KStringPtr, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_direction(ptr: KPointer, value: KInt): void + native static _CommonMethod_align(ptr: KPointer, value: KInt): void + native static _CommonMethod_position(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_markAnchor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_offset(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_enabled(ptr: KPointer, value: KInt): void + native static _CommonMethod_useSizeType(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_alignRules0(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_alignRules1(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_chainMode(ptr: KPointer, direction: KInt, style: KInt): void + native static _CommonMethod_aspectRatio(ptr: KPointer, value: number): void + native static _CommonMethod_clickEffect(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_onDragStart(ptr: KPointer, event: KInt): void + native static _CommonMethod_onDragEnter(ptr: KPointer, event: KInt): void + native static _CommonMethod_onDragMove(ptr: KPointer, event: KInt): void + native static _CommonMethod_onDragLeave(ptr: KPointer, event: KInt): void + native static _CommonMethod_onDrop(ptr: KPointer, event: KInt): void + native static _CommonMethod_onDragEnd(ptr: KPointer, event: KInt): void + native static _CommonMethod_allowDrop(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_draggable(ptr: KPointer, value: KInt): void + native static _CommonMethod_dragPreview(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _CommonMethod_dragPreviewOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_onPreDrag(ptr: KPointer, callback: KInt): void + native static _CommonMethod_overlay(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _CommonMethod_linearGradient(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _CommonMethod_border(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _CommonMethod_onChildTouchTest(ptr: KPointer, event: KInt): void + native static _CommonMethod_sweepGradient(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_radialGradient(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_motionPath(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_shadow(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_blendMode(ptr: KPointer, value: KInt, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_advancedBlendMode(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_clip0(ptr: KPointer, value: KInt): void + native static _CommonMethod_clip1(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_clipShape(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_mask0(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_mask1(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_maskShape(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_key(ptr: KPointer, value: KStringPtr): void + native static _CommonMethod_id(ptr: KPointer, value: KStringPtr): void + native static _CommonMethod_geometryTransition0(ptr: KPointer, id: KStringPtr): void + native static _CommonMethod_geometryTransition1(ptr: KPointer, id: KStringPtr, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_bindPopup(ptr: KPointer, show: KInt, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_bindMenu0(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_bindMenu1(ptr: KPointer, isShow: KInt, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_bindContextMenu0(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32, responseType: KInt): void + native static _CommonMethod_bindContextMenu1(ptr: KPointer, isShown: KInt, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_bindContentCover0(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_bindContentCover1(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_bindSheet(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_stateStyles(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_restoreId(ptr: KPointer, value: number): void + native static _CommonMethod_onVisibleAreaChange(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32, event: KInt): void + native static _CommonMethod_sphericalEffect(ptr: KPointer, value: number): void + native static _CommonMethod_lightUpEffect(ptr: KPointer, value: number): void + native static _CommonMethod_pixelStretchEffect(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_keyboardShortcut(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_accessibilityGroup(ptr: KPointer, value: KInt): void + native static _CommonMethod_accessibilityText0(ptr: KPointer, value: KStringPtr): void + native static _CommonMethod_accessibilityText1(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_accessibilityTextHint(ptr: KPointer, value: KStringPtr): void + native static _CommonMethod_accessibilityDescription0(ptr: KPointer, value: KStringPtr): void + native static _CommonMethod_accessibilityDescription1(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_accessibilityLevel(ptr: KPointer, value: KStringPtr): void + native static _CommonMethod_accessibilityVirtualNode(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_obscured(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_reuseId(ptr: KPointer, id: KStringPtr): void + native static _CommonMethod_renderFit(ptr: KPointer, fitMode: KInt): void native static _CommonMethod_gestureModifier(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_backgroundBrightness(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonMethod_onGestureJudgeBegin(ptr: KPointer, callback: KInt): void native static _CommonMethod_onGestureRecognizerJudgeBegin(ptr: KPointer, callback: KInt): void - native static _CommonMethod_onClick0(ptr: KPointer, event: KInt): void - native static _CommonMethod_onClick1(ptr: KPointer, event: KInt, distanceThreshold: number): void + native static _CommonMethod_shouldBuiltInRecognizerParallelWith(ptr: KPointer, callback: KInt): void + native static _CommonMethod_monopolizeEvents(ptr: KPointer, monopolize: KInt): void + native static _CommonMethod_onTouchIntercept(ptr: KPointer, callback: KInt): void + native static _CommonMethod_onSizeChange(ptr: KPointer, event: KInt): void + native static _CommonShapeMethod_stroke(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonShapeMethod_fill(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonShapeMethod_strokeDashOffset(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonShapeMethod_strokeLineCap(ptr: KPointer, value: KInt): void + native static _CommonShapeMethod_strokeLineJoin(ptr: KPointer, value: KInt): void + native static _CommonShapeMethod_strokeMiterLimit(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonShapeMethod_strokeOpacity(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonShapeMethod_fillOpacity(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonShapeMethod_strokeWidth(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CommonShapeMethod_antiAlias(ptr: KPointer, value: KInt): void + native static _CommonShapeMethod_strokeDashArray(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _CommonInterface_setCommonOptions(ptr: KPointer): void + native static _ScrollableCommonMethod_scrollBar(ptr: KPointer, barState: KInt): void + native static _ScrollableCommonMethod_scrollBarColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _ScrollableCommonMethod_scrollBarWidth(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _CommonShapeMethod_stroke(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ScrollableCommonMethod_edgeEffect(ptr: KPointer, edgeEffect: KInt, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ScrollableCommonMethod_fadingEdge(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ScrollableCommonMethod_nestedScroll(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ScrollableCommonMethod_enableScrollInteraction(ptr: KPointer, value: KInt): void + native static _ScrollableCommonMethod_friction(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ScrollableCommonMethod_onScroll(ptr: KPointer, event: KInt): void + native static _ScrollableCommonMethod_onDidScroll(ptr: KPointer, handler: KInt): void + native static _ScrollableCommonMethod_onReachStart(ptr: KPointer, event: KInt): void + native static _ScrollableCommonMethod_onReachEnd(ptr: KPointer, event: KInt): void + native static _ScrollableCommonMethod_onScrollStart(ptr: KPointer, event: KInt): void + native static _ScrollableCommonMethod_onScrollStop(ptr: KPointer, event: KInt): void + native static _ScrollableCommonMethod_flingSpeedLimit(ptr: KPointer, speedLimit: number): void + native static _Component3DInterface_setComponent3DOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _Component3DAttribute_environment(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _Component3DAttribute_customRender(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32, selfRenderUpdate: KInt): void + native static _Component3DAttribute_shader(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _Component3DAttribute_shaderImageTexture(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _Component3DAttribute_shaderInputBuffer(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _Component3DAttribute_renderWidth(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _Component3DAttribute_renderHeight(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ContainerSpanInterface_setContainerSpanOptions(ptr: KPointer): void + native static _ContainerSpanAttribute_textBackgroundStyle(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CounterInterface_setCounterOptions(ptr: KPointer): void + native static _CounterAttribute_onInc(ptr: KPointer, event: KInt): void + native static _CounterAttribute_onDec(ptr: KPointer, event: KInt): void + native static _CounterAttribute_enableDec(ptr: KPointer, value: KInt): void + native static _CounterAttribute_enableInc(ptr: KPointer, value: KInt): void + native static _DataPanelInterface_setDataPanelOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _DataPanelAttribute_closeEffect(ptr: KPointer, value: KInt): void + native static _DataPanelAttribute_valueColors(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _DataPanelAttribute_trackBackgroundColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _DataPanelAttribute_strokeWidth(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _DataPanelAttribute_trackShadow(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _DataPanelAttribute_contentModifier(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _DatePickerInterface_setDatePickerOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _DatePickerAttribute_lunar(ptr: KPointer, value: KInt): void + native static _DatePickerAttribute_disappearTextStyle(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _DatePickerAttribute_textStyle(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _DatePickerAttribute_selectedTextStyle(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _DatePickerAttribute_onChange(ptr: KPointer, callback: KInt): void + native static _DatePickerAttribute_onDateChange(ptr: KPointer, callback: KInt): void + native static _DividerInterface_setDividerOptions(ptr: KPointer): void + native static _DividerAttribute_vertical(ptr: KPointer, value: KInt): void + native static _DividerAttribute_color(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _DividerAttribute_strokeWidth(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _DividerAttribute_lineCap(ptr: KPointer, value: KInt): void + native static _EffectComponentInterface_setEffectComponentOptions(ptr: KPointer): void + native static _EllipseInterface_setEllipseOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _EmbeddedComponentInterface_setEmbeddedComponentOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32, type: KInt): void native static _EmbeddedComponentAttribute_onTerminated(ptr: KPointer, callback: KInt): void native static _EmbeddedComponentAttribute_onError(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _FormComponentInterface_setFormComponentOptions(ptr: KPointer): void + native static _FlexInterface_setFlexOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _FlexAttribute_pointLight(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _FlowItemInterface_setFlowItemOptions(ptr: KPointer): void + native static _FolderStackInterface_setFolderStackOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _FolderStackAttribute_alignContent(ptr: KPointer, value: KInt): void + native static _FolderStackAttribute_onFolderStateChange(ptr: KPointer, callback: KInt): void + native static _FolderStackAttribute_onHoverStatusChange(ptr: KPointer, handler: KInt): void + native static _FolderStackAttribute_enableAnimation(ptr: KPointer, value: KInt): void + native static _FolderStackAttribute_autoHalfFold(ptr: KPointer, value: KInt): void + native static _FormComponentInterface_setFormComponentOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _FormComponentAttribute_size(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _FormComponentAttribute_moduleName(ptr: KPointer, value: KStringPtr): void + native static _FormComponentAttribute_dimension(ptr: KPointer, value: KInt): void + native static _FormComponentAttribute_allowUpdate(ptr: KPointer, value: KInt): void + native static _FormComponentAttribute_visibility(ptr: KPointer, value: KInt): void native static _FormComponentAttribute_onAcquired(ptr: KPointer, callback: KInt): void + native static _FormComponentAttribute_onError(ptr: KPointer, callback: KInt): void + native static _FormComponentAttribute_onRouter(ptr: KPointer, callback: KInt): void + native static _FormComponentAttribute_onUninstall(ptr: KPointer, callback: KInt): void + native static _FormComponentAttribute_onLoad(ptr: KPointer, callback: KInt): void + native static _FormLinkInterface_setFormLinkOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _GaugeInterface_setGaugeOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _GaugeAttribute_value(ptr: KPointer, value: number): void + native static _GaugeAttribute_startAngle(ptr: KPointer, angle: number): void + native static _GaugeAttribute_endAngle(ptr: KPointer, angle: number): void + native static _GaugeAttribute_colors(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _GaugeAttribute_strokeWidth(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _GaugeAttribute_description(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _GaugeAttribute_trackShadow(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _GaugeAttribute_indicator(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _GaugeAttribute_privacySensitive(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _GaugeAttribute_contentModifier(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _GridInterface_setGridOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _GridAttribute_columnsTemplate(ptr: KPointer, value: KStringPtr): void + native static _GridAttribute_rowsTemplate(ptr: KPointer, value: KStringPtr): void + native static _GridAttribute_columnsGap(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _GridAttribute_rowsGap(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _GridAttribute_scrollBarWidth(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _GridAttribute_scrollBarColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _GridAttribute_scrollBar(ptr: KPointer, value: KInt): void + native static _GridAttribute_onScrollBarUpdate(ptr: KPointer, event: KInt): void + native static _GridAttribute_onScrollIndex(ptr: KPointer, event: KInt): void + native static _GridAttribute_cachedCount(ptr: KPointer, value: number): void + native static _GridAttribute_editMode(ptr: KPointer, value: KInt): void + native static _GridAttribute_multiSelectable(ptr: KPointer, value: KInt): void + native static _GridAttribute_maxCount(ptr: KPointer, value: number): void + native static _GridAttribute_minCount(ptr: KPointer, value: number): void + native static _GridAttribute_cellLength(ptr: KPointer, value: number): void + native static _GridAttribute_layoutDirection(ptr: KPointer, value: KInt): void + native static _GridAttribute_supportAnimation(ptr: KPointer, value: KInt): void + native static _GridAttribute_onItemDragStart(ptr: KPointer, event: KInt): void + native static _GridAttribute_onItemDragEnter(ptr: KPointer, event: KInt): void + native static _GridAttribute_onItemDragMove(ptr: KPointer, event: KInt): void + native static _GridAttribute_onItemDragLeave(ptr: KPointer, event: KInt): void + native static _GridAttribute_onItemDrop(ptr: KPointer, event: KInt): void + native static _GridAttribute_edgeEffect(ptr: KPointer, value: KInt, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _GridAttribute_nestedScroll(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _GridAttribute_enableScrollInteraction(ptr: KPointer, value: KInt): void + native static _GridAttribute_friction(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _GridAttribute_alignItems(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _GridAttribute_onScroll(ptr: KPointer, event: KInt): void + native static _GridAttribute_onReachStart(ptr: KPointer, event: KInt): void + native static _GridAttribute_onReachEnd(ptr: KPointer, event: KInt): void + native static _GridAttribute_onScrollStart(ptr: KPointer, event: KInt): void + native static _GridAttribute_onScrollStop(ptr: KPointer, event: KInt): void + native static _GridAttribute_onScrollFrameBegin(ptr: KPointer, event: KInt): void + native static _GridItemInterface_setGridItemOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _GridItemAttribute_rowStart(ptr: KPointer, value: number): void + native static _GridItemAttribute_rowEnd(ptr: KPointer, value: number): void + native static _GridItemAttribute_columnStart(ptr: KPointer, value: number): void + native static _GridItemAttribute_columnEnd(ptr: KPointer, value: number): void + native static _GridItemAttribute_forceRebuild(ptr: KPointer, value: KInt): void + native static _GridItemAttribute_selectable(ptr: KPointer, value: KInt): void + native static _GridItemAttribute_selected(ptr: KPointer, value: KInt): void + native static _GridItemAttribute_onSelect(ptr: KPointer, event: KInt): void + native static _GridColInterface_setGridColOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _GridColAttribute_span(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _GridColAttribute_gridColOffset(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _GridColAttribute_order(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _GridContainerInterface_setGridContainerOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _ImageInterface_setImageOptions(ptr: KPointer): void - native static _ListInterface_setListOptions(ptr: KPointer): void - native static _ListAttribute_someOptional(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _GridRowInterface_setGridRowOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _GridRowAttribute_onBreakpointChange(ptr: KPointer, callback: KInt): void + native static _GridRowAttribute_alignItems(ptr: KPointer, value: KInt): void + native static _HyperlinkInterface_setHyperlinkOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _HyperlinkAttribute_color(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ImageInterface_setImageOptions0(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ImageInterface_setImageOptions1(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ImageInterface_setImageOptions2(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ImageAttribute_alt(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ImageAttribute_matchTextDirection(ptr: KPointer, value: KInt): void + native static _ImageAttribute_fitOriginalSize(ptr: KPointer, value: KInt): void + native static _ImageAttribute_fillColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ImageAttribute_objectFit(ptr: KPointer, value: KInt): void + native static _ImageAttribute_objectRepeat(ptr: KPointer, value: KInt): void + native static _ImageAttribute_autoResize(ptr: KPointer, value: KInt): void + native static _ImageAttribute_renderMode(ptr: KPointer, value: KInt): void + native static _ImageAttribute_dynamicRangeMode(ptr: KPointer, value: KInt): void + native static _ImageAttribute_interpolation(ptr: KPointer, value: KInt): void + native static _ImageAttribute_sourceSize(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ImageAttribute_syncLoad(ptr: KPointer, value: KInt): void + native static _ImageAttribute_colorFilter(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ImageAttribute_copyOption(ptr: KPointer, value: KInt): void + native static _ImageAttribute_draggable(ptr: KPointer, value: KInt): void + native static _ImageAttribute_pointLight(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ImageAttribute_edgeAntialiasing(ptr: KPointer, value: number): void + native static _ImageAttribute_onComplete(ptr: KPointer, callback: KInt): void + native static _ImageAttribute_onError(ptr: KPointer, callback: KInt): void + native static _ImageAttribute_onFinish(ptr: KPointer, event: KInt): void + native static _ImageAttribute_enableAnalyzer(ptr: KPointer, enable: KInt): void + native static _ImageAttribute_analyzerConfig(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ImageAttribute_resizable(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ImageAttribute_privacySensitive(ptr: KPointer, supported: KInt): void + native static _ImageAttribute_enhancedImageQuality(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ImageAnimatorInterface_setImageAnimatorOptions(ptr: KPointer): void + native static _ImageAnimatorAttribute_images(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ImageAnimatorAttribute_state(ptr: KPointer, value: KInt): void + native static _ImageAnimatorAttribute_duration(ptr: KPointer, value: number): void + native static _ImageAnimatorAttribute_reverse(ptr: KPointer, value: KInt): void + native static _ImageAnimatorAttribute_fixedSize(ptr: KPointer, value: KInt): void + native static _ImageAnimatorAttribute_preDecode(ptr: KPointer, value: number): void + native static _ImageAnimatorAttribute_fillMode(ptr: KPointer, value: KInt): void + native static _ImageAnimatorAttribute_iterations(ptr: KPointer, value: number): void + native static _ImageAnimatorAttribute_onStart(ptr: KPointer, event: KInt): void + native static _ImageAnimatorAttribute_onPause(ptr: KPointer, event: KInt): void + native static _ImageAnimatorAttribute_onRepeat(ptr: KPointer, event: KInt): void + native static _ImageAnimatorAttribute_onCancel(ptr: KPointer, event: KInt): void + native static _ImageAnimatorAttribute_onFinish(ptr: KPointer, event: KInt): void + native static _ImageSpanInterface_setImageSpanOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ImageSpanAttribute_verticalAlign(ptr: KPointer, value: KInt): void + native static _ImageSpanAttribute_colorFilter(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ImageSpanAttribute_objectFit(ptr: KPointer, value: KInt): void + native static _ImageSpanAttribute_onComplete(ptr: KPointer, callback: KInt): void + native static _ImageSpanAttribute_onError(ptr: KPointer, callback: KInt): void + native static _ImageSpanAttribute_alt(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _LineInterface_setLineOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _LineAttribute_startPoint(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _LineAttribute_endPoint(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ListInterface_setListOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ListAttribute_lanes(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ListAttribute_alignListItem(ptr: KPointer, value: KInt): void + native static _ListAttribute_listDirection(ptr: KPointer, value: KInt): void + native static _ListAttribute_scrollBar(ptr: KPointer, value: KInt): void + native static _ListAttribute_edgeEffect(ptr: KPointer, value: KInt, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ListAttribute_contentStartOffset(ptr: KPointer, value: number): void + native static _ListAttribute_contentEndOffset(ptr: KPointer, value: number): void + native static _ListAttribute_divider(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ListAttribute_editMode(ptr: KPointer, value: KInt): void + native static _ListAttribute_multiSelectable(ptr: KPointer, value: KInt): void + native static _ListAttribute_cachedCount(ptr: KPointer, value: number): void + native static _ListAttribute_chainAnimation(ptr: KPointer, value: KInt): void + native static _ListAttribute_chainAnimationOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ListAttribute_sticky(ptr: KPointer, value: KInt): void + native static _ListAttribute_scrollSnapAlign(ptr: KPointer, value: KInt): void + native static _ListAttribute_nestedScroll(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ListAttribute_enableScrollInteraction(ptr: KPointer, value: KInt): void + native static _ListAttribute_friction(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ListAttribute_childrenMainSize(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ListAttribute_maintainVisibleContentPosition(ptr: KPointer, enabled: KInt): void + native static _ListAttribute_onScroll(ptr: KPointer, event: KInt): void + native static _ListAttribute_onScrollIndex(ptr: KPointer, event: KInt): void native static _ListAttribute_onScrollVisibleContentChange(ptr: KPointer, handler: KInt): void + native static _ListAttribute_onReachStart(ptr: KPointer, event: KInt): void + native static _ListAttribute_onReachEnd(ptr: KPointer, event: KInt): void + native static _ListAttribute_onScrollStart(ptr: KPointer, event: KInt): void + native static _ListAttribute_onScrollStop(ptr: KPointer, event: KInt): void + native static _ListAttribute_onItemDelete(ptr: KPointer, event: KInt): void + native static _ListAttribute_onItemMove(ptr: KPointer, event: KInt): void + native static _ListAttribute_onItemDragStart(ptr: KPointer, event: KInt): void + native static _ListAttribute_onItemDragEnter(ptr: KPointer, event: KInt): void + native static _ListAttribute_onItemDragMove(ptr: KPointer, event: KInt): void + native static _ListAttribute_onItemDragLeave(ptr: KPointer, event: KInt): void + native static _ListAttribute_onItemDrop(ptr: KPointer, event: KInt): void + native static _ListAttribute_onScrollFrameBegin(ptr: KPointer, event: KInt): void + native static _ListItemInterface_setListItemOptions0(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ListItemInterface_setListItemOptions1(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ListItemAttribute_sticky(ptr: KPointer, value: KInt): void + native static _ListItemAttribute_editable(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ListItemAttribute_selectable(ptr: KPointer, value: KInt): void + native static _ListItemAttribute_selected(ptr: KPointer, value: KInt): void + native static _ListItemAttribute_swipeAction(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ListItemAttribute_onSelect(ptr: KPointer, event: KInt): void + native static _ListItemGroupInterface_setListItemGroupOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ListItemGroupAttribute_divider(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ListItemGroupAttribute_childrenMainSize(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _LoadingProgressInterface_setLoadingProgressOptions(ptr: KPointer): void + native static _LoadingProgressAttribute_color(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _LoadingProgressAttribute_enableLoading(ptr: KPointer, value: KInt): void + native static _LoadingProgressAttribute_contentModifier(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _LocationButtonInterface_setLocationButtonOptions0(ptr: KPointer): void + native static _LocationButtonInterface_setLocationButtonOptions1(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _LocationButtonAttribute_onClick(ptr: KPointer, event: KInt): void + native static _MarqueeInterface_setMarqueeOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _MarqueeAttribute_fontColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _MarqueeAttribute_fontSize(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _MarqueeAttribute_allowScale(ptr: KPointer, value: KInt): void + native static _MarqueeAttribute_fontWeight(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _MarqueeAttribute_fontFamily(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _MarqueeAttribute_marqueeUpdateStrategy(ptr: KPointer, value: KInt): void + native static _MarqueeAttribute_onStart(ptr: KPointer, event: KInt): void + native static _MarqueeAttribute_onBounce(ptr: KPointer, event: KInt): void + native static _MarqueeAttribute_onFinish(ptr: KPointer, event: KInt): void + native static _MediaCachedImageInterface_setMediaCachedImageOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _MenuInterface_setMenuOptions(ptr: KPointer): void + native static _MenuAttribute_fontSize(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _MenuAttribute_font(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _MenuAttribute_fontColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _MenuAttribute_radius(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _MenuAttribute_menuItemDivider(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _MenuAttribute_menuItemGroupDivider(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _MenuAttribute_subMenuExpandingMode(ptr: KPointer, mode: KInt): void + native static _MenuItemInterface_setMenuItemOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _MenuItemAttribute_selected(ptr: KPointer, value: KInt): void + native static _MenuItemAttribute_selectIcon(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _MenuItemAttribute_onChange(ptr: KPointer, callback: KInt): void + native static _MenuItemAttribute_contentFont(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _MenuItemAttribute_contentFontColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _MenuItemAttribute_labelFont(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _MenuItemAttribute_labelFontColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _MenuItemGroupInterface_setMenuItemGroupOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _NavDestinationInterface_setNavDestinationOptions(ptr: KPointer): void native static _NavDestinationAttribute_title(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _NavDestinationAttribute_hideTitleBar(ptr: KPointer, value: KInt): void + native static _NavDestinationAttribute_hideTitleBar0(ptr: KPointer, value: KInt): void + native static _NavDestinationAttribute_hideTitleBar1(ptr: KPointer, hide: KInt, animated: KInt): void native static _NavDestinationAttribute_onShown(ptr: KPointer, callback: KInt): void native static _NavDestinationAttribute_onHidden(ptr: KPointer, callback: KInt): void native static _NavDestinationAttribute_onBackPressed(ptr: KPointer, callback: KInt): void @@ -114,24 +646,32 @@ export class NativeModule { native static _NavDestinationAttribute_onWillHide(ptr: KPointer, callback: KInt): void native static _NavDestinationAttribute_ignoreLayoutSafeArea(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _NavDestinationAttribute_systemBarStyle(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _NavDestinationAttribute_recoverable(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _NavDestinationAttribute_systemTransition(ptr: KPointer, type: KInt): void + native static _NavRouterInterface_setNavRouterOptions0(ptr: KPointer): void + native static _NavRouterInterface_setNavRouterOptions1(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _NavRouterAttribute_onStateChange(ptr: KPointer, callback: KInt): void + native static _NavRouterAttribute_mode(ptr: KPointer, mode: KInt): void native static _NavigationInterface_setNavigationOptions0(ptr: KPointer): void native static _NavigationInterface_setNavigationOptions1(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _NavigationAttribute_navBarWidth(ptr: KPointer, value: string|number|object): void + native static _NavigationAttribute_navBarWidth(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _NavigationAttribute_navBarPosition(ptr: KPointer, value: KInt): void native static _NavigationAttribute_navBarWidthRange(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _NavigationAttribute_minContentWidth(ptr: KPointer, value: string|number|object): void + native static _NavigationAttribute_minContentWidth(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _NavigationAttribute_mode(ptr: KPointer, value: KInt): void native static _NavigationAttribute_backButtonIcon(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _NavigationAttribute_hideNavBar(ptr: KPointer, value: KInt): void native static _NavigationAttribute_title(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _NavigationAttribute_subTitle(ptr: KPointer, value: KStringPtr): void - native static _NavigationAttribute_hideTitleBar(ptr: KPointer, value: KInt): void + native static _NavigationAttribute_hideTitleBar0(ptr: KPointer, value: KInt): void + native static _NavigationAttribute_hideTitleBar1(ptr: KPointer, hide: KInt, animated: KInt): void native static _NavigationAttribute_hideBackButton(ptr: KPointer, value: KInt): void native static _NavigationAttribute_titleMode(ptr: KPointer, value: KInt): void native static _NavigationAttribute_menus(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _NavigationAttribute_toolBar(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _NavigationAttribute_toolbarConfiguration(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _NavigationAttribute_hideToolBar(ptr: KPointer, value: KInt): void + native static _NavigationAttribute_hideToolBar0(ptr: KPointer, value: KInt): void + native static _NavigationAttribute_hideToolBar1(ptr: KPointer, hide: KInt, animated: KInt): void native static _NavigationAttribute_onTitleModeChange(ptr: KPointer, callback: KInt): void native static _NavigationAttribute_onNavBarStateChange(ptr: KPointer, callback: KInt): void native static _NavigationAttribute_onNavigationModeChange(ptr: KPointer, callback: KInt): void @@ -139,95 +679,758 @@ export class NativeModule { native static _NavigationAttribute_customNavContentTransition(ptr: KPointer, delegate: KInt): void native static _NavigationAttribute_ignoreLayoutSafeArea(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _NavigationAttribute_systemBarStyle(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _NavigationAttribute_recoverable(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _NavigatorInterface_setNavigatorOptions0(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _NavigatorInterface_setNavigatorOptions1(ptr: KPointer): void + native static _NavigatorAttribute_active(ptr: KPointer, value: KInt): void + native static _NavigatorAttribute_type(ptr: KPointer, value: KInt): void + native static _NavigatorAttribute_target(ptr: KPointer, value: KStringPtr): void + native static _NavigatorAttribute_params(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _NodeContainerInterface_setNodeContainerOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _PanelInterface_setPanelOptions(ptr: KPointer, show: KInt): void + native static _PanelAttribute_mode(ptr: KPointer, value: KInt): void + native static _PanelAttribute_type(ptr: KPointer, value: KInt): void + native static _PanelAttribute_dragBar(ptr: KPointer, value: KInt): void + native static _PanelAttribute_customHeight(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _PanelAttribute_fullHeight(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _PanelAttribute_halfHeight(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _PanelAttribute_miniHeight(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _PanelAttribute_show(ptr: KPointer, value: KInt): void + native static _PanelAttribute_backgroundMask(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _PanelAttribute_showCloseIcon(ptr: KPointer, value: KInt): void + native static _PanelAttribute_onChange(ptr: KPointer, event: KInt): void + native static _PanelAttribute_onHeightChange(ptr: KPointer, callback: KInt): void + native static _PasteButtonInterface_setPasteButtonOptions0(ptr: KPointer): void + native static _PasteButtonInterface_setPasteButtonOptions1(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _PasteButtonAttribute_onClick(ptr: KPointer, event: KInt): void + native static _PathInterface_setPathOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _PathAttribute_commands(ptr: KPointer, value: KStringPtr): void + native static _PatternLockInterface_setPatternLockOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _PatternLockAttribute_sideLength(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _PatternLockAttribute_circleRadius(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _PatternLockAttribute_backgroundColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _PatternLockAttribute_regularColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _PatternLockAttribute_selectedColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _PatternLockAttribute_activeColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _PatternLockAttribute_pathColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _PatternLockAttribute_pathStrokeWidth(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _PatternLockAttribute_onPatternComplete(ptr: KPointer, callback: KInt): void + native static _PatternLockAttribute_autoReset(ptr: KPointer, value: KInt): void + native static _PatternLockAttribute_onDotConnect(ptr: KPointer, callback: KInt): void + native static _PatternLockAttribute_activateCircleStyle(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _PluginComponentInterface_setPluginComponentOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _PluginComponentAttribute_onComplete(ptr: KPointer, callback: KInt): void + native static _PluginComponentAttribute_onError(ptr: KPointer, callback: KInt): void + native static _PolygonInterface_setPolygonOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _PolygonAttribute_points(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _PolylineInterface_setPolylineOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _PolylineAttribute_points(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _QRCodeInterface_setQRCodeOptions(ptr: KPointer, value: KStringPtr): void + native static _QRCodeAttribute_color(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _QRCodeAttribute_backgroundColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _QRCodeAttribute_contentOpacity(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _RadioInterface_setRadioOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _RadioAttribute_checked(ptr: KPointer, value: KInt): void + native static _RadioAttribute_onChange(ptr: KPointer, callback: KInt): void + native static _RadioAttribute_radioStyle(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _RadioAttribute_contentModifier(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _RatingInterface_setRatingOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _RatingAttribute_stars(ptr: KPointer, value: number): void + native static _RatingAttribute_stepSize(ptr: KPointer, value: number): void + native static _RatingAttribute_starStyle(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _RatingAttribute_onChange(ptr: KPointer, callback: KInt): void + native static _RatingAttribute_contentModifier(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _RectInterface_setRectOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _RectAttribute_radiusWidth(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _RectAttribute_radiusHeight(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _RectAttribute_radius(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _RefreshInterface_setRefreshOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _RefreshAttribute_onStateChange(ptr: KPointer, callback: KInt): void + native static _RefreshAttribute_onRefreshing(ptr: KPointer, callback: KInt): void + native static _RefreshAttribute_refreshOffset(ptr: KPointer, value: number): void + native static _RefreshAttribute_pullToRefresh(ptr: KPointer, value: KInt): void + native static _RefreshAttribute_onOffsetChange(ptr: KPointer, callback: KInt): void + native static _RefreshAttribute_pullDownRatio(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _RelativeContainerInterface_setRelativeContainerOptions(ptr: KPointer): void + native static _RelativeContainerAttribute_guideLine(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _RelativeContainerAttribute_barrier0(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _RelativeContainerAttribute_barrier1(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _RichEditorInterface_setRichEditorOptions0(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _RichEditorInterface_setRichEditorOptions1(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _RichEditorAttribute_onReady(ptr: KPointer, callback: KInt): void + native static _RichEditorAttribute_onSelect(ptr: KPointer, callback: KInt): void + native static _RichEditorAttribute_onSelectionChange(ptr: KPointer, callback: KInt): void + native static _RichEditorAttribute_aboutToIMEInput(ptr: KPointer, callback: KInt): void + native static _RichEditorAttribute_onIMEInputComplete(ptr: KPointer, callback: KInt): void + native static _RichEditorAttribute_onDidIMEInput(ptr: KPointer, callback: KInt): void + native static _RichEditorAttribute_aboutToDelete(ptr: KPointer, callback: KInt): void + native static _RichEditorAttribute_onDeleteComplete(ptr: KPointer, callback: KInt): void + native static _RichEditorAttribute_copyOptions(ptr: KPointer, value: KInt): void + native static _RichEditorAttribute_bindSelectionMenu(ptr: KPointer, spanType: KInt, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _RichEditorAttribute_customKeyboard(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _RichEditorAttribute_onPaste(ptr: KPointer, callback: KInt): void + native static _RichEditorAttribute_enableDataDetector(ptr: KPointer, enable: KInt): void + native static _RichEditorAttribute_enablePreviewText(ptr: KPointer, enable: KInt): void + native static _RichEditorAttribute_dataDetectorConfig(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _RichEditorAttribute_placeholder(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _RichEditorAttribute_caretColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _RichEditorAttribute_selectedBackgroundColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _RichEditorAttribute_onEditingChange(ptr: KPointer, callback: KInt): void + native static _RichEditorAttribute_enterKeyType(ptr: KPointer, value: KInt): void + native static _RichEditorAttribute_onSubmit(ptr: KPointer, callback: KInt): void + native static _RichEditorAttribute_onWillChange(ptr: KPointer, callback: KInt): void + native static _RichEditorAttribute_onDidChange(ptr: KPointer, callback: KInt): void + native static _RichEditorAttribute_onCut(ptr: KPointer, callback: KInt): void + native static _RichEditorAttribute_onCopy(ptr: KPointer, callback: KInt): void + native static _RichEditorAttribute_editMenuOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _RichEditorAttribute_enableKeyboardOnFocus(ptr: KPointer, isEnabled: KInt): void + native static _RichEditorAttribute_enableHapticFeedback(ptr: KPointer, isEnabled: KInt): void + native static _RichEditorAttribute_barState(ptr: KPointer, state: KInt): void + native static _RichTextInterface_setRichTextOptions(ptr: KPointer, content: KStringPtr): void + native static _RichTextAttribute_onStart(ptr: KPointer, callback: KInt): void + native static _RichTextAttribute_onComplete(ptr: KPointer, callback: KInt): void + native static _RootSceneInterface_setRootSceneOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _RowInterface_setRowOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _RowAttribute_alignItems(ptr: KPointer, value: KInt): void + native static _RowAttribute_justifyContent(ptr: KPointer, value: KInt): void + native static _RowAttribute_pointLight(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _RowAttribute_reverse(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _RowSplitInterface_setRowSplitOptions(ptr: KPointer): void + native static _RowSplitAttribute_resizeable(ptr: KPointer, value: KInt): void + native static _SaveButtonInterface_setSaveButtonOptions0(ptr: KPointer): void + native static _SaveButtonInterface_setSaveButtonOptions1(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SaveButtonAttribute_onClick(ptr: KPointer, event: KInt): void + native static _ScreenInterface_setScreenOptions(ptr: KPointer, screenId: number): void native static _ScrollInterface_setScrollOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ScrollAttribute_scrollable(ptr: KPointer, value: KInt): void + native static _ScrollAttribute_onScroll(ptr: KPointer, event: KInt): void + native static _ScrollAttribute_onDidScroll(ptr: KPointer, handler: KInt): void + native static _ScrollAttribute_onScrollEdge(ptr: KPointer, event: KInt): void + native static _ScrollAttribute_onScrollStart(ptr: KPointer, event: KInt): void + native static _ScrollAttribute_onScrollEnd(ptr: KPointer, event: KInt): void + native static _ScrollAttribute_onScrollStop(ptr: KPointer, event: KInt): void + native static _ScrollAttribute_scrollBar(ptr: KPointer, barState: KInt): void + native static _ScrollAttribute_scrollBarColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ScrollAttribute_scrollBarWidth(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ScrollAttribute_edgeEffect(ptr: KPointer, edgeEffect: KInt, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ScrollAttribute_onScrollFrameBegin(ptr: KPointer, event: KInt): void + native static _ScrollAttribute_nestedScroll(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ScrollAttribute_enableScrollInteraction(ptr: KPointer, value: KInt): void + native static _ScrollAttribute_friction(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ScrollAttribute_scrollSnap(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ScrollAttribute_enablePaging(ptr: KPointer, value: KInt): void + native static _ScrollAttribute_initialOffset(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ScrollBarInterface_setScrollBarOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ScrollBarAttribute_enableNestedScroll(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SearchInterface_setSearchOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SearchAttribute_searchButton(ptr: KPointer, value: KStringPtr, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SearchAttribute_fontColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SearchAttribute_searchIcon(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SearchAttribute_cancelButton(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SearchAttribute_textIndent(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SearchAttribute_inputFilter(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SearchAttribute_onEditChange(ptr: KPointer, callback: KInt): void + native static _SearchAttribute_selectedBackgroundColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SearchAttribute_caretStyle(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SearchAttribute_placeholderColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SearchAttribute_placeholderFont(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SearchAttribute_textFont(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SearchAttribute_enterKeyType(ptr: KPointer, value: KInt): void + native static _SearchAttribute_onSubmit(ptr: KPointer, callback: KInt): void + native static _SearchAttribute_onChange(ptr: KPointer, callback: KInt): void + native static _SearchAttribute_onTextSelectionChange(ptr: KPointer, callback: KInt): void + native static _SearchAttribute_onContentScroll(ptr: KPointer, callback: KInt): void + native static _SearchAttribute_onCopy(ptr: KPointer, callback: KInt): void + native static _SearchAttribute_onCut(ptr: KPointer, callback: KInt): void + native static _SearchAttribute_onPaste(ptr: KPointer, callback: KInt): void + native static _SearchAttribute_copyOption(ptr: KPointer, value: KInt): void + native static _SearchAttribute_maxLength(ptr: KPointer, value: number): void + native static _SearchAttribute_textAlign(ptr: KPointer, value: KInt): void + native static _SearchAttribute_enableKeyboardOnFocus(ptr: KPointer, value: KInt): void + native static _SearchAttribute_selectionMenuHidden(ptr: KPointer, value: KInt): void + native static _SearchAttribute_minFontSize(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SearchAttribute_maxFontSize(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SearchAttribute_customKeyboard(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SearchAttribute_decoration(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SearchAttribute_letterSpacing(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SearchAttribute_lineHeight(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SearchAttribute_type(ptr: KPointer, value: KInt): void + native static _SearchAttribute_fontFeature(ptr: KPointer, value: KStringPtr): void + native static _SearchAttribute_onWillInsert(ptr: KPointer, callback: KInt): void + native static _SearchAttribute_onDidInsert(ptr: KPointer, callback: KInt): void + native static _SearchAttribute_onWillDelete(ptr: KPointer, callback: KInt): void + native static _SearchAttribute_onDidDelete(ptr: KPointer, callback: KInt): void + native static _SearchAttribute_editMenuOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SearchAttribute_enablePreviewText(ptr: KPointer, enable: KInt): void + native static _SearchAttribute_enableHapticFeedback(ptr: KPointer, isEnabled: KInt): void + native static _SecurityComponentMethod_iconSize(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SecurityComponentMethod_layoutDirection(ptr: KPointer, value: KInt): void + native static _SecurityComponentMethod_position(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SecurityComponentMethod_markAnchor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SecurityComponentMethod_offset(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SecurityComponentMethod_fontSize(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SecurityComponentMethod_fontStyle(ptr: KPointer, value: KInt): void + native static _SecurityComponentMethod_fontWeight(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SecurityComponentMethod_fontFamily(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SecurityComponentMethod_fontColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SecurityComponentMethod_iconColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SecurityComponentMethod_backgroundColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SecurityComponentMethod_borderStyle(ptr: KPointer, value: KInt): void + native static _SecurityComponentMethod_borderWidth(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SecurityComponentMethod_borderColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SecurityComponentMethod_borderRadius(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SecurityComponentMethod_padding(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SecurityComponentMethod_textIconSpace(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SecurityComponentMethod_key(ptr: KPointer, value: KStringPtr): void + native static _SecurityComponentMethod_width(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SecurityComponentMethod_height(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SecurityComponentMethod_size(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SecurityComponentMethod_constraintSize(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _SelectInterface_setSelectOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SelectAttribute_selected(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SelectAttribute_value(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SelectAttribute_font(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SelectAttribute_fontColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SelectAttribute_selectedOptionBgColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SelectAttribute_selectedOptionFont(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SelectAttribute_selectedOptionFontColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SelectAttribute_optionBgColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SelectAttribute_optionFont(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SelectAttribute_optionFontColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SelectAttribute_onSelect(ptr: KPointer, callback: KInt): void + native static _SelectAttribute_space(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SelectAttribute_arrowPosition(ptr: KPointer, value: KInt): void + native static _SelectAttribute_menuAlign(ptr: KPointer, alignType: KInt, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SelectAttribute_optionWidth(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SelectAttribute_optionHeight(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SelectAttribute_menuBackgroundColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SelectAttribute_menuBackgroundBlurStyle(ptr: KPointer, value: KInt): void + native static _SelectAttribute_controlSize(ptr: KPointer, value: KInt): void native static _SelectAttribute_menuItemContentModifier(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _ShapeInterface_setShapeOptions(ptr: KPointer): void - native static _SideBarContainerInterface_setSideBarContainerOptions(ptr: KPointer): void - native static _SideBarContainerAttribute_minSideBarWidth0(ptr: KPointer, value: number): void - native static _SideBarContainerAttribute_minSideBarWidth1(ptr: KPointer, value: string|number|object): void + native static _SelectAttribute_divider(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ShapeInterface_setShapeOptions0(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ShapeInterface_setShapeOptions1(ptr: KPointer): void + native static _ShapeAttribute_viewPort(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ShapeAttribute_stroke(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ShapeAttribute_fill(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ShapeAttribute_strokeDashOffset(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ShapeAttribute_strokeDashArray(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ShapeAttribute_strokeLineCap(ptr: KPointer, value: KInt): void + native static _ShapeAttribute_strokeLineJoin(ptr: KPointer, value: KInt): void + native static _ShapeAttribute_strokeMiterLimit(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ShapeAttribute_strokeOpacity(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ShapeAttribute_fillOpacity(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ShapeAttribute_strokeWidth(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ShapeAttribute_antiAlias(ptr: KPointer, value: KInt): void + native static _ShapeAttribute_mesh(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32, column: number, row: number): void + native static _SliderInterface_setSliderOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SliderAttribute_blockColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SliderAttribute_trackColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SliderAttribute_selectedColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SliderAttribute_minLabel(ptr: KPointer, value: KStringPtr): void + native static _SliderAttribute_maxLabel(ptr: KPointer, value: KStringPtr): void + native static _SliderAttribute_showSteps(ptr: KPointer, value: KInt): void + native static _SliderAttribute_showTips(ptr: KPointer, value: KInt, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SliderAttribute_trackThickness(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SliderAttribute_onChange(ptr: KPointer, callback: KInt): void + native static _SliderAttribute_blockBorderColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SliderAttribute_blockBorderWidth(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SliderAttribute_stepColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SliderAttribute_trackBorderRadius(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SliderAttribute_selectedBorderRadius(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SliderAttribute_blockSize(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SliderAttribute_blockStyle(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SliderAttribute_stepSize(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SliderAttribute_sliderInteractionMode(ptr: KPointer, value: KInt): void + native static _SliderAttribute_minResponsiveDistance(ptr: KPointer, value: number): void + native static _SliderAttribute_contentModifier(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SliderAttribute_slideRange(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _BaseSpan_textBackgroundStyle(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _BaseSpan_baselineOffset(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SpanInterface_setSpanOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SpanAttribute_font(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SpanAttribute_fontColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SpanAttribute_fontSize(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SpanAttribute_fontStyle(ptr: KPointer, value: KInt): void + native static _SpanAttribute_fontWeight(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SpanAttribute_fontFamily(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SpanAttribute_decoration(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SpanAttribute_letterSpacing(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SpanAttribute_textCase(ptr: KPointer, value: KInt): void + native static _SpanAttribute_lineHeight(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SpanAttribute_textShadow(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _StackInterface_setStackOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _StackAttribute_alignContent(ptr: KPointer, value: KInt): void + native static _StackAttribute_pointLight(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _StepperInterface_setStepperOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _StepperAttribute_onFinish(ptr: KPointer, callback: KInt): void + native static _StepperAttribute_onSkip(ptr: KPointer, callback: KInt): void + native static _StepperAttribute_onChange(ptr: KPointer, callback: KInt): void + native static _StepperAttribute_onNext(ptr: KPointer, callback: KInt): void + native static _StepperAttribute_onPrevious(ptr: KPointer, callback: KInt): void + native static _StepperItemInterface_setStepperItemOptions(ptr: KPointer): void + native static _StepperItemAttribute_prevLabel(ptr: KPointer, value: KStringPtr): void + native static _StepperItemAttribute_nextLabel(ptr: KPointer, value: KStringPtr): void + native static _StepperItemAttribute_status(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _SwiperInterface_setSwiperOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _SwiperAttribute_index(ptr: KPointer, value: number): void + native static _SwiperAttribute_autoPlay(ptr: KPointer, value: KInt): void + native static _SwiperAttribute_interval(ptr: KPointer, value: number): void native static _SwiperAttribute_indicator(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SwiperAttribute_displayArrow(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SwiperAttribute_loop(ptr: KPointer, value: KInt): void + native static _SwiperAttribute_duration(ptr: KPointer, value: number): void + native static _SwiperAttribute_vertical(ptr: KPointer, value: KInt): void + native static _SwiperAttribute_itemSpace(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SwiperAttribute_displayMode(ptr: KPointer, value: KInt): void + native static _SwiperAttribute_cachedCount(ptr: KPointer, value: number): void + native static _SwiperAttribute_displayCount(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SwiperAttribute_effectMode(ptr: KPointer, value: KInt): void + native static _SwiperAttribute_disableSwipe(ptr: KPointer, value: KInt): void + native static _SwiperAttribute_curve(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SwiperAttribute_onChange(ptr: KPointer, event: KInt): void + native static _SwiperAttribute_indicatorStyle(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SwiperAttribute_prevMargin(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SwiperAttribute_nextMargin(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SwiperAttribute_onAnimationStart(ptr: KPointer, event: KInt): void + native static _SwiperAttribute_onAnimationEnd(ptr: KPointer, event: KInt): void + native static _SwiperAttribute_onGestureSwipe(ptr: KPointer, event: KInt): void + native static _SwiperAttribute_nestedScroll(ptr: KPointer, value: KInt): void + native static _SwiperAttribute_customContentTransition(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SwiperAttribute_onContentDidScroll(ptr: KPointer, handler: KInt): void + native static _SwiperAttribute_indicatorInteractive(ptr: KPointer, value: KInt): void native static _SymbolGlyphInterface_setSymbolGlyphOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _SymbolGlyphAttribute_fontSize(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SymbolGlyphAttribute_fontColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SymbolGlyphAttribute_fontWeight(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SymbolGlyphAttribute_effectStrategy(ptr: KPointer, value: KInt): void + native static _SymbolGlyphAttribute_renderingStrategy(ptr: KPointer, value: KInt): void + native static _SymbolGlyphAttribute_symbolEffect0(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SymbolGlyphAttribute_symbolEffect1(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SymbolSpanInterface_setSymbolSpanOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SymbolSpanAttribute_fontSize(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SymbolSpanAttribute_fontColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SymbolSpanAttribute_fontWeight(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SymbolSpanAttribute_effectStrategy(ptr: KPointer, value: KInt): void + native static _SymbolSpanAttribute_renderingStrategy(ptr: KPointer, value: KInt): void + native static _TabsInterface_setTabsOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TabsAttribute_vertical(ptr: KPointer, value: KInt): void + native static _TabsAttribute_barPosition(ptr: KPointer, value: KInt): void + native static _TabsAttribute_scrollable(ptr: KPointer, value: KInt): void + native static _TabsAttribute_barMode0(ptr: KPointer, value: KInt): void + native static _TabsAttribute_barMode1(ptr: KPointer, value: KInt, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TabsAttribute_barMode2(ptr: KPointer, value: KInt, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TabsAttribute_barWidth(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TabsAttribute_barHeight(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TabsAttribute_animationDuration(ptr: KPointer, value: number): void + native static _TabsAttribute_animationMode(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TabsAttribute_edgeEffect(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TabsAttribute_onChange(ptr: KPointer, event: KInt): void + native static _TabsAttribute_onTabBarClick(ptr: KPointer, event: KInt): void + native static _TabsAttribute_onAnimationStart(ptr: KPointer, handler: KInt): void + native static _TabsAttribute_onAnimationEnd(ptr: KPointer, handler: KInt): void + native static _TabsAttribute_onGestureSwipe(ptr: KPointer, handler: KInt): void + native static _TabsAttribute_fadingEdge(ptr: KPointer, value: KInt): void + native static _TabsAttribute_divider(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TabsAttribute_barOverlap(ptr: KPointer, value: KInt): void + native static _TabsAttribute_barBackgroundColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TabsAttribute_barGridAlign(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TabsAttribute_customContentTransition(ptr: KPointer, delegate: KInt): void + native static _TabsAttribute_barBackgroundBlurStyle(ptr: KPointer, value: KInt): void + native static _TabsAttribute_onContentWillChange(ptr: KPointer, handler: KInt): void native static _TabContentInterface_setTabContentOptions(ptr: KPointer): void native static _TabContentAttribute_tabBar0(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _TabContentAttribute_tabBar1(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _TabsInterface_setTabsOptions(ptr: KPointer): void - native static _TabsAttribute_barMode(ptr: KPointer, value: KInt): void - native static _TestInterface_setTestOptions(ptr: KPointer): void - native static _TestAttribute_testBoolean(ptr: KPointer, value: KInt): void - native static _TestAttribute_testNumber(ptr: KPointer, value: number): void - native static _TestAttribute_testString(ptr: KPointer, value: KStringPtr): void - native static _TestAttribute_testEnum(ptr: KPointer, value: KInt): void - native static _TestAttribute_testFunction(ptr: KPointer, value: KInt): void - native static _TestAttribute_testBasicMix(ptr: KPointer, v1: number, v2: KStringPtr, v3: number): void - native static _TestAttribute_testBooleanUndefined(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _TestAttribute_testNumberUndefined(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _TestAttribute_testStringUndefined(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _TestAttribute_testEnumUndefined(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _TestAttribute_testFunctionUndefined(ptr: KPointer, value: KInt): void - native static _TestAttribute_testUnionNumberEnum(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _TestAttribute_testUnionBooleanString(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _TestAttribute_testUnionStringNumber(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _TestAttribute_testUnionBooleanStringNumberUndefined(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _TestAttribute_testUnionWithGenericArray(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _TestAttribute_testUnionWithArrayType(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _TestAttribute_testBooleanArray(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _TestAttribute_testNumberArray(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _TestAttribute_testStringArray(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _TestAttribute_testEnumArray(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _TestAttribute_testArrayMix(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _TestAttribute_testTupleBooleanNumber(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _TestAttribute_testTupleNumberStringEnum(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _TestAttribute_testTupleOptional(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _TestAttribute_testTupleUnion(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _TestAttribute_testArrayRefBoolean(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _TestAttribute_testArrayRefNumber(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _TestAttribute_testBooleanInterface(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _TestAttribute_testNumberInterface(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _TestAttribute_testStringInterface(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _TestAttribute_testUnionInterface(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _TestAttribute_testUnionOptional(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _TestAttribute_testTupleInterface(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _TestAttribute_testOptionInterface(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _TestAttribute_testArrayRefNumberInterface(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _TestAttribute_testBooleanInterfaceOption(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _TestAttribute_testBooleanInterfaceTuple(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _TestAttribute_testBooleanInterfaceArray(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _TestAttribute_testBooleanInterfaceArrayRef(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _TestAttribute_testInterfaceMixed(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32, v2: number): void - native static _TestAttribute_testClass(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _TestAttribute_testClassWithConstructor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _TestAttribute_testClassWithConstructorAndFields(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _TestAttribute_testClassWithConstructorAndMethods(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _TestAttribute_testClassWithConstructorAndStaticMethods(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _TestAttribute_testClassWithConstructorAndFieldsAndMethods(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _TestAttribute_testClassWithConstructorAndNonOptionalParams(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _TestAttribute_testClassWithConstructorAndSomeOptionalParams(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _TestAttribute_testClassWithConstructorAndAllOptionalParams(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _TestAttribute_testClassWithConstructorAndWithoutParams(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TabContentAttribute_onWillShow(ptr: KPointer, event: KInt): void + native static _TabContentAttribute_onWillHide(ptr: KPointer, event: KInt): void native static _TextInterface_setTextOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _TextAttribute_font(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextAttribute_font0(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextAttribute_font1(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _TextAttribute_fontColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextAttribute_fontSize(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextAttribute_minFontSize(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextAttribute_maxFontSize(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextAttribute_minFontScale(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextAttribute_maxFontScale(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextAttribute_fontStyle(ptr: KPointer, value: KInt): void + native static _TextAttribute_fontWeight0(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextAttribute_fontWeight1(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextAttribute_lineSpacing(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextAttribute_textAlign(ptr: KPointer, value: KInt): void + native static _TextAttribute_lineHeight(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextAttribute_textOverflow(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextAttribute_fontFamily(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextAttribute_maxLines(ptr: KPointer, value: number): void + native static _TextAttribute_decoration(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextAttribute_letterSpacing(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextAttribute_textCase(ptr: KPointer, value: KInt): void + native static _TextAttribute_baselineOffset(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextAttribute_copyOption(ptr: KPointer, value: KInt): void + native static _TextAttribute_draggable(ptr: KPointer, value: KInt): void + native static _TextAttribute_textShadow(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextAttribute_heightAdaptivePolicy(ptr: KPointer, value: KInt): void + native static _TextAttribute_textIndent(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextAttribute_wordBreak(ptr: KPointer, value: KInt): void + native static _TextAttribute_lineBreakStrategy(ptr: KPointer, strategy: KInt): void + native static _TextAttribute_onCopy(ptr: KPointer, callback: KInt): void + native static _TextAttribute_selection(ptr: KPointer, selectionStart: number, selectionEnd: number): void + native static _TextAttribute_ellipsisMode(ptr: KPointer, value: KInt): void + native static _TextAttribute_enableDataDetector(ptr: KPointer, enable: KInt): void + native static _TextAttribute_dataDetectorConfig(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextAttribute_bindSelectionMenu(ptr: KPointer, spanType: KInt, thisArray: KUint8ArrayPtr, thisLength: int32, responseType: KInt): void + native static _TextAttribute_onTextSelectionChange(ptr: KPointer, callback: KInt): void + native static _TextAttribute_fontFeature(ptr: KPointer, value: KStringPtr): void + native static _TextAttribute_privacySensitive(ptr: KPointer, supported: KInt): void + native static _TextAttribute_textSelectable(ptr: KPointer, mode: KInt): void + native static _TextAttribute_editMenuOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextAttribute_halfLeading(ptr: KPointer, halfLeading: KInt): void + native static _TextAttribute_enableHapticFeedback(ptr: KPointer, isEnabled: KInt): void + native static _TextAreaInterface_setTextAreaOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextAreaAttribute_placeholderColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextAreaAttribute_placeholderFont(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextAreaAttribute_enterKeyType(ptr: KPointer, value: KInt): void + native static _TextAreaAttribute_textAlign(ptr: KPointer, value: KInt): void + native static _TextAreaAttribute_caretColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextAreaAttribute_fontColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextAreaAttribute_fontSize(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextAreaAttribute_fontStyle(ptr: KPointer, value: KInt): void + native static _TextAreaAttribute_fontWeight(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextAreaAttribute_fontFamily(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextAreaAttribute_textOverflow(ptr: KPointer, value: KInt): void + native static _TextAreaAttribute_textIndent(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextAreaAttribute_inputFilter(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextAreaAttribute_caretStyle(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextAreaAttribute_selectedBackgroundColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextAreaAttribute_onSubmit(ptr: KPointer, callback: KInt): void + native static _TextAreaAttribute_onChange(ptr: KPointer, callback: KInt): void + native static _TextAreaAttribute_onTextSelectionChange(ptr: KPointer, callback: KInt): void + native static _TextAreaAttribute_onContentScroll(ptr: KPointer, callback: KInt): void + native static _TextAreaAttribute_onEditChange(ptr: KPointer, callback: KInt): void + native static _TextAreaAttribute_onCopy(ptr: KPointer, callback: KInt): void + native static _TextAreaAttribute_onCut(ptr: KPointer, callback: KInt): void + native static _TextAreaAttribute_onPaste(ptr: KPointer, callback: KInt): void + native static _TextAreaAttribute_copyOption(ptr: KPointer, value: KInt): void + native static _TextAreaAttribute_enableKeyboardOnFocus(ptr: KPointer, value: KInt): void + native static _TextAreaAttribute_maxLength(ptr: KPointer, value: number): void + native static _TextAreaAttribute_showCounter(ptr: KPointer, value: KInt, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextAreaAttribute_style(ptr: KPointer, value: KInt): void + native static _TextAreaAttribute_barState(ptr: KPointer, value: KInt): void + native static _TextAreaAttribute_selectionMenuHidden(ptr: KPointer, value: KInt): void + native static _TextAreaAttribute_minFontSize(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextAreaAttribute_maxFontSize(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextAreaAttribute_heightAdaptivePolicy(ptr: KPointer, value: KInt): void + native static _TextAreaAttribute_maxLines(ptr: KPointer, value: number): void + native static _TextAreaAttribute_wordBreak(ptr: KPointer, value: KInt): void + native static _TextAreaAttribute_lineBreakStrategy(ptr: KPointer, strategy: KInt): void + native static _TextAreaAttribute_customKeyboard(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextAreaAttribute_decoration(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextAreaAttribute_letterSpacing(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextAreaAttribute_lineSpacing(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextAreaAttribute_lineHeight(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextAreaAttribute_type(ptr: KPointer, value: KInt): void + native static _TextAreaAttribute_enableAutoFill(ptr: KPointer, value: KInt): void + native static _TextAreaAttribute_contentType(ptr: KPointer, contentType: KInt): void + native static _TextAreaAttribute_fontFeature(ptr: KPointer, value: KStringPtr): void + native static _TextAreaAttribute_onWillInsert(ptr: KPointer, callback: KInt): void + native static _TextAreaAttribute_onDidInsert(ptr: KPointer, callback: KInt): void + native static _TextAreaAttribute_onWillDelete(ptr: KPointer, callback: KInt): void + native static _TextAreaAttribute_onDidDelete(ptr: KPointer, callback: KInt): void + native static _TextAreaAttribute_editMenuOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextAreaAttribute_enablePreviewText(ptr: KPointer, enable: KInt): void + native static _TextAreaAttribute_enableHapticFeedback(ptr: KPointer, isEnabled: KInt): void + native static _TextClockInterface_setTextClockOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextClockAttribute_format(ptr: KPointer, value: KStringPtr): void + native static _TextClockAttribute_onDateChange(ptr: KPointer, event: KInt): void + native static _TextClockAttribute_fontColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextClockAttribute_fontSize(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextClockAttribute_fontStyle(ptr: KPointer, value: KInt): void + native static _TextClockAttribute_fontWeight(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextClockAttribute_fontFamily(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextClockAttribute_textShadow(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextClockAttribute_fontFeature(ptr: KPointer, value: KStringPtr): void + native static _TextClockAttribute_contentModifier(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextClockAttribute_dateTimeOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _TextInputInterface_setTextInputOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _TextInputAttribute_type(ptr: KPointer, value: KInt): void native static _TextInputAttribute_contentType(ptr: KPointer, value: KInt): void + native static _TextInputAttribute_placeholderColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextInputAttribute_textOverflow(ptr: KPointer, value: KInt): void + native static _TextInputAttribute_textIndent(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextInputAttribute_placeholderFont(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextInputAttribute_enterKeyType(ptr: KPointer, value: KInt): void + native static _TextInputAttribute_caretColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _TextInputAttribute_onEditChanged(ptr: KPointer, callback: KInt): void + native static _TextInputAttribute_onEditChange(ptr: KPointer, callback: KInt): void + native static _TextInputAttribute_onSubmit(ptr: KPointer, callback: KInt): void + native static _TextInputAttribute_onChange(ptr: KPointer, callback: KInt): void + native static _TextInputAttribute_onTextSelectionChange(ptr: KPointer, callback: KInt): void + native static _TextInputAttribute_onContentScroll(ptr: KPointer, callback: KInt): void + native static _TextInputAttribute_maxLength(ptr: KPointer, value: number): void + native static _TextInputAttribute_fontColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextInputAttribute_fontSize(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextInputAttribute_fontStyle(ptr: KPointer, value: KInt): void + native static _TextInputAttribute_fontWeight(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextInputAttribute_fontFamily(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextInputAttribute_inputFilter(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextInputAttribute_onCopy(ptr: KPointer, callback: KInt): void + native static _TextInputAttribute_onCut(ptr: KPointer, callback: KInt): void + native static _TextInputAttribute_onPaste(ptr: KPointer, callback: KInt): void + native static _TextInputAttribute_copyOption(ptr: KPointer, value: KInt): void + native static _TextInputAttribute_showPasswordIcon(ptr: KPointer, value: KInt): void + native static _TextInputAttribute_textAlign(ptr: KPointer, value: KInt): void + native static _TextInputAttribute_style(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextInputAttribute_caretStyle(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextInputAttribute_selectedBackgroundColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextInputAttribute_caretPosition(ptr: KPointer, value: number): void + native static _TextInputAttribute_enableKeyboardOnFocus(ptr: KPointer, value: KInt): void + native static _TextInputAttribute_passwordIcon(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextInputAttribute_showError(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextInputAttribute_showUnit(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextInputAttribute_showUnderline(ptr: KPointer, value: KInt): void + native static _TextInputAttribute_underlineColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextInputAttribute_selectionMenuHidden(ptr: KPointer, value: KInt): void + native static _TextInputAttribute_barState(ptr: KPointer, value: KInt): void + native static _TextInputAttribute_maxLines(ptr: KPointer, value: number): void + native static _TextInputAttribute_wordBreak(ptr: KPointer, value: KInt): void + native static _TextInputAttribute_lineBreakStrategy(ptr: KPointer, strategy: KInt): void + native static _TextInputAttribute_customKeyboard(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextInputAttribute_showCounter(ptr: KPointer, value: KInt, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextInputAttribute_cancelButton(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextInputAttribute_selectAll(ptr: KPointer, value: KInt): void + native static _TextInputAttribute_minFontSize(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextInputAttribute_maxFontSize(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextInputAttribute_heightAdaptivePolicy(ptr: KPointer, value: KInt): void + native static _TextInputAttribute_enableAutoFill(ptr: KPointer, value: KInt): void + native static _TextInputAttribute_decoration(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextInputAttribute_letterSpacing(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextInputAttribute_lineHeight(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextInputAttribute_passwordRules(ptr: KPointer, value: KStringPtr): void + native static _TextInputAttribute_fontFeature(ptr: KPointer, value: KStringPtr): void + native static _TextInputAttribute_showPassword(ptr: KPointer, visible: KInt): void + native static _TextInputAttribute_onSecurityStateChange(ptr: KPointer, callback: KInt): void + native static _TextInputAttribute_onWillInsert(ptr: KPointer, callback: KInt): void + native static _TextInputAttribute_onDidInsert(ptr: KPointer, callback: KInt): void + native static _TextInputAttribute_onWillDelete(ptr: KPointer, callback: KInt): void + native static _TextInputAttribute_onDidDelete(ptr: KPointer, callback: KInt): void + native static _TextInputAttribute_editMenuOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextInputAttribute_enablePreviewText(ptr: KPointer, enable: KInt): void + native static _TextInputAttribute_enableHapticFeedback(ptr: KPointer, isEnabled: KInt): void native static _TextPickerInterface_setTextPickerOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _TextPickerAttribute_defaultPickerItemHeight(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _TextPickerAttribute_canLoop(ptr: KPointer, value: KInt): void + native static _TextPickerAttribute_disappearTextStyle(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextPickerAttribute_textStyle(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextPickerAttribute_selectedTextStyle(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _TextPickerAttribute_onAccept(ptr: KPointer, callback: KInt): void native static _TextPickerAttribute_onCancel(ptr: KPointer, callback: KInt): void native static _TextPickerAttribute_onChange(ptr: KPointer, callback: KInt): void native static _TextPickerAttribute_selectedIndex(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _TextPickerAttribute_divider(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _TextPickerAttribute_gradientHeight(ptr: KPointer, value: string|number|object): void + native static _TextPickerAttribute_gradientHeight(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextTimerInterface_setTextTimerOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextTimerAttribute_format(ptr: KPointer, value: KStringPtr): void + native static _TextTimerAttribute_fontColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextTimerAttribute_fontSize(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextTimerAttribute_fontStyle(ptr: KPointer, value: KInt): void + native static _TextTimerAttribute_fontWeight(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextTimerAttribute_fontFamily(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextTimerAttribute_onTimer(ptr: KPointer, event: KInt): void + native static _TextTimerAttribute_textShadow(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextTimerAttribute_contentModifier(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TimePickerInterface_setTimePickerOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TimePickerAttribute_useMilitaryTime(ptr: KPointer, value: KInt): void + native static _TimePickerAttribute_loop(ptr: KPointer, value: KInt): void + native static _TimePickerAttribute_disappearTextStyle(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TimePickerAttribute_textStyle(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TimePickerAttribute_selectedTextStyle(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TimePickerAttribute_dateTimeOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TimePickerAttribute_onChange(ptr: KPointer, callback: KInt): void + native static _TimePickerAttribute_enableHapticFeedback(ptr: KPointer, enable: KInt): void + native static _ToggleInterface_setToggleOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ToggleAttribute_onChange(ptr: KPointer, callback: KInt): void + native static _ToggleAttribute_contentModifier(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ToggleAttribute_selectedColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ToggleAttribute_switchPointColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ToggleAttribute_switchStyle(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _VideoInterface_setVideoOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _VideoAttribute_muted(ptr: KPointer, value: KInt): void + native static _VideoAttribute_autoPlay(ptr: KPointer, value: KInt): void + native static _VideoAttribute_controls(ptr: KPointer, value: KInt): void + native static _VideoAttribute_loop(ptr: KPointer, value: KInt): void + native static _VideoAttribute_objectFit(ptr: KPointer, value: KInt): void + native static _VideoAttribute_onStart(ptr: KPointer, event: KInt): void + native static _VideoAttribute_onPause(ptr: KPointer, event: KInt): void + native static _VideoAttribute_onFinish(ptr: KPointer, event: KInt): void + native static _VideoAttribute_onFullscreenChange(ptr: KPointer, callback: KInt): void + native static _VideoAttribute_onPrepared(ptr: KPointer, callback: KInt): void + native static _VideoAttribute_onSeeking(ptr: KPointer, callback: KInt): void + native static _VideoAttribute_onSeeked(ptr: KPointer, callback: KInt): void + native static _VideoAttribute_onUpdate(ptr: KPointer, callback: KInt): void + native static _VideoAttribute_onError(ptr: KPointer, event: KInt): void + native static _VideoAttribute_onStop(ptr: KPointer, event: KInt): void + native static _VideoAttribute_enableAnalyzer(ptr: KPointer, enable: KInt): void + native static _VideoAttribute_analyzerConfig(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _WebInterface_setWebOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _WebAttribute_javaScriptAccess(ptr: KPointer, javaScriptAccess: KInt): void + native static _WebAttribute_fileAccess(ptr: KPointer, fileAccess: KInt): void + native static _WebAttribute_onlineImageAccess(ptr: KPointer, onlineImageAccess: KInt): void + native static _WebAttribute_domStorageAccess(ptr: KPointer, domStorageAccess: KInt): void + native static _WebAttribute_imageAccess(ptr: KPointer, imageAccess: KInt): void + native static _WebAttribute_mixedMode(ptr: KPointer, mixedMode: KInt): void + native static _WebAttribute_zoomAccess(ptr: KPointer, zoomAccess: KInt): void + native static _WebAttribute_geolocationAccess(ptr: KPointer, geolocationAccess: KInt): void + native static _WebAttribute_javaScriptProxy(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _WebAttribute_password(ptr: KPointer, password: KInt): void + native static _WebAttribute_cacheMode(ptr: KPointer, cacheMode: KInt): void + native static _WebAttribute_darkMode(ptr: KPointer, mode: KInt): void + native static _WebAttribute_forceDarkAccess(ptr: KPointer, access: KInt): void + native static _WebAttribute_mediaOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _WebAttribute_tableData(ptr: KPointer, tableData: KInt): void + native static _WebAttribute_wideViewModeAccess(ptr: KPointer, wideViewModeAccess: KInt): void + native static _WebAttribute_overviewModeAccess(ptr: KPointer, overviewModeAccess: KInt): void + native static _WebAttribute_overScrollMode(ptr: KPointer, mode: KInt): void + native static _WebAttribute_textZoomAtio(ptr: KPointer, textZoomAtio: number): void + native static _WebAttribute_textZoomRatio(ptr: KPointer, textZoomRatio: number): void + native static _WebAttribute_databaseAccess(ptr: KPointer, databaseAccess: KInt): void + native static _WebAttribute_initialScale(ptr: KPointer, percent: number): void + native static _WebAttribute_userAgent(ptr: KPointer, userAgent: KStringPtr): void + native static _WebAttribute_metaViewport(ptr: KPointer, enabled: KInt): void + native static _WebAttribute_onPageEnd(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onPageBegin(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onProgressChange(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onTitleReceive(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onGeolocationHide(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onGeolocationShow(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onRequestSelected(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onAlert(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onBeforeUnload(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onConfirm(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onPrompt(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onConsole(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onErrorReceive(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onHttpErrorReceive(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onDownloadStart(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onRefreshAccessedHistory(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onUrlLoadIntercept(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onSslErrorReceive(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onRenderExited0(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onShowFileSelector(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onRenderExited1(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onFileSelectorShow(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onResourceLoad(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onFullScreenExit(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onFullScreenEnter(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onScaleChange(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onHttpAuthRequest(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onInterceptRequest(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onPermissionRequest(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onScreenCaptureRequest(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onContextMenuShow(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onContextMenuHide(ptr: KPointer, callback: KInt): void + native static _WebAttribute_mediaPlayGestureAccess(ptr: KPointer, access: KInt): void + native static _WebAttribute_onSearchResultReceive(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onScroll(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onSslErrorEventReceive(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onSslErrorEvent(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onClientAuthenticationRequest(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onWindowNew(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onWindowExit(ptr: KPointer, callback: KInt): void + native static _WebAttribute_multiWindowAccess(ptr: KPointer, multiWindow: KInt): void + native static _WebAttribute_onInterceptKeyEvent(ptr: KPointer, callback: KInt): void + native static _WebAttribute_webStandardFont(ptr: KPointer, family: KStringPtr): void + native static _WebAttribute_webSerifFont(ptr: KPointer, family: KStringPtr): void + native static _WebAttribute_webSansSerifFont(ptr: KPointer, family: KStringPtr): void + native static _WebAttribute_webFixedFont(ptr: KPointer, family: KStringPtr): void + native static _WebAttribute_webFantasyFont(ptr: KPointer, family: KStringPtr): void + native static _WebAttribute_webCursiveFont(ptr: KPointer, family: KStringPtr): void + native static _WebAttribute_defaultFixedFontSize(ptr: KPointer, size: number): void + native static _WebAttribute_defaultFontSize(ptr: KPointer, size: number): void + native static _WebAttribute_minFontSize(ptr: KPointer, size: number): void + native static _WebAttribute_minLogicalFontSize(ptr: KPointer, size: number): void + native static _WebAttribute_defaultTextEncodingFormat(ptr: KPointer, textEncodingFormat: KStringPtr): void + native static _WebAttribute_forceDisplayScrollBar(ptr: KPointer, enabled: KInt): void + native static _WebAttribute_blockNetwork(ptr: KPointer, block: KInt): void + native static _WebAttribute_horizontalScrollBarAccess(ptr: KPointer, horizontalScrollBar: KInt): void + native static _WebAttribute_verticalScrollBarAccess(ptr: KPointer, verticalScrollBar: KInt): void + native static _WebAttribute_onTouchIconUrlReceived(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onFaviconReceived(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onPageVisible(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onDataResubmitted(ptr: KPointer, callback: KInt): void + native static _WebAttribute_pinchSmooth(ptr: KPointer, isEnabled: KInt): void + native static _WebAttribute_allowWindowOpenMethod(ptr: KPointer, flag: KInt): void + native static _WebAttribute_onAudioStateChanged(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onFirstContentfulPaint(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onFirstMeaningfulPaint(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onLargestContentfulPaint(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onLoadIntercept(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onControllerAttached(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onOverScroll(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onSafeBrowsingCheckResult(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onNavigationEntryCommitted(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onIntelligentTrackingPreventionResult(ptr: KPointer, callback: KInt): void + native static _WebAttribute_javaScriptOnDocumentStart(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _WebAttribute_javaScriptOnDocumentEnd(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _WebAttribute_layoutMode(ptr: KPointer, mode: KInt): void + native static _WebAttribute_nestedScroll(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _WebAttribute_enableNativeEmbedMode(ptr: KPointer, mode: KInt): void + native static _WebAttribute_registerNativeEmbedRule(ptr: KPointer, tag: KStringPtr, type: KStringPtr): void + native static _WebAttribute_onNativeEmbedLifecycleChange(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onNativeEmbedVisibilityChange(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onNativeEmbedGestureEvent(ptr: KPointer, callback: KInt): void + native static _WebAttribute_copyOptions(ptr: KPointer, value: KInt): void + native static _WebAttribute_onOverrideUrlLoading(ptr: KPointer, callback: KInt): void + native static _WebAttribute_textAutosizing(ptr: KPointer, textAutosizing: KInt): void + native static _WebAttribute_enableNativeMediaPlayer(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _WebAttribute_enableSmoothDragResize(ptr: KPointer, mode: KInt): void + native static _WebAttribute_onRenderProcessNotResponding(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onRenderProcessResponding(ptr: KPointer, callback: KInt): void + native static _WebAttribute_selectionMenuOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _WebAttribute_onViewportFitChanged(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onInterceptKeyboardAttach(ptr: KPointer, callback: KInt): void + native static _WebAttribute_onAdsBlocked(ptr: KPointer, callback: KInt): void + native static _WebAttribute_keyboardAvoidMode(ptr: KPointer, mode: KInt): void + native static _WebAttribute_editMenuOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _WebAttribute_enableHapticFeedback(ptr: KPointer, enabled: KInt): void + native static _WindowSceneInterface_setWindowSceneOptions(ptr: KPointer, persistentId: number): void + native static _WindowSceneAttribute_attractionEffect(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32, fraction: number): void + native static _XComponentInterface_setXComponentOptions0(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _XComponentInterface_setXComponentOptions1(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _XComponentInterface_setXComponentOptions2(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _XComponentAttribute_onLoad(ptr: KPointer, callback: KInt): void + native static _XComponentAttribute_onDestroy(ptr: KPointer, event: KInt): void + native static _XComponentAttribute_enableAnalyzer(ptr: KPointer, enable: KInt): void + native static _XComponentAttribute_enableSecure(ptr: KPointer, isSecure: KInt): void + native static _SideBarContainerInterface_setSideBarContainerOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SideBarContainerAttribute_showSideBar(ptr: KPointer, value: KInt): void + native static _SideBarContainerAttribute_controlButton(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SideBarContainerAttribute_showControlButton(ptr: KPointer, value: KInt): void + native static _SideBarContainerAttribute_onChange(ptr: KPointer, callback: KInt): void + native static _SideBarContainerAttribute_sideBarWidth0(ptr: KPointer, value: number): void + native static _SideBarContainerAttribute_minSideBarWidth0(ptr: KPointer, value: number): void + native static _SideBarContainerAttribute_maxSideBarWidth0(ptr: KPointer, value: number): void + native static _SideBarContainerAttribute_sideBarWidth1(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SideBarContainerAttribute_minSideBarWidth1(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SideBarContainerAttribute_maxSideBarWidth1(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SideBarContainerAttribute_autoHide(ptr: KPointer, value: KInt): void + native static _SideBarContainerAttribute_sideBarPosition(ptr: KPointer, value: KInt): void + native static _SideBarContainerAttribute_divider(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SideBarContainerAttribute_minContentWidth(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _RemoteWindowInterface_setRemoteWindowOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _WaterFlowInterface_setWaterFlowOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _WaterFlowAttribute_columnsTemplate(ptr: KPointer, value: KStringPtr): void + native static _WaterFlowAttribute_itemConstraintSize(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _WaterFlowAttribute_rowsTemplate(ptr: KPointer, value: KStringPtr): void + native static _WaterFlowAttribute_columnsGap(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _WaterFlowAttribute_rowsGap(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _WaterFlowAttribute_layoutDirection(ptr: KPointer, value: KInt): void + native static _WaterFlowAttribute_nestedScroll(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _WaterFlowAttribute_enableScrollInteraction(ptr: KPointer, value: KInt): void + native static _WaterFlowAttribute_friction(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _WaterFlowAttribute_cachedCount(ptr: KPointer, value: number): void + native static _WaterFlowAttribute_onReachStart(ptr: KPointer, event: KInt): void + native static _WaterFlowAttribute_onReachEnd(ptr: KPointer, event: KInt): void + native static _WaterFlowAttribute_onScrollFrameBegin(ptr: KPointer, event: KInt): void + native static _WaterFlowAttribute_onScrollIndex(ptr: KPointer, event: KInt): void native static _UIExtensionComponentInterface_setUIExtensionComponentOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _UIExtensionComponentAttribute_onRemoteReady(ptr: KPointer, callback: KInt): void native static _UIExtensionComponentAttribute_onReceive(ptr: KPointer, callback: KInt): void @@ -235,20 +1438,40 @@ export class NativeModule { native static _UIExtensionComponentAttribute_onRelease(ptr: KPointer, callback: KInt): void native static _UIExtensionComponentAttribute_onError(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _UIExtensionComponentAttribute_onTerminated(ptr: KPointer, callback: KInt): void - native static _VectorInterface_setVectorOptions(ptr: KPointer): void - native static _VectorAttribute_testVector1(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _VectorAttribute_testVector2(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _VectorAttribute_testUnionVector1Number(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _VectorAttribute_testUnionVector2Number(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _WebInterface_setWebOptions(ptr: KPointer): void - native static _WebAttribute_onNativeEmbedLifecycleChange(ptr: KPointer, callback: KInt): void - native static _WebAttribute_onRenderExited0(ptr: KPointer, callback: KInt): void - native static _WebAttribute_onRenderExited1(ptr: KPointer, callback: KInt): void - native static _WebAttribute_onHttpErrorReceive(ptr: KPointer, callback: KInt): void + native static _LinearIndicatorInterface_setLinearIndicatorOptions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _LinearIndicatorAttribute_indicatorStyle(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _LinearIndicatorAttribute_indicatorLoop(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _LinearIndicatorAttribute_onChange(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _DrawModifier_ctor(): KPointer + native static _DrawModifier_getFinalizer(): KPointer + native static _DrawModifier_drawBehind(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _DrawModifier_drawContent(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _DrawModifier_drawFront(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _DrawModifier_invalidate(ptr: KPointer): void + native static _ICurve_ctor(): KPointer + native static _ICurve_getFinalizer(): KPointer + native static _ICurve_interpolate(ptr: KPointer, fraction: number): number + native static _PanGestureOptions_ctor(thisArray: KUint8ArrayPtr, thisLength: int32): KPointer + native static _PanGestureOptions_getFinalizer(): KPointer + native static _PanGestureOptions_setDirection(ptr: KPointer, value: KInt): void + native static _PanGestureOptions_setDistance(ptr: KPointer, value: number): void + native static _PanGestureOptions_setFingers(ptr: KPointer, value: number): void + native static _PanGestureOptions_getDirection(ptr: KPointer): KPointer + native static _ProgressMask_ctor(value: number, total: number, thisArray: KUint8ArrayPtr, thisLength: int32): KPointer + native static _ProgressMask_getFinalizer(): KPointer + native static _ProgressMask_updateProgress(ptr: KPointer, value: number): void + native static _ProgressMask_updateColor(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ProgressMask_enableBreathingAnimation(ptr: KPointer, value: KInt): void + native static _AttributeModifier_ctor(): KPointer + native static _AttributeModifier_getFinalizer(): KPointer + native static _AttributeModifier_applyNormalAttribute(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _AttributeModifier_applyPressedAttribute(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _AttributeModifier_applyFocusedAttribute(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _AttributeModifier_applyDisabledAttribute(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _AttributeModifier_applySelectedAttribute(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _GestureModifier_ctor(): KPointer native static _GestureModifier_getFinalizer(): KPointer - native static _GestureModifier_applyGesture0(ptr: KPointer): void - native static _GestureModifier_applyGesture1(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _GestureModifier_applyGesture(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _GestureRecognizer_ctor(): KPointer native static _GestureRecognizer_getFinalizer(): KPointer native static _GestureRecognizer_getTag(ptr: KPointer): string @@ -258,38 +1481,117 @@ export class NativeModule { native static _GestureRecognizer_isEnabled(ptr: KPointer): boolean native static _GestureRecognizer_getState(ptr: KPointer): KPointer native static _GestureRecognizer_getEventTargetInfo(ptr: KPointer): KPointer + native static _GestureRecognizer_isValid(ptr: KPointer): boolean native static _EventTargetInfo_ctor(): KPointer native static _EventTargetInfo_getFinalizer(): KPointer native static _EventTargetInfo_getId(ptr: KPointer): string + native static _CalendarController_ctor(): KPointer + native static _CalendarController_getFinalizer(): KPointer + native static _CalendarController_backToToday(ptr: KPointer): void + native static _CalendarController_goTo(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _CanvasRenderingContext2D_ctor(thisArray: KUint8ArrayPtr, thisLength: int32): KPointer native static _CanvasRenderingContext2D_getFinalizer(): KPointer + native static _CanvasRenderingContext2D_toDataURL(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): string + native static _CanvasRenderingContext2D_startImageAnalyzer(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): KPointer native static _CanvasRenderingContext2D_stopImageAnalyzer(ptr: KPointer): void - native static _CanvasRenderingContext2D_of(): KPointer native static _CanvasRenderingContext2D_getHeight(ptr: KPointer): number native static _CanvasRenderingContext2D_getWidth(ptr: KPointer): number native static _CanvasRenderer_ctor(): KPointer native static _CanvasRenderer_getFinalizer(): KPointer + native static _CanvasRenderer_drawImage0(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32, dx: number, dy: number): void + native static _CanvasRenderer_drawImage1(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32, dx: number, dy: number, dw: number, dh: number): void + native static _CanvasRenderer_drawImage2(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32, sx: number, sy: number, sw: number, sh: number, dx: number, dy: number, dw: number, dh: number): void native static _CanvasRenderer_beginPath(ptr: KPointer): void - native static _CanvasRenderer_clip(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _CanvasRenderer_reset(ptr: KPointer): void + native static _CanvasRenderer_clip0(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CanvasRenderer_clip1(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CanvasRenderer_fill0(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CanvasRenderer_fill1(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CanvasRenderer_stroke0(ptr: KPointer): void + native static _CanvasRenderer_stroke1(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CanvasRenderer_createLinearGradient(ptr: KPointer, x0: number, y0: number, x1: number, y1: number): KPointer + native static _CanvasRenderer_createPattern(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): KPointer + native static _CanvasRenderer_createRadialGradient(ptr: KPointer, x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): KPointer + native static _CanvasRenderer_createConicGradient(ptr: KPointer, startAngle: number, x: number, y: number): KPointer + native static _CanvasRenderer_createImageData0(ptr: KPointer, sw: number, sh: number): KPointer + native static _CanvasRenderer_createImageData1(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): KPointer + native static _CanvasRenderer_getImageData(ptr: KPointer, sx: number, sy: number, sw: number, sh: number): KPointer + native static _CanvasRenderer_getPixelMap(ptr: KPointer, sx: number, sy: number, sw: number, sh: number): KPointer native static _CanvasRenderer_putImageData0(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _CanvasRenderer_putImageData1(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CanvasRenderer_getLineDash(ptr: KPointer): KPointer + native static _CanvasRenderer_setLineDash(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CanvasRenderer_clearRect(ptr: KPointer, x: number, y: number, w: number, h: number): void + native static _CanvasRenderer_fillRect(ptr: KPointer, x: number, y: number, w: number, h: number): void + native static _CanvasRenderer_strokeRect(ptr: KPointer, x: number, y: number, w: number, h: number): void + native static _CanvasRenderer_restore(ptr: KPointer): void + native static _CanvasRenderer_save(ptr: KPointer): void + native static _CanvasRenderer_fillText(ptr: KPointer, text: KStringPtr, x: number, y: number, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CanvasRenderer_measureText(ptr: KPointer, text: KStringPtr): KPointer + native static _CanvasRenderer_strokeText(ptr: KPointer, text: KStringPtr, x: number, y: number, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CanvasRenderer_getTransform(ptr: KPointer): KPointer + native static _CanvasRenderer_resetTransform(ptr: KPointer): void + native static _CanvasRenderer_rotate(ptr: KPointer, angle: number): void + native static _CanvasRenderer_scale(ptr: KPointer, x: number, y: number): void + native static _CanvasRenderer_setTransform0(ptr: KPointer, a: number, b: number, c: number, d: number, e: number, f: number): void + native static _CanvasRenderer_setTransform1(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CanvasRenderer_transform(ptr: KPointer, a: number, b: number, c: number, d: number, e: number, f: number): void + native static _CanvasRenderer_translate(ptr: KPointer, x: number, y: number): void + native static _CanvasRenderer_setPixelMap(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CanvasRenderer_transferFromImageBitmap(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CanvasRenderer_saveLayer(ptr: KPointer): void + native static _CanvasRenderer_restoreLayer(ptr: KPointer): void + native static _CanvasRenderer_reset(ptr: KPointer): void native static _CanvasRenderer_getGlobalAlpha(ptr: KPointer): number native static _CanvasRenderer_setGlobalAlpha(ptr: KPointer, globalAlpha: number): void native static _CanvasRenderer_getGlobalCompositeOperation(ptr: KPointer): string native static _CanvasRenderer_setGlobalCompositeOperation(ptr: KPointer, globalCompositeOperation: KStringPtr): void native static _CanvasRenderer_setFillStyle(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CanvasRenderer_setStrokeStyle(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CanvasRenderer_getFilter(ptr: KPointer): string + native static _CanvasRenderer_setFilter(ptr: KPointer, filter: KStringPtr): void + native static _CanvasRenderer_getImageSmoothingEnabled(ptr: KPointer): boolean + native static _CanvasRenderer_setImageSmoothingEnabled(ptr: KPointer, imageSmoothingEnabled: KInt): void + native static _CanvasRenderer_setImageSmoothingQuality(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CanvasRenderer_setLineCap(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CanvasRenderer_getLineDashOffset(ptr: KPointer): number + native static _CanvasRenderer_setLineDashOffset(ptr: KPointer, lineDashOffset: number): void + native static _CanvasRenderer_setLineJoin(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CanvasRenderer_getLineWidth(ptr: KPointer): number + native static _CanvasRenderer_setLineWidth(ptr: KPointer, lineWidth: number): void + native static _CanvasRenderer_getMiterLimit(ptr: KPointer): number + native static _CanvasRenderer_setMiterLimit(ptr: KPointer, miterLimit: number): void + native static _CanvasRenderer_getShadowBlur(ptr: KPointer): number + native static _CanvasRenderer_setShadowBlur(ptr: KPointer, shadowBlur: number): void + native static _CanvasRenderer_getShadowColor(ptr: KPointer): string + native static _CanvasRenderer_setShadowColor(ptr: KPointer, shadowColor: KStringPtr): void + native static _CanvasRenderer_getShadowOffsetX(ptr: KPointer): number + native static _CanvasRenderer_setShadowOffsetX(ptr: KPointer, shadowOffsetX: number): void + native static _CanvasRenderer_getShadowOffsetY(ptr: KPointer): number + native static _CanvasRenderer_setShadowOffsetY(ptr: KPointer, shadowOffsetY: number): void + native static _CanvasRenderer_setDirection(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CanvasRenderer_getFont(ptr: KPointer): string + native static _CanvasRenderer_setFont(ptr: KPointer, font: KStringPtr): void + native static _CanvasRenderer_setTextAlign(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CanvasRenderer_setTextBaseline(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _CanvasPath_ctor(): KPointer native static _CanvasPath_getFinalizer(): KPointer - native static _CanvasPath_rect(ptr: KPointer, x: number, y: number, w: number, h: number): void native static _CanvasPath_arc(ptr: KPointer, x: number, y: number, radius: number, startAngle: number, endAngle: number, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CanvasPath_arcTo(ptr: KPointer, x1: number, y1: number, x2: number, y2: number, radius: number): void + native static _CanvasPath_bezierCurveTo(ptr: KPointer, cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void native static _CanvasPath_closePath(ptr: KPointer): void - native static _CanvasGradient_ctor(): KPointer - native static _CanvasGradient_getFinalizer(): KPointer - native static _CanvasGradient_addColorStop(ptr: KPointer, offset: number, color: KStringPtr): void - native static _CanvasPattern_ctor(): KPointer - native static _CanvasPattern_getFinalizer(): KPointer - native static _CanvasPattern_setTransform(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CanvasPath_ellipse(ptr: KPointer, x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CanvasPath_lineTo(ptr: KPointer, x: number, y: number): void + native static _CanvasPath_moveTo(ptr: KPointer, x: number, y: number): void + native static _CanvasPath_quadraticCurveTo(ptr: KPointer, cpx: number, cpy: number, x: number, y: number): void + native static _CanvasPath_rect(ptr: KPointer, x: number, y: number, w: number, h: number): void + native static _ImageBitmap_ctor(src: KStringPtr): KPointer + native static _ImageBitmap_getFinalizer(): KPointer + native static _ImageBitmap_close(ptr: KPointer): void + native static _ImageBitmap_getHeight(ptr: KPointer): number + native static _ImageBitmap_getWidth(ptr: KPointer): number + native static _Path2D_ctor(): KPointer + native static _Path2D_getFinalizer(): KPointer + native static _Path2D_addPath(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _Matrix2D_ctor(): KPointer native static _Matrix2D_getFinalizer(): KPointer native static _Matrix2D_identity(ptr: KPointer): KPointer @@ -311,9 +1613,35 @@ export class NativeModule { native static _Matrix2D_setTranslateX(ptr: KPointer, translateX: number): void native static _Matrix2D_getTranslateY(ptr: KPointer): number native static _Matrix2D_setTranslateY(ptr: KPointer, translateY: number): void + native static _CanvasGradient_ctor(): KPointer + native static _CanvasGradient_getFinalizer(): KPointer + native static _CanvasGradient_addColorStop(ptr: KPointer, offset: number, color: KStringPtr): void + native static _CanvasPattern_ctor(): KPointer + native static _CanvasPattern_getFinalizer(): KPointer + native static _CanvasPattern_setTransform(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _DrawingRenderingContext_ctor(thisArray: KUint8ArrayPtr, thisLength: int32): KPointer native static _DrawingRenderingContext_getFinalizer(): KPointer native static _DrawingRenderingContext_invalidate(ptr: KPointer): void + native static _ImageAnalyzerController_ctor(): KPointer + native static _ImageAnalyzerController_getFinalizer(): KPointer + native static _ImageAnalyzerController_getImageAnalyzerSupportTypes(ptr: KPointer): KPointer + native static _Scroller_ctor(): KPointer + native static _Scroller_getFinalizer(): KPointer + native static _Scroller_scrollTo(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _Scroller_scrollEdge(ptr: KPointer, value: KInt, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _Scroller_fling(ptr: KPointer, velocity: number): void + native static _Scroller_scrollPage0(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _Scroller_scrollPage1(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _Scroller_currentOffset(ptr: KPointer): KPointer + native static _Scroller_scrollToIndex(ptr: KPointer, value: number, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _Scroller_scrollBy(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _Scroller_isAtEnd(ptr: KPointer): boolean + native static _Scroller_getItemRect(ptr: KPointer, index: number): KPointer + native static _Scroller_getItemIndex(ptr: KPointer, x: number, y: number): number + native static _ChildrenMainSize_ctor(childDefaultSize: number): KPointer + native static _ChildrenMainSize_getFinalizer(): KPointer + native static _ChildrenMainSize_splice(ptr: KPointer, start: number, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ChildrenMainSize_update(ptr: KPointer, index: number, childSize: number): void native static _NavDestinationContext_ctor(): KPointer native static _NavDestinationContext_getFinalizer(): KPointer native static _NavDestinationContext_getConfigInRouteMap(ptr: KPointer): KPointer @@ -363,60 +1691,334 @@ export class NativeModule { native static _NavigationTransitionProxy_setTo(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _NavigationTransitionProxy_getIsInteractive(ptr: KPointer): boolean native static _NavigationTransitionProxy_setIsInteractive(ptr: KPointer, isInteractive: KInt): void - native static _Scroller_ctor(): KPointer - native static _Scroller_getFinalizer(): KPointer - native static _Scroller_scrollTo(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _Scroller_scrollPage0(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _Scroller_scrollPage1(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _ICurve_ctor(): KPointer - native static _ICurve_getFinalizer(): KPointer - native static _ICurve_interpolate(ptr: KPointer, fraction: number): number + native static _PatternLockController_ctor(): KPointer + native static _PatternLockController_getFinalizer(): KPointer + native static _PatternLockController_reset(ptr: KPointer): void + native static _PatternLockController_setChallengeResult(ptr: KPointer, result: KInt): void + native static _EditMenuOptions_ctor(): KPointer + native static _EditMenuOptions_getFinalizer(): KPointer + native static _EditMenuOptions_onCreateMenu(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): KPointer + native static _EditMenuOptions_onMenuItemClick(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): boolean + native static _RichEditorController_ctor(): KPointer + native static _RichEditorController_getFinalizer(): KPointer + native static _RichEditorController_addTextSpan(ptr: KPointer, value: KStringPtr, thisArray: KUint8ArrayPtr, thisLength: int32): number + native static _RichEditorController_addImageSpan(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): number + native static _RichEditorController_addBuilderSpan(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): number + native static _RichEditorController_addSymbolSpan(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): number + native static _RichEditorController_updateSpanStyle(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _RichEditorController_updateParagraphStyle(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _RichEditorController_deleteSpans(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _RichEditorController_getSpans(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): KPointer + native static _RichEditorController_getParagraphs(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): KPointer + native static _RichEditorController_getSelection(ptr: KPointer): KPointer + native static _RichEditorController_fromStyledString(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): KPointer + native static _RichEditorController_toStyledString(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): KPointer + native static _RichEditorBaseController_ctor(): KPointer + native static _RichEditorBaseController_getFinalizer(): KPointer + native static _RichEditorBaseController_getCaretOffset(ptr: KPointer): number + native static _RichEditorBaseController_setCaretOffset(ptr: KPointer, offset: number): boolean + native static _RichEditorBaseController_closeSelectionMenu(ptr: KPointer): void + native static _RichEditorBaseController_getTypingStyle(ptr: KPointer): KPointer + native static _RichEditorBaseController_setTypingStyle(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _RichEditorBaseController_setSelection(ptr: KPointer, selectionStart: number, selectionEnd: number, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _RichEditorBaseController_isEditing(ptr: KPointer): boolean + native static _RichEditorBaseController_stopEditing(ptr: KPointer): void + native static _RichEditorBaseController_getLayoutManager(ptr: KPointer): KPointer + native static _RichEditorBaseController_getPreviewText(ptr: KPointer): KPointer + native static _TextEditControllerEx_ctor(): KPointer + native static _TextEditControllerEx_getFinalizer(): KPointer + native static _TextEditControllerEx_isEditing(ptr: KPointer): boolean + native static _TextEditControllerEx_stopEditing(ptr: KPointer): void + native static _TextEditControllerEx_setCaretOffset(ptr: KPointer, offset: number): boolean + native static _TextEditControllerEx_getCaretOffset(ptr: KPointer): number + native static _TextEditControllerEx_getPreviewText(ptr: KPointer): KPointer + native static _TextBaseController_ctor(): KPointer + native static _TextBaseController_getFinalizer(): KPointer + native static _TextBaseController_setSelection(ptr: KPointer, selectionStart: number, selectionEnd: number, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextBaseController_closeSelectionMenu(ptr: KPointer): void + native static _TextBaseController_getLayoutManager(ptr: KPointer): KPointer + native static _LayoutManager_ctor(): KPointer + native static _LayoutManager_getFinalizer(): KPointer + native static _LayoutManager_getLineCount(ptr: KPointer): number + native static _LayoutManager_getGlyphPositionAtCoordinate(ptr: KPointer, x: number, y: number): KPointer + native static _LayoutManager_getLineMetrics(ptr: KPointer, lineNumber: number): KPointer + native static _LayoutManager_getRectsForRange(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): KPointer + native static _StyledString_ctor(thisArray: KUint8ArrayPtr, thisLength: int32): KPointer + native static _StyledString_getFinalizer(): KPointer + native static _StyledString_getString(ptr: KPointer): string + native static _StyledString_getStyles(ptr: KPointer, start: number, length: number, thisArray: KUint8ArrayPtr, thisLength: int32): KPointer + native static _StyledString_equals(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): boolean + native static _StyledString_subStyledString(ptr: KPointer, start: number, thisArray: KUint8ArrayPtr, thisLength: int32): KPointer + native static _StyledString_fromHtml(html: KStringPtr): KPointer + native static _StyledString_marshalling(thisArray: KUint8ArrayPtr, thisLength: int32): KPointer + native static _StyledString_unmarshalling(thisArray: KUint8ArrayPtr, thisLength: int32): KPointer + native static _StyledString_getLength(ptr: KPointer): number + native static _CustomSpan_ctor(): KPointer + native static _CustomSpan_getFinalizer(): KPointer + native static _CustomSpan_onMeasure(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): KPointer + native static _CustomSpan_onDraw(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _CustomSpan_invalidate(ptr: KPointer): void + native static _RichEditorStyledStringController_ctor(): KPointer + native static _RichEditorStyledStringController_getFinalizer(): KPointer + native static _RichEditorStyledStringController_setStyledString(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _RichEditorStyledStringController_getStyledString(ptr: KPointer): KPointer + native static _RichEditorStyledStringController_getSelection(ptr: KPointer): KPointer + native static _RichEditorStyledStringController_onContentChanged(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _StyledStringController_ctor(): KPointer + native static _StyledStringController_getFinalizer(): KPointer + native static _StyledStringController_setStyledString(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _StyledStringController_getStyledString(ptr: KPointer): KPointer + native static _MutableStyledString_ctor(): KPointer + native static _MutableStyledString_getFinalizer(): KPointer + native static _MutableStyledString_replaceString(ptr: KPointer, start: number, length: number, other: KStringPtr): void + native static _MutableStyledString_insertString(ptr: KPointer, start: number, other: KStringPtr): void + native static _MutableStyledString_removeString(ptr: KPointer, start: number, length: number): void + native static _MutableStyledString_replaceStyle(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _MutableStyledString_setStyle(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _MutableStyledString_removeStyle(ptr: KPointer, start: number, length: number, styledKey: KInt): void + native static _MutableStyledString_removeStyles(ptr: KPointer, start: number, length: number): void + native static _MutableStyledString_clearStyles(ptr: KPointer): void + native static _MutableStyledString_replaceStyledString(ptr: KPointer, start: number, length: number, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _MutableStyledString_insertStyledString(ptr: KPointer, start: number, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _MutableStyledString_appendStyledString(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _SearchController_ctor(): KPointer + native static _SearchController_getFinalizer(): KPointer + native static _SearchController_caretPosition(ptr: KPointer, value: number): void + native static _SearchController_stopEditing(ptr: KPointer): void + native static _SearchController_setTextSelection(ptr: KPointer, selectionStart: number, selectionEnd: number, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextContentControllerBase_ctor(): KPointer + native static _TextContentControllerBase_getFinalizer(): KPointer + native static _TextContentControllerBase_getCaretOffset(ptr: KPointer): KPointer + native static _TextContentControllerBase_getTextContentRect(ptr: KPointer): KPointer + native static _TextContentControllerBase_getTextContentLineCount(ptr: KPointer): number + native static _SwiperContentTransitionProxy_ctor(): KPointer + native static _SwiperContentTransitionProxy_getFinalizer(): KPointer + native static _SwiperContentTransitionProxy_finishTransition(ptr: KPointer): void + native static _SwiperContentTransitionProxy_getSelectedIndex(ptr: KPointer): number + native static _SwiperContentTransitionProxy_setSelectedIndex(ptr: KPointer, selectedIndex: number): void + native static _SwiperContentTransitionProxy_getIndex(ptr: KPointer): number + native static _SwiperContentTransitionProxy_setIndex(ptr: KPointer, index: number): void + native static _SwiperContentTransitionProxy_getPosition(ptr: KPointer): number + native static _SwiperContentTransitionProxy_setPosition(ptr: KPointer, position: number): void + native static _SwiperContentTransitionProxy_getMainAxisLength(ptr: KPointer): number + native static _SwiperContentTransitionProxy_setMainAxisLength(ptr: KPointer, mainAxisLength: number): void native static _SwiperController_ctor(): KPointer native static _SwiperController_getFinalizer(): KPointer native static _SwiperController_showNext(ptr: KPointer): void native static _SwiperController_showPrevious(ptr: KPointer): void native static _SwiperController_changeIndex(ptr: KPointer, index: number, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _SwiperController_finishAnimation(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _ClassWithConstructorAndMethodsDTS_ctor(valNumber: number, valString: KStringPtr): KPointer - native static _ClassWithConstructorAndMethodsDTS_getFinalizer(): KPointer - native static _ClassWithConstructorAndMethodsDTS_method(ptr: KPointer, valNumber: number, valString: KStringPtr): void - native static _ClassWithConstructorAndStaticMethodsDTS_ctor(valNumber: number, valString: KStringPtr): KPointer - native static _ClassWithConstructorAndStaticMethodsDTS_getFinalizer(): KPointer - native static _ClassWithConstructorAndStaticMethodsDTS_of(valNumber: number, valString: KStringPtr): KPointer - native static _ClassWithConstructorAndFieldsAndMethodsDTS_ctor(valNumber: number, valBoolean: KInt): KPointer - native static _ClassWithConstructorAndFieldsAndMethodsDTS_getFinalizer(): KPointer - native static _ClassWithConstructorAndFieldsAndMethodsDTS_method(ptr: KPointer, valNumber: number, valString: KStringPtr): void - native static _ClassWithConstructorAndFieldsAndMethodsDTS_getValNumber(ptr: KPointer): number - native static _ClassWithConstructorAndFieldsAndMethodsDTS_setValNumber(ptr: KPointer, valNumber: number): void - native static _ClassWithConstructorAndFieldsAndMethodsDTS_getValBoolean(ptr: KPointer): boolean - native static _ClassWithConstructorAndFieldsAndMethodsDTS_setValBoolean(ptr: KPointer, valBoolean: KInt): void - native static _ClassWithConstructorAndNonOptionalParamsDTS_ctor(valNumber: number, valString: KStringPtr): KPointer - native static _ClassWithConstructorAndNonOptionalParamsDTS_getFinalizer(): KPointer - native static _ClassWithConstructorAndNonOptionalParamsDTS_of(valNumber: number, valString: KStringPtr): KPointer - native static _ClassWithConstructorAndNonOptionalParamsDTS_method(ptr: KPointer, valBoolean: KInt, valString: KStringPtr): void - native static _ClassWithConstructorAndSomeOptionalParamsDTS_ctor(valNumber: number, thisArray: KUint8ArrayPtr, thisLength: int32): KPointer - native static _ClassWithConstructorAndSomeOptionalParamsDTS_getFinalizer(): KPointer - native static _ClassWithConstructorAndSomeOptionalParamsDTS_of(valNumber: number, thisArray: KUint8ArrayPtr, thisLength: int32): KPointer - native static _ClassWithConstructorAndSomeOptionalParamsDTS_method(ptr: KPointer, valBoolean: KInt, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _ClassWithConstructorAndAllOptionalParamsDTS_ctor(thisArray: KUint8ArrayPtr, thisLength: int32): KPointer - native static _ClassWithConstructorAndAllOptionalParamsDTS_getFinalizer(): KPointer - native static _ClassWithConstructorAndAllOptionalParamsDTS_of(thisArray: KUint8ArrayPtr, thisLength: int32): KPointer - native static _ClassWithConstructorAndAllOptionalParamsDTS_method(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _ClassWithConstructorAndWithoutParamsDTS_ctor(): KPointer - native static _ClassWithConstructorAndWithoutParamsDTS_getFinalizer(): KPointer - native static _ClassWithConstructorAndWithoutParamsDTS_of(): KPointer - native static _ClassWithConstructorAndWithoutParamsDTS_method(ptr: KPointer): void + native static _TabContentTransitionProxy_ctor(): KPointer + native static _TabContentTransitionProxy_getFinalizer(): KPointer + native static _TabContentTransitionProxy_finishTransition(ptr: KPointer): void + native static _TabContentTransitionProxy_getFrom(ptr: KPointer): number + native static _TabContentTransitionProxy_setFrom(ptr: KPointer, from: number): void + native static _TabContentTransitionProxy_getTo(ptr: KPointer): number + native static _TabContentTransitionProxy_setTo(ptr: KPointer, to: number): void + native static _TabsController_ctor(): KPointer + native static _TabsController_getFinalizer(): KPointer + native static _TabsController_changeIndex(ptr: KPointer, value: number): void + native static _TabsController_preloadItems(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): KPointer native static _TextController_ctor(): KPointer native static _TextController_getFinalizer(): KPointer native static _TextController_closeSelectionMenu(ptr: KPointer): void native static _TextController_setStyledString(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _StyledString_ctor(): KPointer - native static _StyledString_getFinalizer(): KPointer - native static _StyledString_getString(ptr: KPointer): string - native static _StyledString_equals(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): boolean - native static _StyledString_subStyledString(ptr: KPointer, start: number, thisArray: KUint8ArrayPtr, thisLength: int32): KPointer - native static _StyledString_marshalling(thisArray: KUint8ArrayPtr, thisLength: int32): KPointer - native static _StyledString_getLength(ptr: KPointer): number + native static _TextController_getLayoutManager(ptr: KPointer): KPointer + native static _TextAreaController_ctor(): KPointer + native static _TextAreaController_getFinalizer(): KPointer + native static _TextAreaController_caretPosition(ptr: KPointer, value: number): void + native static _TextAreaController_setTextSelection(ptr: KPointer, selectionStart: number, selectionEnd: number, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextAreaController_stopEditing(ptr: KPointer): void + native static _TextClockController_ctor(): KPointer + native static _TextClockController_getFinalizer(): KPointer + native static _TextClockController_start(ptr: KPointer): void + native static _TextClockController_stop(ptr: KPointer): void + native static _TextInputController_ctor(): KPointer + native static _TextInputController_getFinalizer(): KPointer + native static _TextInputController_caretPosition(ptr: KPointer, value: number): void + native static _TextInputController_setTextSelection(ptr: KPointer, selectionStart: number, selectionEnd: number, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TextInputController_stopEditing(ptr: KPointer): void + native static _TextTimerController_ctor(): KPointer + native static _TextTimerController_getFinalizer(): KPointer + native static _TextTimerController_start(ptr: KPointer): void + native static _TextTimerController_pause(ptr: KPointer): void + native static _TextTimerController_reset(ptr: KPointer): void + native static _VideoController_ctor(): KPointer + native static _VideoController_getFinalizer(): KPointer + native static _VideoController_start(ptr: KPointer): void + native static _VideoController_pause(ptr: KPointer): void + native static _VideoController_stop(ptr: KPointer): void + native static _VideoController_setCurrentTime0(ptr: KPointer, value: number): void + native static _VideoController_requestFullscreen(ptr: KPointer, value: KInt): void + native static _VideoController_exitFullscreen(ptr: KPointer): void + native static _VideoController_setCurrentTime1(ptr: KPointer, value: number, seekMode: KInt): void + native static _VideoController_reset(ptr: KPointer): void + native static _WebController_ctor(): KPointer + native static _WebController_getFinalizer(): KPointer + native static _WebController_onInactive(ptr: KPointer): void + native static _WebController_onActive(ptr: KPointer): void + native static _WebController_zoom(ptr: KPointer, factor: number): void + native static _WebController_clearHistory(ptr: KPointer): void + native static _WebController_runJavaScript(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _WebController_loadData(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _WebController_loadUrl(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _WebController_refresh(ptr: KPointer): void + native static _WebController_stop(ptr: KPointer): void + native static _WebController_registerJavaScriptProxy(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _WebController_deleteJavaScriptRegister(ptr: KPointer, name: KStringPtr): void + native static _WebController_getHitTest(ptr: KPointer): KPointer + native static _WebController_requestFocus(ptr: KPointer): void + native static _WebController_accessBackward(ptr: KPointer): boolean + native static _WebController_accessForward(ptr: KPointer): boolean + native static _WebController_accessStep(ptr: KPointer, step: number): boolean + native static _WebController_backward(ptr: KPointer): void + native static _WebController_forward(ptr: KPointer): void + native static _WebController_getCookieManager(ptr: KPointer): KPointer + native static _WebCookie_ctor(): KPointer + native static _WebCookie_getFinalizer(): KPointer + native static _WebCookie_setCookie(ptr: KPointer): void + native static _WebCookie_saveCookie(ptr: KPointer): void + native static _JsGeolocation_ctor(): KPointer + native static _JsGeolocation_getFinalizer(): KPointer + native static _JsGeolocation_invoke(ptr: KPointer, origin: KStringPtr, allow: KInt, retain: KInt): void + native static _JsResult_ctor(): KPointer + native static _JsResult_getFinalizer(): KPointer + native static _JsResult_handleCancel(ptr: KPointer): void + native static _JsResult_handleConfirm(ptr: KPointer): void + native static _JsResult_handlePromptConfirm(ptr: KPointer, result: KStringPtr): void + native static _ConsoleMessage_ctor(message: KStringPtr, sourceId: KStringPtr, lineNumber: number, messageLevel: KInt): KPointer + native static _ConsoleMessage_getFinalizer(): KPointer + native static _ConsoleMessage_getMessage(ptr: KPointer): string + native static _ConsoleMessage_getSourceId(ptr: KPointer): string + native static _ConsoleMessage_getLineNumber(ptr: KPointer): number + native static _ConsoleMessage_getMessageLevel(ptr: KPointer): KPointer + native static _WebResourceRequest_ctor(): KPointer + native static _WebResourceRequest_getFinalizer(): KPointer + native static _WebResourceRequest_getRequestHeader(ptr: KPointer): KPointer + native static _WebResourceRequest_getRequestUrl(ptr: KPointer): string + native static _WebResourceRequest_isRequestGesture(ptr: KPointer): boolean + native static _WebResourceRequest_isMainFrame(ptr: KPointer): boolean + native static _WebResourceRequest_isRedirect(ptr: KPointer): boolean + native static _WebResourceRequest_getRequestMethod(ptr: KPointer): string + native static _WebResourceError_ctor(): KPointer + native static _WebResourceError_getFinalizer(): KPointer + native static _WebResourceError_getErrorInfo(ptr: KPointer): string + native static _WebResourceError_getErrorCode(ptr: KPointer): number + native static _WebResourceResponse_ctor(): KPointer + native static _WebResourceResponse_getFinalizer(): KPointer + native static _WebResourceResponse_getResponseData(ptr: KPointer): string + native static _WebResourceResponse_getResponseDataEx(ptr: KPointer): KPointer + native static _WebResourceResponse_getResponseEncoding(ptr: KPointer): string + native static _WebResourceResponse_getResponseMimeType(ptr: KPointer): string + native static _WebResourceResponse_getReasonMessage(ptr: KPointer): string + native static _WebResourceResponse_getResponseHeader(ptr: KPointer): KPointer + native static _WebResourceResponse_getResponseCode(ptr: KPointer): number + native static _WebResourceResponse_setResponseData(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _WebResourceResponse_setResponseEncoding(ptr: KPointer, encoding: KStringPtr): void + native static _WebResourceResponse_setResponseMimeType(ptr: KPointer, mimeType: KStringPtr): void + native static _WebResourceResponse_setReasonMessage(ptr: KPointer, reason: KStringPtr): void + native static _WebResourceResponse_setResponseHeader(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _WebResourceResponse_setResponseCode(ptr: KPointer, code: number): void + native static _WebResourceResponse_setResponseIsReady(ptr: KPointer, IsReady: KInt): void + native static _WebResourceResponse_getResponseIsReady(ptr: KPointer): boolean + native static _FileSelectorResult_ctor(): KPointer + native static _FileSelectorResult_getFinalizer(): KPointer + native static _FileSelectorResult_handleFileList(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _FileSelectorParam_ctor(): KPointer + native static _FileSelectorParam_getFinalizer(): KPointer + native static _FileSelectorParam_getTitle(ptr: KPointer): string + native static _FileSelectorParam_getMode(ptr: KPointer): KPointer + native static _FileSelectorParam_getAcceptType(ptr: KPointer): KPointer + native static _FileSelectorParam_isCapture(ptr: KPointer): boolean + native static _FullScreenExitHandler_ctor(): KPointer + native static _FullScreenExitHandler_getFinalizer(): KPointer + native static _FullScreenExitHandler_exitFullScreen(ptr: KPointer): void + native static _HttpAuthHandler_ctor(): KPointer + native static _HttpAuthHandler_getFinalizer(): KPointer + native static _HttpAuthHandler_confirm(ptr: KPointer, userName: KStringPtr, password: KStringPtr): boolean + native static _HttpAuthHandler_cancel(ptr: KPointer): void + native static _HttpAuthHandler_isHttpAuthInfoSaved(ptr: KPointer): boolean + native static _PermissionRequest_ctor(): KPointer + native static _PermissionRequest_getFinalizer(): KPointer + native static _PermissionRequest_deny(ptr: KPointer): void + native static _PermissionRequest_getOrigin(ptr: KPointer): string + native static _PermissionRequest_getAccessibleResource(ptr: KPointer): KPointer + native static _PermissionRequest_grant(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ScreenCaptureHandler_ctor(): KPointer + native static _ScreenCaptureHandler_getFinalizer(): KPointer + native static _ScreenCaptureHandler_getOrigin(ptr: KPointer): string + native static _ScreenCaptureHandler_grant(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _ScreenCaptureHandler_deny(ptr: KPointer): void + native static _WebContextMenuParam_ctor(): KPointer + native static _WebContextMenuParam_getFinalizer(): KPointer + native static _WebContextMenuParam_x(ptr: KPointer): number + native static _WebContextMenuParam_y(ptr: KPointer): number + native static _WebContextMenuParam_getLinkUrl(ptr: KPointer): string + native static _WebContextMenuParam_getUnfilteredLinkUrl(ptr: KPointer): string + native static _WebContextMenuParam_getSourceUrl(ptr: KPointer): string + native static _WebContextMenuParam_existsImageContents(ptr: KPointer): boolean + native static _WebContextMenuParam_getMediaType(ptr: KPointer): KPointer + native static _WebContextMenuParam_getSelectionText(ptr: KPointer): string + native static _WebContextMenuParam_getSourceType(ptr: KPointer): KPointer + native static _WebContextMenuParam_getInputFieldType(ptr: KPointer): KPointer + native static _WebContextMenuParam_isEditable(ptr: KPointer): boolean + native static _WebContextMenuParam_getEditStateFlags(ptr: KPointer): number + native static _WebContextMenuResult_ctor(): KPointer + native static _WebContextMenuResult_getFinalizer(): KPointer + native static _WebContextMenuResult_closeContextMenu(ptr: KPointer): void + native static _WebContextMenuResult_copyImage(ptr: KPointer): void + native static _WebContextMenuResult_copy(ptr: KPointer): void + native static _WebContextMenuResult_paste(ptr: KPointer): void + native static _WebContextMenuResult_cut(ptr: KPointer): void + native static _WebContextMenuResult_selectAll(ptr: KPointer): void + native static _SslErrorHandler_ctor(): KPointer + native static _SslErrorHandler_getFinalizer(): KPointer + native static _SslErrorHandler_handleConfirm(ptr: KPointer): void + native static _SslErrorHandler_handleCancel(ptr: KPointer): void + native static _ClientAuthenticationHandler_ctor(): KPointer + native static _ClientAuthenticationHandler_getFinalizer(): KPointer + native static _ClientAuthenticationHandler_confirm0(ptr: KPointer, priKeyFile: KStringPtr, certChainFile: KStringPtr): void + native static _ClientAuthenticationHandler_confirm1(ptr: KPointer, authUri: KStringPtr): void + native static _ClientAuthenticationHandler_cancel(ptr: KPointer): void + native static _ClientAuthenticationHandler_ignore(ptr: KPointer): void + native static _ControllerHandler_ctor(): KPointer + native static _ControllerHandler_getFinalizer(): KPointer + native static _ControllerHandler_setWebController(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _DataResubmissionHandler_ctor(): KPointer + native static _DataResubmissionHandler_getFinalizer(): KPointer + native static _DataResubmissionHandler_resend(ptr: KPointer): void + native static _DataResubmissionHandler_cancel(ptr: KPointer): void + native static _EventResult_ctor(): KPointer + native static _EventResult_getFinalizer(): KPointer + native static _EventResult_setGestureEventResult(ptr: KPointer, result: KInt): void + native static _WebKeyboardController_ctor(): KPointer + native static _WebKeyboardController_getFinalizer(): KPointer + native static _WebKeyboardController_insertText(ptr: KPointer, text: KStringPtr): void + native static _WebKeyboardController_deleteForward(ptr: KPointer, length: number): void + native static _WebKeyboardController_deleteBackward(ptr: KPointer, length: number): void + native static _WebKeyboardController_sendFunctionKey(ptr: KPointer, key: number): void + native static _WebKeyboardController_close(ptr: KPointer): void + native static _XComponentController_ctor(): KPointer + native static _XComponentController_getFinalizer(): KPointer + native static _XComponentController_getXComponentSurfaceId(ptr: KPointer): string + native static _XComponentController_getXComponentContext(ptr: KPointer): KPointer + native static _XComponentController_setXComponentSurfaceSize(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _XComponentController_setXComponentSurfaceRect(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _XComponentController_getXComponentSurfaceRect(ptr: KPointer): KPointer + native static _XComponentController_setXComponentSurfaceRotation(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _XComponentController_getXComponentSurfaceRotation(ptr: KPointer): KPointer + native static _XComponentController_onSurfaceCreated(ptr: KPointer, surfaceId: KStringPtr): void + native static _XComponentController_onSurfaceChanged(ptr: KPointer, surfaceId: KStringPtr, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _XComponentController_onSurfaceDestroyed(ptr: KPointer, surfaceId: KStringPtr): void + native static _XComponentController_startImageAnalyzer(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): KPointer + native static _XComponentController_stopImageAnalyzer(ptr: KPointer): void + native static _WaterFlowSections_ctor(): KPointer + native static _WaterFlowSections_getFinalizer(): KPointer + native static _WaterFlowSections_splice(ptr: KPointer, start: number, thisArray: KUint8ArrayPtr, thisLength: int32): boolean + native static _WaterFlowSections_push(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): boolean + native static _WaterFlowSections_update(ptr: KPointer, sectionIndex: number, thisArray: KUint8ArrayPtr, thisLength: int32): boolean + native static _WaterFlowSections_values(ptr: KPointer): KPointer + native static _WaterFlowSections_length(ptr: KPointer): number native static _UIExtensionProxy_ctor(): KPointer native static _UIExtensionProxy_getFinalizer(): KPointer native static _UIExtensionProxy_send(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void @@ -425,9 +2027,12 @@ export class NativeModule { native static _UIExtensionProxy_on1(ptr: KPointer, type: KStringPtr, callback: KInt): void native static _UIExtensionProxy_off0(ptr: KPointer, type: KStringPtr, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _UIExtensionProxy_off1(ptr: KPointer, type: KStringPtr, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _WebResourceResponse_ctor(): KPointer - native static _WebResourceResponse_getFinalizer(): KPointer - native static _WebResourceResponse_setResponseData(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _LinearIndicatorController_ctor(): KPointer + native static _LinearIndicatorController_getFinalizer(): KPointer + native static _LinearIndicatorController_setProgress(ptr: KPointer, index: number, progress: number): void + native static _LinearIndicatorController_start(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _LinearIndicatorController_pause(ptr: KPointer): void + native static _LinearIndicatorController_stop(ptr: KPointer): void native static _CheckArkoalaGeneratedEvents(result: KUint8ArrayPtr, size: KInt): KInt // interop @@ -454,6 +2059,9 @@ export class NativeModule { native static _StartPerf(str1: KStringPtr): void native static _EndPerf(str1: KStringPtr): void native static _DumpPerf(arg: KInt): KPointer + native static _GetManagerCallbackCaller(): KPointer + native static _GetManagedResourceHolder(): KPointer + native static _GetManagedResourceReleaser(): KPointer // loader native static _LoadVirtualMachine(arg0: KInt, arg1: KStringPtr, arg2: KStringPtr): KInt native static _RunApplication(arg0: KInt, arg1: KInt): KInt diff --git a/arkoala-arkts/arkui/src/generated/arkts/type_check.ts b/arkoala-arkts/arkui/src/generated/arkts/type_check.ts index aa1d3a0a0..b22afffc7 100644 --- a/arkoala-arkts/arkui/src/generated/arkts/type_check.ts +++ b/arkoala-arkts/arkui/src/generated/arkts/type_check.ts @@ -1,102 +1,486 @@ +import { AbilityComponentInterface, AbilityComponentAttribute } from "./../ArkAbilityComponentInterfaces" +import { TextStyle } from "./../ArkAlertDialogInterfaces" +import { AlphabetIndexerInterface, AlphabetIndexerOptions, AlphabetIndexerAttribute, IndexerAlign, OnAlphabetIndexerSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerPopupSelectCallback } from "./../ArkAlphabetIndexerInterfaces" +import { AnimatorInterface, AnimatorAttribute, SpringMotion, FrictionMotion, ScrollMotion, SpringProp } from "./../ArkAnimatorInterfaces" +import { BadgeInterface, BadgeParamWithNumber, BadgeParam, BadgeStyle, BadgeParamWithString, BadgeAttribute, BadgePosition } from "./../ArkBadgeInterfaces" import { BlankInterface, BlankAttribute } from "./../ArkBlankInterfaces" -import { ButtonInterface, LabelStyle, ButtonType, ButtonAttribute } from "./../ArkButtonInterfaces" -import { CalendarPickerInterface, CalendarAlign, CalendarPickerAttribute } from "./../ArkCalendarPickerInterfaces" -import { CanvasInterface, Size, DrawingCanvas, CanvasAttribute } from "./../ArkCanvasInterfaces" -import { ColumnInterface, HorizontalAlign, ColumnAttribute, LayoutSafeAreaType, LayoutSafeAreaEdge, TitleHeight } from "./../ArkColumnInterfaces" -import { CommonInterface, StateStyles, BlurOptions, Padding, SheetOptions, BindOptions, SheetTitleOptions, SheetDismiss, DismissSheetAction, Callback, SpringBackAction, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, EdgeStyles, ShadowOptions, BackgroundBlurStyleOptions, BlurStyleOptions, DragPreviewOptions, DragInteractionOptions, BorderOptions, RectResult, AttributeModifier, UIGestureEvent, BaseEvent, ClickEvent, CommonConfiguration, CustomBuilder, BlurStyle, GradientDirection, TouchTestInfo, GestureRecognizerJudgeBeginCallback, CommonAttribute, SheetSize, SheetType, BorderStyle, ShadowStyle, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, DismissReason, ShadowType, ThemeColorMode, AdaptiveColor, BlurStyleActivePolicy, DragPreviewMode, ImageModifier, SourceTool, PixelMap, SymbolGlyphModifier, ComponentContent } from "./../ArkCommonInterfaces" +import { ButtonInterface, ButtonConfiguration, LabelStyle, ButtonOptions, ButtonType, ButtonAttribute, ButtonStyleMode, ControlSize, ButtonRole, ButtonTriggerClickCallback } from "./../ArkButtonInterfaces" +import { CalendarInterface, CurrentDayStyle, NonCurrentDayStyle, TodayStyle, WeekStyle, WorkStateStyle, CalendarSelectedDate, CalendarRequestedData, MonthData, CalendarDay, CalendarAttribute } from "./../ArkCalendarInterfaces" +import { CalendarPickerInterface, CalendarOptions, CalendarAlign, CalendarPickerAttribute } from "./../ArkCalendarPickerInterfaces" +import { CanvasInterface, TextMetrics, Size, CanvasAttribute } from "./../ArkCanvasInterfaces" +import { CheckboxInterface, CheckBoxConfiguration, CheckboxOptions, CheckboxAttribute, OnCheckboxChangeCallback } from "./../ArkCheckboxInterfaces" +import { CheckboxGroupInterface, CheckboxGroupResult, CheckboxGroupOptions, CheckboxGroupAttribute, OnCheckboxGroupChangeCallback, SelectStatus } from "./../ArkCheckboxgroupInterfaces" +import { CircleInterface, CircleOptions, CircleAttribute } from "./../ArkCircleInterfaces" +import { ColumnInterface, ColumnOptions, ColumnAttribute } from "./../ArkColumnInterfaces" +import { ColumnSplitInterface, ColumnSplitDividerStyle, ColumnSplitAttribute } from "./../ArkColumnSplitInterfaces" +import { CommonInterface, Rectangle, RectResult, PixelRoundPolicy, BackgroundBlurStyleOptions, BlurStyleOptions, BlurOptions, BackgroundEffectOptions, ForegroundEffectOptions, ForegroundBlurStyleOptions, BorderImageOption, ClickEvent, BaseEvent, EventTarget, Callback, HoverEvent, AccessibilityHoverEvent, MouseEvent, TouchEvent, TouchObject, HistoricalPoint, KeyEvent, AnimateParam, ExpectedFrameRateRange, TransitionOptions, TranslateOptions, ScaleOptions, RotateOptions, LinearGradientBlurOptions, MotionBlurOptions, MotionBlurAnchor, InvertOptions, sharedTransitionOptions, MotionPathOptions, AlignRuleOption, LocalizedAlignRuleOptions, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, ClickEffect, DragEvent, DragItemInfo, DragPreviewOptions, DragInteractionOptions, OverlayOptions, OverlayOffset, ShadowOptions, GeometryTransitionOptions, PopupOptions, PopupMessageOptions, DismissPopupAction, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ContextMenuAnimationOptions, ContentCoverOptions, BindOptions, DismissContentCoverAction, SheetOptions, SheetTitleOptions, SheetDismiss, DismissSheetAction, SpringBackAction, StateStyles, PixelStretchEffectOptions, UIGestureEvent, BackgroundBrightnessOptions, CommonConfiguration, PickerTextStyle, PointLightStyle, LightSource, MultiShadowOptions, EdgeEffectOptions, FadingEdgeOptions, NestedScrollOptions, ItemDragInfo, SelectionOptions, TextDecorationOptions, CaretOffset, InputCounterOptions, BlurStyle, CustomBuilder, Optional, SafeAreaType, SafeAreaEdge, TouchTestInfo, TouchResult, PixelMap, VisualEffect, Filter, OutlineStyle, AccessibilityCallback, TransitionFinishCallback, ChainStyle, UniformDataType, PreDragStatus, ComponentContent, ShadowStyle, BlendMode, BlendApplyType, Blender, CircleShape, EllipseShape, PathShape, RectShape, ModalTransition, VisibleAreaChangeCallback, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, CommonAttribute, ScrollResult, OnScrollCallback, TouchTestStrategy, ThemeColorMode, AdaptiveColor, BlurStyleActivePolicy, BlurType, RepeatMode, SourceType, SourceTool, IntentionCode, FinishCallbackType, FractionStop, DragBehavior, UnifiedData, Summary, DragResult, DragPreviewMode, ImageModifier, ShadowType, TransitionHierarchyStrategy, DismissReason, SymbolGlyphModifier, MenuPreviewMode, AnimationRange, SheetSize, SheetType, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, MenuPolicy, LayoutSafeAreaType, LayoutSafeAreaEdge } from "./../ArkCommonInterfaces" +import { Component3DInterface, SceneOptions, Component3DAttribute, Scene, ModelType } from "./../ArkComponent3dInterfaces" +import { ContainerSpanInterface, ContainerSpanAttribute } from "./../ArkContainerSpanInterfaces" +import { CounterInterface, CounterAttribute } from "./../ArkCounterInterfaces" +import { DataPanelInterface, DataPanelShadowOptions, DataPanelConfiguration, DataPanelOptions, DataPanelAttribute, DataPanelType } from "./../ArkDataPanelInterfaces" +import { DatePickerInterface, DatePickerResult, DatePickerOptions, DatePickerAttribute } from "./../ArkDatePickerInterfaces" +import { DividerInterface, DividerAttribute } from "./../ArkDividerInterfaces" +import { EffectComponentInterface, EffectComponentAttribute } from "./../ArkEffectComponentInterfaces" +import { EllipseInterface, EllipseAttribute } from "./../ArkEllipseInterfaces" import { EmbeddedComponentInterface, TerminationInfo, EmbeddedComponentAttribute } from "./../ArkEmbeddedComponentInterfaces" -import { FormComponentInterface, FormCallbackInfo, FormComponentAttribute } from "./../ArkFormComponentInterfaces" -import { GestureInterface, BaseGestureEvent, FingerInfo, GestureJudgeResult, GestureHandler, GesturePriority, GestureMask } from "./../ArkGestureInterfaces" +import { FlexInterface, FlexOptions, FlexSpaceOptions, FlexAttribute } from "./../ArkFlexInterfaces" +import { FlowItemInterface, FlowItemAttribute } from "./../ArkFlowItemInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { FolderStackInterface, OnFoldStatusChangeInfo, HoverEventParam, FolderStackOptions, FolderStackAttribute, OnFoldStatusChangeCallback, OnHoverStatusChangeCallback, WindowStatusType } from "./../ArkFolderStackInterfaces" +import { FormComponentInterface, FormCallbackInfo, FormInfo, FormComponentAttribute, FormDimension, FormRenderingMode, FormShape } from "./../ArkFormComponentInterfaces" +import { FormLinkInterface, FormLinkOptions, FormLinkAttribute } from "./../ArkFormLinkInterfaces" +import { GaugeInterface, GaugeShadowOptions, GaugeIndicatorOptions, GaugeConfiguration, GaugeOptions, GaugeAttribute } from "./../ArkGaugeInterfaces" +import { TapGestureInterface, GestureInterface, TapGestureParameters, GestureEvent, FingerInfo, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, BaseGestureEvent, GestureType, GestureMask, GestureJudgeResult, GestureHandler, GesturePriority, PanDirection, SwipeDirection, GestureMode } from "./../ArkGestureInterfaces" +import { GridInterface, ComputedBarAttribute, GridLayoutOptions, GridAttribute, GridDirection, GridItemAlignment } from "./../ArkGridInterfaces" +import { GridItemInterface, GridItemOptions, GridItemAttribute, GridItemStyle } from "./../ArkGridItemInterfaces" +import { GridColInterface, GridColColumnOption, GridColOptions, GridColAttribute } from "./../ArkGridColInterfaces" import { GridContainerInterface, GridContainerOptions, GridContainerAttribute, SizeType } from "./../ArkGridContainerInterfaces" -import { ImageInterface, ImageAttribute } from "./../ArkImageInterfaces" -import { ListInterface, VisibleListContentInfo, Optional, ListAttribute, OnScrollVisibleContentChangeCallback } from "./../ArkListInterfaces" -import { NavDestinationInterface, NavDestinationCommonTitle, NavDestinationCustomTitle, RouteMapConfig, NavDestinationAttribute, NavDestinationMode } from "./../ArkNavDestinationInterfaces" +import { GridRowInterface, GridRowOptions, GutterOption, GridRowSizeOption, GridRowColumnOption, BreakPoints, GridRowAttribute, GridRowDirection, BreakpointsReference } from "./../ArkGridRowInterfaces" +import { HyperlinkInterface, HyperlinkAttribute } from "./../ArkHyperlinkInterfaces" +import { ImageInterface, ResizableOptions, ImageSourceSize, ImageError, ImageAttribute, ImageRenderMode, DynamicRangeMode, ImageInterpolation, DrawingColorFilter, ImageErrorCallback, ResolutionQuality, DrawableDescriptor, ImageContent, DrawingLattice } from "./../ArkImageInterfaces" +import { ImageAnimatorInterface, ImageFrameInfo, ImageAnimatorAttribute } from "./../ArkImageAnimatorInterfaces" +import { ImageAnalyzerConfig, ImageAIOptions, ImageAnalyzerType } from "./../ArkImageCommonInterfaces" +import { ImageSpanInterface, ImageLoadResult, ImageSpanAttribute, ImageCompleteCallback } from "./../ArkImageSpanInterfaces" +import { LineInterface, LineAttribute } from "./../ArkLineInterfaces" +import { ListInterface, ListDividerOptions, ChainAnimationOptions, VisibleListContentInfo, ListOptions, ScrollState, ListAttribute, ListItemAlign, StickyStyle, ScrollSnapAlign, OnScrollVisibleContentChangeCallback, ChainEdgeEffect, ListItemGroupArea } from "./../ArkListInterfaces" +import { ListItemInterface, SwipeActionOptions, SwipeActionItem, ListItemOptions, Sticky, ListItemAttribute, EditMode, SwipeEdgeEffect, SwipeActionState, ListItemStyle } from "./../ArkListItemInterfaces" +import { ListItemGroupInterface, ListItemGroupOptions, ListItemGroupAttribute, ListItemGroupStyle } from "./../ArkListItemGroupInterfaces" +import { LoadingProgressInterface, LoadingProgressConfiguration, LoadingProgressAttribute } from "./../ArkLoadingProgressInterfaces" +import { LocationButtonInterface, LocationButtonOptions, LocationButtonOnClickResult, LocationButtonAttribute, LocationIconStyle, LocationDescription } from "./../ArkLocationButtonInterfaces" +import { MarqueeInterface, MarqueeOptions, MarqueeAttribute } from "./../ArkMarqueeInterfaces" +import { MediaCachedImageInterface, ASTCResource, MediaCachedImageAttribute } from "./../ArkMediaCachedImageInterfaces" +import { MenuInterface, MenuAttribute, SubMenuExpandingMode } from "./../ArkMenuInterfaces" +import { MenuItemInterface, MenuItemOptions, MenuItemAttribute } from "./../ArkMenuItemInterfaces" +import { MenuItemGroupInterface, MenuItemGroupOptions, MenuItemGroupAttribute } from "./../ArkMenuItemGroupInterfaces" +import { NavDestinationInterface, NavDestinationCommonTitle, NavDestinationCustomTitle, RouteMapConfig, NavDestinationAttribute, NavDestinationMode, NavigationSystemTransitionType } from "./../ArkNavDestinationInterfaces" +import { NavRouterInterface, RouteInfo, NavRouterAttribute, NavRouteMode } from "./../ArkNavRouterInterfaces" import { NavigationInterface, NavigationTitleOptions, NavigationMenuItem, PopInfo, NavigationOptions, NavigationInterception, NavigationCommonTitle, NavigationCustomTitle, ToolbarItem, NavigationToolbarOptions, NavContentInfo, NavigationAnimatedTransition, SystemBarStyle, NavigationAttribute, NavBarPosition, NavigationMode, NavigationTitleMode, NavigationOperation, BarStyle, NavPathInfo, LaunchMode, InterceptionShowCallback, NavBar, InterceptionModeCallback, ToolbarItemStatus } from "./../ArkNavigationInterfaces" +import { NavigatorInterface, NavigatorAttribute, NavigationType } from "./../ArkNavigatorInterfaces" +import { NodeContainerInterface, NodeContainerAttribute } from "./../ArkNodeContainerInterfaces" +import { PanelInterface, PanelMode, PanelAttribute, PanelType, PanelHeight } from "./../ArkPanelInterfaces" +import { PasteButtonInterface, PasteButtonOptions, PasteButtonOnClickResult, PasteButtonAttribute, PasteIconStyle, PasteDescription } from "./../ArkPasteButtonInterfaces" +import { PathInterface, PathAttribute } from "./../ArkPathInterfaces" +import { PatternLockInterface, CircleStyleOptions, PatternLockAttribute } from "./../ArkPatternLockInterfaces" +import { PluginComponentInterface, PluginComponentTemplate, PluginComponentAttribute } from "./../ArkPluginComponentInterfaces" +import { PolygonInterface, PolygonAttribute } from "./../ArkPolygonInterfaces" +import { PolylineInterface, PolylineAttribute } from "./../ArkPolylineInterfaces" +import { QRCodeInterface, QRCodeAttribute } from "./../ArkQrcodeInterfaces" +import { RadioInterface, RadioStyle, RadioConfiguration, RadioOptions, RadioAttribute, RadioIndicatorType } from "./../ArkRadioInterfaces" +import { RatingInterface, StarStyleOptions, RatingConfiguration, RatingOptions, RatingAttribute } from "./../ArkRatingInterfaces" import { RectInterface, RectAttribute } from "./../ArkRectInterfaces" -import { ScrollInterface, ScrollAnimationOptions, ScrollAttribute } from "./../ArkScrollInterfaces" -import { SelectInterface, MenuItemConfiguration, SelectOption, SelectAttribute } from "./../ArkSelectInterfaces" +import { RefreshInterface, RefreshOptions, RefreshStatus, RefreshAttribute } from "./../ArkRefreshInterfaces" +import { RelativeContainerInterface, GuideLineStyle, GuideLinePosition, BarrierStyle, LocalizedBarrierStyle, RelativeContainerAttribute, BarrierDirection, LocalizedBarrierDirection } from "./../ArkRelativeContainerInterfaces" +import { RichEditorInterface, RichEditorSelection, RichEditorTextSpanResult, RichEditorSpanPosition, RichEditorTextStyleResult, RichEditorSymbolSpanStyle, RichEditorParagraphStyle, LeadingMarginPlaceholder, RichEditorImageSpanResult, RichEditorImageSpanStyleResult, RichEditorLayoutStyle, RichEditorRange, RichEditorInsertValue, RichEditorDeleteValue, SelectionMenuOptions, KeyboardOptions, PasteEvent, PlaceholderStyle, RichEditorChangeValue, CutEvent, CopyEvent, RichEditorOptions, RichEditorTextStyle, RichEditorTextSpanOptions, RichEditorGesture, RichEditorImageSpanOptions, RichEditorImageSpanStyle, RichEditorBuilderSpanOptions, RichEditorSymbolSpanOptions, RichEditorUpdateTextSpanStyleOptions, RichEditorSpanStyleOptions, RichEditorUpdateImageSpanStyleOptions, RichEditorUpdateSymbolSpanStyleOptions, RichEditorParagraphStyleOptions, RichEditorParagraphResult, RichEditorStyledStringOptions, RichEditorAttribute, RichEditorSpanType, RichEditorResponseType, PasteEventCallback, SubmitCallback, RichEditorDeleteDirection, MenuOnAppearCallback } from "./../ArkRichEditorInterfaces" +import { RichTextInterface, RichTextAttribute } from "./../ArkRichTextInterfaces" +import { RootSceneInterface, RootSceneSession, RootSceneAttribute } from "./../ArkRootSceneInterfaces" +import { RowInterface, RowOptions, RowAttribute } from "./../ArkRowInterfaces" +import { RowSplitInterface, RowSplitAttribute } from "./../ArkRowSplitInterfaces" +import { SaveButtonInterface, SaveButtonOptions, SaveButtonOnClickResult, SaveButtonAttribute, SaveIconStyle, SaveDescription } from "./../ArkSaveButtonInterfaces" +import { ScreenInterface, ScreenAttribute } from "./../ArkScreenInterfaces" +import { ScrollInterface, ScrollOptions, ScrollAnimationOptions, ScrollEdgeOptions, OffsetResult, ScrollToIndexOptions, OnScrollFrameBeginHandlerResult, ScrollSnapOptions, OffsetOptions, ScrollDirection, ScrollAttribute, ScrollOnWillScrollCallback, ScrollOnScrollCallback, OnScrollEdgeCallback, OnScrollFrameBeginCallback } from "./../ArkScrollInterfaces" +import { ScrollBarInterface, ScrollBarOptions, ScrollBarAttribute, ScrollBarDirection } from "./../ArkScrollBarInterfaces" +import { SearchInterface, SearchButtonOptions, IconOptions, CancelButtonOptions, CancelButtonSymbolOptions, SearchAttribute, SearchType, CancelButtonStyle } from "./../ArkSearchInterfaces" +import { SelectInterface, MenuItemConfiguration, SelectOption, SelectAttribute, ArrowPosition, MenuAlignType } from "./../ArkSelectInterfaces" import { ShapeInterface, ShapeAttribute } from "./../ArkShapeInterfaces" -import { SideBarContainerInterface, SideBarContainerAttribute } from "./../ArkSidebarInterfaces" -import { SwiperInterface, SwiperAttribute } from "./../ArkSwiperInterfaces" -import { SymbolGlyphInterface, SymbolGlyphAttribute } from "./../ArkSymbolglyphInterfaces" -import { TabContentInterface, IndicatorStyle, BoardStyle, TabContentAttribute } from "./../ArkTabContentInterfaces" -import { TabsInterface, BarMode, TabsAttribute } from "./../ArkTabsInterfaces" -import { TestInterface, BooleanInterfaceDTS, NumberInterfaceDTS, StringInterfaceDTS, UnionInterfaceDTS, UnionOptionalInterfaceDTS, TupleInterfaceDTS, OptionInterfaceDTS, ArrayRefNumberInterfaceDTS, TestAttribute, EnumDTS, ClassDTS, ClassWithConstructorDTS, ClassWithConstructorAndFieldsDTS } from "./../ArkTestInterfaces" -import { TextInterface, TextOptions, TextAttribute } from "./../ArkTextInterfaces" -import { TextInputInterface, TextInputOptions, InputType, TextInputAttribute, ContentType } from "./../ArkTextInputInterfaces" +import { SliderInterface, SliderBlockStyle, SliderConfiguration, SlideRange, SliderOptions, SliderAttribute, SliderChangeMode, SliderInteraction, SliderBlockType, SliderTriggerChangeCallback, SliderStyle } from "./../ArkSliderInterfaces" +import { SpanInterface, TextBackgroundStyle, SpanAttribute } from "./../ArkSpanInterfaces" +import { StackInterface, StackOptions, StackAttribute } from "./../ArkStackInterfaces" +import { StepperInterface, StepperAttribute } from "./../ArkStepperInterfaces" +import { StepperItemInterface, StepperItemAttribute, ItemState } from "./../ArkStepperItemInterfaces" +import { SwiperInterface, ArrowStyle, SwiperAutoFill, IndicatorStyle, SwiperAnimationEvent, SwiperContentAnimatedTransition, SwiperAttribute, SwiperDisplayMode, SwiperNestedScrollMode, ContentDidScrollCallback } from "./../ArkSwiperInterfaces" +import { SymbolGlyphInterface, SymbolEffectStrategy, SymbolRenderingStrategy, SymbolGlyphAttribute, SymbolEffect } from "./../ArkSymbolglyphInterfaces" +import { SymbolSpanInterface, SymbolSpanAttribute } from "./../ArkSymbolSpanInterfaces" +import { TabsInterface, ScrollableBarModeOptions, TabsAnimationEvent, DividerStyle, BarGridColumnOptions, TabContentAnimatedTransition, TabsAttribute, BarPosition, BarMode, AnimationMode, LayoutStyle } from "./../ArkTabsInterfaces" +import { TabContentInterface, BoardStyle, TabBarIconStyle, TabContentAttribute } from "./../ArkTabContentInterfaces" +import { TextInterface, TextOverflowOptions, TextOptions, TextAttribute, TextSpanType, TextResponseType } from "./../ArkTextInterfaces" +import { TextAreaInterface, TextAreaOptions, TextAreaAttribute, TextAreaType, ContentType } from "./../ArkTextAreaInterfaces" +import { TextClockInterface, TextClockConfiguration, TextClockOptions, TextClockAttribute } from "./../ArkTextClockInterfaces" +import { DecorationStyleResult, TextRange, TextDataDetectorConfig, TextMenuItem, PositionWithAffinity, PreviewText, StyledStringChangedListener, StyledStringChangeValue, CaretStyle, InsertValue, DeleteValue, FontSettingOptions, OnDidChangeCallback, MenuType, EditableTextOnChangeCallback, TextDataDetectorType, TextMenuItemId, Affinity, TextDeleteDirection } from "./../ArkTextCommonInterfaces" +import { TextInputInterface, SubmitEvent, PasswordIcon, UnderlineColor, TextInputOptions, EnterKeyType, InputType, TextInputAttribute, TextInputStyle } from "./../ArkTextInputInterfaces" import { TextPickerInterface, DividerOptions, TextPickerOptions, TextPickerRangeContent, TextCascadePickerRangeContent, TextPickerAttribute } from "./../ArkTextPickerInterfaces" +import { TextTimerInterface, TextTimerConfiguration, TextTimerOptions, TextTimerAttribute } from "./../ArkTextTimerInterfaces" +import { TimePickerInterface, TimePickerResult, TimePickerOptions, DateTimeOptions, TimePickerAttribute, TimePickerFormat } from "./../ArkTimePickerInterfaces" +import { ToggleInterface, ToggleConfiguration, SwitchStyle, ToggleOptions, ToggleAttribute, ToggleType } from "./../ArkToggleInterfaces" +import { SizeOptions, ConstraintSizeOptions, Padding, LocalizedPadding, Position, EdgeWidths, BorderOptions, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, EdgeStyles, OutlineOptions, EdgeOutlineWidths, OutlineRadiuses, EdgeOutlineStyles, Area, Edges, LocalizedEdges, LocalizedPosition, Bias, Font, Offset, MarkStyle, LengthConstrain, DividerStyleOptions, ResourceColor, Resource, Length, ResourceStr, LengthMetricsUnit, Dimension, PX, VP, FP, LPX, Percentage, Margin, LocalizedMargin, LengthMetrics, VoidCallback, ColorMetrics, ColorFilter } from "./../ArkUnitsInterfaces" +import { VideoInterface, VideoOptions, VideoAttribute, PlaybackSpeed } from "./../ArkVideoInterfaces" +import { WebInterface, JavaScriptProxy, Header, WebMediaOptions, OnPageEndEvent, OnPageBeginEvent, OnProgressChangeEvent, OnTitleReceiveEvent, OnGeolocationShowEvent, OnAlertEvent, OnBeforeUnloadEvent, OnConfirmEvent, OnPromptEvent, OnConsoleEvent, OnErrorReceiveEvent, OnHttpErrorReceiveEvent, OnDownloadStartEvent, OnRefreshAccessedHistoryEvent, OnRenderExitedEvent, OnShowFileSelectorEvent, OnResourceLoadEvent, FullScreenEnterEvent, OnScaleChangeEvent, OnHttpAuthRequestEvent, OnInterceptRequestEvent, OnPermissionRequestEvent, OnScreenCaptureRequestEvent, ScreenCaptureConfig, OnContextMenuShowEvent, OnSearchResultReceiveEvent, OnScrollEvent, OnSslErrorEventReceiveEvent, SslErrorEvent, OnClientAuthenticationEvent, OnWindowNewEvent, OnTouchIconUrlReceivedEvent, OnFaviconReceivedEvent, OnPageVisibleEvent, OnDataResubmittedEvent, OnAudioStateChangedEvent, OnFirstContentfulPaintEvent, FirstMeaningfulPaint, LargestContentfulPaint, OnLoadInterceptEvent, OnOverScrollEvent, LoadCommittedDetails, IntelligentTrackingPreventionDetails, ScriptItem, NestedScrollOptionsExt, NativeEmbedDataInfo, NativeEmbedInfo, NativeEmbedVisibilityInfo, NativeEmbedTouchInfo, NativeMediaPlayerConfig, RenderProcessNotRespondingData, ExpandedMenuItemOptions, WebKeyboardCallbackInfo, WebKeyboardOptions, AdsBlockedDetails, WebOptions, WebAttribute, MixedMode, CacheMode, WebDarkMode, OverScrollMode, OnFullScreenEnterCallback, OnContextMenuHideCallback, OnSslErrorEventCallback, OnFirstMeaningfulPaintCallback, OnLargestContentfulPaintCallback, OnSafeBrowsingCheckResultCallback, ThreatType, OnNavigationEntryCommittedCallback, OnIntelligentTrackingPreventionCallback, WebLayoutMode, OnNativeEmbedVisibilityChangeCallback, OnOverrideUrlLoadingCallback, OnRenderProcessNotRespondingCallback, OnRenderProcessRespondingCallback, OnViewportFitChangedCallback, ViewportFit, WebKeyboardCallback, OnAdsBlockedCallback, WebKeyboardAvoidMode, WebviewController, RenderExitReason, WebCaptureMode, SslError, WebNavigationType, NativeEmbedStatus, RenderProcessNotRespondingReason, RenderMode } from "./../ArkWebInterfaces" +import { WindowSceneInterface, WindowSceneAttribute } from "./../ArkWindowSceneInterfaces" +import { XComponentInterface, SurfaceRect, SurfaceRotationOptions, XComponentOptions, XComponentAttribute } from "./../ArkXcomponentInterfaces" +import { SideBarContainerInterface, ButtonStyle, SideBarContainerAttribute, SideBarPosition, SideBarContainerType } from "./../ArkSidebarInterfaces" +import { RemoteWindowInterface, WindowAnimationTarget, RRect, RemoteWindowAttribute } from "./../ArkRemoteWindowInterfaces" +import { WaterFlowInterface, WaterFlowOptions, WaterFlowAttribute, WaterFlowLayoutMode, GetItemMainSizeByIndex } from "./../ArkWaterFlowInterfaces" import { UIExtensionComponentInterface, UIExtensionOptions, UIExtensionComponentAttribute, DpiFollowStrategy } from "./../ArkUiExtensionComponentInterfaces" -import { Font, Offset, AltOffset, LocalizedPadding, ResourceColor, Resource, ResourceStr, Length, LengthMetricsUnit, Dimension, PX, VP, FP, LPX, Percentage, LengthMetrics } from "./../ArkUnitsInterfaces" -import { VectorInterface, Vector1, Vector2, VectorAttribute } from "./../ArkVectorInterfaces" -import { WebInterface, NativeEmbedDataInfo, NativeEmbedInfo, OnRenderExitedEvent, OnHttpErrorReceiveEvent, WebAttribute, RenderExitReason } from "./../ArkWebInterfaces" -import { LITERAL_TopLengthRightLengthBottomLengthLeftLength, LITERAL_AngleNumberstringDirectionGradientDirectionColorsArrayResourceColornumberRepeatingBoolean, LITERAL_TopResourceColorRightResourceColorBottomResourceColorLeftResourceColor, LITERAL_TopBorderStyleRightBorderStyleBottomBorderStyleLeftBorderStyle, LITERAL_DxLengthDyLength, LITERAL_Dx1LengthDy2Length, LITERAL_WidthNumberHeightNumber, LITERAL_WidthNumberstringHeightNumberstringRadiusNumberstringArrayObject, LITERAL_WidthNumberstringHeightNumberstringRadiusWidthNumberstringRadiusHeightNumberstring, LITERAL_XOffsetNumberstringYOffsetNumberstringAnimationScrollAnimationOptionsboolean, LITERAL_NextBoolean, LITERAL_NextBooleanDirectionAxis, LITERAL_KeyStringObject, LITERAL_CodeNumberWantIMPORTdefaultFROMapiohosappabilityWant, LITERAL_X0NumberX1NumberX2NumberX3Number, LITERAL_TNumberXNumberYNumberZNumber, LITERAL_DetailObject, INTERFACE_GestureModifier, INTERFACE_CanvasPattern, INTERFACE_NavDestinationContext, INTERFACE_NavigationTransitionProxy, INTERFACE_ICurve, INTERFACE_UIExtensionProxy, IMPORT_Resource_FROM_resource_resource, IMPORT_LengthMetricsUnit_FROM_api_arkui_Graphics, IMPORT_UIContext_FROM_api_ohos_arkui_UIContext, IMPORT_LengthMetrics_FROM_api_arkui_Graphics, IMPORT_ImageModifier_FROM_api_arkui_ImageModifier, IMPORT_default_PixelMap_FROM_resource_image, IMPORT_SymbolGlyphModifier_FROM_resource_symbol, IMPORT_ComponentContent_FROM_api_arkui_ComponentContent, IMPORT_Callback_TerminationInfo_FROM_api_ohos_base, IMPORT_ErrorCallback_FROM_api_ohos_base, IMPORT_default_FROM_api_ohos_app_ability_Want, IMPORT_Callback_NavDestinationContext_FROM_api_ohos_base, IMPORT_default_SystemBarStyle_FROM_api_ohos_window, IMPORT_Callback_PopInfo_FROM_api_ohos_base, IMPORT_Callback_UIExtensionProxy_FROM_api_ohos_base, IMPORT_Callback_key_string_Object_FROM_api_ohos_base, IMPORT_Callback_code_number_want_IMPORT_default_FROM_api_ohos_app_ability_Want_FROM_api_ohos_base, IMPORT_Callback_number_FROM_api_ohos_base } from "./../SyntheticDeclarations" -import { Color, TextOverflow, TextHeightAdaptivePolicy, ColoringStrategy, EmbeddedType, Curve, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { DecorationStyleInterface, ImageAttachmentInterface, ImageAttachmentLayoutStyle, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, StyleOptions, GestureStyleInterface, ParagraphStyleInterface, SpanStyle, StyledStringKey, StyledStringValue, DecorationStyle, BaselineOffsetStyle, LetterSpacingStyle, TextShadowStyle, GestureStyle, ImageAttachment, ParagraphStyle, LineHeightStyle, UrlStyle, UserDataSpan, BackgroundColorStyle } from "./../ArkStyledStringInterfaces" +import { LinearIndicatorInterface, LinearIndicatorStyle, LinearIndicatorStartOptions, LinearIndicatorAttribute, OnLinearIndicatorChangeCallback } from "./../ArkLinearindicatorInterfaces" +import { LITERAL_TopLengthRightLengthBottomLengthLeftLength, LITERAL_AlignAlignment, LITERAL_TopBorderStyleRightBorderStyleBottomBorderStyleLeftBorderStyle, LITERAL_TopResourceColorRightResourceColorBottomResourceColorLeftResourceColor, LITERAL_TopLeftLengthTopRightLengthBottomLeftLengthBottomRightLength, LITERAL_TopOutlineStyleRightOutlineStyleBottomOutlineStyleLeftOutlineStyle, LITERAL_TopDimensionRightDimensionBottomDimensionLeftDimension, LITERAL_TopLeftDimensionTopRightDimensionBottomLeftDimensionBottomRightDimension, LITERAL_SpanNumberOffsetNumber, LITERAL_XsNumberLITERALSpanNumberOffsetNumberSmNumberLITERALSpanNumberOffsetNumberMdNumberLITERALSpanNumberOffsetNumberLgNumberLITERALSpanNumberOffsetNumber, LITERAL_AngleNumberstringDirectionGradientDirectionColorsArrayResourceColornumberRepeatingBoolean, LITERAL_CenterLengthLengthStartNumberstringEndNumberstringRotationNumberstringColorsArrayResourceColornumberRepeatingBoolean, LITERAL_CenterLengthLengthRadiusNumberstringColorsArrayResourceColornumberRepeatingBoolean, LITERAL_AppearTransitionEffectLITERALMoveTransitionEdgeDisappearTransitionEffectLITERALMoveTransitionEdge, LITERAL_FingersNumberRepeatBooleanDurationNumber, LITERAL_FingersNumberDirectionPanDirectionDistanceNumber, LITERAL_FingersNumberDistanceNumber, LITERAL_FingersNumberDirectionSwipeDirectionSpeedNumber, LITERAL_FingersNumberAngleNumber, LITERAL_AnchorStringAlignHorizontalAlign, LITERAL_AnchorStringAlignVerticalAlign, LITERAL_ValueStringActionVoid, LITERAL_IsVisibleBoolean, LITERAL_ColorResourceColor, LITERAL_WantIMPORTdefaultFROMapiohosappabilityWant, LITERAL_YearNumberMonthNumberDayNumber, LITERAL_DateLITERALYearNumberMonthNumberDayNumberCurrentDataMonthDataPreDataMonthDataNextDataMonthDataControllerCalendarController, LITERAL_DxLengthDyLength, LITERAL_WidthStringnumberHeightStringnumber, LITERAL_WidthNumberHeightNumber, LITERAL_ErrcodeNumberMsgString, LITERAL_OffsetRemainNumber, LITERAL_NextBoolean, LITERAL_NextBooleanDirectionAxis, LITERAL_WidthNumberHeightNumberComponentWidthNumberComponentHeightNumberLoadingStatusNumberContentWidthNumberContentHeightNumberContentOffsetXNumberContentOffsetYNumber, LITERAL_MinLengthLengthMaxLengthLength, LITERAL_TargetStringTypeNavigationType, LITERAL_WidthNumberstringHeightNumberstringCommandsString, LITERAL_TemplatePluginComponentTemplateDataObject, LITERAL_WidthNumberstringHeightNumberstringRadiusNumberstringArrayObject, LITERAL_WidthNumberstringHeightNumberstringRadiusWidthNumberstringRadiusHeightNumberstring, LITERAL_ValueStringPlaceholderResourceStrIconStringControllerSearchController, LITERAL_XNumberstringYNumberstringWidthNumberstringHeightNumberstring, LITERAL_IndexNumber, LITERAL_MinSizeVP, LITERAL_BarPositionBarPositionIndexNumberControllerTabsController, LITERAL_IconStringResourceTextStringResource, LITERAL_StyleCancelButtonStyleIconIconOptions, LITERAL_FullscreenBoolean, LITERAL_DurationNumber, LITERAL_TimeNumber, LITERAL_DataStringWebResourceRequest, LITERAL_HandlerFunctionErrorObject, LITERAL_DetailObject, LITERAL_CallbackFunctionFileSelectorObject, LITERAL_ScriptStringCallbackResultstringvoid, LITERAL_DataStringMimeTypeStringEncodingStringBaseUrlStringHistoryUrlString, LITERAL_UrlStringResourceHeadersArrayHeader, LITERAL_ObjectObjectNameStringMethodListArraystring, LITERAL_PlainTextString, LITERAL_IdStringTypeStringLibrarynameStringControllerXComponentController, LITERAL_IdStringTypeXComponentTypeLibrarynameStringControllerXComponentController, LITERAL_SurfaceWidthNumberSurfaceHeightNumber, LITERAL_ShownStringPixelMapResourceHiddenStringPixelMapResourceSwitchingStringPixelMapResource, LITERAL_KeyStringObject, LITERAL_CodeNumberWantIMPORTdefaultFROMapiohosappabilityWant, INTERFACE_ICurve, INTERFACE_AttributeModifier, INTERFACE_GestureModifier, INTERFACE_CanvasPattern, INTERFACE_NavDestinationContext, INTERFACE_NavigationTransitionProxy, INTERFACE_EditMenuOptions, INTERFACE_TextEditControllerEx, INTERFACE_TextBaseController, INTERFACE_LayoutManager, INTERFACE_StyledStringController, INTERFACE_SwiperContentTransitionProxy, INTERFACE_TabContentTransitionProxy, INTERFACE_UIExtensionProxy, IMPORT_default_FROM_api_ohos_app_ability_Want, IMPORT_Resource_FROM_api_global_resource, IMPORT_LengthMetricsUnit_FROM_api_arkui_Graphics, IMPORT_default_Canvas_FROM_api_ohos_graphics_drawing, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image, IMPORT_default_VisualEffect_FROM_api_ohos_graphics_uiEffect, IMPORT_default_Filter_FROM_api_ohos_graphics_uiEffect, IMPORT_default_UniformDataType_FROM_api_ohos_data_uniformTypeDescriptor, IMPORT_ComponentContent_T_FROM_api_arkui_ComponentContent, IMPORT_default_Blender_FROM_api_ohos_graphics_uiEffect, IMPORT_CircleShape_FROM_api_ohos_arkui_shape, IMPORT_EllipseShape_FROM_api_ohos_arkui_shape, IMPORT_PathShape_FROM_api_ohos_arkui_shape, IMPORT_RectShape_FROM_api_ohos_arkui_shape, IMPORT_DrawContext_FROM_api_arkui_Graphics, IMPORT_IntentionCode_FROM_api_ohos_multimodalInput_intentionCode, IMPORT_default_UnifiedData_FROM_api_ohos_data_unifiedDataChannel, IMPORT_default_Summary_FROM_api_ohos_data_unifiedDataChannel, IMPORT_ImageModifier_FROM_api_arkui_ImageModifier, IMPORT_SymbolGlyphModifier_FROM_api_arkui_SymbolGlyphModifier, IMPORT_UIContext_FROM_api_ohos_arkui_UIContext, IMPORT_LengthMetrics_FROM_api_arkui_Graphics, IMPORT_Scene_FROM_api_ohos_graphics_scene, IMPORT_Callback_TerminationInfo_FROM_api_ohos_base, IMPORT_ErrorCallback_FROM_api_ohos_base, IMPORT_ColorMetrics_FROM_api_arkui_Graphics, IMPORT_default_WindowStatusType_FROM_api_ohos_window, IMPORT_default_ColorFilter_FROM_api_ohos_graphics_drawing, IMPORT_default_ResolutionQuality_FROM_api_ohos_multimedia_image, IMPORT_DrawableDescriptor_FROM_api_ohos_arkui_drawableDescriptor, IMPORT_default_Lattice_FROM_api_ohos_graphics_drawing, IMPORT_Callback_NavDestinationContext_FROM_api_ohos_base, IMPORT_default_SystemBarStyle_FROM_api_ohos_window, IMPORT_TextModifier_FROM_api_arkui_TextModifier, IMPORT_Callback_PopInfo_FROM_api_ohos_base, IMPORT_NodeController_FROM_api_ohos_arkui_node, IMPORT_Callback_number_FROM_api_ohos_base, IMPORT_default_DateTimeOptions_FROM_api_ohos_intl, IMPORT_default_Affinity_FROM_api_ohos_graphics_text, IMPORT_default_LineMetrics_FROM_api_ohos_graphics_text, IMPORT_default_RectWidthStyle_FROM_api_ohos_graphics_text, IMPORT_default_RectHeightStyle_FROM_api_ohos_graphics_text, IMPORT_default_TextBox_FROM_api_ohos_graphics_text, IMPORT_default_WebviewController_FROM_api_ohos_web_webview, IMPORT_Callback_UIExtensionProxy_FROM_api_ohos_base, IMPORT_Callback_key_string_Object_FROM_api_ohos_base, IMPORT_Callback_code_number_want_IMPORT_default_FROM_api_ohos_app_ability_Want_FROM_api_ohos_base } from "./../SyntheticDeclarations" +import { WordBreak, Color, AnimationStatus, Curve, FillMode, PlayMode, FontWeight, FontStyle, TextOverflow, TextHeightAdaptivePolicy, Axis, CheckBoxShape, HorizontalAlign, FlexAlign, HitTestMode, Alignment, ImageRepeat, ImageSize, BorderStyle, ColoringStrategy, HoverEffect, Visibility, ItemAlign, Direction, GradientDirection, ResponseType, FunctionKey, ModifierKey, ObscuredReasons, RenderFit, LineCapStyle, LineJoinStyle, BarState, EdgeEffect, ScrollSource, PixelRoundCalcPolicy, AccessibilityHoverType, MouseButton, MouseAction, TouchType, KeyType, KeySource, TransitionType, SharedTransitionEffectType, VerticalAlign, ClickEffectLevel, Placement, ArrowPointPosition, IlluminatedType, NestedScrollMode, TextDecorationType, TextDecorationStyle, EmbeddedType, FlexDirection, FlexWrap, FoldStatus, AppRotation, ImageFit, CopyOptions, ImageSpanAlignment, MarqueeUpdateStrategy, TitleHeight, TextAlign, LineBreakStrategy, Edge, OptionWidthMode, TextCase, EllipsisMode, TextSelectableMode, TextContentStyle, XComponentType } from "./../ArkEnumsInterfaces" +import { ContentModifier, TransitionEffect, OnWillScrollCallback, LinearGradient, GestureControl_GestureType } from "./../ConflictedDeclarations" +import { CalendarController } from "./../ArkCalendarControllerMaterialized" import { CanvasRenderingContext2D } from "./../ArkCanvasRenderingContext2DMaterialized" import { DrawingRenderingContext } from "./../ArkDrawingRenderingContextMaterialized" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../ArkAttributeModifierMaterialized" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { GestureRecognizer } from "./../ArkGestureRecognizerMaterialized" -import { ContentModifier } from "./../ConflictedDeclarations" +import { ICurve } from "./../ArkICurveMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { Scroller } from "./../ArkScrollerMaterialized" +import { ImageAnalyzerController } from "./../ArkImageAnalyzerControllerMaterialized" +import { ChildrenMainSize } from "./../ArkChildrenMainSizeMaterialized" import { NavPathStack } from "./../ArkNavPathStackMaterialized" import { NavDestinationContext } from "./../ArkNavDestinationContextMaterialized" import { NavigationTransitionProxy } from "./../ArkNavigationTransitionProxyMaterialized" -import { Scroller } from "./../ArkScrollerMaterialized" -import { ICurve } from "./../ArkICurveMaterialized" +import { PatternLockController } from "./../ArkPatternLockControllerMaterialized" +import { EditMenuOptions } from "./../ArkEditMenuOptionsMaterialized" +import { RichEditorController } from "./../ArkRichEditorControllerMaterialized" +import { RichEditorStyledStringController } from "./../ArkRichEditorStyledStringControllerMaterialized" +import { SearchController } from "./../ArkSearchControllerMaterialized" +import { SecurityComponentLayoutDirection } from "./../ArkSecurityComponentInterfaces" import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SwiperController } from "./../ArkSwiperControllerMaterialized" +import { SwiperContentTransitionProxy } from "./../ArkSwiperContentTransitionProxyMaterialized" +import { TabsController } from "./../ArkTabsControllerMaterialized" +import { TabContentTransitionProxy } from "./../ArkTabContentTransitionProxyMaterialized" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" -import { ClassWithConstructorAndMethodsDTS } from "./../ArkClassWithConstructorAndMethodsDTSMaterialized" -import { ClassWithConstructorAndStaticMethodsDTS } from "./../ArkClassWithConstructorAndStaticMethodsDTSMaterialized" -import { ClassWithConstructorAndFieldsAndMethodsDTS } from "./../ArkClassWithConstructorAndFieldsAndMethodsDTSMaterialized" -import { ClassWithConstructorAndNonOptionalParamsDTS } from "./../ArkClassWithConstructorAndNonOptionalParamsDTSMaterialized" -import { ClassWithConstructorAndSomeOptionalParamsDTS } from "./../ArkClassWithConstructorAndSomeOptionalParamsDTSMaterialized" -import { ClassWithConstructorAndAllOptionalParamsDTS } from "./../ArkClassWithConstructorAndAllOptionalParamsDTSMaterialized" -import { ClassWithConstructorAndWithoutParamsDTS } from "./../ArkClassWithConstructorAndWithoutParamsDTSMaterialized" import { TextController } from "./../ArkTextControllerMaterialized" +import { TextAreaController } from "./../ArkTextAreaControllerMaterialized" +import { TextClockController } from "./../ArkTextClockControllerMaterialized" +import { StyledString } from "./../ArkStyledStringMaterialized" +import { TextInputController } from "./../ArkTextInputControllerMaterialized" +import { TextTimerController } from "./../ArkTextTimerControllerMaterialized" +import { VideoController } from "./../ArkVideoControllerMaterialized" +import { WebResourceRequest } from "./../ArkWebResourceRequestMaterialized" import { WebResourceResponse } from "./../ArkWebResourceResponseMaterialized" +import { WebController } from "./../ArkWebControllerMaterialized" +import { JsGeolocation } from "./../ArkJsGeolocationMaterialized" +import { JsResult } from "./../ArkJsResultMaterialized" +import { ConsoleMessage } from "./../ArkConsoleMessageMaterialized" +import { WebResourceError } from "./../ArkWebResourceErrorMaterialized" +import { FileSelectorResult } from "./../ArkFileSelectorResultMaterialized" +import { FileSelectorParam } from "./../ArkFileSelectorParamMaterialized" +import { FullScreenExitHandler } from "./../ArkFullScreenExitHandlerMaterialized" +import { HttpAuthHandler } from "./../ArkHttpAuthHandlerMaterialized" +import { PermissionRequest } from "./../ArkPermissionRequestMaterialized" +import { ScreenCaptureHandler } from "./../ArkScreenCaptureHandlerMaterialized" +import { WebContextMenuParam } from "./../ArkWebContextMenuParamMaterialized" +import { WebContextMenuResult } from "./../ArkWebContextMenuResultMaterialized" +import { SslErrorHandler } from "./../ArkSslErrorHandlerMaterialized" +import { ClientAuthenticationHandler } from "./../ArkClientAuthenticationHandlerMaterialized" +import { ControllerHandler } from "./../ArkControllerHandlerMaterialized" +import { DataResubmissionHandler } from "./../ArkDataResubmissionHandlerMaterialized" +import { EventResult } from "./../ArkEventResultMaterialized" +import { WebKeyboardController } from "./../ArkWebKeyboardControllerMaterialized" +import { XComponentController } from "./../ArkXComponentControllerMaterialized" +import { WaterFlowSections } from "./../ArkWaterFlowSectionsMaterialized" +import { CustomSpan } from "./../ArkCustomSpanMaterialized" +import { LinearIndicatorController } from "./../ArkLinearIndicatorControllerMaterialized" export class TypeChecker { + static isAbilityComponentInterface(value: object|string|number|undefined|null): boolean { + return value instanceof AbilityComponentInterface + } + static isTextStyle(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof TextStyle + } + static isAlphabetIndexerInterface(value: object|string|number|undefined|null): boolean { + return value instanceof AlphabetIndexerInterface + } + static isAlphabetIndexerOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof AlphabetIndexerOptions + } + static isAnimatorInterface(value: object|string|number|undefined|null): boolean { + return value instanceof AnimatorInterface + } + static isBadgeInterface(value: object|string|number|undefined|null): boolean { + return value instanceof BadgeInterface + } + static isBadgeParamWithNumber(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof BadgeParamWithNumber + } + static isBadgeParam(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof BadgeParam + } + static isBadgeStyle(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean, arg6: boolean): boolean { + return value instanceof BadgeStyle + } + static isBadgeParamWithString(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof BadgeParamWithString + } static isBlankInterface(value: object|string|number|undefined|null): boolean { return value instanceof BlankInterface } static isButtonInterface(value: object|string|number|undefined|null): boolean { return value instanceof ButtonInterface } + static isButtonConfiguration(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean): boolean { + return value instanceof ButtonConfiguration + } static isLabelStyle(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean): boolean { return value instanceof LabelStyle } + static isButtonOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean): boolean { + return value instanceof ButtonOptions + } + static isCalendarInterface(value: object|string|number|undefined|null): boolean { + return value instanceof CalendarInterface + } + static isCurrentDayStyle(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean, arg6: boolean, arg7: boolean, arg8: boolean, arg9: boolean, arg10: boolean, arg11: boolean, arg12: boolean, arg13: boolean, arg14: boolean, arg15: boolean, arg16: boolean, arg17: boolean, arg18: boolean, arg19: boolean, arg20: boolean, arg21: boolean, arg22: boolean): boolean { + return value instanceof CurrentDayStyle + } + static isNonCurrentDayStyle(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof NonCurrentDayStyle + } + static isTodayStyle(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof TodayStyle + } + static isWeekStyle(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean, arg6: boolean): boolean { + return value instanceof WeekStyle + } + static isWorkStateStyle(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean, arg6: boolean): boolean { + return value instanceof WorkStateStyle + } + static isCalendarSelectedDate(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof CalendarSelectedDate + } + static isCalendarRequestedData(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean): boolean { + return value instanceof CalendarRequestedData + } + static isMonthData(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof MonthData + } + static isCalendarDay(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean, arg6: boolean, arg7: boolean, arg8: boolean, arg9: boolean, arg10: boolean): boolean { + return value instanceof CalendarDay + } static isCalendarPickerInterface(value: object|string|number|undefined|null): boolean { return value instanceof CalendarPickerInterface } + static isCalendarOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof CalendarOptions + } static isCanvasInterface(value: object|string|number|undefined|null): boolean { return value instanceof CanvasInterface } + static isTextMetrics(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean, arg6: boolean, arg7: boolean, arg8: boolean, arg9: boolean, arg10: boolean, arg11: boolean, arg12: boolean): boolean { + return value instanceof TextMetrics + } static isSize(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { return value instanceof Size } - static isDrawingCanvas(value: object|string|number|undefined|null): boolean { - return value instanceof DrawingCanvas + static isCheckboxInterface(value: object|string|number|undefined|null): boolean { + return value instanceof CheckboxInterface + } + static isCheckBoxConfiguration(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean): boolean { + return value instanceof CheckBoxConfiguration + } + static isCheckboxOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof CheckboxOptions + } + static isCheckboxGroupInterface(value: object|string|number|undefined|null): boolean { + return value instanceof CheckboxGroupInterface + } + static isCheckboxGroupResult(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof CheckboxGroupResult + } + static isCheckboxGroupOptions(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof CheckboxGroupOptions + } + static isCircleInterface(value: object|string|number|undefined|null): boolean { + return value instanceof CircleInterface + } + static isCircleOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof CircleOptions } static isColumnInterface(value: object|string|number|undefined|null): boolean { return value instanceof ColumnInterface } + static isColumnOptions(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof ColumnOptions + } + static isColumnSplitInterface(value: object|string|number|undefined|null): boolean { + return value instanceof ColumnSplitInterface + } + static isColumnSplitDividerStyle(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof ColumnSplitDividerStyle + } static isCommonInterface(value: object|string|number|undefined|null): boolean { return value instanceof CommonInterface } - static isStateStyles(value: object|string|number|undefined|null, arg0: boolean): boolean { - return value instanceof StateStyles + static isRectangle(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof Rectangle + } + static isRectResult(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof RectResult + } + static isPixelRoundPolicy(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof PixelRoundPolicy + } + static isBackgroundBlurStyleOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean, arg6: boolean): boolean { + return value instanceof BackgroundBlurStyleOptions + } + static isBlurStyleOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof BlurStyleOptions } static isBlurOptions(value: object|string|number|undefined|null, arg0: boolean): boolean { return value instanceof BlurOptions } - static isPadding(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { - return value instanceof Padding + static isBackgroundEffectOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean, arg6: boolean, arg7: boolean, arg8: boolean): boolean { + return value instanceof BackgroundEffectOptions } - static isSheetOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean, arg6: boolean, arg7: boolean, arg8: boolean, arg9: boolean, arg10: boolean, arg11: boolean, arg12: boolean, arg13: boolean, arg14: boolean, arg15: boolean, arg16: boolean, arg17: boolean, arg18: boolean, arg19: boolean, arg20: boolean, arg21: boolean, arg22: boolean, arg23: boolean, arg24: boolean, arg25: boolean, arg26: boolean, arg27: boolean, arg28: boolean, arg29: boolean, arg30: boolean): boolean { - return value instanceof SheetOptions + static isForegroundEffectOptions(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof ForegroundEffectOptions + } + static isForegroundBlurStyleOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof ForegroundBlurStyleOptions + } + static isBorderImageOption(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean): boolean { + return value instanceof BorderImageOption + } + static isClickEvent(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean, arg6: boolean, arg7: boolean, arg8: boolean, arg9: boolean, arg10: boolean, arg11: boolean, arg12: boolean, arg13: boolean, arg14: boolean, arg15: boolean, arg16: boolean, arg17: boolean, arg18: boolean): boolean { + return value instanceof ClickEvent + } + static isBaseEvent(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean, arg6: boolean, arg7: boolean, arg8: boolean, arg9: boolean): boolean { + return value instanceof BaseEvent + } + static isEventTarget(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof EventTarget + } + static isCallback(value: object|string|number|undefined|null): boolean { + return value instanceof Callback + } + static isHoverEvent(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean, arg6: boolean, arg7: boolean, arg8: boolean, arg9: boolean, arg10: boolean): boolean { + return value instanceof HoverEvent + } + static isAccessibilityHoverEvent(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean, arg6: boolean, arg7: boolean, arg8: boolean, arg9: boolean, arg10: boolean, arg11: boolean, arg12: boolean, arg13: boolean, arg14: boolean, arg15: boolean, arg16: boolean): boolean { + return value instanceof AccessibilityHoverEvent + } + static isMouseEvent(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean, arg6: boolean, arg7: boolean, arg8: boolean, arg9: boolean, arg10: boolean, arg11: boolean, arg12: boolean, arg13: boolean, arg14: boolean, arg15: boolean, arg16: boolean, arg17: boolean, arg18: boolean, arg19: boolean, arg20: boolean): boolean { + return value instanceof MouseEvent + } + static isTouchEvent(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean, arg6: boolean, arg7: boolean, arg8: boolean, arg9: boolean, arg10: boolean, arg11: boolean, arg12: boolean, arg13: boolean, arg14: boolean): boolean { + return value instanceof TouchEvent + } + static isTouchObject(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean, arg6: boolean, arg7: boolean, arg8: boolean, arg9: boolean): boolean { + return value instanceof TouchObject + } + static isHistoricalPoint(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof HistoricalPoint + } + static isKeyEvent(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean, arg6: boolean, arg7: boolean, arg8: boolean, arg9: boolean): boolean { + return value instanceof KeyEvent + } + static isAnimateParam(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean, arg6: boolean, arg7: boolean, arg8: boolean): boolean { + return value instanceof AnimateParam + } + static isExpectedFrameRateRange(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof ExpectedFrameRateRange + } + static isTransitionOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean): boolean { + return value instanceof TransitionOptions + } + static isTranslateOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof TranslateOptions + } + static isScaleOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean): boolean { + return value instanceof ScaleOptions + } + static isRotateOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean, arg6: boolean, arg7: boolean): boolean { + return value instanceof RotateOptions + } + static isLinearGradientBlurOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof LinearGradientBlurOptions + } + static isMotionBlurOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof MotionBlurOptions + } + static isMotionBlurAnchor(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof MotionBlurAnchor + } + static isInvertOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof InvertOptions + } + static issharedTransitionOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean): boolean { + return value instanceof sharedTransitionOptions + } + static isMotionPathOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof MotionPathOptions + } + static isAlignRuleOption(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean, arg6: boolean): boolean { + return value instanceof AlignRuleOption + } + static isLocalizedAlignRuleOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean, arg6: boolean): boolean { + return value instanceof LocalizedAlignRuleOptions + } + static isLocalizedHorizontalAlignParam(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof LocalizedHorizontalAlignParam + } + static isLocalizedVerticalAlignParam(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof LocalizedVerticalAlignParam + } + static isClickEffect(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof ClickEffect + } + static isDragEvent(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof DragEvent + } + static isDragItemInfo(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof DragItemInfo + } + static isDragPreviewOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof DragPreviewOptions + } + static isDragInteractionOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof DragInteractionOptions + } + static isOverlayOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof OverlayOptions + } + static isOverlayOffset(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof OverlayOffset + } + static isShadowOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean): boolean { + return value instanceof ShadowOptions + } + static isGeometryTransitionOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof GeometryTransitionOptions + } + static isPopupOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean, arg6: boolean, arg7: boolean, arg8: boolean, arg9: boolean, arg10: boolean, arg11: boolean, arg12: boolean, arg13: boolean, arg14: boolean, arg15: boolean, arg16: boolean, arg17: boolean, arg18: boolean, arg19: boolean, arg20: boolean, arg21: boolean, arg22: boolean, arg23: boolean, arg24: boolean): boolean { + return value instanceof PopupOptions + } + static isPopupMessageOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof PopupMessageOptions + } + static isDismissPopupAction(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof DismissPopupAction + } + static isCustomPopupOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean, arg6: boolean, arg7: boolean, arg8: boolean, arg9: boolean, arg10: boolean, arg11: boolean, arg12: boolean, arg13: boolean, arg14: boolean, arg15: boolean, arg16: boolean, arg17: boolean, arg18: boolean, arg19: boolean, arg20: boolean, arg21: boolean, arg22: boolean): boolean { + return value instanceof CustomPopupOptions + } + static isMenuElement(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean): boolean { + return value instanceof MenuElement + } + static isMenuOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean, arg6: boolean, arg7: boolean, arg8: boolean, arg9: boolean, arg10: boolean, arg11: boolean, arg12: boolean, arg13: boolean, arg14: boolean, arg15: boolean, arg16: boolean, arg17: boolean): boolean { + return value instanceof MenuOptions + } + static isContextMenuOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean, arg6: boolean, arg7: boolean, arg8: boolean, arg9: boolean, arg10: boolean, arg11: boolean, arg12: boolean, arg13: boolean, arg14: boolean, arg15: boolean): boolean { + return value instanceof ContextMenuOptions + } + static isContextMenuAnimationOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof ContextMenuAnimationOptions + } + static isContentCoverOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean, arg6: boolean, arg7: boolean): boolean { + return value instanceof ContentCoverOptions } static isBindOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean): boolean { return value instanceof BindOptions } + static isDismissContentCoverAction(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof DismissContentCoverAction + } + static isSheetOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean, arg6: boolean, arg7: boolean, arg8: boolean, arg9: boolean, arg10: boolean, arg11: boolean, arg12: boolean, arg13: boolean, arg14: boolean, arg15: boolean, arg16: boolean, arg17: boolean, arg18: boolean, arg19: boolean, arg20: boolean, arg21: boolean, arg22: boolean, arg23: boolean, arg24: boolean, arg25: boolean, arg26: boolean, arg27: boolean, arg28: boolean, arg29: boolean, arg30: boolean): boolean { + return value instanceof SheetOptions + } static isSheetTitleOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { return value instanceof SheetTitleOptions } @@ -106,15 +490,921 @@ export class TypeChecker { static isDismissSheetAction(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { return value instanceof DismissSheetAction } - static isCallback(value: object|string|number|undefined|null): boolean { - return value instanceof Callback + static isSpringBackAction(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof SpringBackAction + } + static isStateStyles(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean): boolean { + return value instanceof StateStyles + } + static isPixelStretchEffectOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof PixelStretchEffectOptions + } + static isUIGestureEvent(value: object|string|number|undefined|null): boolean { + return value instanceof UIGestureEvent + } + static isBackgroundBrightnessOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof BackgroundBrightnessOptions + } + static isCommonConfiguration(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof CommonConfiguration + } + static isPickerTextStyle(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof PickerTextStyle + } + static isPointLightStyle(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof PointLightStyle + } + static isLightSource(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean): boolean { + return value instanceof LightSource + } + static isMultiShadowOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof MultiShadowOptions + } + static isEdgeEffectOptions(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof EdgeEffectOptions + } + static isFadingEdgeOptions(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof FadingEdgeOptions + } + static isNestedScrollOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof NestedScrollOptions + } + static isItemDragInfo(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof ItemDragInfo + } + static isSelectionOptions(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof SelectionOptions + } + static isTextDecorationOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof TextDecorationOptions + } + static isCaretOffset(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof CaretOffset + } + static isInputCounterOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof InputCounterOptions + } + static isComponent3DInterface(value: object|string|number|undefined|null): boolean { + return value instanceof Component3DInterface + } + static isSceneOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof SceneOptions + } + static isContainerSpanInterface(value: object|string|number|undefined|null): boolean { + return value instanceof ContainerSpanInterface + } + static isCounterInterface(value: object|string|number|undefined|null): boolean { + return value instanceof CounterInterface + } + static isDataPanelInterface(value: object|string|number|undefined|null): boolean { + return value instanceof DataPanelInterface + } + static isDataPanelShadowOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof DataPanelShadowOptions + } + static isDataPanelConfiguration(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof DataPanelConfiguration + } + static isDataPanelOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof DataPanelOptions + } + static isDatePickerInterface(value: object|string|number|undefined|null): boolean { + return value instanceof DatePickerInterface + } + static isDatePickerResult(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof DatePickerResult + } + static isDatePickerOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof DatePickerOptions + } + static isDividerInterface(value: object|string|number|undefined|null): boolean { + return value instanceof DividerInterface + } + static isEffectComponentInterface(value: object|string|number|undefined|null): boolean { + return value instanceof EffectComponentInterface + } + static isEllipseInterface(value: object|string|number|undefined|null): boolean { + return value instanceof EllipseInterface + } + static isEmbeddedComponentInterface(value: object|string|number|undefined|null): boolean { + return value instanceof EmbeddedComponentInterface + } + static isTerminationInfo(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof TerminationInfo + } + static isFlexInterface(value: object|string|number|undefined|null): boolean { + return value instanceof FlexInterface + } + static isFlexOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean): boolean { + return value instanceof FlexOptions + } + static isFlexSpaceOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof FlexSpaceOptions + } + static isFlowItemInterface(value: object|string|number|undefined|null): boolean { + return value instanceof FlowItemInterface + } + static isFocusBoxStyle(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof FocusBoxStyle + } + static isFolderStackInterface(value: object|string|number|undefined|null): boolean { + return value instanceof FolderStackInterface + } + static isOnFoldStatusChangeInfo(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof OnFoldStatusChangeInfo + } + static isHoverEventParam(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof HoverEventParam + } + static isFolderStackOptions(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof FolderStackOptions + } + static isFormComponentInterface(value: object|string|number|undefined|null): boolean { + return value instanceof FormComponentInterface + } + static isFormCallbackInfo(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof FormCallbackInfo + } + static isFormInfo(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean, arg6: boolean, arg7: boolean, arg8: boolean, arg9: boolean): boolean { + return value instanceof FormInfo + } + static isFormLinkInterface(value: object|string|number|undefined|null): boolean { + return value instanceof FormLinkInterface + } + static isFormLinkOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean): boolean { + return value instanceof FormLinkOptions + } + static isGaugeInterface(value: object|string|number|undefined|null): boolean { + return value instanceof GaugeInterface + } + static isGaugeShadowOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof GaugeShadowOptions + } + static isGaugeIndicatorOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof GaugeIndicatorOptions + } + static isGaugeConfiguration(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean): boolean { + return value instanceof GaugeConfiguration + } + static isGaugeOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof GaugeOptions + } + static isTapGestureInterface(value: object|string|number|undefined|null): boolean { + return value instanceof TapGestureInterface + } + static isGestureInterface(value: object|string|number|undefined|null): boolean { + return value instanceof GestureInterface + } + static isTapGestureParameters(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof TapGestureParameters + } + static isGestureEvent(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean, arg6: boolean, arg7: boolean, arg8: boolean, arg9: boolean, arg10: boolean, arg11: boolean, arg12: boolean, arg13: boolean, arg14: boolean, arg15: boolean, arg16: boolean, arg17: boolean, arg18: boolean, arg19: boolean, arg20: boolean, arg21: boolean): boolean { + return value instanceof GestureEvent + } + static isFingerInfo(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean, arg6: boolean): boolean { + return value instanceof FingerInfo + } + static isLongPressGestureInterface(value: object|string|number|undefined|null): boolean { + return value instanceof LongPressGestureInterface + } + static isPanGestureInterface(value: object|string|number|undefined|null): boolean { + return value instanceof PanGestureInterface + } + static isPinchGestureInterface(value: object|string|number|undefined|null): boolean { + return value instanceof PinchGestureInterface + } + static isSwipeGestureInterface(value: object|string|number|undefined|null): boolean { + return value instanceof SwipeGestureInterface + } + static isRotationGestureInterface(value: object|string|number|undefined|null): boolean { + return value instanceof RotationGestureInterface + } + static isGestureGroupInterface(value: object|string|number|undefined|null): boolean { + return value instanceof GestureGroupInterface + } + static isGestureInfo(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof GestureInfo + } + static isBaseGestureEvent(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean, arg6: boolean, arg7: boolean, arg8: boolean, arg9: boolean, arg10: boolean): boolean { + return value instanceof BaseGestureEvent + } + static isGridInterface(value: object|string|number|undefined|null): boolean { + return value instanceof GridInterface + } + static isComputedBarAttribute(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof ComputedBarAttribute + } + static isGridLayoutOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof GridLayoutOptions + } + static isGridItemInterface(value: object|string|number|undefined|null): boolean { + return value instanceof GridItemInterface + } + static isGridItemOptions(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof GridItemOptions + } + static isGridColInterface(value: object|string|number|undefined|null): boolean { + return value instanceof GridColInterface + } + static isGridColColumnOption(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean): boolean { + return value instanceof GridColColumnOption + } + static isGridColOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof GridColOptions + } + static isGridContainerInterface(value: object|string|number|undefined|null): boolean { + return value instanceof GridContainerInterface + } + static isGridContainerOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof GridContainerOptions + } + static isGridRowInterface(value: object|string|number|undefined|null): boolean { + return value instanceof GridRowInterface + } + static isGridRowOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof GridRowOptions + } + static isGutterOption(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof GutterOption + } + static isGridRowSizeOption(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean): boolean { + return value instanceof GridRowSizeOption + } + static isGridRowColumnOption(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean): boolean { + return value instanceof GridRowColumnOption + } + static isBreakPoints(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof BreakPoints + } + static isHyperlinkInterface(value: object|string|number|undefined|null): boolean { + return value instanceof HyperlinkInterface + } + static isImageInterface(value: object|string|number|undefined|null): boolean { + return value instanceof ImageInterface + } + static isResizableOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof ResizableOptions + } + static isImageSourceSize(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof ImageSourceSize + } + static isImageError(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof ImageError + } + static isImageAnimatorInterface(value: object|string|number|undefined|null): boolean { + return value instanceof ImageAnimatorInterface + } + static isImageFrameInfo(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean): boolean { + return value instanceof ImageFrameInfo + } + static isImageAnalyzerConfig(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof ImageAnalyzerConfig + } + static isImageAIOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof ImageAIOptions + } + static isImageSpanInterface(value: object|string|number|undefined|null): boolean { + return value instanceof ImageSpanInterface + } + static isImageLoadResult(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean, arg6: boolean, arg7: boolean, arg8: boolean): boolean { + return value instanceof ImageLoadResult + } + static isLineInterface(value: object|string|number|undefined|null): boolean { + return value instanceof LineInterface + } + static isListInterface(value: object|string|number|undefined|null): boolean { + return value instanceof ListInterface + } + static isListDividerOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof ListDividerOptions + } + static isChainAnimationOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean, arg6: boolean): boolean { + return value instanceof ChainAnimationOptions + } + static isVisibleListContentInfo(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof VisibleListContentInfo + } + static isListOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof ListOptions + } + static isListItemInterface(value: object|string|number|undefined|null): boolean { + return value instanceof ListItemInterface + } + static isSwipeActionOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof SwipeActionOptions + } + static isSwipeActionItem(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean): boolean { + return value instanceof SwipeActionItem + } + static isListItemOptions(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof ListItemOptions + } + static isListItemGroupInterface(value: object|string|number|undefined|null): boolean { + return value instanceof ListItemGroupInterface + } + static isListItemGroupOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean): boolean { + return value instanceof ListItemGroupOptions + } + static isLoadingProgressInterface(value: object|string|number|undefined|null): boolean { + return value instanceof LoadingProgressInterface + } + static isLoadingProgressConfiguration(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof LoadingProgressConfiguration + } + static isLocationButtonInterface(value: object|string|number|undefined|null): boolean { + return value instanceof LocationButtonInterface + } + static isLocationButtonOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof LocationButtonOptions + } + static isMarqueeInterface(value: object|string|number|undefined|null): boolean { + return value instanceof MarqueeInterface + } + static isMarqueeOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean): boolean { + return value instanceof MarqueeOptions + } + static isMediaCachedImageInterface(value: object|string|number|undefined|null): boolean { + return value instanceof MediaCachedImageInterface + } + static isASTCResource(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof ASTCResource + } + static isMenuInterface(value: object|string|number|undefined|null): boolean { + return value instanceof MenuInterface + } + static isMenuItemInterface(value: object|string|number|undefined|null): boolean { + return value instanceof MenuItemInterface + } + static isMenuItemOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean, arg6: boolean): boolean { + return value instanceof MenuItemOptions + } + static isMenuItemGroupInterface(value: object|string|number|undefined|null): boolean { + return value instanceof MenuItemGroupInterface + } + static isMenuItemGroupOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof MenuItemGroupOptions + } + static isNavDestinationInterface(value: object|string|number|undefined|null): boolean { + return value instanceof NavDestinationInterface + } + static isNavDestinationCommonTitle(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof NavDestinationCommonTitle + } + static isNavDestinationCustomTitle(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof NavDestinationCustomTitle + } + static isRouteMapConfig(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof RouteMapConfig + } + static isNavRouterInterface(value: object|string|number|undefined|null): boolean { + return value instanceof NavRouterInterface + } + static isRouteInfo(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof RouteInfo + } + static isNavigationInterface(value: object|string|number|undefined|null): boolean { + return value instanceof NavigationInterface + } + static isNavigationTitleOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean, arg6: boolean, arg7: boolean): boolean { + return value instanceof NavigationTitleOptions + } + static isNavigationMenuItem(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean): boolean { + return value instanceof NavigationMenuItem + } + static isPopInfo(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof PopInfo + } + static isNavigationOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof NavigationOptions + } + static isNavigationInterception(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof NavigationInterception + } + static isNavigationCommonTitle(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof NavigationCommonTitle + } + static isNavigationCustomTitle(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof NavigationCustomTitle + } + static isToolbarItem(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean, arg6: boolean): boolean { + return value instanceof ToolbarItem + } + static isNavigationToolbarOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof NavigationToolbarOptions + } + static isNavContentInfo(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean): boolean { + return value instanceof NavContentInfo + } + static isNavigationAnimatedTransition(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof NavigationAnimatedTransition + } + static isNavigatorInterface(value: object|string|number|undefined|null): boolean { + return value instanceof NavigatorInterface + } + static isNodeContainerInterface(value: object|string|number|undefined|null): boolean { + return value instanceof NodeContainerInterface + } + static isPanelInterface(value: object|string|number|undefined|null): boolean { + return value instanceof PanelInterface + } + static isPasteButtonInterface(value: object|string|number|undefined|null): boolean { + return value instanceof PasteButtonInterface + } + static isPasteButtonOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof PasteButtonOptions + } + static isPathInterface(value: object|string|number|undefined|null): boolean { + return value instanceof PathInterface + } + static isPatternLockInterface(value: object|string|number|undefined|null): boolean { + return value instanceof PatternLockInterface + } + static isCircleStyleOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof CircleStyleOptions + } + static isPluginComponentInterface(value: object|string|number|undefined|null): boolean { + return value instanceof PluginComponentInterface + } + static isPluginComponentTemplate(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof PluginComponentTemplate + } + static isPolygonInterface(value: object|string|number|undefined|null): boolean { + return value instanceof PolygonInterface + } + static isPolylineInterface(value: object|string|number|undefined|null): boolean { + return value instanceof PolylineInterface + } + static isQRCodeInterface(value: object|string|number|undefined|null): boolean { + return value instanceof QRCodeInterface + } + static isRadioInterface(value: object|string|number|undefined|null): boolean { + return value instanceof RadioInterface + } + static isRadioStyle(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof RadioStyle + } + static isRadioConfiguration(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean): boolean { + return value instanceof RadioConfiguration + } + static isRadioOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof RadioOptions + } + static isRatingInterface(value: object|string|number|undefined|null): boolean { + return value instanceof RatingInterface + } + static isStarStyleOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof StarStyleOptions + } + static isRatingConfiguration(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean, arg6: boolean): boolean { + return value instanceof RatingConfiguration + } + static isRatingOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof RatingOptions + } + static isRectInterface(value: object|string|number|undefined|null): boolean { + return value instanceof RectInterface + } + static isRefreshInterface(value: object|string|number|undefined|null): boolean { + return value instanceof RefreshInterface + } + static isRefreshOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean): boolean { + return value instanceof RefreshOptions + } + static isRelativeContainerInterface(value: object|string|number|undefined|null): boolean { + return value instanceof RelativeContainerInterface + } + static isGuideLineStyle(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof GuideLineStyle + } + static isGuideLinePosition(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof GuideLinePosition + } + static isBarrierStyle(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof BarrierStyle + } + static isLocalizedBarrierStyle(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof LocalizedBarrierStyle + } + static isRichEditorInterface(value: object|string|number|undefined|null): boolean { + return value instanceof RichEditorInterface + } + static isRichEditorSelection(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof RichEditorSelection + } + static isRichEditorTextSpanResult(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean, arg6: boolean, arg7: boolean): boolean { + return value instanceof RichEditorTextSpanResult + } + static isRichEditorSpanPosition(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof RichEditorSpanPosition + } + static isRichEditorTextStyleResult(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean, arg6: boolean, arg7: boolean, arg8: boolean, arg9: boolean): boolean { + return value instanceof RichEditorTextStyleResult + } + static isRichEditorSymbolSpanStyle(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean): boolean { + return value instanceof RichEditorSymbolSpanStyle + } + static isRichEditorParagraphStyle(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof RichEditorParagraphStyle + } + static isLeadingMarginPlaceholder(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof LeadingMarginPlaceholder + } + static isRichEditorImageSpanResult(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean): boolean { + return value instanceof RichEditorImageSpanResult + } + static isRichEditorImageSpanStyleResult(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof RichEditorImageSpanStyleResult + } + static isRichEditorLayoutStyle(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof RichEditorLayoutStyle + } + static isRichEditorRange(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof RichEditorRange + } + static isRichEditorInsertValue(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof RichEditorInsertValue + } + static isRichEditorDeleteValue(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof RichEditorDeleteValue + } + static isSelectionMenuOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof SelectionMenuOptions + } + static isKeyboardOptions(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof KeyboardOptions + } + static isPasteEvent(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof PasteEvent + } + static isPlaceholderStyle(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof PlaceholderStyle + } + static isRichEditorChangeValue(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof RichEditorChangeValue + } + static isCutEvent(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof CutEvent + } + static isCopyEvent(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof CopyEvent + } + static isRichEditorOptions(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof RichEditorOptions + } + static isRichEditorTextStyle(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean, arg6: boolean, arg7: boolean, arg8: boolean, arg9: boolean): boolean { + return value instanceof RichEditorTextStyle + } + static isRichEditorTextSpanOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof RichEditorTextSpanOptions + } + static isRichEditorGesture(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof RichEditorGesture + } + static isRichEditorImageSpanOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof RichEditorImageSpanOptions + } + static isRichEditorImageSpanStyle(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof RichEditorImageSpanStyle + } + static isRichEditorBuilderSpanOptions(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof RichEditorBuilderSpanOptions + } + static isRichEditorSymbolSpanOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof RichEditorSymbolSpanOptions + } + static isRichEditorUpdateTextSpanStyleOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof RichEditorUpdateTextSpanStyleOptions + } + static isRichEditorSpanStyleOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof RichEditorSpanStyleOptions + } + static isRichEditorUpdateImageSpanStyleOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof RichEditorUpdateImageSpanStyleOptions + } + static isRichEditorUpdateSymbolSpanStyleOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof RichEditorUpdateSymbolSpanStyleOptions + } + static isRichEditorParagraphStyleOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof RichEditorParagraphStyleOptions + } + static isRichEditorParagraphResult(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof RichEditorParagraphResult + } + static isRichEditorStyledStringOptions(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof RichEditorStyledStringOptions + } + static isRichTextInterface(value: object|string|number|undefined|null): boolean { + return value instanceof RichTextInterface + } + static isRootSceneInterface(value: object|string|number|undefined|null): boolean { + return value instanceof RootSceneInterface + } + static isRootSceneSession(value: object|string|number|undefined|null): boolean { + return value instanceof RootSceneSession + } + static isRowInterface(value: object|string|number|undefined|null): boolean { + return value instanceof RowInterface + } + static isRowOptions(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof RowOptions + } + static isRowSplitInterface(value: object|string|number|undefined|null): boolean { + return value instanceof RowSplitInterface + } + static isSaveButtonInterface(value: object|string|number|undefined|null): boolean { + return value instanceof SaveButtonInterface + } + static isSaveButtonOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof SaveButtonOptions + } + static isScreenInterface(value: object|string|number|undefined|null): boolean { + return value instanceof ScreenInterface + } + static isScrollInterface(value: object|string|number|undefined|null): boolean { + return value instanceof ScrollInterface + } + static isScrollOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof ScrollOptions + } + static isScrollAnimationOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof ScrollAnimationOptions + } + static isScrollEdgeOptions(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof ScrollEdgeOptions + } + static isOffsetResult(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof OffsetResult + } + static isScrollToIndexOptions(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof ScrollToIndexOptions + } + static isOnScrollFrameBeginHandlerResult(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof OnScrollFrameBeginHandlerResult + } + static isScrollSnapOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof ScrollSnapOptions + } + static isOffsetOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof OffsetOptions + } + static isScrollBarInterface(value: object|string|number|undefined|null): boolean { + return value instanceof ScrollBarInterface + } + static isScrollBarOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof ScrollBarOptions + } + static isSearchInterface(value: object|string|number|undefined|null): boolean { + return value instanceof SearchInterface + } + static isSearchButtonOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof SearchButtonOptions + } + static isIconOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof IconOptions + } + static isCancelButtonOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof CancelButtonOptions + } + static isCancelButtonSymbolOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof CancelButtonSymbolOptions + } + static isSelectInterface(value: object|string|number|undefined|null): boolean { + return value instanceof SelectInterface + } + static isMenuItemConfiguration(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean, arg6: boolean): boolean { + return value instanceof MenuItemConfiguration + } + static isSelectOption(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof SelectOption + } + static isShapeInterface(value: object|string|number|undefined|null): boolean { + return value instanceof ShapeInterface + } + static isSliderInterface(value: object|string|number|undefined|null): boolean { + return value instanceof SliderInterface + } + static isSliderBlockStyle(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof SliderBlockStyle + } + static isSliderConfiguration(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean, arg6: boolean): boolean { + return value instanceof SliderConfiguration + } + static isSlideRange(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof SlideRange + } + static isSliderOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean, arg6: boolean): boolean { + return value instanceof SliderOptions + } + static isSpanInterface(value: object|string|number|undefined|null): boolean { + return value instanceof SpanInterface + } + static isTextBackgroundStyle(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof TextBackgroundStyle + } + static isStackInterface(value: object|string|number|undefined|null): boolean { + return value instanceof StackInterface + } + static isStackOptions(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof StackOptions + } + static isStepperInterface(value: object|string|number|undefined|null): boolean { + return value instanceof StepperInterface + } + static isStepperItemInterface(value: object|string|number|undefined|null): boolean { + return value instanceof StepperItemInterface + } + static isSwiperInterface(value: object|string|number|undefined|null): boolean { + return value instanceof SwiperInterface + } + static isArrowStyle(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean): boolean { + return value instanceof ArrowStyle + } + static isSwiperAutoFill(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof SwiperAutoFill + } + static isIndicatorStyle(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean, arg6: boolean, arg7: boolean): boolean { + return value instanceof IndicatorStyle + } + static isSwiperAnimationEvent(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof SwiperAnimationEvent + } + static isSwiperContentAnimatedTransition(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof SwiperContentAnimatedTransition + } + static isSymbolGlyphInterface(value: object|string|number|undefined|null): boolean { + return value instanceof SymbolGlyphInterface + } + static isSymbolSpanInterface(value: object|string|number|undefined|null): boolean { + return value instanceof SymbolSpanInterface + } + static isTabsInterface(value: object|string|number|undefined|null): boolean { + return value instanceof TabsInterface + } + static isScrollableBarModeOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof ScrollableBarModeOptions + } + static isTabsAnimationEvent(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof TabsAnimationEvent + } + static isDividerStyle(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof DividerStyle + } + static isBarGridColumnOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean): boolean { + return value instanceof BarGridColumnOptions + } + static isTabContentAnimatedTransition(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof TabContentAnimatedTransition + } + static isTabContentInterface(value: object|string|number|undefined|null): boolean { + return value instanceof TabContentInterface + } + static isBoardStyle(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof BoardStyle + } + static isTabBarIconStyle(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof TabBarIconStyle + } + static isTextInterface(value: object|string|number|undefined|null): boolean { + return value instanceof TextInterface + } + static isTextOverflowOptions(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof TextOverflowOptions + } + static isTextOptions(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof TextOptions + } + static isTextAreaInterface(value: object|string|number|undefined|null): boolean { + return value instanceof TextAreaInterface + } + static isTextAreaOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof TextAreaOptions + } + static isTextClockInterface(value: object|string|number|undefined|null): boolean { + return value instanceof TextClockInterface + } + static isTextClockConfiguration(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean): boolean { + return value instanceof TextClockConfiguration + } + static isTextClockOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof TextClockOptions + } + static isDecorationStyleResult(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof DecorationStyleResult + } + static isTextRange(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof TextRange + } + static isTextDataDetectorConfig(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof TextDataDetectorConfig + } + static isTextMenuItem(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof TextMenuItem + } + static isPositionWithAffinity(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof PositionWithAffinity + } + static isPreviewText(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof PreviewText + } + static isStyledStringChangedListener(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof StyledStringChangedListener + } + static isStyledStringChangeValue(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof StyledStringChangeValue + } + static isCaretStyle(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof CaretStyle + } + static isInsertValue(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof InsertValue + } + static isDeleteValue(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof DeleteValue + } + static isFontSettingOptions(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof FontSettingOptions + } + static isTextInputInterface(value: object|string|number|undefined|null): boolean { + return value instanceof TextInputInterface + } + static isSubmitEvent(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof SubmitEvent + } + static isPasswordIcon(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof PasswordIcon + } + static isUnderlineColor(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof UnderlineColor + } + static isTextInputOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof TextInputOptions + } + static isTextPickerInterface(value: object|string|number|undefined|null): boolean { + return value instanceof TextPickerInterface + } + static isDividerOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof DividerOptions + } + static isTextPickerOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof TextPickerOptions + } + static isTextPickerRangeContent(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof TextPickerRangeContent + } + static isTextCascadePickerRangeContent(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof TextCascadePickerRangeContent + } + static isTextTimerInterface(value: object|string|number|undefined|null): boolean { + return value instanceof TextTimerInterface + } + static isTextTimerConfiguration(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean): boolean { + return value instanceof TextTimerConfiguration + } + static isTextTimerOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof TextTimerOptions + } + static isTimePickerInterface(value: object|string|number|undefined|null): boolean { + return value instanceof TimePickerInterface + } + static isTimePickerResult(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof TimePickerResult + } + static isTimePickerOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof TimePickerOptions + } + static isToggleInterface(value: object|string|number|undefined|null): boolean { + return value instanceof ToggleInterface + } + static isToggleConfiguration(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof ToggleConfiguration + } + static isSwitchStyle(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof SwitchStyle + } + static isToggleOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof ToggleOptions + } + static isSizeOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof SizeOptions + } + static isConstraintSizeOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof ConstraintSizeOptions + } + static isPadding(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof Padding } - static isSpringBackAction(value: object|string|number|undefined|null, arg0: boolean): boolean { - return value instanceof SpringBackAction + static isLocalizedPadding(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof LocalizedPadding + } + static isPosition(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof Position } static isEdgeWidths(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { return value instanceof EdgeWidths } + static isBorderOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean): boolean { + return value instanceof BorderOptions + } static isLocalizedEdgeWidths(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { return value instanceof LocalizedEdgeWidths } @@ -124,302 +1414,515 @@ export class TypeChecker { static isLocalizedEdgeColors(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { return value instanceof LocalizedEdgeColors } + static isBorderRadiuses(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof BorderRadiuses + } + static isLocalizedBorderRadiuses(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof LocalizedBorderRadiuses + } static isEdgeStyles(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { return value instanceof EdgeStyles } - static isShadowOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean): boolean { - return value instanceof ShadowOptions + static isOutlineOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof OutlineOptions } - static isBackgroundBlurStyleOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean): boolean { - return value instanceof BackgroundBlurStyleOptions + static isEdgeOutlineWidths(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof EdgeOutlineWidths } - static isBlurStyleOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { - return value instanceof BlurStyleOptions + static isOutlineRadiuses(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof OutlineRadiuses } - static isDragPreviewOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { - return value instanceof DragPreviewOptions + static isEdgeOutlineStyles(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof EdgeOutlineStyles } - static isDragInteractionOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { - return value instanceof DragInteractionOptions + static isArea(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof Area } - static isBorderOptions(value: object|string|number|undefined|null): boolean { - return value instanceof BorderOptions + static isEdges(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof Edges } - static isRectResult(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { - return value instanceof RectResult + static isLocalizedEdges(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof LocalizedEdges } - static isAttributeModifier(value: object|string|number|undefined|null): boolean { - return value instanceof AttributeModifier + static isLocalizedPosition(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof LocalizedPosition } - static isUIGestureEvent(value: object|string|number|undefined|null): boolean { - return value instanceof UIGestureEvent + static isBias(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof Bias } - static isBaseEvent(value: object|string|number|undefined|null): boolean { - return value instanceof BaseEvent + static isFont(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof Font } - static isClickEvent(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { - return value instanceof ClickEvent + static isOffset(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof Offset } - static isCommonConfiguration(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { - return value instanceof CommonConfiguration + static isMarkStyle(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof MarkStyle } - static isEmbeddedComponentInterface(value: object|string|number|undefined|null): boolean { - return value instanceof EmbeddedComponentInterface + static isLengthConstrain(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof LengthConstrain } - static isTerminationInfo(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { - return value instanceof TerminationInfo + static isDividerStyleOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof DividerStyleOptions } - static isFormComponentInterface(value: object|string|number|undefined|null): boolean { - return value instanceof FormComponentInterface + static isVideoInterface(value: object|string|number|undefined|null): boolean { + return value instanceof VideoInterface } - static isFormCallbackInfo(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { - return value instanceof FormCallbackInfo + static isVideoOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean): boolean { + return value instanceof VideoOptions } - static isGestureInterface(value: object|string|number|undefined|null): boolean { - return value instanceof GestureInterface + static isWebInterface(value: object|string|number|undefined|null): boolean { + return value instanceof WebInterface } - static isBaseGestureEvent(value: object|string|number|undefined|null, arg0: boolean): boolean { - return value instanceof BaseGestureEvent + static isJavaScriptProxy(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean): boolean { + return value instanceof JavaScriptProxy } - static isFingerInfo(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean, arg6: boolean): boolean { - return value instanceof FingerInfo + static isHeader(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof Header } - static isGridContainerInterface(value: object|string|number|undefined|null): boolean { - return value instanceof GridContainerInterface + static isWebMediaOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof WebMediaOptions } - static isGridContainerOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { - return value instanceof GridContainerOptions + static isOnPageEndEvent(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof OnPageEndEvent } - static isImageInterface(value: object|string|number|undefined|null): boolean { - return value instanceof ImageInterface + static isOnPageBeginEvent(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof OnPageBeginEvent } - static isListInterface(value: object|string|number|undefined|null): boolean { - return value instanceof ListInterface + static isOnProgressChangeEvent(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof OnProgressChangeEvent } - static isVisibleListContentInfo(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { - return value instanceof VisibleListContentInfo + static isOnTitleReceiveEvent(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof OnTitleReceiveEvent } - static isNavDestinationInterface(value: object|string|number|undefined|null): boolean { - return value instanceof NavDestinationInterface + static isOnGeolocationShowEvent(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof OnGeolocationShowEvent } - static isNavDestinationCommonTitle(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { - return value instanceof NavDestinationCommonTitle + static isOnAlertEvent(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof OnAlertEvent } - static isNavDestinationCustomTitle(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { - return value instanceof NavDestinationCustomTitle + static isOnBeforeUnloadEvent(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof OnBeforeUnloadEvent } - static isRouteMapConfig(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { - return value instanceof RouteMapConfig + static isOnConfirmEvent(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof OnConfirmEvent } - static isNavigationInterface(value: object|string|number|undefined|null): boolean { - return value instanceof NavigationInterface + static isOnPromptEvent(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof OnPromptEvent } - static isNavigationTitleOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean): boolean { - return value instanceof NavigationTitleOptions + static isOnConsoleEvent(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof OnConsoleEvent } - static isNavigationMenuItem(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean): boolean { - return value instanceof NavigationMenuItem + static isOnErrorReceiveEvent(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof OnErrorReceiveEvent } - static isPopInfo(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { - return value instanceof PopInfo + static isOnHttpErrorReceiveEvent(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof OnHttpErrorReceiveEvent } - static isNavigationOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { - return value instanceof NavigationOptions + static isOnDownloadStartEvent(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean): boolean { + return value instanceof OnDownloadStartEvent } - static isNavigationInterception(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { - return value instanceof NavigationInterception + static isOnRefreshAccessedHistoryEvent(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof OnRefreshAccessedHistoryEvent } - static isNavigationCommonTitle(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { - return value instanceof NavigationCommonTitle + static isOnRenderExitedEvent(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof OnRenderExitedEvent } - static isNavigationCustomTitle(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { - return value instanceof NavigationCustomTitle + static isOnShowFileSelectorEvent(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof OnShowFileSelectorEvent } - static isToolbarItem(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean, arg6: boolean): boolean { - return value instanceof ToolbarItem + static isOnResourceLoadEvent(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof OnResourceLoadEvent } - static isNavigationToolbarOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { - return value instanceof NavigationToolbarOptions + static isFullScreenEnterEvent(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof FullScreenEnterEvent } - static isNavContentInfo(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean): boolean { - return value instanceof NavContentInfo + static isOnScaleChangeEvent(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof OnScaleChangeEvent } - static isNavigationAnimatedTransition(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { - return value instanceof NavigationAnimatedTransition + static isOnHttpAuthRequestEvent(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof OnHttpAuthRequestEvent } - static isRectInterface(value: object|string|number|undefined|null): boolean { - return value instanceof RectInterface + static isOnInterceptRequestEvent(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof OnInterceptRequestEvent } - static isScrollInterface(value: object|string|number|undefined|null): boolean { - return value instanceof ScrollInterface + static isOnPermissionRequestEvent(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof OnPermissionRequestEvent } - static isScrollAnimationOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { - return value instanceof ScrollAnimationOptions + static isOnScreenCaptureRequestEvent(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof OnScreenCaptureRequestEvent } - static isSelectInterface(value: object|string|number|undefined|null): boolean { - return value instanceof SelectInterface + static isScreenCaptureConfig(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof ScreenCaptureConfig } - static isMenuItemConfiguration(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { - return value instanceof MenuItemConfiguration + static isOnContextMenuShowEvent(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof OnContextMenuShowEvent } - static isSelectOption(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { - return value instanceof SelectOption + static isOnSearchResultReceiveEvent(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof OnSearchResultReceiveEvent } - static isShapeInterface(value: object|string|number|undefined|null): boolean { - return value instanceof ShapeInterface + static isOnScrollEvent(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof OnScrollEvent } - static isSideBarContainerInterface(value: object|string|number|undefined|null): boolean { - return value instanceof SideBarContainerInterface + static isOnSslErrorEventReceiveEvent(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof OnSslErrorEventReceiveEvent } - static isSwiperInterface(value: object|string|number|undefined|null): boolean { - return value instanceof SwiperInterface + static isSslErrorEvent(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean, arg6: boolean): boolean { + return value instanceof SslErrorEvent } - static isSymbolGlyphInterface(value: object|string|number|undefined|null): boolean { - return value instanceof SymbolGlyphInterface + static isOnClientAuthenticationEvent(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean): boolean { + return value instanceof OnClientAuthenticationEvent } - static isTabContentInterface(value: object|string|number|undefined|null): boolean { - return value instanceof TabContentInterface + static isOnWindowNewEvent(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof OnWindowNewEvent } - static isIndicatorStyle(value: object|string|number|undefined|null, arg0: boolean): boolean { - return value instanceof IndicatorStyle + static isOnTouchIconUrlReceivedEvent(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof OnTouchIconUrlReceivedEvent } - static isBoardStyle(value: object|string|number|undefined|null, arg0: boolean): boolean { - return value instanceof BoardStyle + static isOnFaviconReceivedEvent(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof OnFaviconReceivedEvent } - static isTabsInterface(value: object|string|number|undefined|null): boolean { - return value instanceof TabsInterface + static isOnPageVisibleEvent(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof OnPageVisibleEvent } - static isTestInterface(value: object|string|number|undefined|null): boolean { - return value instanceof TestInterface + static isOnDataResubmittedEvent(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof OnDataResubmittedEvent } - static isBooleanInterfaceDTS(value: object|string|number|undefined|null, arg0: boolean): boolean { - return value instanceof BooleanInterfaceDTS + static isOnAudioStateChangedEvent(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof OnAudioStateChangedEvent } - static isNumberInterfaceDTS(value: object|string|number|undefined|null, arg0: boolean): boolean { - return value instanceof NumberInterfaceDTS + static isOnFirstContentfulPaintEvent(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof OnFirstContentfulPaintEvent } - static isStringInterfaceDTS(value: object|string|number|undefined|null, arg0: boolean): boolean { - return value instanceof StringInterfaceDTS + static isFirstMeaningfulPaint(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof FirstMeaningfulPaint } - static isUnionInterfaceDTS(value: object|string|number|undefined|null, arg0: boolean): boolean { - return value instanceof UnionInterfaceDTS + static isLargestContentfulPaint(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean): boolean { + return value instanceof LargestContentfulPaint } - static isUnionOptionalInterfaceDTS(value: object|string|number|undefined|null, arg0: boolean): boolean { - return value instanceof UnionOptionalInterfaceDTS + static isOnLoadInterceptEvent(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof OnLoadInterceptEvent } - static isTupleInterfaceDTS(value: object|string|number|undefined|null, arg0: boolean): boolean { - return value instanceof TupleInterfaceDTS + static isOnOverScrollEvent(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof OnOverScrollEvent } - static isOptionInterfaceDTS(value: object|string|number|undefined|null, arg0: boolean): boolean { - return value instanceof OptionInterfaceDTS + static isLoadCommittedDetails(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean): boolean { + return value instanceof LoadCommittedDetails } - static isArrayRefNumberInterfaceDTS(value: object|string|number|undefined|null, arg0: boolean): boolean { - return value instanceof ArrayRefNumberInterfaceDTS + static isIntelligentTrackingPreventionDetails(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof IntelligentTrackingPreventionDetails } - static isTextInterface(value: object|string|number|undefined|null): boolean { - return value instanceof TextInterface + static isScriptItem(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof ScriptItem } - static isTextOptions(value: object|string|number|undefined|null, arg0: boolean): boolean { - return value instanceof TextOptions + static isNestedScrollOptionsExt(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof NestedScrollOptionsExt } - static isTextInputInterface(value: object|string|number|undefined|null): boolean { - return value instanceof TextInputInterface + static isNativeEmbedDataInfo(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof NativeEmbedDataInfo } - static isTextInputOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { - return value instanceof TextInputOptions + static isNativeEmbedInfo(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean, arg6: boolean, arg7: boolean, arg8: boolean): boolean { + return value instanceof NativeEmbedInfo } - static isTextPickerInterface(value: object|string|number|undefined|null): boolean { - return value instanceof TextPickerInterface + static isNativeEmbedVisibilityInfo(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof NativeEmbedVisibilityInfo } - static isDividerOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { - return value instanceof DividerOptions + static isNativeEmbedTouchInfo(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof NativeEmbedTouchInfo } - static isTextPickerOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { - return value instanceof TextPickerOptions + static isNativeMediaPlayerConfig(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof NativeMediaPlayerConfig } - static isTextPickerRangeContent(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { - return value instanceof TextPickerRangeContent + static isRenderProcessNotRespondingData(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof RenderProcessNotRespondingData } - static isTextCascadePickerRangeContent(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { - return value instanceof TextCascadePickerRangeContent + static isExpandedMenuItemOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof ExpandedMenuItemOptions + } + static isWebKeyboardCallbackInfo(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof WebKeyboardCallbackInfo + } + static isWebKeyboardOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof WebKeyboardOptions + } + static isAdsBlockedDetails(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof AdsBlockedDetails + } + static isWebOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean): boolean { + return value instanceof WebOptions + } + static isWindowSceneInterface(value: object|string|number|undefined|null): boolean { + return value instanceof WindowSceneInterface + } + static isXComponentInterface(value: object|string|number|undefined|null): boolean { + return value instanceof XComponentInterface + } + static isSurfaceRect(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof SurfaceRect + } + static isSurfaceRotationOptions(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof SurfaceRotationOptions + } + static isXComponentOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof XComponentOptions + } + static isSideBarContainerInterface(value: object|string|number|undefined|null): boolean { + return value instanceof SideBarContainerInterface + } + static isButtonStyle(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean): boolean { + return value instanceof ButtonStyle + } + static isRemoteWindowInterface(value: object|string|number|undefined|null): boolean { + return value instanceof RemoteWindowInterface + } + static isWindowAnimationTarget(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof WindowAnimationTarget + } + static isRRect(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean): boolean { + return value instanceof RRect + } + static isWaterFlowInterface(value: object|string|number|undefined|null): boolean { + return value instanceof WaterFlowInterface + } + static isWaterFlowOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof WaterFlowOptions } static isUIExtensionComponentInterface(value: object|string|number|undefined|null): boolean { return value instanceof UIExtensionComponentInterface } - static isUIExtensionOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + static isUIExtensionOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { return value instanceof UIExtensionOptions } - static isFont(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { - return value instanceof Font + static isDecorationStyleInterface(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof DecorationStyleInterface } - static isOffset(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { - return value instanceof Offset + static isImageAttachmentInterface(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean): boolean { + return value instanceof ImageAttachmentInterface } - static isAltOffset(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { - return value instanceof AltOffset + static isImageAttachmentLayoutStyle(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof ImageAttachmentLayoutStyle } - static isLocalizedPadding(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { - return value instanceof LocalizedPadding + static isCustomSpanMeasureInfo(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof CustomSpanMeasureInfo } - static isVectorInterface(value: object|string|number|undefined|null): boolean { - return value instanceof VectorInterface + static isCustomSpanMetrics(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof CustomSpanMetrics } - static isVector1(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { - return value instanceof Vector1 + static isCustomSpanDrawInfo(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof CustomSpanDrawInfo } - static isVector2(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { - return value instanceof Vector2 + static isStyleOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof StyleOptions } - static isWebInterface(value: object|string|number|undefined|null): boolean { - return value instanceof WebInterface + static isGestureStyleInterface(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof GestureStyleInterface } - static isNativeEmbedDataInfo(value: object|string|number|undefined|null, arg0: boolean): boolean { - return value instanceof NativeEmbedDataInfo + static isParagraphStyleInterface(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean): boolean { + return value instanceof ParagraphStyleInterface } - static isNativeEmbedInfo(value: object|string|number|undefined|null, arg0: boolean): boolean { - return value instanceof NativeEmbedInfo + static isSpanStyle(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof SpanStyle } - static isOnRenderExitedEvent(value: object|string|number|undefined|null, arg0: boolean): boolean { - return value instanceof OnRenderExitedEvent + static isLinearIndicatorInterface(value: object|string|number|undefined|null): boolean { + return value instanceof LinearIndicatorInterface } - static isOnHttpErrorReceiveEvent(value: object|string|number|undefined|null, arg0: boolean): boolean { - return value instanceof OnHttpErrorReceiveEvent + static isLinearIndicatorStyle(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean): boolean { + return value instanceof LinearIndicatorStyle + } + static isLinearIndicatorStartOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof LinearIndicatorStartOptions } static isLITERAL_TopLengthRightLengthBottomLengthLeftLength(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { return value instanceof LITERAL_TopLengthRightLengthBottomLengthLeftLength } - static isLITERAL_AngleNumberstringDirectionGradientDirectionColorsArrayResourceColornumberRepeatingBoolean(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { - return value instanceof LITERAL_AngleNumberstringDirectionGradientDirectionColorsArrayResourceColornumberRepeatingBoolean + static isLITERAL_AlignAlignment(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof LITERAL_AlignAlignment + } + static isLITERAL_TopBorderStyleRightBorderStyleBottomBorderStyleLeftBorderStyle(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof LITERAL_TopBorderStyleRightBorderStyleBottomBorderStyleLeftBorderStyle } static isLITERAL_TopResourceColorRightResourceColorBottomResourceColorLeftResourceColor(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { return value instanceof LITERAL_TopResourceColorRightResourceColorBottomResourceColorLeftResourceColor } - static isLITERAL_TopBorderStyleRightBorderStyleBottomBorderStyleLeftBorderStyle(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { - return value instanceof LITERAL_TopBorderStyleRightBorderStyleBottomBorderStyleLeftBorderStyle + static isLITERAL_TopLeftLengthTopRightLengthBottomLeftLengthBottomRightLength(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof LITERAL_TopLeftLengthTopRightLengthBottomLeftLengthBottomRightLength + } + static isLITERAL_TopOutlineStyleRightOutlineStyleBottomOutlineStyleLeftOutlineStyle(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof LITERAL_TopOutlineStyleRightOutlineStyleBottomOutlineStyleLeftOutlineStyle + } + static isLITERAL_TopDimensionRightDimensionBottomDimensionLeftDimension(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof LITERAL_TopDimensionRightDimensionBottomDimensionLeftDimension + } + static isLITERAL_TopLeftDimensionTopRightDimensionBottomLeftDimensionBottomRightDimension(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof LITERAL_TopLeftDimensionTopRightDimensionBottomLeftDimensionBottomRightDimension + } + static isLITERAL_SpanNumberOffsetNumber(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof LITERAL_SpanNumberOffsetNumber + } + static isLITERAL_XsNumberLITERALSpanNumberOffsetNumberSmNumberLITERALSpanNumberOffsetNumberMdNumberLITERALSpanNumberOffsetNumberLgNumberLITERALSpanNumberOffsetNumber(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof LITERAL_XsNumberLITERALSpanNumberOffsetNumberSmNumberLITERALSpanNumberOffsetNumberMdNumberLITERALSpanNumberOffsetNumberLgNumberLITERALSpanNumberOffsetNumber + } + static isLITERAL_AngleNumberstringDirectionGradientDirectionColorsArrayResourceColornumberRepeatingBoolean(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof LITERAL_AngleNumberstringDirectionGradientDirectionColorsArrayResourceColornumberRepeatingBoolean + } + static isLITERAL_CenterLengthLengthStartNumberstringEndNumberstringRotationNumberstringColorsArrayResourceColornumberRepeatingBoolean(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean): boolean { + return value instanceof LITERAL_CenterLengthLengthStartNumberstringEndNumberstringRotationNumberstringColorsArrayResourceColornumberRepeatingBoolean + } + static isLITERAL_CenterLengthLengthRadiusNumberstringColorsArrayResourceColornumberRepeatingBoolean(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof LITERAL_CenterLengthLengthRadiusNumberstringColorsArrayResourceColornumberRepeatingBoolean + } + static isLITERAL_AppearTransitionEffectLITERALMoveTransitionEdgeDisappearTransitionEffectLITERALMoveTransitionEdge(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof LITERAL_AppearTransitionEffectLITERALMoveTransitionEdgeDisappearTransitionEffectLITERALMoveTransitionEdge + } + static isLITERAL_FingersNumberRepeatBooleanDurationNumber(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof LITERAL_FingersNumberRepeatBooleanDurationNumber + } + static isLITERAL_FingersNumberDirectionPanDirectionDistanceNumber(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof LITERAL_FingersNumberDirectionPanDirectionDistanceNumber + } + static isLITERAL_FingersNumberDistanceNumber(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof LITERAL_FingersNumberDistanceNumber + } + static isLITERAL_FingersNumberDirectionSwipeDirectionSpeedNumber(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof LITERAL_FingersNumberDirectionSwipeDirectionSpeedNumber + } + static isLITERAL_FingersNumberAngleNumber(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof LITERAL_FingersNumberAngleNumber + } + static isLITERAL_AnchorStringAlignHorizontalAlign(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof LITERAL_AnchorStringAlignHorizontalAlign + } + static isLITERAL_AnchorStringAlignVerticalAlign(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof LITERAL_AnchorStringAlignVerticalAlign + } + static isLITERAL_ValueStringActionVoid(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof LITERAL_ValueStringActionVoid + } + static isLITERAL_IsVisibleBoolean(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof LITERAL_IsVisibleBoolean + } + static isLITERAL_ColorResourceColor(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof LITERAL_ColorResourceColor + } + static isLITERAL_WantIMPORTdefaultFROMapiohosappabilityWant(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof LITERAL_WantIMPORTdefaultFROMapiohosappabilityWant + } + static isLITERAL_YearNumberMonthNumberDayNumber(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof LITERAL_YearNumberMonthNumberDayNumber + } + static isLITERAL_DateLITERALYearNumberMonthNumberDayNumberCurrentDataMonthDataPreDataMonthDataNextDataMonthDataControllerCalendarController(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean): boolean { + return value instanceof LITERAL_DateLITERALYearNumberMonthNumberDayNumberCurrentDataMonthDataPreDataMonthDataNextDataMonthDataControllerCalendarController } static isLITERAL_DxLengthDyLength(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { return value instanceof LITERAL_DxLengthDyLength } - static isLITERAL_Dx1LengthDy2Length(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { - return value instanceof LITERAL_Dx1LengthDy2Length + static isLITERAL_WidthStringnumberHeightStringnumber(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof LITERAL_WidthStringnumberHeightStringnumber } static isLITERAL_WidthNumberHeightNumber(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { return value instanceof LITERAL_WidthNumberHeightNumber } + static isLITERAL_ErrcodeNumberMsgString(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof LITERAL_ErrcodeNumberMsgString + } + static isLITERAL_OffsetRemainNumber(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof LITERAL_OffsetRemainNumber + } + static isLITERAL_NextBoolean(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof LITERAL_NextBoolean + } + static isLITERAL_NextBooleanDirectionAxis(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof LITERAL_NextBooleanDirectionAxis + } + static isLITERAL_WidthNumberHeightNumberComponentWidthNumberComponentHeightNumberLoadingStatusNumberContentWidthNumberContentHeightNumberContentOffsetXNumberContentOffsetYNumber(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean, arg5: boolean, arg6: boolean, arg7: boolean, arg8: boolean): boolean { + return value instanceof LITERAL_WidthNumberHeightNumberComponentWidthNumberComponentHeightNumberLoadingStatusNumberContentWidthNumberContentHeightNumberContentOffsetXNumberContentOffsetYNumber + } + static isLITERAL_MinLengthLengthMaxLengthLength(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof LITERAL_MinLengthLengthMaxLengthLength + } + static isLITERAL_TargetStringTypeNavigationType(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof LITERAL_TargetStringTypeNavigationType + } + static isLITERAL_WidthNumberstringHeightNumberstringCommandsString(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof LITERAL_WidthNumberstringHeightNumberstringCommandsString + } + static isLITERAL_TemplatePluginComponentTemplateDataObject(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof LITERAL_TemplatePluginComponentTemplateDataObject + } static isLITERAL_WidthNumberstringHeightNumberstringRadiusNumberstringArrayObject(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { return value instanceof LITERAL_WidthNumberstringHeightNumberstringRadiusNumberstringArrayObject } static isLITERAL_WidthNumberstringHeightNumberstringRadiusWidthNumberstringRadiusHeightNumberstring(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { return value instanceof LITERAL_WidthNumberstringHeightNumberstringRadiusWidthNumberstringRadiusHeightNumberstring } - static isLITERAL_XOffsetNumberstringYOffsetNumberstringAnimationScrollAnimationOptionsboolean(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { - return value instanceof LITERAL_XOffsetNumberstringYOffsetNumberstringAnimationScrollAnimationOptionsboolean + static isLITERAL_ValueStringPlaceholderResourceStrIconStringControllerSearchController(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof LITERAL_ValueStringPlaceholderResourceStrIconStringControllerSearchController } - static isLITERAL_NextBoolean(value: object|string|number|undefined|null, arg0: boolean): boolean { - return value instanceof LITERAL_NextBoolean + static isLITERAL_XNumberstringYNumberstringWidthNumberstringHeightNumberstring(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof LITERAL_XNumberstringYNumberstringWidthNumberstringHeightNumberstring } - static isLITERAL_NextBooleanDirectionAxis(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { - return value instanceof LITERAL_NextBooleanDirectionAxis + static isLITERAL_IndexNumber(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof LITERAL_IndexNumber + } + static isLITERAL_MinSizeVP(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof LITERAL_MinSizeVP + } + static isLITERAL_BarPositionBarPositionIndexNumberControllerTabsController(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof LITERAL_BarPositionBarPositionIndexNumberControllerTabsController + } + static isLITERAL_IconStringResourceTextStringResource(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof LITERAL_IconStringResourceTextStringResource + } + static isLITERAL_StyleCancelButtonStyleIconIconOptions(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof LITERAL_StyleCancelButtonStyleIconIconOptions + } + static isLITERAL_FullscreenBoolean(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof LITERAL_FullscreenBoolean + } + static isLITERAL_DurationNumber(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof LITERAL_DurationNumber + } + static isLITERAL_TimeNumber(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof LITERAL_TimeNumber + } + static isLITERAL_DataStringWebResourceRequest(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof LITERAL_DataStringWebResourceRequest + } + static isLITERAL_HandlerFunctionErrorObject(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof LITERAL_HandlerFunctionErrorObject + } + static isLITERAL_DetailObject(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof LITERAL_DetailObject + } + static isLITERAL_CallbackFunctionFileSelectorObject(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof LITERAL_CallbackFunctionFileSelectorObject + } + static isLITERAL_ScriptStringCallbackResultstringvoid(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof LITERAL_ScriptStringCallbackResultstringvoid + } + static isLITERAL_DataStringMimeTypeStringEncodingStringBaseUrlStringHistoryUrlString(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean): boolean { + return value instanceof LITERAL_DataStringMimeTypeStringEncodingStringBaseUrlStringHistoryUrlString + } + static isLITERAL_UrlStringResourceHeadersArrayHeader(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof LITERAL_UrlStringResourceHeadersArrayHeader + } + static isLITERAL_ObjectObjectNameStringMethodListArraystring(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof LITERAL_ObjectObjectNameStringMethodListArraystring + } + static isLITERAL_PlainTextString(value: object|string|number|undefined|null, arg0: boolean): boolean { + return value instanceof LITERAL_PlainTextString + } + static isLITERAL_IdStringTypeStringLibrarynameStringControllerXComponentController(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof LITERAL_IdStringTypeStringLibrarynameStringControllerXComponentController + } + static isLITERAL_IdStringTypeXComponentTypeLibrarynameStringControllerXComponentController(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof LITERAL_IdStringTypeXComponentTypeLibrarynameStringControllerXComponentController + } + static isLITERAL_SurfaceWidthNumberSurfaceHeightNumber(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof LITERAL_SurfaceWidthNumberSurfaceHeightNumber + } + static isLITERAL_ShownStringPixelMapResourceHiddenStringPixelMapResourceSwitchingStringPixelMapResource(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof LITERAL_ShownStringPixelMapResourceHiddenStringPixelMapResourceSwitchingStringPixelMapResource } static isLITERAL_KeyStringObject(value: object|string|number|undefined|null): boolean { return value instanceof LITERAL_KeyStringObject @@ -427,14 +1930,11 @@ export class TypeChecker { static isLITERAL_CodeNumberWantIMPORTdefaultFROMapiohosappabilityWant(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { return value instanceof LITERAL_CodeNumberWantIMPORTdefaultFROMapiohosappabilityWant } - static isLITERAL_X0NumberX1NumberX2NumberX3Number(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { - return value instanceof LITERAL_X0NumberX1NumberX2NumberX3Number - } - static isLITERAL_TNumberXNumberYNumberZNumber(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { - return value instanceof LITERAL_TNumberXNumberYNumberZNumber + static isINTERFACE_ICurve(value: object|string|number|undefined|null): boolean { + return value instanceof INTERFACE_ICurve } - static isLITERAL_DetailObject(value: object|string|number|undefined|null, arg0: boolean): boolean { - return value instanceof LITERAL_DetailObject + static isINTERFACE_AttributeModifier(value: object|string|number|undefined|null): boolean { + return value instanceof INTERFACE_AttributeModifier } static isINTERFACE_GestureModifier(value: object|string|number|undefined|null): boolean { return value instanceof INTERFACE_GestureModifier @@ -448,29 +1948,56 @@ export class TypeChecker { static isINTERFACE_NavigationTransitionProxy(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean): boolean { return value instanceof INTERFACE_NavigationTransitionProxy } - static isINTERFACE_ICurve(value: object|string|number|undefined|null): boolean { - return value instanceof INTERFACE_ICurve + static isINTERFACE_EditMenuOptions(value: object|string|number|undefined|null): boolean { + return value instanceof INTERFACE_EditMenuOptions + } + static isINTERFACE_TextEditControllerEx(value: object|string|number|undefined|null): boolean { + return value instanceof INTERFACE_TextEditControllerEx + } + static isINTERFACE_TextBaseController(value: object|string|number|undefined|null): boolean { + return value instanceof INTERFACE_TextBaseController + } + static isINTERFACE_LayoutManager(value: object|string|number|undefined|null): boolean { + return value instanceof INTERFACE_LayoutManager + } + static isINTERFACE_StyledStringController(value: object|string|number|undefined|null): boolean { + return value instanceof INTERFACE_StyledStringController + } + static isINTERFACE_SwiperContentTransitionProxy(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof INTERFACE_SwiperContentTransitionProxy + } + static isINTERFACE_TabContentTransitionProxy(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof INTERFACE_TabContentTransitionProxy } static isINTERFACE_UIExtensionProxy(value: object|string|number|undefined|null): boolean { return value instanceof INTERFACE_UIExtensionProxy } + static isTouchObjectBracketsArray(value: object|string|number|undefined|null): boolean { + return value instanceof TouchObject[] + } static isFingerInfoBracketsArray(value: object|string|number|undefined|null): boolean { return value instanceof FingerInfo[] } - static isstringBracketsArray(value: object|string|number|undefined|null): boolean { - return value instanceof string[] + static isGestureTypeBracketsArray(value: object|string|number|undefined|null): boolean { + return value instanceof GestureType[] } - static isbooleanBracketsArray(value: object|string|number|undefined|null): boolean { - return value instanceof boolean[] + static isFractionStopBracketsArray(value: object|string|number|undefined|null): boolean { + return value instanceof FractionStop[] + } + static isCalendarDayBracketsArray(value: object|string|number|undefined|null): boolean { + return value instanceof CalendarDay[] } static isnumberBracketsArray(value: object|string|number|undefined|null): boolean { return value instanceof number[] } - static isEnumDTSBracketsArray(value: object|string|number|undefined|null): boolean { - return value instanceof EnumDTS[] + static isImageAnalyzerTypeBracketsArray(value: object|string|number|undefined|null): boolean { + return value instanceof ImageAnalyzerType[] + } + static isTextDataDetectorTypeBracketsArray(value: object|string|number|undefined|null): boolean { + return value instanceof TextDataDetectorType[] } - static isBooleanInterfaceDTSBracketsArray(value: object|string|number|undefined|null): boolean { - return value instanceof BooleanInterfaceDTS[] + static isstringBracketsArray(value: object|string|number|undefined|null): boolean { + return value instanceof string[] } static isstringBracketsArrayBracketsArray(value: object|string|number|undefined|null): boolean { return value instanceof string[][] diff --git a/arkoala-arkts/arkui/src/generated/index.ts b/arkoala-arkts/arkui/src/generated/index.ts index 1ef6b8d2c..25e087887 100644 --- a/arkoala-arkts/arkui/src/generated/index.ts +++ b/arkoala-arkts/arkui/src/generated/index.ts @@ -1,99 +1,321 @@ +export * from "./ArkAbilityComponent" +export * from "./ArkAlphabetIndexer" +export * from "./ArkAnimator" +export * from "./ArkBadge" export * from "./ArkBlank" export * from "./ArkButton" +export * from "./ArkCalendar" export * from "./ArkCalendarPicker" export * from "./ArkCanvas" +export * from "./ArkCheckbox" +export * from "./ArkCheckboxgroup" +export * from "./ArkCircle" export * from "./ArkColumn" +export * from "./ArkColumnSplit" export * from "./ArkCommon" +export * from "./ArkComponent3d" +export * from "./ArkContainerSpan" +export * from "./ArkCounter" +export * from "./ArkDataPanel" +export * from "./ArkDatePicker" +export * from "./ArkDivider" +export * from "./ArkEffectComponent" +export * from "./ArkEllipse" export * from "./ArkEmbeddedComponent" +export * from "./ArkFlex" +export * from "./ArkFlowItem" +export * from "./ArkFolderStack" export * from "./ArkFormComponent" +export * from "./ArkFormLink" +export * from "./ArkGauge" +export * from "./ArkGrid" +export * from "./ArkGridItem" +export * from "./ArkGridCol" export * from "./ArkGridContainer" +export * from "./ArkGridRow" +export * from "./ArkHyperlink" export * from "./ArkImage" +export * from "./ArkImageAnimator" +export * from "./ArkImageSpan" +export * from "./ArkLine" export * from "./ArkList" +export * from "./ArkListItem" +export * from "./ArkListItemGroup" +export * from "./ArkLoadingProgress" +export * from "./ArkLocationButton" +export * from "./ArkMarquee" +export * from "./ArkMediaCachedImage" +export * from "./ArkMenu" +export * from "./ArkMenuItem" +export * from "./ArkMenuItemGroup" export * from "./ArkNavDestination" +export * from "./ArkNavRouter" export * from "./ArkNavigation" +export * from "./ArkNavigator" +export * from "./ArkNodeContainer" +export * from "./ArkPanel" +export * from "./ArkPasteButton" +export * from "./ArkPath" +export * from "./ArkPatternLock" +export * from "./ArkPluginComponent" +export * from "./ArkPolygon" +export * from "./ArkPolyline" +export * from "./ArkQrcode" +export * from "./ArkRadio" +export * from "./ArkRating" export * from "./ArkRect" +export * from "./ArkRefresh" +export * from "./ArkRelativeContainer" +export * from "./ArkRichEditor" +export * from "./ArkRichText" +export * from "./ArkRootScene" +export * from "./ArkRow" +export * from "./ArkRowSplit" +export * from "./ArkSaveButton" +export * from "./ArkScreen" export * from "./ArkScroll" +export * from "./ArkScrollBar" +export * from "./ArkSearch" +export * from "./ArkSecurityComponent" export * from "./ArkSelect" export * from "./ArkShape" -export * from "./ArkSidebar" +export * from "./ArkSlider" +export * from "./ArkSpan" +export * from "./ArkStack" +export * from "./ArkStepper" +export * from "./ArkStepperItem" export * from "./ArkSwiper" export * from "./ArkSymbolglyph" -export * from "./ArkTabContent" +export * from "./ArkSymbolSpan" export * from "./ArkTabs" -export * from "./ArkTest" +export * from "./ArkTabContent" export * from "./ArkText" +export * from "./ArkTextArea" +export * from "./ArkTextClock" export * from "./ArkTextInput" export * from "./ArkTextPicker" -export * from "./ArkUiExtensionComponent" -export * from "./ArkVector" +export * from "./ArkTextTimer" +export * from "./ArkTimePicker" +export * from "./ArkToggle" +export * from "./ArkVideo" export * from "./ArkWeb" +export * from "./ArkWindowScene" +export * from "./ArkXcomponent" +export * from "./ArkSidebar" +export * from "./ArkRemoteWindow" +export * from "./ArkWaterFlow" +export * from "./ArkUiExtensionComponent" +export * from "./ArkLinearindicator" export * from "./ArkIndicatorBuilder" export * from "./ArkDotIndicatorBuilder" +export * from "./ArkDigitIndicatorBuilder" export * from "./ArkSubTabBarStyleBuilder" export * from "./ArkBottomTabBarStyleBuilder" +export * from "./ArkDrawModifierMaterialized" +export * from "./ArkICurveMaterialized" +export * from "./ArkPanGestureOptionsMaterialized" +export * from "./ArkProgressMaskMaterialized" +export * from "./ArkAttributeModifierMaterialized" export * from "./ArkGestureModifierMaterialized" export * from "./ArkGestureRecognizerMaterialized" export * from "./ArkEventTargetInfoMaterialized" +export * from "./ArkCalendarControllerMaterialized" export * from "./ArkCanvasRenderingContext2DMaterialized" export * from "./ArkCanvasRendererMaterialized" export * from "./ArkCanvasPathMaterialized" +export * from "./ArkImageBitmapMaterialized" +export * from "./ArkPath2DMaterialized" +export * from "./ArkMatrix2DMaterialized" export * from "./ArkCanvasGradientMaterialized" export * from "./ArkCanvasPatternMaterialized" -export * from "./ArkMatrix2DMaterialized" export * from "./ArkDrawingRenderingContextMaterialized" +export * from "./ArkImageAnalyzerControllerMaterialized" +export * from "./ArkScrollerMaterialized" +export * from "./ArkChildrenMainSizeMaterialized" export * from "./ArkNavDestinationContextMaterialized" export * from "./ArkNavPathStackMaterialized" export * from "./ArkNavigationTransitionProxyMaterialized" -export * from "./ArkScrollerMaterialized" -export * from "./ArkICurveMaterialized" +export * from "./ArkPatternLockControllerMaterialized" +export * from "./ArkEditMenuOptionsMaterialized" +export * from "./ArkRichEditorControllerMaterialized" +export * from "./ArkRichEditorBaseControllerMaterialized" +export * from "./ArkTextEditControllerExMaterialized" +export * from "./ArkTextBaseControllerMaterialized" +export * from "./ArkLayoutManagerMaterialized" +export * from "./ArkStyledStringMaterialized" +export * from "./ArkCustomSpanMaterialized" +export * from "./ArkRichEditorStyledStringControllerMaterialized" +export * from "./ArkStyledStringControllerMaterialized" +export * from "./ArkMutableStyledStringMaterialized" +export * from "./ArkSearchControllerMaterialized" +export * from "./ArkTextContentControllerBaseMaterialized" +export * from "./ArkSwiperContentTransitionProxyMaterialized" export * from "./ArkSwiperControllerMaterialized" -export * from "./ArkClassWithConstructorAndMethodsDTSMaterialized" -export * from "./ArkClassWithConstructorAndStaticMethodsDTSMaterialized" -export * from "./ArkClassWithConstructorAndFieldsAndMethodsDTSMaterialized" -export * from "./ArkClassWithConstructorAndNonOptionalParamsDTSMaterialized" -export * from "./ArkClassWithConstructorAndSomeOptionalParamsDTSMaterialized" -export * from "./ArkClassWithConstructorAndAllOptionalParamsDTSMaterialized" -export * from "./ArkClassWithConstructorAndWithoutParamsDTSMaterialized" +export * from "./ArkTabContentTransitionProxyMaterialized" +export * from "./ArkTabsControllerMaterialized" export * from "./ArkTextControllerMaterialized" -export * from "./ArkStyledStringMaterialized" -export * from "./ArkUIExtensionProxyMaterialized" +export * from "./ArkTextAreaControllerMaterialized" +export * from "./ArkTextClockControllerMaterialized" +export * from "./ArkTextInputControllerMaterialized" +export * from "./ArkTextTimerControllerMaterialized" +export * from "./ArkVideoControllerMaterialized" +export * from "./ArkWebControllerMaterialized" +export * from "./ArkWebCookieMaterialized" +export * from "./ArkJsGeolocationMaterialized" +export * from "./ArkJsResultMaterialized" +export * from "./ArkConsoleMessageMaterialized" +export * from "./ArkWebResourceRequestMaterialized" +export * from "./ArkWebResourceErrorMaterialized" export * from "./ArkWebResourceResponseMaterialized" +export * from "./ArkFileSelectorResultMaterialized" +export * from "./ArkFileSelectorParamMaterialized" +export * from "./ArkFullScreenExitHandlerMaterialized" +export * from "./ArkHttpAuthHandlerMaterialized" +export * from "./ArkPermissionRequestMaterialized" +export * from "./ArkScreenCaptureHandlerMaterialized" +export * from "./ArkWebContextMenuParamMaterialized" +export * from "./ArkWebContextMenuResultMaterialized" +export * from "./ArkSslErrorHandlerMaterialized" +export * from "./ArkClientAuthenticationHandlerMaterialized" +export * from "./ArkControllerHandlerMaterialized" +export * from "./ArkDataResubmissionHandlerMaterialized" +export * from "./ArkEventResultMaterialized" +export * from "./ArkWebKeyboardControllerMaterialized" +export * from "./ArkXComponentControllerMaterialized" +export * from "./ArkWaterFlowSectionsMaterialized" +export * from "./ArkUIExtensionProxyMaterialized" +export * from "./ArkLinearIndicatorControllerMaterialized" +export * from "./ArkAbilityComponentInterfaces" +export * from "./ArkActionSheetInterfaces" +export * from "./ArkAlertDialogInterfaces" +export * from "./ArkAlphabetIndexerInterfaces" +export * from "./ArkAnimatorInterfaces" +export * from "./ArkBadgeInterfaces" export * from "./ArkBlankInterfaces" export * from "./ArkButtonInterfaces" +export * from "./ArkCalendarInterfaces" export * from "./ArkCalendarPickerInterfaces" export * from "./ArkCanvasInterfaces" +export * from "./ArkCheckboxInterfaces" +export * from "./ArkCheckboxgroupInterfaces" +export * from "./ArkCircleInterfaces" export * from "./ArkColumnInterfaces" +export * from "./ArkColumnSplitInterfaces" export * from "./ArkCommonInterfaces" +export * from "./ArkCommonTsEtsApiInterfaces" +export * from "./ArkComponent3dInterfaces" +export * from "./ArkContainerSpanInterfaces" +export * from "./ArkContentSlotInterfaces" +export * from "./ArkContextMenuInterfaces" +export * from "./ArkCounterInterfaces" +export * from "./ArkCustomDialogControllerInterfaces" +export * from "./ArkDataPanelInterfaces" +export * from "./ArkDatePickerInterfaces" +export * from "./ArkDividerInterfaces" +export * from "./ArkEffectComponentInterfaces" +export * from "./ArkEllipseInterfaces" export * from "./ArkEmbeddedComponentInterfaces" export * from "./ArkEnumsInterfaces" +export * from "./ArkFlexInterfaces" +export * from "./ArkFlowItemInterfaces" +export * from "./ArkFocusInterfaces" +export * from "./ArkFolderStackInterfaces" +export * from "./ArkForEachInterfaces" export * from "./ArkFormComponentInterfaces" +export * from "./ArkFormLinkInterfaces" +export * from "./ArkGaugeInterfaces" export * from "./ArkGestureInterfaces" +export * from "./ArkGridInterfaces" +export * from "./ArkGridItemInterfaces" +export * from "./ArkGridColInterfaces" export * from "./ArkGridContainerInterfaces" +export * from "./ArkGridRowInterfaces" +export * from "./ArkHyperlinkInterfaces" export * from "./ArkImageInterfaces" +export * from "./ArkImageAnimatorInterfaces" +export * from "./ArkImageCommonInterfaces" +export * from "./ArkImageSpanInterfaces" +export * from "./ArkLazyForEachInterfaces" +export * from "./ArkLineInterfaces" export * from "./ArkListInterfaces" +export * from "./ArkListItemInterfaces" +export * from "./ArkListItemGroupInterfaces" +export * from "./ArkLoadingProgressInterfaces" +export * from "./ArkLocationButtonInterfaces" export * from "./ArkMatrix2dInterfaces" +export * from "./ArkMarqueeInterfaces" +export * from "./ArkMediaCachedImageInterfaces" +export * from "./ArkMenuInterfaces" +export * from "./ArkMenuItemInterfaces" +export * from "./ArkMenuItemGroupInterfaces" export * from "./ArkNavDestinationInterfaces" +export * from "./ArkNavRouterInterfaces" export * from "./ArkNavigationInterfaces" +export * from "./ArkNavigatorInterfaces" +export * from "./ArkNodeContainerInterfaces" +export * from "./ArkPageTransitionInterfaces" +export * from "./ArkPanelInterfaces" export * from "./ArkParticleInterfaces" +export * from "./ArkPasteButtonInterfaces" +export * from "./ArkPathInterfaces" +export * from "./ArkPatternLockInterfaces" +export * from "./ArkPluginComponentInterfaces" +export * from "./ArkPolygonInterfaces" +export * from "./ArkPolylineInterfaces" +export * from "./ArkProgressInterfaces" +export * from "./ArkQrcodeInterfaces" +export * from "./ArkRadioInterfaces" +export * from "./ArkRatingInterfaces" export * from "./ArkRectInterfaces" +export * from "./ArkRefreshInterfaces" +export * from "./ArkRelativeContainerInterfaces" +export * from "./ArkRepeatInterfaces" +export * from "./ArkRichEditorInterfaces" +export * from "./ArkRichTextInterfaces" +export * from "./ArkRootSceneInterfaces" +export * from "./ArkRowInterfaces" +export * from "./ArkRowSplitInterfaces" +export * from "./ArkSaveButtonInterfaces" +export * from "./ArkScreenInterfaces" export * from "./ArkScrollInterfaces" +export * from "./ArkScrollBarInterfaces" +export * from "./ArkSearchInterfaces" export * from "./ArkSecurityComponentInterfaces" export * from "./ArkSelectInterfaces" export * from "./ArkShapeInterfaces" -export * from "./ArkSidebarInterfaces" export * from "./ArkSliderInterfaces" export * from "./ArkSpanInterfaces" -export * from "./ArkStyledStringInterfaces" +export * from "./ArkStackInterfaces" +export * from "./ArkStateManagementInterfaces" +export * from "./ArkStepperInterfaces" +export * from "./ArkStepperItemInterfaces" export * from "./ArkSwiperInterfaces" export * from "./ArkSymbolglyphInterfaces" -export * from "./ArkTabContentInterfaces" +export * from "./ArkSymbolSpanInterfaces" export * from "./ArkTabsInterfaces" -export * from "./ArkTestInterfaces" +export * from "./ArkTabContentInterfaces" export * from "./ArkTextInterfaces" +export * from "./ArkTextAreaInterfaces" +export * from "./ArkTextClockInterfaces" +export * from "./ArkTextCommonInterfaces" export * from "./ArkTextInputInterfaces" export * from "./ArkTextPickerInterfaces" -export * from "./ArkUiExtensionComponentInterfaces" +export * from "./ArkTextTimerInterfaces" +export * from "./ArkTimePickerInterfaces" +export * from "./ArkToggleInterfaces" +export * from "./ArkWithThemeInterfaces" export * from "./ArkUnitsInterfaces" -export * from "./ArkVectorInterfaces" +export * from "./ArkVideoInterfaces" export * from "./ArkWebInterfaces" +export * from "./ArkWindowSceneInterfaces" +export * from "./ArkXcomponentInterfaces" +export * from "./ArkSidebarInterfaces" +export * from "./ArkRemoteWindowInterfaces" +export * from "./ArkWaterFlowInterfaces" +export * from "./ArkUiExtensionComponentInterfaces" +export * from "./ArkIsolatedComponentInterfaces" +export * from "./ArkStyledStringInterfaces" +export * from "./ArkLinearindicatorInterfaces" +export * from "./ArkIndex-fullInterfaces" +export * from "./ArkInspectorInterfaces" export * from "./SyntheticDeclarations" \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/peer_events.ts b/arkoala-arkts/arkui/src/generated/peer_events.ts index 855d02677..d09abede0 100644 --- a/arkoala-arkts/arkui/src/generated/peer_events.ts +++ b/arkoala-arkts/arkui/src/generated/peer_events.ts @@ -1,185 +1,1432 @@ import { RuntimeType } from "./peers/SerializerBase" import { int32 } from "@koalaui/common" -import { ResourceColor, Resource, ResourceStr, Font, Offset, Length, AltOffset, LengthMetricsUnit, Dimension, PX, VP, FP, LPX, Percentage, LengthMetrics, LocalizedPadding } from "./ArkUnitsInterfaces" -import { Color, TextOverflow, TextHeightAdaptivePolicy, ColoringStrategy, EmbeddedType, Curve, FontWeight, FontStyle } from "./ArkEnumsInterfaces" -import { IMPORT_Resource_FROM_resource_resource, LITERAL_DxLengthDyLength, LITERAL_Dx1LengthDy2Length, LITERAL_Evenodd, LITERAL_Nonzero, IMPORT_LengthMetricsUnit_FROM_api_arkui_Graphics, LITERAL_TopLengthRightLengthBottomLengthLeftLength, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, LITERAL_AngleNumberstringDirectionGradientDirectionColorsArrayResourceColornumberRepeatingBoolean, LITERAL_TopResourceColorRightResourceColorBottomResourceColorLeftResourceColor, LITERAL_TopBorderStyleRightBorderStyleBottomBorderStyleLeftBorderStyle, IMPORT_UIContext_FROM_api_ohos_arkui_UIContext, IMPORT_LengthMetrics_FROM_api_arkui_Graphics, IMPORT_ImageModifier_FROM_api_arkui_ImageModifier, IMPORT_default_PixelMap_FROM_resource_image, IMPORT_SymbolGlyphModifier_FROM_resource_symbol, IMPORT_ComponentContent_FROM_api_arkui_ComponentContent, IMPORT_Callback_TerminationInfo_FROM_api_ohos_base, IMPORT_ErrorCallback_FROM_api_ohos_base, IMPORT_default_FROM_api_ohos_app_ability_Want, LITERAL_WidthNumberHeightNumber, LITERAL_Auto, IMPORT_Callback_NavDestinationContext_FROM_api_ohos_base, IMPORT_default_SystemBarStyle_FROM_api_ohos_window, IMPORT_Callback_PopInfo_FROM_api_ohos_base, LITERAL_NavBar, LITERAL_WidthNumberstringHeightNumberstringRadiusNumberstringArrayObject, LITERAL_WidthNumberstringHeightNumberstringRadiusWidthNumberstringRadiusHeightNumberstring, IMPORT_Callback_UIExtensionProxy_FROM_api_ohos_base, LITERAL_KeyStringObject, IMPORT_Callback_LITERAL_KeyStringObject_FROM_api_ohos_base, LITERAL_CodeNumberWantIMPORTdefaultFROMapiohosappabilityWant, IMPORT_Callback_LITERAL_CodeNumberWantIMPORTdefaultFROMapiohosappabilityWant_FROM_api_ohos_base, IMPORT_Callback_number_FROM_api_ohos_base, LITERAL_X0NumberX1NumberX2NumberX3Number, LITERAL_TNumberXNumberYNumberZNumber, LITERAL_DetailObject } from "./SyntheticDeclarations" +import { AbilityComponentAttribute, AbilityComponentInterface } from "./ArkAbilityComponentInterfaces" +import { IMPORT_default_FROM_api_ohos_app_ability_Want, LITERAL_WantIMPORTdefaultFROMapiohosappabilityWant, IMPORT_Resource_FROM_api_global_resource, LITERAL_YearNumberMonthNumberDayNumber, LITERAL_DateLITERALYearNumberMonthNumberDayNumberCurrentDataMonthDataPreDataMonthDataNextDataMonthDataControllerCalendarController, LITERAL_DxLengthDyLength, LITERAL_Evenodd, LITERAL_Nonzero, IMPORT_LengthMetricsUnit_FROM_api_arkui_Graphics, LITERAL_High, LITERAL_Low, LITERAL_Medium, LITERAL_Butt, LITERAL_Round, LITERAL_Square, LITERAL_Bevel, LITERAL_Miter, LITERAL_Inherit, LITERAL_Ltr, LITERAL_Rtl, LITERAL_Center, LITERAL_End, LITERAL_Left, LITERAL_Right, LITERAL_Start, LITERAL_Alphabetic, LITERAL_Bottom, LITERAL_Hanging, LITERAL_Ideographic, LITERAL_Middle, LITERAL_Top, IMPORT_default_Canvas_FROM_api_ohos_graphics_drawing, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, LITERAL_TopLengthRightLengthBottomLengthLeftLength, LITERAL_AlignAlignment, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image, IMPORT_default_VisualEffect_FROM_api_ohos_graphics_uiEffect, IMPORT_default_Filter_FROM_api_ohos_graphics_uiEffect, LITERAL_TopBorderStyleRightBorderStyleBottomBorderStyleLeftBorderStyle, LITERAL_TopResourceColorRightResourceColorBottomResourceColorLeftResourceColor, LITERAL_TopLeftLengthTopRightLengthBottomLeftLengthBottomRightLength, LITERAL_TopOutlineStyleRightOutlineStyleBottomOutlineStyleLeftOutlineStyle, LITERAL_TopDimensionRightDimensionBottomDimensionLeftDimension, LITERAL_TopLeftDimensionTopRightDimensionBottomLeftDimensionBottomRightDimension, LITERAL_SpanNumberOffsetNumber, LITERAL_XsNumberLITERALSpanNumberOffsetNumberSmNumberLITERALSpanNumberOffsetNumberMdNumberLITERALSpanNumberOffsetNumberLgNumberLITERALSpanNumberOffsetNumber, IMPORT_default_UniformDataType_FROM_api_ohos_data_uniformTypeDescriptor, IMPORT_ComponentContent_T_FROM_api_arkui_ComponentContent, LITERAL_AngleNumberstringDirectionGradientDirectionColorsArrayResourceColornumberRepeatingBoolean, LITERAL_CenterLengthLengthStartNumberstringEndNumberstringRotationNumberstringColorsArrayResourceColornumberRepeatingBoolean, LITERAL_CenterLengthLengthRadiusNumberstringColorsArrayResourceColornumberRepeatingBoolean, IMPORT_default_Blender_FROM_api_ohos_graphics_uiEffect, IMPORT_CircleShape_FROM_api_ohos_arkui_shape, IMPORT_EllipseShape_FROM_api_ohos_arkui_shape, IMPORT_PathShape_FROM_api_ohos_arkui_shape, IMPORT_RectShape_FROM_api_ohos_arkui_shape, IMPORT_DrawContext_FROM_api_arkui_Graphics, IMPORT_IntentionCode_FROM_api_ohos_multimodalInput_intentionCode, LITERAL_AnchorStringAlignHorizontalAlign, LITERAL_AnchorStringAlignVerticalAlign, IMPORT_default_UnifiedData_FROM_api_ohos_data_unifiedDataChannel, IMPORT_default_Summary_FROM_api_ohos_data_unifiedDataChannel, IMPORT_ImageModifier_FROM_api_arkui_ImageModifier, LITERAL_ValueStringActionVoid, LITERAL_IsVisibleBoolean, LITERAL_ColorResourceColor, IMPORT_SymbolGlyphModifier_FROM_api_arkui_SymbolGlyphModifier, IMPORT_UIContext_FROM_api_ohos_arkui_UIContext, IMPORT_LengthMetrics_FROM_api_arkui_Graphics, IMPORT_Scene_FROM_api_ohos_graphics_scene, LITERAL_WidthStringnumberHeightStringnumber, IMPORT_Callback_TerminationInfo_FROM_api_ohos_base, IMPORT_ErrorCallback_FROM_api_ohos_base, IMPORT_ColorMetrics_FROM_api_arkui_Graphics, IMPORT_default_WindowStatusType_FROM_api_ohos_window, LITERAL_WidthNumberHeightNumber, LITERAL_ErrcodeNumberMsgString, UNION_ResourceColorLinearGradient, LITERAL_FingersNumberRepeatBooleanDurationNumber, LITERAL_FingersNumberDirectionPanDirectionDistanceNumber, LITERAL_FingersNumberDistanceNumber, LITERAL_FingersNumberDirectionSwipeDirectionSpeedNumber, LITERAL_FingersNumberAngleNumber, LITERAL_OffsetRemainNumber, LITERAL_Auto, IMPORT_default_ColorFilter_FROM_api_ohos_graphics_drawing, LITERAL_WidthNumberHeightNumberComponentWidthNumberComponentHeightNumberLoadingStatusNumberContentWidthNumberContentHeightNumberContentOffsetXNumberContentOffsetYNumber, IMPORT_default_ResolutionQuality_FROM_api_ohos_multimedia_image, IMPORT_DrawableDescriptor_FROM_api_ohos_arkui_drawableDescriptor, IMPORT_default_Lattice_FROM_api_ohos_graphics_drawing, LITERAL_MinLengthLengthMaxLengthLength, IMPORT_Callback_NavDestinationContext_FROM_api_ohos_base, IMPORT_default_SystemBarStyle_FROM_api_ohos_window, TextModifier, IMPORT_Callback_PopInfo_FROM_api_ohos_base, LITERAL_NavBar, LITERAL_TargetStringTypeNavigationType, IMPORT_NodeController_FROM_api_ohos_arkui_node, LITERAL_WidthNumberstringHeightNumberstringCommandsString, IMPORT_Callback_number_FROM_api_ohos_base, LITERAL_TemplatePluginComponentTemplateDataObject, LITERAL_WidthNumberstringHeightNumberstringRadiusNumberstringArrayObject, LITERAL_WidthNumberstringHeightNumberstringRadiusWidthNumberstringRadiusHeightNumberstring, LITERAL_ValueStringPlaceholderResourceStrIconStringControllerSearchController, LITERAL_XNumberstringYNumberstringWidthNumberstringHeightNumberstring, LITERAL_IndexNumber, LITERAL_MinSizeVP, LITERAL_BarPositionBarPositionIndexNumberControllerTabsController, LITERAL_IconStringResourceTextStringResource, IMPORT_default_DateTimeOptions_FROM_api_ohos_intl, IMPORT_default_Affinity_FROM_api_ohos_graphics_text, IMPORT_default_LineMetrics_FROM_api_ohos_graphics_text, IMPORT_default_RectWidthStyle_FROM_api_ohos_graphics_text, IMPORT_default_RectHeightStyle_FROM_api_ohos_graphics_text, IMPORT_default_TextBox_FROM_api_ohos_graphics_text, LITERAL_StyleCancelButtonStyleIconIconOptions, LITERAL_FullscreenBoolean, LITERAL_DurationNumber, LITERAL_TimeNumber, LITERAL_DataStringWebResourceRequest, LITERAL_HandlerFunctionErrorObject, LITERAL_DetailObject, LITERAL_CallbackFunctionFileSelectorObject, IMPORT_default_WebviewController_FROM_api_ohos_web_webview, LITERAL_PlainTextString, LITERAL_IdStringTypeStringLibrarynameStringControllerXComponentController, LITERAL_IdStringTypeXComponentTypeLibrarynameStringControllerXComponentController, LITERAL_ShownStringPixelMapResourceHiddenStringPixelMapResourceSwitchingStringPixelMapResource, IMPORT_Callback_UIExtensionProxy_FROM_api_ohos_base, LITERAL_KeyStringObject, IMPORT_Callback_LITERAL_KeyStringObject_FROM_api_ohos_base, LITERAL_CodeNumberWantIMPORTdefaultFROMapiohosappabilityWant, IMPORT_Callback_LITERAL_CodeNumberWantIMPORTdefaultFROMapiohosappabilityWant_FROM_api_ohos_base } from "./SyntheticDeclarations" +import { WordBreak, Color, AnimationStatus, Curve, FillMode, PlayMode, FontWeight, FontStyle, TextOverflow, TextHeightAdaptivePolicy, Axis, CheckBoxShape, HorizontalAlign, FlexAlign, HitTestMode, Alignment, ImageRepeat, ImageSize, BorderStyle, ColoringStrategy, HoverEffect, Visibility, ItemAlign, Direction, GradientDirection, ResponseType, FunctionKey, ModifierKey, ObscuredReasons, RenderFit, LineCapStyle, LineJoinStyle, BarState, EdgeEffect, ScrollSource, PixelRoundCalcPolicy, AccessibilityHoverType, MouseButton, MouseAction, TouchType, KeyType, KeySource, TransitionType, SharedTransitionEffectType, VerticalAlign, ClickEffectLevel, Placement, ArrowPointPosition, IlluminatedType, NestedScrollMode, TextDecorationType, TextDecorationStyle, EmbeddedType, FlexDirection, FlexWrap, FoldStatus, AppRotation, ImageFit, CopyOptions, ImageSpanAlignment, MarqueeUpdateStrategy, TitleHeight, TextAlign, LineBreakStrategy, Edge, OptionWidthMode, TextCase, EllipsisMode, TextSelectableMode, TextContentStyle, XComponentType } from "./ArkEnumsInterfaces" +import { TextStyle } from "./ArkAlertDialogInterfaces" +import { AlphabetIndexerAttribute, IndexerAlign, OnAlphabetIndexerSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerPopupSelectCallback, AlphabetIndexerOptions, AlphabetIndexerInterface } from "./ArkAlphabetIndexerInterfaces" +import { ResourceColor, Resource, Font, Length, Position, ResourceStr, Offset, LengthMetricsUnit, MarkStyle, Dimension, PX, VP, FP, LPX, Percentage, SizeOptions, ConstraintSizeOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, Bias, LengthMetrics, VoidCallback, ColorMetrics, ColorFilter, LengthConstrain, DividerStyleOptions } from "./ArkUnitsInterfaces" +import { BlurStyle, CommonConfiguration, PickerTextStyle, Callback, CustomBuilder, PointLightStyle, Optional, SafeAreaType, SafeAreaEdge, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, PixelMap, BackgroundBlurStyleOptions, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, ForegroundBlurStyleOptions, BorderImageOption, OutlineStyle, ClickEvent, HoverEvent, AccessibilityCallback, AccessibilityHoverEvent, MouseEvent, TouchEvent, KeyEvent, AnimateParam, TransitionOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, sharedTransitionOptions, AlignRuleOption, LocalizedAlignRuleOptions, ChainStyle, ClickEffect, DragEvent, DragItemInfo, UniformDataType, DragPreviewOptions, DragInteractionOptions, PreDragStatus, ComponentContent, OverlayOptions, MotionPathOptions, ShadowOptions, ShadowStyle, BlendMode, BlendApplyType, Blender, CircleShape, EllipseShape, PathShape, RectShape, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, StateStyles, VisibleAreaChangeCallback, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, CommonMethod, CommonShapeMethod, CommonAttribute, CommonInterface, EdgeEffectOptions, FadingEdgeOptions, NestedScrollOptions, ScrollResult, OnScrollCallback, ScrollableCommonMethod, DrawContext, RectResult, TouchTestStrategy, BlurStyleOptions, ThemeColorMode, AdaptiveColor, BlurStyleActivePolicy, BlurType, RepeatMode, BaseEvent, EventTarget, SourceType, SourceTool, TouchObject, HistoricalPoint, IntentionCode, FinishCallbackType, ExpectedFrameRateRange, FractionStop, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, DragBehavior, UnifiedData, Summary, DragResult, DragPreviewMode, ImageModifier, OverlayOffset, ShadowType, TransitionHierarchyStrategy, PopupMessageOptions, DismissPopupAction, DismissReason, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, AnimationRange, BindOptions, DismissContentCoverAction, SheetSize, SheetType, SheetTitleOptions, SheetDismiss, DismissSheetAction, SpringBackAction, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, UIGestureEvent, WrappedBuilder, LightSource, MultiShadowOptions, ItemDragInfo, MenuPolicy, SelectionOptions, TextDecorationOptions, CaretOffset, InputCounterOptions, LayoutSafeAreaType, LayoutSafeAreaEdge } from "./ArkCommonInterfaces" +import { AnimatorAttribute, SpringMotion, FrictionMotion, ScrollMotion, AnimatorInterface, SpringProp } from "./ArkAnimatorInterfaces" +import { BadgeAttribute, BadgeParamWithNumber, BadgeParamWithString, BadgeInterface, BadgeParam, BadgePosition, BadgeStyle } from "./ArkBadgeInterfaces" import { BlankAttribute, BlankInterface } from "./ArkBlankInterfaces" -import { ButtonType, ButtonAttribute, LabelStyle, ButtonInterface } from "./ArkButtonInterfaces" -import { CalendarAlign, CalendarPickerAttribute, CalendarPickerInterface } from "./ArkCalendarPickerInterfaces" -import { CanvasAttribute, CanvasInterface, CanvasFillRule, ImageData, RenderingContextSettings, Size, DrawingCanvas } from "./ArkCanvasInterfaces" +import { ButtonType, ButtonAttribute, ButtonStyleMode, ControlSize, ButtonRole, ButtonConfiguration, LabelStyle, ButtonOptions, ButtonInterface, ButtonTriggerClickCallback } from "./ArkButtonInterfaces" +import { ContentModifier, TransitionEffect, OnWillScrollCallback, LinearGradient, GestureControl_GestureType } from "./ConflictedDeclarations" +import { CalendarAttribute, CurrentDayStyle, NonCurrentDayStyle, TodayStyle, WeekStyle, WorkStateStyle, CalendarSelectedDate, CalendarRequestedData, MonthData, CalendarInterface, CalendarDay } from "./ArkCalendarInterfaces" +import { CalendarController } from "./ArkCalendarControllerMaterialized" +import { CalendarAlign, CalendarPickerAttribute, CalendarOptions, CalendarPickerInterface } from "./ArkCalendarPickerInterfaces" +import { CanvasAttribute, CanvasInterface, CanvasFillRule, ImageData, ImageSmoothingQuality, CanvasLineCap, CanvasLineJoin, TextMetrics, CanvasDirection, CanvasTextAlign, CanvasTextBaseline, RenderingContextSettings, Size, DrawingCanvas } from "./ArkCanvasInterfaces" import { CanvasRenderingContext2D } from "./ArkCanvasRenderingContext2DMaterialized" import { DrawingRenderingContext } from "./ArkDrawingRenderingContextMaterialized" -import { HorizontalAlign, ColumnAttribute, ColumnInterface, LayoutSafeAreaType, LayoutSafeAreaEdge, TitleHeight } from "./ArkColumnInterfaces" -import { StateStyles, BlurOptions, Padding, CustomBuilder, SheetOptions, BlurStyle, BackgroundBlurStyleOptions, DragPreviewOptions, DragInteractionOptions, GradientDirection, BorderOptions, TouchTestInfo, AttributeModifier, GestureRecognizerJudgeBeginCallback, ClickEvent, Callback, CommonMethod, CommonAttribute, CommonInterface, ScrollableCommonMethod, CommonShapeMethod, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetDismiss, DismissSheetAction, SpringBackAction, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderStyle, EdgeStyles, ShadowOptions, ShadowStyle, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, DismissReason, ShadowType, BlurStyleOptions, ThemeColorMode, AdaptiveColor, BlurStyleActivePolicy, DragPreviewMode, ImageModifier, RectResult, UIGestureEvent, BaseEvent, PixelMap, SymbolGlyphModifier, CommonConfiguration, ComponentContent, SourceTool } from "./ArkCommonInterfaces" -import { Optional, ListAttribute, OnScrollVisibleContentChangeCallback, VisibleListContentInfo, ListInterface } from "./ArkListInterfaces" +import { ImageAIOptions, ImageAnalyzerConfig, ImageAnalyzerType } from "./ArkImageCommonInterfaces" +import { CheckboxAttribute, OnCheckboxChangeCallback, CheckBoxConfiguration, CheckboxOptions, CheckboxInterface } from "./ArkCheckboxInterfaces" +import { CheckboxGroupAttribute, OnCheckboxGroupChangeCallback, CheckboxGroupResult, CheckboxGroupOptions, CheckboxGroupInterface, SelectStatus } from "./ArkCheckboxgroupInterfaces" +import { CircleAttribute, CircleOptions, CircleInterface } from "./ArkCircleInterfaces" +import { ColumnAttribute, ColumnOptions, ColumnInterface } from "./ArkColumnInterfaces" +import { ColumnSplitAttribute, ColumnSplitDividerStyle, ColumnSplitInterface } from "./ArkColumnSplitInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { ResizableOptions, ImageAttribute, ImageRenderMode, DynamicRangeMode, ImageInterpolation, ImageSourceSize, DrawingColorFilter, ImageErrorCallback, ImageError, ResolutionQuality, DrawableDescriptor, ImageContent, ImageInterface, DrawingLattice } from "./ArkImageInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { GestureType, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureMask, GestureInfo, BaseGestureEvent, GestureJudgeResult, GestureHandler, GesturePriority, GestureInterface, TapGestureParameters, GestureEvent, FingerInfo, PanDirection, SwipeDirection, GestureMode } from "./ArkGestureInterfaces" +import { EllipseAttribute, EllipseInterface } from "./ArkEllipseInterfaces" +import { PathAttribute, PathInterface } from "./ArkPathInterfaces" +import { RectAttribute, RectInterface } from "./ArkRectInterfaces" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./ArkAttributeModifierMaterialized" import { GestureModifier } from "./ArkGestureModifierMaterialized" -import { BaseGestureEvent, GestureJudgeResult, GestureHandler, GesturePriority, GestureMask, GestureInterface, FingerInfo } from "./ArkGestureInterfaces" import { GestureRecognizer } from "./ArkGestureRecognizerMaterialized" -import { ContentModifier } from "./ConflictedDeclarations" +import { ScrollState, ListAttribute, ListItemAlign, ListDividerOptions, ChainAnimationOptions, StickyStyle, ScrollSnapAlign, OnScrollVisibleContentChangeCallback, VisibleListContentInfo, ListOptions, ListInterface, ChainEdgeEffect, ListItemGroupArea } from "./ArkListInterfaces" +import { ICurve } from "./ArkICurveMaterialized" +import { Component3DAttribute, SceneOptions, Component3DInterface, Scene, ModelType } from "./ArkComponent3dInterfaces" +import { TextBackgroundStyle, BaseSpan, SpanAttribute, SpanInterface } from "./ArkSpanInterfaces" +import { ContainerSpanAttribute, ContainerSpanInterface } from "./ArkContainerSpanInterfaces" +import { CounterAttribute, CounterInterface } from "./ArkCounterInterfaces" +import { DataPanelAttribute, DataPanelShadowOptions, DataPanelConfiguration, DataPanelOptions, DataPanelInterface, DataPanelType } from "./ArkDataPanelInterfaces" +import { DatePickerAttribute, DatePickerResult, DatePickerOptions, DatePickerInterface } from "./ArkDatePickerInterfaces" +import { DividerAttribute, DividerInterface } from "./ArkDividerInterfaces" +import { EffectComponentAttribute, EffectComponentInterface } from "./ArkEffectComponentInterfaces" import { TerminationInfo, EmbeddedComponentAttribute, EmbeddedComponentInterface } from "./ArkEmbeddedComponentInterfaces" -import { FormComponentAttribute, FormCallbackInfo, FormComponentInterface } from "./ArkFormComponentInterfaces" +import { FlexAttribute, FlexOptions, FlexInterface, FlexSpaceOptions } from "./ArkFlexInterfaces" +import { FlowItemAttribute, FlowItemInterface } from "./ArkFlowItemInterfaces" +import { FolderStackAttribute, OnFoldStatusChangeCallback, OnFoldStatusChangeInfo, OnHoverStatusChangeCallback, HoverEventParam, FolderStackOptions, FolderStackInterface, WindowStatusType } from "./ArkFolderStackInterfaces" +import { FormComponentAttribute, FormDimension, FormCallbackInfo, FormInfo, FormComponentInterface, FormRenderingMode, FormShape } from "./ArkFormComponentInterfaces" +import { FormLinkAttribute, FormLinkOptions, FormLinkInterface } from "./ArkFormLinkInterfaces" +import { GaugeAttribute, GaugeShadowOptions, GaugeIndicatorOptions, GaugeConfiguration, GaugeOptions, GaugeInterface } from "./ArkGaugeInterfaces" +import { PanGestureOptions } from "./ArkPanGestureOptionsMaterialized" +import { GridAttribute, ComputedBarAttribute, GridDirection, GridItemAlignment, GridLayoutOptions, GridInterface } from "./ArkGridInterfaces" +import { Scroller } from "./ArkScrollerMaterialized" +import { GridItemAttribute, GridItemOptions, GridItemInterface, GridItemStyle } from "./ArkGridItemInterfaces" +import { GridColColumnOption, GridColAttribute, GridColOptions, GridColInterface } from "./ArkGridColInterfaces" import { GridContainerAttribute, GridContainerOptions, GridContainerInterface, SizeType } from "./ArkGridContainerInterfaces" -import { ImageAttribute, ImageInterface } from "./ArkImageInterfaces" -import { NavDestinationCommonTitle, NavDestinationCustomTitle, NavDestinationAttribute, NavDestinationMode, NavDestinationInterface, RouteMapConfig } from "./ArkNavDestinationInterfaces" +import { GridRowAttribute, GridRowOptions, GridRowInterface, GutterOption, GridRowColumnOption, BreakPoints, GridRowDirection, GridRowSizeOption, BreakpointsReference } from "./ArkGridRowInterfaces" +import { HyperlinkAttribute, HyperlinkInterface } from "./ArkHyperlinkInterfaces" +import { ImageFrameInfo, ImageAnimatorAttribute, ImageAnimatorInterface } from "./ArkImageAnimatorInterfaces" +import { ImageAnalyzerController } from "./ArkImageAnalyzerControllerMaterialized" +import { ImageSpanAttribute, ImageCompleteCallback, ImageLoadResult, ImageSpanInterface } from "./ArkImageSpanInterfaces" +import { LineAttribute, LineInterface } from "./ArkLineInterfaces" +import { ChildrenMainSize } from "./ArkChildrenMainSizeMaterialized" +import { Sticky, ListItemAttribute, EditMode, SwipeActionOptions, ListItemOptions, ListItemInterface, SwipeActionItem, SwipeEdgeEffect, SwipeActionState, ListItemStyle } from "./ArkListItemInterfaces" +import { ListItemGroupAttribute, ListItemGroupOptions, ListItemGroupInterface, ListItemGroupStyle } from "./ArkListItemGroupInterfaces" +import { LoadingProgressAttribute, LoadingProgressConfiguration, LoadingProgressInterface } from "./ArkLoadingProgressInterfaces" +import { LocationButtonOnClickResult, LocationButtonAttribute, LocationButtonOptions, LocationButtonInterface, LocationIconStyle, LocationDescription } from "./ArkLocationButtonInterfaces" +import { MarqueeAttribute, MarqueeOptions, MarqueeInterface } from "./ArkMarqueeInterfaces" +import { MediaCachedImageAttribute, ASTCResource, MediaCachedImageInterface } from "./ArkMediaCachedImageInterfaces" +import { MenuAttribute, SubMenuExpandingMode, MenuInterface } from "./ArkMenuInterfaces" +import { MenuItemAttribute, MenuItemOptions, MenuItemInterface } from "./ArkMenuItemInterfaces" +import { MenuItemGroupAttribute, MenuItemGroupOptions, MenuItemGroupInterface } from "./ArkMenuItemGroupInterfaces" +import { NavDestinationCommonTitle, NavDestinationCustomTitle, NavDestinationAttribute, NavDestinationMode, NavigationSystemTransitionType, NavDestinationInterface, RouteMapConfig } from "./ArkNavDestinationInterfaces" import { NavigationTitleOptions, NavigationMenuItem, SystemBarStyle, NavigationAttribute, NavBarPosition, NavigationMode, NavigationCommonTitle, NavigationCustomTitle, NavigationTitleMode, ToolbarItem, NavigationToolbarOptions, NavContentInfo, NavigationOperation, NavigationAnimatedTransition, NavigationInterface, BarStyle, PopInfo, NavPathInfo, LaunchMode, NavigationOptions, InterceptionShowCallback, NavBar, InterceptionModeCallback, NavigationInterception, ToolbarItemStatus } from "./ArkNavigationInterfaces" import { NavDestinationContext } from "./ArkNavDestinationContextMaterialized" +import { NavRouterAttribute, NavRouteMode, RouteInfo, NavRouterInterface } from "./ArkNavRouterInterfaces" import { NavPathStack } from "./ArkNavPathStackMaterialized" import { NavigationTransitionProxy } from "./ArkNavigationTransitionProxyMaterialized" -import { RectAttribute, RectInterface } from "./ArkRectInterfaces" -import { ScrollAttribute, ScrollInterface, ScrollAnimationOptions } from "./ArkScrollInterfaces" -import { Scroller } from "./ArkScrollerMaterialized" -import { ICurve } from "./ArkICurveMaterialized" -import { MenuItemConfiguration, SelectAttribute, SelectOption, SelectInterface } from "./ArkSelectInterfaces" +import { NavigatorAttribute, NavigationType, NavigatorInterface } from "./ArkNavigatorInterfaces" +import { NodeContainerAttribute, NodeContainerInterface } from "./ArkNodeContainerInterfaces" +import { PanelMode, PanelAttribute, PanelType, PanelHeight, PanelInterface } from "./ArkPanelInterfaces" +import { PasteButtonOnClickResult, PasteButtonAttribute, PasteButtonOptions, PasteButtonInterface, PasteIconStyle, PasteDescription } from "./ArkPasteButtonInterfaces" +import { PatternLockAttribute, CircleStyleOptions, PatternLockInterface } from "./ArkPatternLockInterfaces" +import { PatternLockController } from "./ArkPatternLockControllerMaterialized" +import { PluginComponentAttribute, PluginComponentTemplate, PluginComponentInterface } from "./ArkPluginComponentInterfaces" +import { PolygonAttribute, PolygonInterface } from "./ArkPolygonInterfaces" +import { PolylineAttribute, PolylineInterface } from "./ArkPolylineInterfaces" +import { QRCodeAttribute, QRCodeInterface } from "./ArkQrcodeInterfaces" +import { RadioAttribute, RadioStyle, RadioConfiguration, RadioOptions, RadioInterface, RadioIndicatorType } from "./ArkRadioInterfaces" +import { RatingAttribute, StarStyleOptions, RatingConfiguration, RatingOptions, RatingInterface } from "./ArkRatingInterfaces" +import { RefreshStatus, RefreshAttribute, RefreshOptions, RefreshInterface } from "./ArkRefreshInterfaces" +import { GuideLineStyle, RelativeContainerAttribute, BarrierStyle, LocalizedBarrierStyle, RelativeContainerInterface, GuideLinePosition, BarrierDirection, LocalizedBarrierDirection } from "./ArkRelativeContainerInterfaces" +import { RichEditorAttribute, RichEditorSelection, RichEditorRange, RichEditorInsertValue, RichEditorTextSpanResult, RichEditorDeleteValue, RichEditorSpanType, RichEditorResponseType, SelectionMenuOptions, KeyboardOptions, PasteEventCallback, PasteEvent, PlaceholderStyle, SubmitCallback, RichEditorChangeValue, CutEvent, CopyEvent, RichEditorOptions, RichEditorStyledStringOptions, RichEditorInterface, RichEditorImageSpanResult, RichEditorSpanPosition, RichEditorTextStyleResult, RichEditorSymbolSpanStyle, RichEditorParagraphStyle, LeadingMarginPlaceholder, RichEditorImageSpanStyleResult, RichEditorLayoutStyle, RichEditorDeleteDirection, MenuOnAppearCallback, RichEditorTextStyle, RichEditorGesture, RichEditorTextSpanOptions, RichEditorImageSpanStyle, RichEditorImageSpanOptions, RichEditorBuilderSpanOptions, RichEditorSymbolSpanOptions, RichEditorSpanStyleOptions, RichEditorUpdateTextSpanStyleOptions, RichEditorUpdateImageSpanStyleOptions, RichEditorUpdateSymbolSpanStyleOptions, RichEditorParagraphStyleOptions, RichEditorParagraphResult, RichEditorSpan } from "./ArkRichEditorInterfaces" +import { TextRange, TextDataDetectorConfig, OnDidChangeCallback, DecorationStyleResult, MenuType, CaretStyle, EditableTextOnChangeCallback, PreviewText, InsertValue, DeleteValue, FontSettingOptions, TextDataDetectorType, TextMenuItemId, TextMenuItem, Affinity, PositionWithAffinity, LineMetrics, RectWidthStyle, RectHeightStyle, TextBox, StyledStringChangeValue, StyledStringChangedListener, TextDeleteDirection } from "./ArkTextCommonInterfaces" +import { EnterKeyType, SubmitEvent, InputType, TextInputAttribute, TextInputStyle, PasswordIcon, UnderlineColor, TextInputOptions, TextInputInterface } from "./ArkTextInputInterfaces" +import { EditMenuOptions } from "./ArkEditMenuOptionsMaterialized" +import { SymbolEffectStrategy, SymbolRenderingStrategy, SymbolGlyphAttribute, SymbolEffect, SymbolGlyphInterface } from "./ArkSymbolglyphInterfaces" +import { RichEditorController } from "./ArkRichEditorControllerMaterialized" +import { DecorationStyleInterface, ImageAttachmentInterface, ImageAttachmentLayoutStyle, ImageAttachment, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, StyledStringKey, StyledStringValue, DecorationStyle, BaselineOffsetStyle, LetterSpacingStyle, TextShadowStyle, GestureStyle, ParagraphStyle, LineHeightStyle, UrlStyle, UserDataSpan, BackgroundColorStyle, StyleOptions, GestureStyleInterface, ParagraphStyleInterface, SpanStyle } from "./ArkStyledStringInterfaces" +import { RichEditorStyledStringController } from "./ArkRichEditorStyledStringControllerMaterialized" +import { RichTextAttribute, RichTextInterface } from "./ArkRichTextInterfaces" +import { RootSceneAttribute, RootSceneSession, RootSceneInterface } from "./ArkRootSceneInterfaces" +import { RowAttribute, RowOptions, RowInterface } from "./ArkRowInterfaces" +import { RowSplitAttribute, RowSplitInterface } from "./ArkRowSplitInterfaces" +import { SaveButtonOnClickResult, SaveButtonAttribute, SaveButtonOptions, SaveButtonInterface, SaveIconStyle, SaveDescription } from "./ArkSaveButtonInterfaces" +import { ScreenAttribute, ScreenInterface } from "./ArkScreenInterfaces" +import { ScrollDirection, ScrollAttribute, ScrollOnWillScrollCallback, OffsetResult, ScrollOnScrollCallback, OnScrollEdgeCallback, OnScrollFrameBeginCallback, OnScrollFrameBeginHandlerResult, ScrollSnapOptions, OffsetOptions, ScrollInterface, ScrollAnimationOptions, ScrollOptions, ScrollEdgeOptions, ScrollToIndexOptions } from "./ArkScrollInterfaces" +import { ScrollBarAttribute, ScrollBarOptions, ScrollBarInterface, ScrollBarDirection } from "./ArkScrollBarInterfaces" +import { SearchButtonOptions, SearchAttribute, IconOptions, CancelButtonOptions, CancelButtonSymbolOptions, SearchType, SearchInterface, CancelButtonStyle } from "./ArkSearchInterfaces" +import { SearchController } from "./ArkSearchControllerMaterialized" +import { SecurityComponentLayoutDirection, SecurityComponentMethod } from "./ArkSecurityComponentInterfaces" +import { SelectAttribute, ArrowPosition, MenuAlignType, MenuItemConfiguration, SelectOption, SelectInterface } from "./ArkSelectInterfaces" +import { DividerOptions, TextPickerAttribute, TextPickerOptions, TextPickerInterface, TextPickerRangeContent, TextCascadePickerRangeContent } from "./ArkTextPickerInterfaces" import { ShapeAttribute, ShapeInterface } from "./ArkShapeInterfaces" -import { SideBarContainerAttribute, SideBarContainerInterface } from "./ArkSidebarInterfaces" -import { SwiperAttribute, SwiperInterface } from "./ArkSwiperInterfaces" +import { SliderAttribute, SliderChangeMode, SliderBlockStyle, SliderInteraction, SliderConfiguration, SlideRange, SliderOptions, SliderInterface, SliderBlockType, SliderTriggerChangeCallback, SliderStyle } from "./ArkSliderInterfaces" +import { StackAttribute, StackOptions, StackInterface } from "./ArkStackInterfaces" +import { StepperAttribute, StepperInterface } from "./ArkStepperInterfaces" +import { StepperItemAttribute, ItemState, StepperItemInterface } from "./ArkStepperItemInterfaces" +import { SwiperAttribute, ArrowStyle, SwiperDisplayMode, SwiperAutoFill, IndicatorStyle, SwiperAnimationEvent, SwiperNestedScrollMode, SwiperContentAnimatedTransition, ContentDidScrollCallback, SwiperInterface } from "./ArkSwiperInterfaces" import { DotIndicator } from "./ArkDotIndicatorBuilder" +import { DigitIndicator } from "./ArkDigitIndicatorBuilder" import { SwiperController } from "./ArkSwiperControllerMaterialized" -import { SymbolGlyphAttribute, SymbolGlyphInterface } from "./ArkSymbolglyphInterfaces" +import { SwiperContentTransitionProxy } from "./ArkSwiperContentTransitionProxyMaterialized" +import { SymbolSpanAttribute, SymbolSpanInterface } from "./ArkSymbolSpanInterfaces" +import { TabsAttribute, BarPosition, BarMode, ScrollableBarModeOptions, AnimationMode, TabsAnimationEvent, DividerStyle, BarGridColumnOptions, TabContentAnimatedTransition, TabsInterface, LayoutStyle } from "./ArkTabsInterfaces" +import { TabsController } from "./ArkTabsControllerMaterialized" +import { TabContentTransitionProxy } from "./ArkTabContentTransitionProxyMaterialized" +import { TabContentAttribute, TabContentInterface, BoardStyle, TabBarSymbol, TabBarIconStyle } from "./ArkTabContentInterfaces" import { SubTabBarStyle } from "./ArkSubTabBarStyleBuilder" -import { TabContentAttribute, TabContentInterface, IndicatorStyle, BoardStyle, TabBarSymbol } from "./ArkTabContentInterfaces" import { BottomTabBarStyle } from "./ArkBottomTabBarStyleBuilder" -import { BarMode, TabsAttribute, TabsInterface } from "./ArkTabsInterfaces" -import { TestAttribute, EnumDTS, BooleanInterfaceDTS, NumberInterfaceDTS, StringInterfaceDTS, UnionInterfaceDTS, UnionOptionalInterfaceDTS, TupleInterfaceDTS, OptionInterfaceDTS, ArrayRefNumberInterfaceDTS, ClassDTS, ClassWithConstructorDTS, ClassWithConstructorAndFieldsDTS, TestInterface } from "./ArkTestInterfaces" -import { ClassWithConstructorAndMethodsDTS } from "./ArkClassWithConstructorAndMethodsDTSMaterialized" -import { ClassWithConstructorAndStaticMethodsDTS } from "./ArkClassWithConstructorAndStaticMethodsDTSMaterialized" -import { ClassWithConstructorAndFieldsAndMethodsDTS } from "./ArkClassWithConstructorAndFieldsAndMethodsDTSMaterialized" -import { ClassWithConstructorAndNonOptionalParamsDTS } from "./ArkClassWithConstructorAndNonOptionalParamsDTSMaterialized" -import { ClassWithConstructorAndSomeOptionalParamsDTS } from "./ArkClassWithConstructorAndSomeOptionalParamsDTSMaterialized" -import { ClassWithConstructorAndAllOptionalParamsDTS } from "./ArkClassWithConstructorAndAllOptionalParamsDTSMaterialized" -import { ClassWithConstructorAndWithoutParamsDTS } from "./ArkClassWithConstructorAndWithoutParamsDTSMaterialized" -import { TextAttribute, TextOptions, TextInterface } from "./ArkTextInterfaces" +import { TextAttribute, TextOverflowOptions, TextSpanType, TextResponseType, TextOptions, TextInterface } from "./ArkTextInterfaces" import { TextController } from "./ArkTextControllerMaterialized" -import { InputType, TextInputAttribute, ContentType, TextInputOptions, TextInputInterface } from "./ArkTextInputInterfaces" -import { TextPickerAttribute, DividerOptions, TextPickerOptions, TextPickerInterface, TextPickerRangeContent, TextCascadePickerRangeContent } from "./ArkTextPickerInterfaces" +import { TextAreaAttribute, TextAreaType, ContentType, TextAreaOptions, TextAreaInterface } from "./ArkTextAreaInterfaces" +import { TextAreaController } from "./ArkTextAreaControllerMaterialized" +import { TextClockAttribute, TextClockConfiguration, TextClockOptions, TextClockInterface } from "./ArkTextClockInterfaces" +import { DateTimeOptions, TimePickerAttribute, TimePickerResult, TimePickerOptions, TimePickerInterface, TimePickerFormat } from "./ArkTimePickerInterfaces" +import { TextClockController } from "./ArkTextClockControllerMaterialized" +import { StyledString } from "./ArkStyledStringMaterialized" +import { TextInputController } from "./ArkTextInputControllerMaterialized" +import { TextTimerAttribute, TextTimerConfiguration, TextTimerOptions, TextTimerInterface } from "./ArkTextTimerInterfaces" +import { TextTimerController } from "./ArkTextTimerControllerMaterialized" +import { ToggleAttribute, ToggleConfiguration, SwitchStyle, ToggleOptions, ToggleInterface, ToggleType } from "./ArkToggleInterfaces" +import { VideoAttribute, VideoOptions, VideoInterface, PlaybackSpeed } from "./ArkVideoInterfaces" +import { VideoController } from "./ArkVideoControllerMaterialized" +import { WebAttribute, MixedMode, JavaScriptProxy, CacheMode, WebDarkMode, WebMediaOptions, OverScrollMode, OnPageEndEvent, OnPageBeginEvent, OnProgressChangeEvent, OnTitleReceiveEvent, OnGeolocationShowEvent, OnAlertEvent, OnBeforeUnloadEvent, OnConfirmEvent, OnPromptEvent, OnConsoleEvent, OnErrorReceiveEvent, OnHttpErrorReceiveEvent, OnDownloadStartEvent, OnRefreshAccessedHistoryEvent, OnRenderExitedEvent, OnShowFileSelectorEvent, OnResourceLoadEvent, OnFullScreenEnterCallback, FullScreenEnterEvent, OnScaleChangeEvent, OnHttpAuthRequestEvent, OnInterceptRequestEvent, OnPermissionRequestEvent, OnScreenCaptureRequestEvent, OnContextMenuShowEvent, OnContextMenuHideCallback, OnSearchResultReceiveEvent, OnScrollEvent, OnSslErrorEventReceiveEvent, OnSslErrorEventCallback, SslErrorEvent, OnClientAuthenticationEvent, OnWindowNewEvent, OnTouchIconUrlReceivedEvent, OnFaviconReceivedEvent, OnPageVisibleEvent, OnDataResubmittedEvent, OnAudioStateChangedEvent, OnFirstContentfulPaintEvent, OnFirstMeaningfulPaintCallback, FirstMeaningfulPaint, OnLargestContentfulPaintCallback, LargestContentfulPaint, OnLoadInterceptEvent, OnOverScrollEvent, OnSafeBrowsingCheckResultCallback, ThreatType, OnNavigationEntryCommittedCallback, LoadCommittedDetails, OnIntelligentTrackingPreventionCallback, IntelligentTrackingPreventionDetails, ScriptItem, WebLayoutMode, NestedScrollOptionsExt, NativeEmbedDataInfo, OnNativeEmbedVisibilityChangeCallback, NativeEmbedVisibilityInfo, NativeEmbedTouchInfo, OnOverrideUrlLoadingCallback, NativeMediaPlayerConfig, OnRenderProcessNotRespondingCallback, RenderProcessNotRespondingData, OnRenderProcessRespondingCallback, ExpandedMenuItemOptions, OnViewportFitChangedCallback, ViewportFit, WebKeyboardCallback, WebKeyboardCallbackInfo, WebKeyboardOptions, OnAdsBlockedCallback, AdsBlockedDetails, WebKeyboardAvoidMode, WebOptions, WebInterface, WebviewController, Header, RenderExitReason, WebCaptureMode, ScreenCaptureConfig, SslError, WebNavigationType, NativeEmbedStatus, NativeEmbedInfo, RenderProcessNotRespondingReason, RenderMode } from "./ArkWebInterfaces" +import { WebResourceRequest } from "./ArkWebResourceRequestMaterialized" +import { WebResourceResponse } from "./ArkWebResourceResponseMaterialized" +import { WebController } from "./ArkWebControllerMaterialized" +import { JsGeolocation } from "./ArkJsGeolocationMaterialized" +import { JsResult } from "./ArkJsResultMaterialized" +import { ConsoleMessage } from "./ArkConsoleMessageMaterialized" +import { WebResourceError } from "./ArkWebResourceErrorMaterialized" +import { FileSelectorResult } from "./ArkFileSelectorResultMaterialized" +import { FileSelectorParam } from "./ArkFileSelectorParamMaterialized" +import { FullScreenExitHandler } from "./ArkFullScreenExitHandlerMaterialized" +import { HttpAuthHandler } from "./ArkHttpAuthHandlerMaterialized" +import { PermissionRequest } from "./ArkPermissionRequestMaterialized" +import { ScreenCaptureHandler } from "./ArkScreenCaptureHandlerMaterialized" +import { WebContextMenuParam } from "./ArkWebContextMenuParamMaterialized" +import { WebContextMenuResult } from "./ArkWebContextMenuResultMaterialized" +import { SslErrorHandler } from "./ArkSslErrorHandlerMaterialized" +import { ClientAuthenticationHandler } from "./ArkClientAuthenticationHandlerMaterialized" +import { ControllerHandler } from "./ArkControllerHandlerMaterialized" +import { DataResubmissionHandler } from "./ArkDataResubmissionHandlerMaterialized" +import { EventResult } from "./ArkEventResultMaterialized" +import { WebKeyboardController } from "./ArkWebKeyboardControllerMaterialized" +import { WindowSceneAttribute, WindowSceneInterface } from "./ArkWindowSceneInterfaces" +import { XComponentAttribute, XComponentOptions, XComponentInterface, SurfaceRect, SurfaceRotationOptions } from "./ArkXcomponentInterfaces" +import { XComponentController } from "./ArkXComponentControllerMaterialized" +import { SideBarContainerAttribute, ButtonStyle, SideBarPosition, SideBarContainerType, SideBarContainerInterface } from "./ArkSidebarInterfaces" +import { RemoteWindowAttribute, WindowAnimationTarget, RemoteWindowInterface, RRect } from "./ArkRemoteWindowInterfaces" +import { WaterFlowAttribute, WaterFlowOptions, WaterFlowInterface, WaterFlowLayoutMode, GetItemMainSizeByIndex, SectionOptions } from "./ArkWaterFlowInterfaces" +import { WaterFlowSections } from "./ArkWaterFlowSectionsMaterialized" import { UIExtensionProxy } from "./ArkUIExtensionProxyMaterialized" import { UIExtensionComponentAttribute, UIExtensionOptions, UIExtensionComponentInterface, DpiFollowStrategy } from "./ArkUiExtensionComponentInterfaces" -import { Vector1, VectorAttribute, Vector2, VectorInterface } from "./ArkVectorInterfaces" -import { NativeEmbedDataInfo, WebAttribute, OnRenderExitedEvent, OnHttpErrorReceiveEvent, WebInterface, NativeEmbedInfo, RenderExitReason } from "./ArkWebInterfaces" -import { WebResourceResponse } from "./ArkWebResourceResponseMaterialized" +import { CustomSpan } from "./ArkCustomSpanMaterialized" +import { LinearIndicatorStyle, LinearIndicatorAttribute, OnLinearIndicatorChangeCallback, LinearIndicatorInterface, LinearIndicatorStartOptions } from "./ArkLinearindicatorInterfaces" +import { LinearIndicatorController } from "./ArkLinearIndicatorControllerMaterialized" export enum PeerEventKind { - Canvas_onReady = 0, - CommonMethod_onChildTouchTest = 1, - CommonMethod_onGestureRecognizerJudgeBegin = 2, - CommonMethod_onClick0 = 3, - CommonMethod_onClick1 = 4, - FormComponent_onAcquired = 5, - List_onScrollVisibleContentChange = 6, - NavDestination_onShown = 7, - NavDestination_onHidden = 8, - NavDestination_onBackPressed = 9, - NavDestination_onWillAppear = 10, - NavDestination_onWillDisappear = 11, - NavDestination_onWillShow = 12, - NavDestination_onWillHide = 13, - Navigation_onTitleModeChange = 14, - Navigation_onNavBarStateChange = 15, - Navigation_onNavigationModeChange = 16, - Navigation_navDestination = 17, - Navigation_customNavContentTransition = 18, - Test_testFunction = 19, - Test_testFunctionUndefined = 20, - TextInput_onEditChanged = 21, - TextPicker_onAccept = 22, - TextPicker_onCancel = 23, - TextPicker_onChange = 24, - UIExtensionComponent_onTerminated = 25, - Web_onNativeEmbedLifecycleChange = 26, - Web_onRenderExited0 = 27, - Web_onRenderExited1 = 28, - Web_onHttpErrorReceive = 29, + AbilityComponent_onConnect = 0, + AbilityComponent_onDisconnect = 1, + AlphabetIndexer_onSelected = 2, + AlphabetIndexer_onSelect = 3, + AlphabetIndexer_onRequestPopupData = 4, + AlphabetIndexer_onPopupSelect = 5, + Animator_onStart = 6, + Animator_onPause = 7, + Animator_onRepeat = 8, + Animator_onCancel = 9, + Animator_onFinish = 10, + Animator_onFrame = 11, + Calendar_onSelectChange = 12, + Calendar_onRequestData = 13, + CalendarPicker_onChange = 14, + Canvas_onReady = 15, + Checkbox_onChange = 16, + CheckboxGroup_onChange = 17, + CommonMethod_onChildTouchTest = 18, + CommonMethod_onClick0 = 19, + CommonMethod_onClick1 = 20, + CommonMethod_onHover = 21, + CommonMethod_onAccessibilityHover = 22, + CommonMethod_onMouse = 23, + CommonMethod_onTouch = 24, + CommonMethod_onKeyEvent = 25, + CommonMethod_onKeyPreIme = 26, + CommonMethod_onFocus = 27, + CommonMethod_onBlur = 28, + CommonMethod_onAppear = 29, + CommonMethod_onDisAppear = 30, + CommonMethod_onAttach = 31, + CommonMethod_onDetach = 32, + CommonMethod_onAreaChange = 33, + CommonMethod_onDragStart = 34, + CommonMethod_onDragEnter = 35, + CommonMethod_onDragMove = 36, + CommonMethod_onDragLeave = 37, + CommonMethod_onDrop = 38, + CommonMethod_onDragEnd = 39, + CommonMethod_onPreDrag = 40, + CommonMethod_onVisibleAreaChange = 41, + CommonMethod_keyboardShortcut = 42, + CommonMethod_onGestureJudgeBegin = 43, + CommonMethod_onGestureRecognizerJudgeBegin = 44, + CommonMethod_shouldBuiltInRecognizerParallelWith = 45, + CommonMethod_onTouchIntercept = 46, + CommonMethod_onSizeChange = 47, + ScrollableCommonMethod_onScroll = 48, + ScrollableCommonMethod_onDidScroll = 49, + ScrollableCommonMethod_onReachStart = 50, + ScrollableCommonMethod_onReachEnd = 51, + ScrollableCommonMethod_onScrollStart = 52, + ScrollableCommonMethod_onScrollStop = 53, + Counter_onInc = 54, + Counter_onDec = 55, + DatePicker_onChange = 56, + DatePicker_onDateChange = 57, + FolderStack_onFolderStateChange = 58, + FolderStack_onHoverStatusChange = 59, + FormComponent_onAcquired = 60, + FormComponent_onError = 61, + FormComponent_onRouter = 62, + FormComponent_onUninstall = 63, + FormComponent_onLoad = 64, + Grid_onScrollBarUpdate = 65, + Grid_onScrollIndex = 66, + Grid_onItemDragStart = 67, + Grid_onItemDragEnter = 68, + Grid_onItemDragMove = 69, + Grid_onItemDragLeave = 70, + Grid_onItemDrop = 71, + Grid_onScroll = 72, + Grid_onReachStart = 73, + Grid_onReachEnd = 74, + Grid_onScrollStart = 75, + Grid_onScrollStop = 76, + Grid_onScrollFrameBegin = 77, + GridItem_onSelect = 78, + GridRow_onBreakpointChange = 79, + Image_onComplete = 80, + Image_onError = 81, + Image_onFinish = 82, + ImageAnimator_onStart = 83, + ImageAnimator_onPause = 84, + ImageAnimator_onRepeat = 85, + ImageAnimator_onCancel = 86, + ImageAnimator_onFinish = 87, + ImageSpan_onComplete = 88, + ImageSpan_onError = 89, + List_onScroll = 90, + List_onScrollIndex = 91, + List_onScrollVisibleContentChange = 92, + List_onReachStart = 93, + List_onReachEnd = 94, + List_onScrollStart = 95, + List_onScrollStop = 96, + List_onItemDelete = 97, + List_onItemMove = 98, + List_onItemDragStart = 99, + List_onItemDragEnter = 100, + List_onItemDragMove = 101, + List_onItemDragLeave = 102, + List_onItemDrop = 103, + List_onScrollFrameBegin = 104, + ListItem_onSelect = 105, + LocationButton_onClick = 106, + Marquee_onStart = 107, + Marquee_onBounce = 108, + Marquee_onFinish = 109, + MenuItem_onChange = 110, + NavDestination_onShown = 111, + NavDestination_onHidden = 112, + NavDestination_onBackPressed = 113, + NavDestination_onWillAppear = 114, + NavDestination_onWillDisappear = 115, + NavDestination_onWillShow = 116, + NavDestination_onWillHide = 117, + NavRouter_onStateChange = 118, + Navigation_onTitleModeChange = 119, + Navigation_onNavBarStateChange = 120, + Navigation_onNavigationModeChange = 121, + Navigation_navDestination = 122, + Navigation_customNavContentTransition = 123, + Panel_onChange = 124, + Panel_onHeightChange = 125, + PasteButton_onClick = 126, + PatternLock_onPatternComplete = 127, + PluginComponent_onComplete = 128, + PluginComponent_onError = 129, + Radio_onChange = 130, + Rating_onChange = 131, + Refresh_onStateChange = 132, + Refresh_onRefreshing = 133, + Refresh_onOffsetChange = 134, + RichEditor_onReady = 135, + RichEditor_onSelect = 136, + RichEditor_onSelectionChange = 137, + RichEditor_aboutToIMEInput = 138, + RichEditor_onIMEInputComplete = 139, + RichEditor_onDidIMEInput = 140, + RichEditor_aboutToDelete = 141, + RichEditor_onDeleteComplete = 142, + RichEditor_onPaste = 143, + RichEditor_onEditingChange = 144, + RichEditor_onSubmit = 145, + RichEditor_onWillChange = 146, + RichEditor_onDidChange = 147, + RichEditor_onCut = 148, + RichEditor_onCopy = 149, + RichText_onStart = 150, + RichText_onComplete = 151, + SaveButton_onClick = 152, + Scroll_onScroll = 153, + Scroll_onDidScroll = 154, + Scroll_onScrollEdge = 155, + Scroll_onScrollStart = 156, + Scroll_onScrollEnd = 157, + Scroll_onScrollStop = 158, + Scroll_onScrollFrameBegin = 159, + Search_inputFilter = 160, + Search_onEditChange = 161, + Search_onSubmit = 162, + Search_onChange = 163, + Search_onTextSelectionChange = 164, + Search_onContentScroll = 165, + Search_onCopy = 166, + Search_onCut = 167, + Search_onPaste = 168, + Search_onWillInsert = 169, + Search_onDidInsert = 170, + Search_onWillDelete = 171, + Search_onDidDelete = 172, + Select_onSelect = 173, + Slider_onChange = 174, + Stepper_onFinish = 175, + Stepper_onSkip = 176, + Stepper_onChange = 177, + Stepper_onNext = 178, + Stepper_onPrevious = 179, + Swiper_onChange = 180, + Swiper_onAnimationStart = 181, + Swiper_onAnimationEnd = 182, + Swiper_onGestureSwipe = 183, + Swiper_onContentDidScroll = 184, + Tabs_onChange = 185, + Tabs_onTabBarClick = 186, + Tabs_onAnimationStart = 187, + Tabs_onAnimationEnd = 188, + Tabs_onGestureSwipe = 189, + Tabs_customContentTransition = 190, + Tabs_onContentWillChange = 191, + TabContent_onWillShow = 192, + TabContent_onWillHide = 193, + Text_onCopy = 194, + Text_onTextSelectionChange = 195, + TextArea_inputFilter = 196, + TextArea_onSubmit = 197, + TextArea_onChange = 198, + TextArea_onTextSelectionChange = 199, + TextArea_onContentScroll = 200, + TextArea_onEditChange = 201, + TextArea_onCopy = 202, + TextArea_onCut = 203, + TextArea_onPaste = 204, + TextArea_onWillInsert = 205, + TextArea_onDidInsert = 206, + TextArea_onWillDelete = 207, + TextArea_onDidDelete = 208, + TextClock_onDateChange = 209, + TextInput_onEditChanged = 210, + TextInput_onEditChange = 211, + TextInput_onSubmit = 212, + TextInput_onChange = 213, + TextInput_onTextSelectionChange = 214, + TextInput_onContentScroll = 215, + TextInput_inputFilter = 216, + TextInput_onCopy = 217, + TextInput_onCut = 218, + TextInput_onPaste = 219, + TextInput_onSecurityStateChange = 220, + TextInput_onWillInsert = 221, + TextInput_onDidInsert = 222, + TextInput_onWillDelete = 223, + TextInput_onDidDelete = 224, + TextPicker_onAccept = 225, + TextPicker_onCancel = 226, + TextPicker_onChange = 227, + TextTimer_onTimer = 228, + TimePicker_onChange = 229, + Toggle_onChange = 230, + Video_onStart = 231, + Video_onPause = 232, + Video_onFinish = 233, + Video_onFullscreenChange = 234, + Video_onPrepared = 235, + Video_onSeeking = 236, + Video_onSeeked = 237, + Video_onUpdate = 238, + Video_onError = 239, + Video_onStop = 240, + Web_onPageEnd = 241, + Web_onPageBegin = 242, + Web_onProgressChange = 243, + Web_onTitleReceive = 244, + Web_onGeolocationHide = 245, + Web_onGeolocationShow = 246, + Web_onRequestSelected = 247, + Web_onAlert = 248, + Web_onBeforeUnload = 249, + Web_onConfirm = 250, + Web_onPrompt = 251, + Web_onConsole = 252, + Web_onErrorReceive = 253, + Web_onHttpErrorReceive = 254, + Web_onDownloadStart = 255, + Web_onRefreshAccessedHistory = 256, + Web_onUrlLoadIntercept = 257, + Web_onSslErrorReceive = 258, + Web_onRenderExited0 = 259, + Web_onShowFileSelector = 260, + Web_onRenderExited1 = 261, + Web_onFileSelectorShow = 262, + Web_onResourceLoad = 263, + Web_onFullScreenExit = 264, + Web_onFullScreenEnter = 265, + Web_onScaleChange = 266, + Web_onHttpAuthRequest = 267, + Web_onInterceptRequest = 268, + Web_onPermissionRequest = 269, + Web_onScreenCaptureRequest = 270, + Web_onContextMenuShow = 271, + Web_onContextMenuHide = 272, + Web_onSearchResultReceive = 273, + Web_onScroll = 274, + Web_onSslErrorEventReceive = 275, + Web_onSslErrorEvent = 276, + Web_onClientAuthenticationRequest = 277, + Web_onWindowNew = 278, + Web_onWindowExit = 279, + Web_onInterceptKeyEvent = 280, + Web_onTouchIconUrlReceived = 281, + Web_onFaviconReceived = 282, + Web_onPageVisible = 283, + Web_onDataResubmitted = 284, + Web_onAudioStateChanged = 285, + Web_onFirstContentfulPaint = 286, + Web_onFirstMeaningfulPaint = 287, + Web_onLargestContentfulPaint = 288, + Web_onLoadIntercept = 289, + Web_onControllerAttached = 290, + Web_onOverScroll = 291, + Web_onSafeBrowsingCheckResult = 292, + Web_onNavigationEntryCommitted = 293, + Web_onIntelligentTrackingPreventionResult = 294, + Web_onNativeEmbedLifecycleChange = 295, + Web_onNativeEmbedVisibilityChange = 296, + Web_onNativeEmbedGestureEvent = 297, + Web_onOverrideUrlLoading = 298, + Web_onRenderProcessNotResponding = 299, + Web_onRenderProcessResponding = 300, + Web_onViewportFitChanged = 301, + Web_onInterceptKeyboardAttach = 302, + Web_onAdsBlocked = 303, + XComponent_onLoad = 304, + XComponent_onDestroy = 305, + SideBarContainer_onChange = 306, + WaterFlow_onReachStart = 307, + WaterFlow_onReachEnd = 308, + WaterFlow_onScrollFrameBegin = 309, + WaterFlow_onScrollIndex = 310, + UIExtensionComponent_onTerminated = 311, +} + +interface PeerEvent { + readonly kind: PeerEventKind + readonly nodeId: number +} + +export interface AbilityComponent_onConnect_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface AbilityComponent_onDisconnect_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface AlphabetIndexer_onSelected_event extends PeerEvent { + readonly kind: PeerEventKind + readonly index: number +} +export interface AlphabetIndexer_onSelect_event extends PeerEvent { + readonly kind: PeerEventKind + readonly index: number +} +export interface AlphabetIndexer_onRequestPopupData_event extends PeerEvent { + readonly kind: PeerEventKind + readonly index: number +} +export interface AlphabetIndexer_onPopupSelect_event extends PeerEvent { + readonly kind: PeerEventKind + readonly index: number +} +export interface Animator_onStart_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface Animator_onPause_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface Animator_onRepeat_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface Animator_onCancel_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface Animator_onFinish_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface Animator_onFrame_event extends PeerEvent { + readonly kind: PeerEventKind + readonly value: number +} +export interface Calendar_onSelectChange_event extends PeerEvent { + readonly kind: PeerEventKind + readonly event: CalendarSelectedDate +} +export interface Calendar_onRequestData_event extends PeerEvent { + readonly kind: PeerEventKind + readonly event: CalendarRequestedData +} +export interface CalendarPicker_onChange_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: Date +} +export interface Canvas_onReady_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface Checkbox_onChange_event extends PeerEvent { + readonly kind: PeerEventKind + readonly value: boolean +} +export interface CheckboxGroup_onChange_event extends PeerEvent { + readonly kind: PeerEventKind + readonly value: CheckboxGroupResult +} +export interface CommonMethod_onChildTouchTest_event extends PeerEvent { + readonly kind: PeerEventKind + readonly value: Array +} +export interface CommonMethod_onClick0_event extends PeerEvent { + readonly kind: PeerEventKind + readonly event: ClickEvent +} +export interface CommonMethod_onClick1_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: ClickEvent +} +export interface CommonMethod_onHover_event extends PeerEvent { + readonly kind: PeerEventKind + readonly isHover: boolean + readonly event: HoverEvent +} +export interface CommonMethod_onAccessibilityHover_event extends PeerEvent { + readonly kind: PeerEventKind + readonly isHover: boolean + readonly event: AccessibilityHoverEvent +} +export interface CommonMethod_onMouse_event extends PeerEvent { + readonly kind: PeerEventKind + readonly event: MouseEvent +} +export interface CommonMethod_onTouch_event extends PeerEvent { + readonly kind: PeerEventKind + readonly event: TouchEvent +} +export interface CommonMethod_onKeyEvent_event extends PeerEvent { + readonly kind: PeerEventKind + readonly event: KeyEvent +} +export interface CommonMethod_onKeyPreIme_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: KeyEvent +} +export interface CommonMethod_onFocus_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface CommonMethod_onBlur_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface CommonMethod_onAppear_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface CommonMethod_onDisAppear_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface CommonMethod_onAttach_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface CommonMethod_onDetach_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface CommonMethod_onAreaChange_event extends PeerEvent { + readonly kind: PeerEventKind + readonly oldValue: Area + readonly newValue: Area +} +export interface CommonMethod_onDragStart_event extends PeerEvent { + readonly kind: PeerEventKind + readonly event: DragEvent + readonly extraParams?: string +} +export interface CommonMethod_onDragEnter_event extends PeerEvent { + readonly kind: PeerEventKind + readonly event: DragEvent + readonly extraParams?: string +} +export interface CommonMethod_onDragMove_event extends PeerEvent { + readonly kind: PeerEventKind + readonly event: DragEvent + readonly extraParams?: string +} +export interface CommonMethod_onDragLeave_event extends PeerEvent { + readonly kind: PeerEventKind + readonly event: DragEvent + readonly extraParams?: string +} +export interface CommonMethod_onDrop_event extends PeerEvent { + readonly kind: PeerEventKind + readonly event: DragEvent + readonly extraParams?: string +} +export interface CommonMethod_onDragEnd_event extends PeerEvent { + readonly kind: PeerEventKind + readonly event: DragEvent + readonly extraParams?: string +} +export interface CommonMethod_onPreDrag_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: PreDragStatus +} +export interface CommonMethod_onVisibleAreaChange_event extends PeerEvent { + readonly kind: PeerEventKind + readonly isExpanding: boolean + readonly currentRatio: number +} +export interface CommonMethod_keyboardShortcut_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface CommonMethod_onGestureJudgeBegin_event extends PeerEvent { + readonly kind: PeerEventKind + readonly gestureInfo: GestureInfo + readonly event: BaseGestureEvent +} +export interface CommonMethod_onGestureRecognizerJudgeBegin_event extends PeerEvent { + readonly kind: PeerEventKind + readonly event: BaseGestureEvent + readonly current: GestureRecognizer + readonly recognizers: Array +} +export interface CommonMethod_shouldBuiltInRecognizerParallelWith_event extends PeerEvent { + readonly kind: PeerEventKind + readonly current: GestureRecognizer + readonly others: Array +} +export interface CommonMethod_onTouchIntercept_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: TouchEvent +} +export interface CommonMethod_onSizeChange_event extends PeerEvent { + readonly kind: PeerEventKind + readonly oldValue: SizeOptions + readonly newValue: SizeOptions +} +export interface ScrollableCommonMethod_onScroll_event extends PeerEvent { + readonly kind: PeerEventKind + readonly scrollOffset: number + readonly scrollState: ScrollState +} +export interface ScrollableCommonMethod_onDidScroll_event extends PeerEvent { + readonly kind: PeerEventKind + readonly scrollOffset: number + readonly scrollState: ScrollState +} +export interface ScrollableCommonMethod_onReachStart_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface ScrollableCommonMethod_onReachEnd_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface ScrollableCommonMethod_onScrollStart_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface ScrollableCommonMethod_onScrollStop_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface Counter_onInc_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface Counter_onDec_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface DatePicker_onChange_event extends PeerEvent { + readonly kind: PeerEventKind + readonly value: DatePickerResult +} +export interface DatePicker_onDateChange_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: Date +} +export interface FolderStack_onFolderStateChange_event extends PeerEvent { + readonly kind: PeerEventKind + readonly event: OnFoldStatusChangeInfo +} +export interface FolderStack_onHoverStatusChange_event extends PeerEvent { + readonly kind: PeerEventKind + readonly param: HoverEventParam +} +export interface FormComponent_onAcquired_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: FormCallbackInfo +} +export interface FormComponent_onError_event extends PeerEvent { + readonly kind: PeerEventKind + readonly info: LITERAL_ErrcodeNumberMsgString +} +export interface FormComponent_onRouter_event extends PeerEvent { + readonly kind: PeerEventKind + readonly info: Object +} +export interface FormComponent_onUninstall_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: FormCallbackInfo +} +export interface FormComponent_onLoad_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface Grid_onScrollBarUpdate_event extends PeerEvent { + readonly kind: PeerEventKind + readonly index: number + readonly offset: number +} +export interface Grid_onScrollIndex_event extends PeerEvent { + readonly kind: PeerEventKind + readonly first: number + readonly last: number +} +export interface Grid_onItemDragStart_event extends PeerEvent { + readonly kind: PeerEventKind + readonly event: ItemDragInfo + readonly itemIndex: number +} +export interface Grid_onItemDragEnter_event extends PeerEvent { + readonly kind: PeerEventKind + readonly event: ItemDragInfo +} +export interface Grid_onItemDragMove_event extends PeerEvent { + readonly kind: PeerEventKind + readonly event: ItemDragInfo + readonly itemIndex: number + readonly insertIndex: number +} +export interface Grid_onItemDragLeave_event extends PeerEvent { + readonly kind: PeerEventKind + readonly event: ItemDragInfo + readonly itemIndex: number +} +export interface Grid_onItemDrop_event extends PeerEvent { + readonly kind: PeerEventKind + readonly event: ItemDragInfo + readonly itemIndex: number + readonly insertIndex: number + readonly isSuccess: boolean +} +export interface Grid_onScroll_event extends PeerEvent { + readonly kind: PeerEventKind + readonly scrollOffset: number + readonly scrollState: ScrollState +} +export interface Grid_onReachStart_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface Grid_onReachEnd_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface Grid_onScrollStart_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface Grid_onScrollStop_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface Grid_onScrollFrameBegin_event extends PeerEvent { + readonly kind: PeerEventKind + readonly offset: number + readonly state: ScrollState +} +export interface GridItem_onSelect_event extends PeerEvent { + readonly kind: PeerEventKind + readonly isSelected: boolean +} +export interface GridRow_onBreakpointChange_event extends PeerEvent { + readonly kind: PeerEventKind + readonly breakpoints: string +} +export interface Image_onComplete_event extends PeerEvent { + readonly kind: PeerEventKind + readonly event?: LITERAL_WidthNumberHeightNumberComponentWidthNumberComponentHeightNumberLoadingStatusNumberContentWidthNumberContentHeightNumberContentOffsetXNumberContentOffsetYNumber +} +export interface Image_onError_event extends PeerEvent { + readonly kind: PeerEventKind + readonly error: ImageError +} +export interface Image_onFinish_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface ImageAnimator_onStart_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface ImageAnimator_onPause_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface ImageAnimator_onRepeat_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface ImageAnimator_onCancel_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface ImageAnimator_onFinish_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface ImageSpan_onComplete_event extends PeerEvent { + readonly kind: PeerEventKind + readonly result: ImageLoadResult +} +export interface ImageSpan_onError_event extends PeerEvent { + readonly kind: PeerEventKind + readonly error: ImageError +} +export interface List_onScroll_event extends PeerEvent { + readonly kind: PeerEventKind + readonly scrollOffset: number + readonly scrollState: ScrollState +} +export interface List_onScrollIndex_event extends PeerEvent { + readonly kind: PeerEventKind + readonly start: number + readonly end: number + readonly center: number +} +export interface List_onScrollVisibleContentChange_event extends PeerEvent { + readonly kind: PeerEventKind + readonly start: VisibleListContentInfo + readonly end: VisibleListContentInfo +} +export interface List_onReachStart_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface List_onReachEnd_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface List_onScrollStart_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface List_onScrollStop_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface List_onItemDelete_event extends PeerEvent { + readonly kind: PeerEventKind + readonly index: number +} +export interface List_onItemMove_event extends PeerEvent { + readonly kind: PeerEventKind + readonly from: number + readonly to: number +} +export interface List_onItemDragStart_event extends PeerEvent { + readonly kind: PeerEventKind + readonly event: ItemDragInfo + readonly itemIndex: number +} +export interface List_onItemDragEnter_event extends PeerEvent { + readonly kind: PeerEventKind + readonly event: ItemDragInfo +} +export interface List_onItemDragMove_event extends PeerEvent { + readonly kind: PeerEventKind + readonly event: ItemDragInfo + readonly itemIndex: number + readonly insertIndex: number +} +export interface List_onItemDragLeave_event extends PeerEvent { + readonly kind: PeerEventKind + readonly event: ItemDragInfo + readonly itemIndex: number +} +export interface List_onItemDrop_event extends PeerEvent { + readonly kind: PeerEventKind + readonly event: ItemDragInfo + readonly itemIndex: number + readonly insertIndex: number + readonly isSuccess: boolean +} +export interface List_onScrollFrameBegin_event extends PeerEvent { + readonly kind: PeerEventKind + readonly offset: number + readonly state: ScrollState +} +export interface ListItem_onSelect_event extends PeerEvent { + readonly kind: PeerEventKind + readonly isSelected: boolean +} +export interface LocationButton_onClick_event extends PeerEvent { + readonly kind: PeerEventKind + readonly event: ClickEvent + readonly result: LocationButtonOnClickResult +} +export interface Marquee_onStart_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface Marquee_onBounce_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface Marquee_onFinish_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface MenuItem_onChange_event extends PeerEvent { + readonly kind: PeerEventKind + readonly selected: boolean +} +export interface NavDestination_onShown_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface NavDestination_onHidden_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface NavDestination_onBackPressed_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface NavDestination_onWillAppear_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface NavDestination_onWillDisappear_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface NavDestination_onWillShow_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface NavDestination_onWillHide_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface NavRouter_onStateChange_event extends PeerEvent { + readonly kind: PeerEventKind + readonly isActivated: boolean +} +export interface Navigation_onTitleModeChange_event extends PeerEvent { + readonly kind: PeerEventKind + readonly titleMode: NavigationTitleMode +} +export interface Navigation_onNavBarStateChange_event extends PeerEvent { + readonly kind: PeerEventKind + readonly isVisible: boolean +} +export interface Navigation_onNavigationModeChange_event extends PeerEvent { + readonly kind: PeerEventKind + readonly mode: NavigationMode +} +export interface Navigation_navDestination_event extends PeerEvent { + readonly kind: PeerEventKind + readonly name: string + readonly param: Object +} +export interface Navigation_customNavContentTransition_event extends PeerEvent { + readonly kind: PeerEventKind + readonly from: NavContentInfo + readonly to: NavContentInfo + readonly operation: NavigationOperation +} +export interface Panel_onChange_event extends PeerEvent { + readonly kind: PeerEventKind + readonly width: number + readonly height: number + readonly mode: PanelMode +} +export interface Panel_onHeightChange_event extends PeerEvent { + readonly kind: PeerEventKind + readonly value: number +} +export interface PasteButton_onClick_event extends PeerEvent { + readonly kind: PeerEventKind + readonly event: ClickEvent + readonly result: PasteButtonOnClickResult +} +export interface PatternLock_onPatternComplete_event extends PeerEvent { + readonly kind: PeerEventKind + readonly input: Array +} +export interface PluginComponent_onComplete_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface PluginComponent_onError_event extends PeerEvent { + readonly kind: PeerEventKind + readonly info: LITERAL_ErrcodeNumberMsgString +} +export interface Radio_onChange_event extends PeerEvent { + readonly kind: PeerEventKind + readonly isChecked: boolean +} +export interface Rating_onChange_event extends PeerEvent { + readonly kind: PeerEventKind + readonly value: number +} +export interface Refresh_onStateChange_event extends PeerEvent { + readonly kind: PeerEventKind + readonly state: RefreshStatus +} +export interface Refresh_onRefreshing_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface Refresh_onOffsetChange_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: number +} +export interface RichEditor_onReady_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface RichEditor_onSelect_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: RichEditorSelection +} +export interface RichEditor_onSelectionChange_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: RichEditorRange +} +export interface RichEditor_aboutToIMEInput_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: RichEditorInsertValue +} +export interface RichEditor_onIMEInputComplete_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: RichEditorTextSpanResult +} +export interface RichEditor_onDidIMEInput_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: TextRange +} +export interface RichEditor_aboutToDelete_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: RichEditorDeleteValue +} +export interface RichEditor_onDeleteComplete_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface RichEditor_onPaste_event extends PeerEvent { + readonly kind: PeerEventKind + readonly event?: PasteEvent +} +export interface RichEditor_onEditingChange_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: boolean +} +export interface RichEditor_onSubmit_event extends PeerEvent { + readonly kind: PeerEventKind + readonly enterKey: EnterKeyType + readonly event: SubmitEvent +} +export interface RichEditor_onWillChange_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: RichEditorChangeValue +} +export interface RichEditor_onDidChange_event extends PeerEvent { + readonly kind: PeerEventKind + readonly rangeBefore: TextRange + readonly rangeAfter: TextRange +} +export interface RichEditor_onCut_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: CutEvent +} +export interface RichEditor_onCopy_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: CopyEvent +} +export interface RichText_onStart_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface RichText_onComplete_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface SaveButton_onClick_event extends PeerEvent { + readonly kind: PeerEventKind + readonly event: ClickEvent + readonly result: SaveButtonOnClickResult +} +export interface Scroll_onScroll_event extends PeerEvent { + readonly kind: PeerEventKind + readonly xOffset: number + readonly yOffset: number +} +export interface Scroll_onDidScroll_event extends PeerEvent { + readonly kind: PeerEventKind + readonly xOffset: number + readonly yOffset: number + readonly scrollState: ScrollState +} +export interface Scroll_onScrollEdge_event extends PeerEvent { + readonly kind: PeerEventKind + readonly side: Edge +} +export interface Scroll_onScrollStart_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface Scroll_onScrollEnd_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface Scroll_onScrollStop_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface Scroll_onScrollFrameBegin_event extends PeerEvent { + readonly kind: PeerEventKind + readonly offset: number + readonly state: ScrollState +} +export interface Search_inputFilter_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: string +} +export interface Search_onEditChange_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: boolean +} +export interface Search_onSubmit_event extends PeerEvent { + readonly kind: PeerEventKind + readonly value: string +} +export interface Search_onChange_event extends PeerEvent { + readonly kind: PeerEventKind + readonly value: string + readonly previewText?: PreviewText +} +export interface Search_onTextSelectionChange_event extends PeerEvent { + readonly kind: PeerEventKind + readonly selectionStart: number + readonly selectionEnd: number +} +export interface Search_onContentScroll_event extends PeerEvent { + readonly kind: PeerEventKind + readonly totalOffsetX: number + readonly totalOffsetY: number +} +export interface Search_onCopy_event extends PeerEvent { + readonly kind: PeerEventKind + readonly value: string +} +export interface Search_onCut_event extends PeerEvent { + readonly kind: PeerEventKind + readonly value: string +} +export interface Search_onPaste_event extends PeerEvent { + readonly kind: PeerEventKind + readonly value: string + readonly event: PasteEvent +} +export interface Search_onWillInsert_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: InsertValue +} +export interface Search_onDidInsert_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: InsertValue +} +export interface Search_onWillDelete_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: DeleteValue +} +export interface Search_onDidDelete_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: DeleteValue +} +export interface Select_onSelect_event extends PeerEvent { + readonly kind: PeerEventKind + readonly index: number + readonly value: string +} +export interface Slider_onChange_event extends PeerEvent { + readonly kind: PeerEventKind + readonly value: number + readonly mode: SliderChangeMode +} +export interface Stepper_onFinish_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface Stepper_onSkip_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface Stepper_onChange_event extends PeerEvent { + readonly kind: PeerEventKind + readonly prevIndex: number + readonly index: number +} +export interface Stepper_onNext_event extends PeerEvent { + readonly kind: PeerEventKind + readonly index: number + readonly pendingIndex: number +} +export interface Stepper_onPrevious_event extends PeerEvent { + readonly kind: PeerEventKind + readonly index: number + readonly pendingIndex: number +} +export interface Swiper_onChange_event extends PeerEvent { + readonly kind: PeerEventKind + readonly index: number +} +export interface Swiper_onAnimationStart_event extends PeerEvent { + readonly kind: PeerEventKind + readonly index: number + readonly targetIndex: number + readonly extraInfo: SwiperAnimationEvent +} +export interface Swiper_onAnimationEnd_event extends PeerEvent { + readonly kind: PeerEventKind + readonly index: number + readonly extraInfo: SwiperAnimationEvent +} +export interface Swiper_onGestureSwipe_event extends PeerEvent { + readonly kind: PeerEventKind + readonly index: number + readonly extraInfo: SwiperAnimationEvent +} +export interface Swiper_onContentDidScroll_event extends PeerEvent { + readonly kind: PeerEventKind + readonly selectedIndex: number + readonly index: number + readonly position: number + readonly mainAxisLength: number +} +export interface Tabs_onChange_event extends PeerEvent { + readonly kind: PeerEventKind + readonly index: number +} +export interface Tabs_onTabBarClick_event extends PeerEvent { + readonly kind: PeerEventKind + readonly index: number +} +export interface Tabs_onAnimationStart_event extends PeerEvent { + readonly kind: PeerEventKind + readonly index: number + readonly targetIndex: number + readonly event: TabsAnimationEvent +} +export interface Tabs_onAnimationEnd_event extends PeerEvent { + readonly kind: PeerEventKind + readonly index: number + readonly event: TabsAnimationEvent +} +export interface Tabs_onGestureSwipe_event extends PeerEvent { + readonly kind: PeerEventKind + readonly index: number + readonly event: TabsAnimationEvent +} +export interface Tabs_customContentTransition_event extends PeerEvent { + readonly kind: PeerEventKind + readonly from: number + readonly to: number +} +export interface Tabs_onContentWillChange_event extends PeerEvent { + readonly kind: PeerEventKind + readonly currentIndex: number + readonly comingIndex: number +} +export interface TabContent_onWillShow_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface TabContent_onWillHide_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface Text_onCopy_event extends PeerEvent { + readonly kind: PeerEventKind + readonly value: string +} +export interface Text_onTextSelectionChange_event extends PeerEvent { + readonly kind: PeerEventKind + readonly selectionStart: number + readonly selectionEnd: number +} +export interface TextArea_inputFilter_event extends PeerEvent { + readonly kind: PeerEventKind + readonly value: string } - -interface PeerEvent { +export interface TextArea_onSubmit_event extends PeerEvent { readonly kind: PeerEventKind - readonly nodeId: number + readonly enterKey: EnterKeyType } - -export interface Canvas_onReady_event extends PeerEvent { +export interface TextArea_onChange_event extends PeerEvent { readonly kind: PeerEventKind + readonly value: string + readonly previewText?: PreviewText } -export interface CommonMethod_onChildTouchTest_event extends PeerEvent { +export interface TextArea_onTextSelectionChange_event extends PeerEvent { readonly kind: PeerEventKind - readonly value: Array + readonly selectionStart: number + readonly selectionEnd: number } -export interface CommonMethod_onGestureRecognizerJudgeBegin_event extends PeerEvent { +export interface TextArea_onContentScroll_event extends PeerEvent { readonly kind: PeerEventKind - readonly event: BaseGestureEvent - readonly current: GestureRecognizer - readonly recognizers: Array + readonly totalOffsetX: number + readonly totalOffsetY: number } -export interface CommonMethod_onClick0_event extends PeerEvent { +export interface TextArea_onEditChange_event extends PeerEvent { readonly kind: PeerEventKind - readonly event: ClickEvent + readonly isEditing: boolean } -export interface CommonMethod_onClick1_event extends PeerEvent { +export interface TextArea_onCopy_event extends PeerEvent { readonly kind: PeerEventKind - readonly data: ClickEvent + readonly value: string } -export interface FormComponent_onAcquired_event extends PeerEvent { +export interface TextArea_onCut_event extends PeerEvent { readonly kind: PeerEventKind - readonly data: FormCallbackInfo + readonly value: string } -export interface List_onScrollVisibleContentChange_event extends PeerEvent { +export interface TextArea_onPaste_event extends PeerEvent { readonly kind: PeerEventKind - readonly start: VisibleListContentInfo - readonly end: VisibleListContentInfo + readonly value: string + readonly event: PasteEvent } -export interface NavDestination_onShown_event extends PeerEvent { +export interface TextArea_onWillInsert_event extends PeerEvent { readonly kind: PeerEventKind + readonly data: InsertValue } -export interface NavDestination_onHidden_event extends PeerEvent { +export interface TextArea_onDidInsert_event extends PeerEvent { readonly kind: PeerEventKind + readonly data: InsertValue } -export interface NavDestination_onBackPressed_event extends PeerEvent { +export interface TextArea_onWillDelete_event extends PeerEvent { readonly kind: PeerEventKind + readonly data: DeleteValue } -export interface NavDestination_onWillAppear_event extends PeerEvent { +export interface TextArea_onDidDelete_event extends PeerEvent { readonly kind: PeerEventKind + readonly data: DeleteValue } -export interface NavDestination_onWillDisappear_event extends PeerEvent { +export interface TextClock_onDateChange_event extends PeerEvent { readonly kind: PeerEventKind + readonly value: number } -export interface NavDestination_onWillShow_event extends PeerEvent { +export interface TextInput_onEditChanged_event extends PeerEvent { readonly kind: PeerEventKind + readonly isEditing: boolean } -export interface NavDestination_onWillHide_event extends PeerEvent { +export interface TextInput_onEditChange_event extends PeerEvent { readonly kind: PeerEventKind + readonly isEditing: boolean } -export interface Navigation_onTitleModeChange_event extends PeerEvent { +export interface TextInput_onSubmit_event extends PeerEvent { readonly kind: PeerEventKind - readonly titleMode: NavigationTitleMode + readonly enterKey: EnterKeyType + readonly event: SubmitEvent } -export interface Navigation_onNavBarStateChange_event extends PeerEvent { +export interface TextInput_onChange_event extends PeerEvent { readonly kind: PeerEventKind - readonly isVisible: boolean + readonly value: string + readonly previewText?: PreviewText } -export interface Navigation_onNavigationModeChange_event extends PeerEvent { +export interface TextInput_onTextSelectionChange_event extends PeerEvent { readonly kind: PeerEventKind - readonly mode: NavigationMode + readonly selectionStart: number + readonly selectionEnd: number } -export interface Navigation_navDestination_event extends PeerEvent { +export interface TextInput_onContentScroll_event extends PeerEvent { readonly kind: PeerEventKind - readonly name: string - readonly param: Object + readonly totalOffsetX: number + readonly totalOffsetY: number } -export interface Navigation_customNavContentTransition_event extends PeerEvent { +export interface TextInput_inputFilter_event extends PeerEvent { readonly kind: PeerEventKind - readonly from: NavContentInfo - readonly to: NavContentInfo - readonly operation: NavigationOperation + readonly value: string } -export interface Test_testFunction_event extends PeerEvent { +export interface TextInput_onCopy_event extends PeerEvent { readonly kind: PeerEventKind - readonly a: number + readonly value: string } -export interface Test_testFunctionUndefined_event extends PeerEvent { +export interface TextInput_onCut_event extends PeerEvent { readonly kind: PeerEventKind - readonly a: number + readonly value: string } -export interface TextInput_onEditChanged_event extends PeerEvent { +export interface TextInput_onPaste_event extends PeerEvent { readonly kind: PeerEventKind - readonly isEditing: boolean + readonly value: string + readonly event: PasteEvent +} +export interface TextInput_onSecurityStateChange_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: boolean +} +export interface TextInput_onWillInsert_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: InsertValue +} +export interface TextInput_onDidInsert_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: InsertValue +} +export interface TextInput_onWillDelete_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: DeleteValue +} +export interface TextInput_onDidDelete_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: DeleteValue } export interface TextPicker_onAccept_event extends PeerEvent { readonly kind: PeerEventKind @@ -194,35 +1441,443 @@ export interface TextPicker_onChange_event extends PeerEvent { readonly value: string | string[] readonly index: number | number[] } -export interface UIExtensionComponent_onTerminated_event extends PeerEvent { +export interface TextTimer_onTimer_event extends PeerEvent { readonly kind: PeerEventKind - readonly data: TerminationInfo + readonly utc: number + readonly elapsedTime: number } -export interface Web_onNativeEmbedLifecycleChange_event extends PeerEvent { +export interface TimePicker_onChange_event extends PeerEvent { readonly kind: PeerEventKind - readonly event: NativeEmbedDataInfo + readonly value: TimePickerResult +} +export interface Toggle_onChange_event extends PeerEvent { + readonly kind: PeerEventKind + readonly isOn: boolean +} +export interface Video_onStart_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface Video_onPause_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface Video_onFinish_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface Video_onFullscreenChange_event extends PeerEvent { + readonly kind: PeerEventKind + readonly event: LITERAL_FullscreenBoolean +} +export interface Video_onPrepared_event extends PeerEvent { + readonly kind: PeerEventKind + readonly event: LITERAL_DurationNumber +} +export interface Video_onSeeking_event extends PeerEvent { + readonly kind: PeerEventKind + readonly event: LITERAL_TimeNumber +} +export interface Video_onSeeked_event extends PeerEvent { + readonly kind: PeerEventKind + readonly event: LITERAL_TimeNumber +} +export interface Video_onUpdate_event extends PeerEvent { + readonly kind: PeerEventKind + readonly event: LITERAL_TimeNumber +} +export interface Video_onError_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface Video_onStop_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface Web_onPageEnd_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: OnPageEndEvent +} +export interface Web_onPageBegin_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: OnPageBeginEvent +} +export interface Web_onProgressChange_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: OnProgressChangeEvent +} +export interface Web_onTitleReceive_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: OnTitleReceiveEvent +} +export interface Web_onGeolocationHide_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface Web_onGeolocationShow_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: OnGeolocationShowEvent +} +export interface Web_onRequestSelected_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface Web_onAlert_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: OnAlertEvent +} +export interface Web_onBeforeUnload_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: OnBeforeUnloadEvent +} +export interface Web_onConfirm_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: OnConfirmEvent +} +export interface Web_onPrompt_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: OnPromptEvent +} +export interface Web_onConsole_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: OnConsoleEvent +} +export interface Web_onErrorReceive_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: OnErrorReceiveEvent +} +export interface Web_onHttpErrorReceive_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: OnHttpErrorReceiveEvent +} +export interface Web_onDownloadStart_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: OnDownloadStartEvent +} +export interface Web_onRefreshAccessedHistory_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: OnRefreshAccessedHistoryEvent +} +export interface Web_onUrlLoadIntercept_event extends PeerEvent { + readonly kind: PeerEventKind + readonly event?: LITERAL_DataStringWebResourceRequest +} +export interface Web_onSslErrorReceive_event extends PeerEvent { + readonly kind: PeerEventKind + readonly event?: LITERAL_HandlerFunctionErrorObject } export interface Web_onRenderExited0_event extends PeerEvent { readonly kind: PeerEventKind readonly data: OnRenderExitedEvent } +export interface Web_onShowFileSelector_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: OnShowFileSelectorEvent +} export interface Web_onRenderExited1_event extends PeerEvent { readonly kind: PeerEventKind readonly event?: LITERAL_DetailObject } -export interface Web_onHttpErrorReceive_event extends PeerEvent { +export interface Web_onFileSelectorShow_event extends PeerEvent { readonly kind: PeerEventKind - readonly data: OnHttpErrorReceiveEvent + readonly event?: LITERAL_CallbackFunctionFileSelectorObject +} +export interface Web_onResourceLoad_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: OnResourceLoadEvent +} +export interface Web_onFullScreenExit_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface Web_onFullScreenEnter_event extends PeerEvent { + readonly kind: PeerEventKind + readonly event: FullScreenEnterEvent +} +export interface Web_onScaleChange_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: OnScaleChangeEvent +} +export interface Web_onHttpAuthRequest_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: OnHttpAuthRequestEvent +} +export interface Web_onInterceptRequest_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: OnInterceptRequestEvent +} +export interface Web_onPermissionRequest_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: OnPermissionRequestEvent +} +export interface Web_onScreenCaptureRequest_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: OnScreenCaptureRequestEvent +} +export interface Web_onContextMenuShow_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: OnContextMenuShowEvent +} +export interface Web_onContextMenuHide_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface Web_onSearchResultReceive_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: OnSearchResultReceiveEvent +} +export interface Web_onScroll_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: OnScrollEvent +} +export interface Web_onSslErrorEventReceive_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: OnSslErrorEventReceiveEvent +} +export interface Web_onSslErrorEvent_event extends PeerEvent { + readonly kind: PeerEventKind + readonly sslErrorEvent: SslErrorEvent +} +export interface Web_onClientAuthenticationRequest_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: OnClientAuthenticationEvent +} +export interface Web_onWindowNew_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: OnWindowNewEvent +} +export interface Web_onWindowExit_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface Web_onInterceptKeyEvent_event extends PeerEvent { + readonly kind: PeerEventKind + readonly event: KeyEvent +} +export interface Web_onTouchIconUrlReceived_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: OnTouchIconUrlReceivedEvent +} +export interface Web_onFaviconReceived_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: OnFaviconReceivedEvent +} +export interface Web_onPageVisible_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: OnPageVisibleEvent +} +export interface Web_onDataResubmitted_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: OnDataResubmittedEvent +} +export interface Web_onAudioStateChanged_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: OnAudioStateChangedEvent +} +export interface Web_onFirstContentfulPaint_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: OnFirstContentfulPaintEvent +} +export interface Web_onFirstMeaningfulPaint_event extends PeerEvent { + readonly kind: PeerEventKind + readonly firstMeaningfulPaint: FirstMeaningfulPaint +} +export interface Web_onLargestContentfulPaint_event extends PeerEvent { + readonly kind: PeerEventKind + readonly largestContentfulPaint: LargestContentfulPaint +} +export interface Web_onLoadIntercept_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: OnLoadInterceptEvent +} +export interface Web_onControllerAttached_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface Web_onOverScroll_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: OnOverScrollEvent +} +export interface Web_onSafeBrowsingCheckResult_event extends PeerEvent { + readonly kind: PeerEventKind + readonly threatType: ThreatType +} +export interface Web_onNavigationEntryCommitted_event extends PeerEvent { + readonly kind: PeerEventKind + readonly loadCommittedDetails: LoadCommittedDetails +} +export interface Web_onIntelligentTrackingPreventionResult_event extends PeerEvent { + readonly kind: PeerEventKind + readonly details: IntelligentTrackingPreventionDetails +} +export interface Web_onNativeEmbedLifecycleChange_event extends PeerEvent { + readonly kind: PeerEventKind + readonly event: NativeEmbedDataInfo +} +export interface Web_onNativeEmbedVisibilityChange_event extends PeerEvent { + readonly kind: PeerEventKind + readonly nativeEmbedVisibilityInfo: NativeEmbedVisibilityInfo +} +export interface Web_onNativeEmbedGestureEvent_event extends PeerEvent { + readonly kind: PeerEventKind + readonly event: NativeEmbedTouchInfo +} +export interface Web_onOverrideUrlLoading_event extends PeerEvent { + readonly kind: PeerEventKind + readonly webResourceRequest: WebResourceRequest +} +export interface Web_onRenderProcessNotResponding_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: RenderProcessNotRespondingData +} +export interface Web_onRenderProcessResponding_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface Web_onViewportFitChanged_event extends PeerEvent { + readonly kind: PeerEventKind + readonly viewportFit: ViewportFit +} +export interface Web_onInterceptKeyboardAttach_event extends PeerEvent { + readonly kind: PeerEventKind + readonly keyboardCallbackInfo: WebKeyboardCallbackInfo +} +export interface Web_onAdsBlocked_event extends PeerEvent { + readonly kind: PeerEventKind + readonly details: AdsBlockedDetails +} +export interface XComponent_onLoad_event extends PeerEvent { + readonly kind: PeerEventKind + readonly event?: Object +} +export interface XComponent_onDestroy_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface SideBarContainer_onChange_event extends PeerEvent { + readonly kind: PeerEventKind + readonly value: boolean +} +export interface WaterFlow_onReachStart_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface WaterFlow_onReachEnd_event extends PeerEvent { + readonly kind: PeerEventKind +} +export interface WaterFlow_onScrollFrameBegin_event extends PeerEvent { + readonly kind: PeerEventKind + readonly offset: number + readonly state: ScrollState +} +export interface WaterFlow_onScrollIndex_event extends PeerEvent { + readonly kind: PeerEventKind + readonly first: number + readonly last: number +} +export interface UIExtensionComponent_onTerminated_event extends PeerEvent { + readonly kind: PeerEventKind + readonly data: TerminationInfo } export function getEventNameByKind(kind: PeerEventKind): string { switch (kind) { + case PeerEventKind.AbilityComponent_onConnect: return "AbilityComponent_onConnect" + case PeerEventKind.AbilityComponent_onDisconnect: return "AbilityComponent_onDisconnect" + case PeerEventKind.AlphabetIndexer_onSelected: return "AlphabetIndexer_onSelected" + case PeerEventKind.AlphabetIndexer_onSelect: return "AlphabetIndexer_onSelect" + case PeerEventKind.AlphabetIndexer_onRequestPopupData: return "AlphabetIndexer_onRequestPopupData" + case PeerEventKind.AlphabetIndexer_onPopupSelect: return "AlphabetIndexer_onPopupSelect" + case PeerEventKind.Animator_onStart: return "Animator_onStart" + case PeerEventKind.Animator_onPause: return "Animator_onPause" + case PeerEventKind.Animator_onRepeat: return "Animator_onRepeat" + case PeerEventKind.Animator_onCancel: return "Animator_onCancel" + case PeerEventKind.Animator_onFinish: return "Animator_onFinish" + case PeerEventKind.Animator_onFrame: return "Animator_onFrame" + case PeerEventKind.Calendar_onSelectChange: return "Calendar_onSelectChange" + case PeerEventKind.Calendar_onRequestData: return "Calendar_onRequestData" + case PeerEventKind.CalendarPicker_onChange: return "CalendarPicker_onChange" case PeerEventKind.Canvas_onReady: return "Canvas_onReady" + case PeerEventKind.Checkbox_onChange: return "Checkbox_onChange" + case PeerEventKind.CheckboxGroup_onChange: return "CheckboxGroup_onChange" case PeerEventKind.CommonMethod_onChildTouchTest: return "CommonMethod_onChildTouchTest" - case PeerEventKind.CommonMethod_onGestureRecognizerJudgeBegin: return "CommonMethod_onGestureRecognizerJudgeBegin" case PeerEventKind.CommonMethod_onClick0: return "CommonMethod_onClick0" case PeerEventKind.CommonMethod_onClick1: return "CommonMethod_onClick1" + case PeerEventKind.CommonMethod_onHover: return "CommonMethod_onHover" + case PeerEventKind.CommonMethod_onAccessibilityHover: return "CommonMethod_onAccessibilityHover" + case PeerEventKind.CommonMethod_onMouse: return "CommonMethod_onMouse" + case PeerEventKind.CommonMethod_onTouch: return "CommonMethod_onTouch" + case PeerEventKind.CommonMethod_onKeyEvent: return "CommonMethod_onKeyEvent" + case PeerEventKind.CommonMethod_onKeyPreIme: return "CommonMethod_onKeyPreIme" + case PeerEventKind.CommonMethod_onFocus: return "CommonMethod_onFocus" + case PeerEventKind.CommonMethod_onBlur: return "CommonMethod_onBlur" + case PeerEventKind.CommonMethod_onAppear: return "CommonMethod_onAppear" + case PeerEventKind.CommonMethod_onDisAppear: return "CommonMethod_onDisAppear" + case PeerEventKind.CommonMethod_onAttach: return "CommonMethod_onAttach" + case PeerEventKind.CommonMethod_onDetach: return "CommonMethod_onDetach" + case PeerEventKind.CommonMethod_onAreaChange: return "CommonMethod_onAreaChange" + case PeerEventKind.CommonMethod_onDragStart: return "CommonMethod_onDragStart" + case PeerEventKind.CommonMethod_onDragEnter: return "CommonMethod_onDragEnter" + case PeerEventKind.CommonMethod_onDragMove: return "CommonMethod_onDragMove" + case PeerEventKind.CommonMethod_onDragLeave: return "CommonMethod_onDragLeave" + case PeerEventKind.CommonMethod_onDrop: return "CommonMethod_onDrop" + case PeerEventKind.CommonMethod_onDragEnd: return "CommonMethod_onDragEnd" + case PeerEventKind.CommonMethod_onPreDrag: return "CommonMethod_onPreDrag" + case PeerEventKind.CommonMethod_onVisibleAreaChange: return "CommonMethod_onVisibleAreaChange" + case PeerEventKind.CommonMethod_keyboardShortcut: return "CommonMethod_keyboardShortcut" + case PeerEventKind.CommonMethod_onGestureJudgeBegin: return "CommonMethod_onGestureJudgeBegin" + case PeerEventKind.CommonMethod_onGestureRecognizerJudgeBegin: return "CommonMethod_onGestureRecognizerJudgeBegin" + case PeerEventKind.CommonMethod_shouldBuiltInRecognizerParallelWith: return "CommonMethod_shouldBuiltInRecognizerParallelWith" + case PeerEventKind.CommonMethod_onTouchIntercept: return "CommonMethod_onTouchIntercept" + case PeerEventKind.CommonMethod_onSizeChange: return "CommonMethod_onSizeChange" + case PeerEventKind.ScrollableCommonMethod_onScroll: return "ScrollableCommonMethod_onScroll" + case PeerEventKind.ScrollableCommonMethod_onDidScroll: return "ScrollableCommonMethod_onDidScroll" + case PeerEventKind.ScrollableCommonMethod_onReachStart: return "ScrollableCommonMethod_onReachStart" + case PeerEventKind.ScrollableCommonMethod_onReachEnd: return "ScrollableCommonMethod_onReachEnd" + case PeerEventKind.ScrollableCommonMethod_onScrollStart: return "ScrollableCommonMethod_onScrollStart" + case PeerEventKind.ScrollableCommonMethod_onScrollStop: return "ScrollableCommonMethod_onScrollStop" + case PeerEventKind.Counter_onInc: return "Counter_onInc" + case PeerEventKind.Counter_onDec: return "Counter_onDec" + case PeerEventKind.DatePicker_onChange: return "DatePicker_onChange" + case PeerEventKind.DatePicker_onDateChange: return "DatePicker_onDateChange" + case PeerEventKind.FolderStack_onFolderStateChange: return "FolderStack_onFolderStateChange" + case PeerEventKind.FolderStack_onHoverStatusChange: return "FolderStack_onHoverStatusChange" case PeerEventKind.FormComponent_onAcquired: return "FormComponent_onAcquired" + case PeerEventKind.FormComponent_onError: return "FormComponent_onError" + case PeerEventKind.FormComponent_onRouter: return "FormComponent_onRouter" + case PeerEventKind.FormComponent_onUninstall: return "FormComponent_onUninstall" + case PeerEventKind.FormComponent_onLoad: return "FormComponent_onLoad" + case PeerEventKind.Grid_onScrollBarUpdate: return "Grid_onScrollBarUpdate" + case PeerEventKind.Grid_onScrollIndex: return "Grid_onScrollIndex" + case PeerEventKind.Grid_onItemDragStart: return "Grid_onItemDragStart" + case PeerEventKind.Grid_onItemDragEnter: return "Grid_onItemDragEnter" + case PeerEventKind.Grid_onItemDragMove: return "Grid_onItemDragMove" + case PeerEventKind.Grid_onItemDragLeave: return "Grid_onItemDragLeave" + case PeerEventKind.Grid_onItemDrop: return "Grid_onItemDrop" + case PeerEventKind.Grid_onScroll: return "Grid_onScroll" + case PeerEventKind.Grid_onReachStart: return "Grid_onReachStart" + case PeerEventKind.Grid_onReachEnd: return "Grid_onReachEnd" + case PeerEventKind.Grid_onScrollStart: return "Grid_onScrollStart" + case PeerEventKind.Grid_onScrollStop: return "Grid_onScrollStop" + case PeerEventKind.Grid_onScrollFrameBegin: return "Grid_onScrollFrameBegin" + case PeerEventKind.GridItem_onSelect: return "GridItem_onSelect" + case PeerEventKind.GridRow_onBreakpointChange: return "GridRow_onBreakpointChange" + case PeerEventKind.Image_onComplete: return "Image_onComplete" + case PeerEventKind.Image_onError: return "Image_onError" + case PeerEventKind.Image_onFinish: return "Image_onFinish" + case PeerEventKind.ImageAnimator_onStart: return "ImageAnimator_onStart" + case PeerEventKind.ImageAnimator_onPause: return "ImageAnimator_onPause" + case PeerEventKind.ImageAnimator_onRepeat: return "ImageAnimator_onRepeat" + case PeerEventKind.ImageAnimator_onCancel: return "ImageAnimator_onCancel" + case PeerEventKind.ImageAnimator_onFinish: return "ImageAnimator_onFinish" + case PeerEventKind.ImageSpan_onComplete: return "ImageSpan_onComplete" + case PeerEventKind.ImageSpan_onError: return "ImageSpan_onError" + case PeerEventKind.List_onScroll: return "List_onScroll" + case PeerEventKind.List_onScrollIndex: return "List_onScrollIndex" case PeerEventKind.List_onScrollVisibleContentChange: return "List_onScrollVisibleContentChange" + case PeerEventKind.List_onReachStart: return "List_onReachStart" + case PeerEventKind.List_onReachEnd: return "List_onReachEnd" + case PeerEventKind.List_onScrollStart: return "List_onScrollStart" + case PeerEventKind.List_onScrollStop: return "List_onScrollStop" + case PeerEventKind.List_onItemDelete: return "List_onItemDelete" + case PeerEventKind.List_onItemMove: return "List_onItemMove" + case PeerEventKind.List_onItemDragStart: return "List_onItemDragStart" + case PeerEventKind.List_onItemDragEnter: return "List_onItemDragEnter" + case PeerEventKind.List_onItemDragMove: return "List_onItemDragMove" + case PeerEventKind.List_onItemDragLeave: return "List_onItemDragLeave" + case PeerEventKind.List_onItemDrop: return "List_onItemDrop" + case PeerEventKind.List_onScrollFrameBegin: return "List_onScrollFrameBegin" + case PeerEventKind.ListItem_onSelect: return "ListItem_onSelect" + case PeerEventKind.LocationButton_onClick: return "LocationButton_onClick" + case PeerEventKind.Marquee_onStart: return "Marquee_onStart" + case PeerEventKind.Marquee_onBounce: return "Marquee_onBounce" + case PeerEventKind.Marquee_onFinish: return "Marquee_onFinish" + case PeerEventKind.MenuItem_onChange: return "MenuItem_onChange" case PeerEventKind.NavDestination_onShown: return "NavDestination_onShown" case PeerEventKind.NavDestination_onHidden: return "NavDestination_onHidden" case PeerEventKind.NavDestination_onBackPressed: return "NavDestination_onBackPressed" @@ -230,33 +1885,315 @@ export function getEventNameByKind(kind: PeerEventKind): string { case PeerEventKind.NavDestination_onWillDisappear: return "NavDestination_onWillDisappear" case PeerEventKind.NavDestination_onWillShow: return "NavDestination_onWillShow" case PeerEventKind.NavDestination_onWillHide: return "NavDestination_onWillHide" + case PeerEventKind.NavRouter_onStateChange: return "NavRouter_onStateChange" case PeerEventKind.Navigation_onTitleModeChange: return "Navigation_onTitleModeChange" case PeerEventKind.Navigation_onNavBarStateChange: return "Navigation_onNavBarStateChange" case PeerEventKind.Navigation_onNavigationModeChange: return "Navigation_onNavigationModeChange" case PeerEventKind.Navigation_navDestination: return "Navigation_navDestination" case PeerEventKind.Navigation_customNavContentTransition: return "Navigation_customNavContentTransition" - case PeerEventKind.Test_testFunction: return "Test_testFunction" - case PeerEventKind.Test_testFunctionUndefined: return "Test_testFunctionUndefined" + case PeerEventKind.Panel_onChange: return "Panel_onChange" + case PeerEventKind.Panel_onHeightChange: return "Panel_onHeightChange" + case PeerEventKind.PasteButton_onClick: return "PasteButton_onClick" + case PeerEventKind.PatternLock_onPatternComplete: return "PatternLock_onPatternComplete" + case PeerEventKind.PluginComponent_onComplete: return "PluginComponent_onComplete" + case PeerEventKind.PluginComponent_onError: return "PluginComponent_onError" + case PeerEventKind.Radio_onChange: return "Radio_onChange" + case PeerEventKind.Rating_onChange: return "Rating_onChange" + case PeerEventKind.Refresh_onStateChange: return "Refresh_onStateChange" + case PeerEventKind.Refresh_onRefreshing: return "Refresh_onRefreshing" + case PeerEventKind.Refresh_onOffsetChange: return "Refresh_onOffsetChange" + case PeerEventKind.RichEditor_onReady: return "RichEditor_onReady" + case PeerEventKind.RichEditor_onSelect: return "RichEditor_onSelect" + case PeerEventKind.RichEditor_onSelectionChange: return "RichEditor_onSelectionChange" + case PeerEventKind.RichEditor_aboutToIMEInput: return "RichEditor_aboutToIMEInput" + case PeerEventKind.RichEditor_onIMEInputComplete: return "RichEditor_onIMEInputComplete" + case PeerEventKind.RichEditor_onDidIMEInput: return "RichEditor_onDidIMEInput" + case PeerEventKind.RichEditor_aboutToDelete: return "RichEditor_aboutToDelete" + case PeerEventKind.RichEditor_onDeleteComplete: return "RichEditor_onDeleteComplete" + case PeerEventKind.RichEditor_onPaste: return "RichEditor_onPaste" + case PeerEventKind.RichEditor_onEditingChange: return "RichEditor_onEditingChange" + case PeerEventKind.RichEditor_onSubmit: return "RichEditor_onSubmit" + case PeerEventKind.RichEditor_onWillChange: return "RichEditor_onWillChange" + case PeerEventKind.RichEditor_onDidChange: return "RichEditor_onDidChange" + case PeerEventKind.RichEditor_onCut: return "RichEditor_onCut" + case PeerEventKind.RichEditor_onCopy: return "RichEditor_onCopy" + case PeerEventKind.RichText_onStart: return "RichText_onStart" + case PeerEventKind.RichText_onComplete: return "RichText_onComplete" + case PeerEventKind.SaveButton_onClick: return "SaveButton_onClick" + case PeerEventKind.Scroll_onScroll: return "Scroll_onScroll" + case PeerEventKind.Scroll_onDidScroll: return "Scroll_onDidScroll" + case PeerEventKind.Scroll_onScrollEdge: return "Scroll_onScrollEdge" + case PeerEventKind.Scroll_onScrollStart: return "Scroll_onScrollStart" + case PeerEventKind.Scroll_onScrollEnd: return "Scroll_onScrollEnd" + case PeerEventKind.Scroll_onScrollStop: return "Scroll_onScrollStop" + case PeerEventKind.Scroll_onScrollFrameBegin: return "Scroll_onScrollFrameBegin" + case PeerEventKind.Search_inputFilter: return "Search_inputFilter" + case PeerEventKind.Search_onEditChange: return "Search_onEditChange" + case PeerEventKind.Search_onSubmit: return "Search_onSubmit" + case PeerEventKind.Search_onChange: return "Search_onChange" + case PeerEventKind.Search_onTextSelectionChange: return "Search_onTextSelectionChange" + case PeerEventKind.Search_onContentScroll: return "Search_onContentScroll" + case PeerEventKind.Search_onCopy: return "Search_onCopy" + case PeerEventKind.Search_onCut: return "Search_onCut" + case PeerEventKind.Search_onPaste: return "Search_onPaste" + case PeerEventKind.Search_onWillInsert: return "Search_onWillInsert" + case PeerEventKind.Search_onDidInsert: return "Search_onDidInsert" + case PeerEventKind.Search_onWillDelete: return "Search_onWillDelete" + case PeerEventKind.Search_onDidDelete: return "Search_onDidDelete" + case PeerEventKind.Select_onSelect: return "Select_onSelect" + case PeerEventKind.Slider_onChange: return "Slider_onChange" + case PeerEventKind.Stepper_onFinish: return "Stepper_onFinish" + case PeerEventKind.Stepper_onSkip: return "Stepper_onSkip" + case PeerEventKind.Stepper_onChange: return "Stepper_onChange" + case PeerEventKind.Stepper_onNext: return "Stepper_onNext" + case PeerEventKind.Stepper_onPrevious: return "Stepper_onPrevious" + case PeerEventKind.Swiper_onChange: return "Swiper_onChange" + case PeerEventKind.Swiper_onAnimationStart: return "Swiper_onAnimationStart" + case PeerEventKind.Swiper_onAnimationEnd: return "Swiper_onAnimationEnd" + case PeerEventKind.Swiper_onGestureSwipe: return "Swiper_onGestureSwipe" + case PeerEventKind.Swiper_onContentDidScroll: return "Swiper_onContentDidScroll" + case PeerEventKind.Tabs_onChange: return "Tabs_onChange" + case PeerEventKind.Tabs_onTabBarClick: return "Tabs_onTabBarClick" + case PeerEventKind.Tabs_onAnimationStart: return "Tabs_onAnimationStart" + case PeerEventKind.Tabs_onAnimationEnd: return "Tabs_onAnimationEnd" + case PeerEventKind.Tabs_onGestureSwipe: return "Tabs_onGestureSwipe" + case PeerEventKind.Tabs_customContentTransition: return "Tabs_customContentTransition" + case PeerEventKind.Tabs_onContentWillChange: return "Tabs_onContentWillChange" + case PeerEventKind.TabContent_onWillShow: return "TabContent_onWillShow" + case PeerEventKind.TabContent_onWillHide: return "TabContent_onWillHide" + case PeerEventKind.Text_onCopy: return "Text_onCopy" + case PeerEventKind.Text_onTextSelectionChange: return "Text_onTextSelectionChange" + case PeerEventKind.TextArea_inputFilter: return "TextArea_inputFilter" + case PeerEventKind.TextArea_onSubmit: return "TextArea_onSubmit" + case PeerEventKind.TextArea_onChange: return "TextArea_onChange" + case PeerEventKind.TextArea_onTextSelectionChange: return "TextArea_onTextSelectionChange" + case PeerEventKind.TextArea_onContentScroll: return "TextArea_onContentScroll" + case PeerEventKind.TextArea_onEditChange: return "TextArea_onEditChange" + case PeerEventKind.TextArea_onCopy: return "TextArea_onCopy" + case PeerEventKind.TextArea_onCut: return "TextArea_onCut" + case PeerEventKind.TextArea_onPaste: return "TextArea_onPaste" + case PeerEventKind.TextArea_onWillInsert: return "TextArea_onWillInsert" + case PeerEventKind.TextArea_onDidInsert: return "TextArea_onDidInsert" + case PeerEventKind.TextArea_onWillDelete: return "TextArea_onWillDelete" + case PeerEventKind.TextArea_onDidDelete: return "TextArea_onDidDelete" + case PeerEventKind.TextClock_onDateChange: return "TextClock_onDateChange" case PeerEventKind.TextInput_onEditChanged: return "TextInput_onEditChanged" + case PeerEventKind.TextInput_onEditChange: return "TextInput_onEditChange" + case PeerEventKind.TextInput_onSubmit: return "TextInput_onSubmit" + case PeerEventKind.TextInput_onChange: return "TextInput_onChange" + case PeerEventKind.TextInput_onTextSelectionChange: return "TextInput_onTextSelectionChange" + case PeerEventKind.TextInput_onContentScroll: return "TextInput_onContentScroll" + case PeerEventKind.TextInput_inputFilter: return "TextInput_inputFilter" + case PeerEventKind.TextInput_onCopy: return "TextInput_onCopy" + case PeerEventKind.TextInput_onCut: return "TextInput_onCut" + case PeerEventKind.TextInput_onPaste: return "TextInput_onPaste" + case PeerEventKind.TextInput_onSecurityStateChange: return "TextInput_onSecurityStateChange" + case PeerEventKind.TextInput_onWillInsert: return "TextInput_onWillInsert" + case PeerEventKind.TextInput_onDidInsert: return "TextInput_onDidInsert" + case PeerEventKind.TextInput_onWillDelete: return "TextInput_onWillDelete" + case PeerEventKind.TextInput_onDidDelete: return "TextInput_onDidDelete" case PeerEventKind.TextPicker_onAccept: return "TextPicker_onAccept" case PeerEventKind.TextPicker_onCancel: return "TextPicker_onCancel" case PeerEventKind.TextPicker_onChange: return "TextPicker_onChange" - case PeerEventKind.UIExtensionComponent_onTerminated: return "UIExtensionComponent_onTerminated" - case PeerEventKind.Web_onNativeEmbedLifecycleChange: return "Web_onNativeEmbedLifecycleChange" + case PeerEventKind.TextTimer_onTimer: return "TextTimer_onTimer" + case PeerEventKind.TimePicker_onChange: return "TimePicker_onChange" + case PeerEventKind.Toggle_onChange: return "Toggle_onChange" + case PeerEventKind.Video_onStart: return "Video_onStart" + case PeerEventKind.Video_onPause: return "Video_onPause" + case PeerEventKind.Video_onFinish: return "Video_onFinish" + case PeerEventKind.Video_onFullscreenChange: return "Video_onFullscreenChange" + case PeerEventKind.Video_onPrepared: return "Video_onPrepared" + case PeerEventKind.Video_onSeeking: return "Video_onSeeking" + case PeerEventKind.Video_onSeeked: return "Video_onSeeked" + case PeerEventKind.Video_onUpdate: return "Video_onUpdate" + case PeerEventKind.Video_onError: return "Video_onError" + case PeerEventKind.Video_onStop: return "Video_onStop" + case PeerEventKind.Web_onPageEnd: return "Web_onPageEnd" + case PeerEventKind.Web_onPageBegin: return "Web_onPageBegin" + case PeerEventKind.Web_onProgressChange: return "Web_onProgressChange" + case PeerEventKind.Web_onTitleReceive: return "Web_onTitleReceive" + case PeerEventKind.Web_onGeolocationHide: return "Web_onGeolocationHide" + case PeerEventKind.Web_onGeolocationShow: return "Web_onGeolocationShow" + case PeerEventKind.Web_onRequestSelected: return "Web_onRequestSelected" + case PeerEventKind.Web_onAlert: return "Web_onAlert" + case PeerEventKind.Web_onBeforeUnload: return "Web_onBeforeUnload" + case PeerEventKind.Web_onConfirm: return "Web_onConfirm" + case PeerEventKind.Web_onPrompt: return "Web_onPrompt" + case PeerEventKind.Web_onConsole: return "Web_onConsole" + case PeerEventKind.Web_onErrorReceive: return "Web_onErrorReceive" + case PeerEventKind.Web_onHttpErrorReceive: return "Web_onHttpErrorReceive" + case PeerEventKind.Web_onDownloadStart: return "Web_onDownloadStart" + case PeerEventKind.Web_onRefreshAccessedHistory: return "Web_onRefreshAccessedHistory" + case PeerEventKind.Web_onUrlLoadIntercept: return "Web_onUrlLoadIntercept" + case PeerEventKind.Web_onSslErrorReceive: return "Web_onSslErrorReceive" case PeerEventKind.Web_onRenderExited0: return "Web_onRenderExited0" + case PeerEventKind.Web_onShowFileSelector: return "Web_onShowFileSelector" case PeerEventKind.Web_onRenderExited1: return "Web_onRenderExited1" - case PeerEventKind.Web_onHttpErrorReceive: return "Web_onHttpErrorReceive" + case PeerEventKind.Web_onFileSelectorShow: return "Web_onFileSelectorShow" + case PeerEventKind.Web_onResourceLoad: return "Web_onResourceLoad" + case PeerEventKind.Web_onFullScreenExit: return "Web_onFullScreenExit" + case PeerEventKind.Web_onFullScreenEnter: return "Web_onFullScreenEnter" + case PeerEventKind.Web_onScaleChange: return "Web_onScaleChange" + case PeerEventKind.Web_onHttpAuthRequest: return "Web_onHttpAuthRequest" + case PeerEventKind.Web_onInterceptRequest: return "Web_onInterceptRequest" + case PeerEventKind.Web_onPermissionRequest: return "Web_onPermissionRequest" + case PeerEventKind.Web_onScreenCaptureRequest: return "Web_onScreenCaptureRequest" + case PeerEventKind.Web_onContextMenuShow: return "Web_onContextMenuShow" + case PeerEventKind.Web_onContextMenuHide: return "Web_onContextMenuHide" + case PeerEventKind.Web_onSearchResultReceive: return "Web_onSearchResultReceive" + case PeerEventKind.Web_onScroll: return "Web_onScroll" + case PeerEventKind.Web_onSslErrorEventReceive: return "Web_onSslErrorEventReceive" + case PeerEventKind.Web_onSslErrorEvent: return "Web_onSslErrorEvent" + case PeerEventKind.Web_onClientAuthenticationRequest: return "Web_onClientAuthenticationRequest" + case PeerEventKind.Web_onWindowNew: return "Web_onWindowNew" + case PeerEventKind.Web_onWindowExit: return "Web_onWindowExit" + case PeerEventKind.Web_onInterceptKeyEvent: return "Web_onInterceptKeyEvent" + case PeerEventKind.Web_onTouchIconUrlReceived: return "Web_onTouchIconUrlReceived" + case PeerEventKind.Web_onFaviconReceived: return "Web_onFaviconReceived" + case PeerEventKind.Web_onPageVisible: return "Web_onPageVisible" + case PeerEventKind.Web_onDataResubmitted: return "Web_onDataResubmitted" + case PeerEventKind.Web_onAudioStateChanged: return "Web_onAudioStateChanged" + case PeerEventKind.Web_onFirstContentfulPaint: return "Web_onFirstContentfulPaint" + case PeerEventKind.Web_onFirstMeaningfulPaint: return "Web_onFirstMeaningfulPaint" + case PeerEventKind.Web_onLargestContentfulPaint: return "Web_onLargestContentfulPaint" + case PeerEventKind.Web_onLoadIntercept: return "Web_onLoadIntercept" + case PeerEventKind.Web_onControllerAttached: return "Web_onControllerAttached" + case PeerEventKind.Web_onOverScroll: return "Web_onOverScroll" + case PeerEventKind.Web_onSafeBrowsingCheckResult: return "Web_onSafeBrowsingCheckResult" + case PeerEventKind.Web_onNavigationEntryCommitted: return "Web_onNavigationEntryCommitted" + case PeerEventKind.Web_onIntelligentTrackingPreventionResult: return "Web_onIntelligentTrackingPreventionResult" + case PeerEventKind.Web_onNativeEmbedLifecycleChange: return "Web_onNativeEmbedLifecycleChange" + case PeerEventKind.Web_onNativeEmbedVisibilityChange: return "Web_onNativeEmbedVisibilityChange" + case PeerEventKind.Web_onNativeEmbedGestureEvent: return "Web_onNativeEmbedGestureEvent" + case PeerEventKind.Web_onOverrideUrlLoading: return "Web_onOverrideUrlLoading" + case PeerEventKind.Web_onRenderProcessNotResponding: return "Web_onRenderProcessNotResponding" + case PeerEventKind.Web_onRenderProcessResponding: return "Web_onRenderProcessResponding" + case PeerEventKind.Web_onViewportFitChanged: return "Web_onViewportFitChanged" + case PeerEventKind.Web_onInterceptKeyboardAttach: return "Web_onInterceptKeyboardAttach" + case PeerEventKind.Web_onAdsBlocked: return "Web_onAdsBlocked" + case PeerEventKind.XComponent_onLoad: return "XComponent_onLoad" + case PeerEventKind.XComponent_onDestroy: return "XComponent_onDestroy" + case PeerEventKind.SideBarContainer_onChange: return "SideBarContainer_onChange" + case PeerEventKind.WaterFlow_onReachStart: return "WaterFlow_onReachStart" + case PeerEventKind.WaterFlow_onReachEnd: return "WaterFlow_onReachEnd" + case PeerEventKind.WaterFlow_onScrollFrameBegin: return "WaterFlow_onScrollFrameBegin" + case PeerEventKind.WaterFlow_onScrollIndex: return "WaterFlow_onScrollIndex" + case PeerEventKind.UIExtensionComponent_onTerminated: return "UIExtensionComponent_onTerminated" default: throw new Error(`Unknown kind ${kind}`) } } export class PeerEventsProperties { + AbilityComponent_onConnect?: (() => void) + AbilityComponent_onDisconnect?: (() => void) + AlphabetIndexer_onSelected?: ((index: number) => void) + AlphabetIndexer_onSelect?: ((index: number) => void) + AlphabetIndexer_onRequestPopupData?: ((index: number) => Array) + AlphabetIndexer_onPopupSelect?: ((index: number) => void) + Animator_onStart?: (() => void) + Animator_onPause?: (() => void) + Animator_onRepeat?: (() => void) + Animator_onCancel?: (() => void) + Animator_onFinish?: (() => void) + Animator_onFrame?: ((value: number) => void) + Calendar_onSelectChange?: ((event: CalendarSelectedDate) => void) + Calendar_onRequestData?: ((event: CalendarRequestedData) => void) + CalendarPicker_onChange?: Callback Canvas_onReady?: (() => void) - CommonMethod_onChildTouchTest?: ((value: Array) => string) - CommonMethod_onGestureRecognizerJudgeBegin?: ((event: BaseGestureEvent, current: GestureRecognizer, recognizers: Array) => GestureJudgeResult) + Checkbox_onChange?: ((value: boolean) => void) + CheckboxGroup_onChange?: ((value: CheckboxGroupResult) => void) + CommonMethod_onChildTouchTest?: ((value: Array) => TouchResult) CommonMethod_onClick0?: ((event: ClickEvent) => void) CommonMethod_onClick1?: Callback + CommonMethod_onHover?: ((isHover: boolean, event: HoverEvent) => void) + CommonMethod_onAccessibilityHover?: ((isHover: boolean, event: AccessibilityHoverEvent) => void) + CommonMethod_onMouse?: ((event: MouseEvent) => void) + CommonMethod_onTouch?: ((event: TouchEvent) => void) + CommonMethod_onKeyEvent?: ((event: KeyEvent) => void) + CommonMethod_onKeyPreIme?: Callback + CommonMethod_onFocus?: (() => void) + CommonMethod_onBlur?: (() => void) + CommonMethod_onAppear?: (() => void) + CommonMethod_onDisAppear?: (() => void) + CommonMethod_onAttach?: Callback + CommonMethod_onDetach?: Callback + CommonMethod_onAreaChange?: ((oldValue: Area, newValue: Area) => void) + CommonMethod_onDragStart?: ((event: DragEvent, extraParams: string|undefined) => CustomBuilder | DragItemInfo) + CommonMethod_onDragEnter?: ((event: DragEvent, extraParams: string|undefined) => void) + CommonMethod_onDragMove?: ((event: DragEvent, extraParams: string|undefined) => void) + CommonMethod_onDragLeave?: ((event: DragEvent, extraParams: string|undefined) => void) + CommonMethod_onDrop?: ((event: DragEvent, extraParams: string|undefined) => void) + CommonMethod_onDragEnd?: ((event: DragEvent, extraParams: string|undefined) => void) + CommonMethod_onPreDrag?: Callback + CommonMethod_onVisibleAreaChange?: ((isExpanding: boolean, currentRatio: number) => void) + CommonMethod_keyboardShortcut?: (() => void) + CommonMethod_onGestureJudgeBegin?: ((gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult) + CommonMethod_onGestureRecognizerJudgeBegin?: ((event: BaseGestureEvent, current: GestureRecognizer, recognizers: Array) => GestureJudgeResult) + CommonMethod_shouldBuiltInRecognizerParallelWith?: ((current: GestureRecognizer, others: Array) => GestureRecognizer) + CommonMethod_onTouchIntercept?: Callback + CommonMethod_onSizeChange?: ((oldValue: SizeOptions, newValue: SizeOptions) => void) + ScrollableCommonMethod_onScroll?: ((scrollOffset: number, scrollState: ScrollState) => void) + ScrollableCommonMethod_onDidScroll?: ((scrollOffset: number, scrollState: ScrollState) => void) + ScrollableCommonMethod_onReachStart?: (() => void) + ScrollableCommonMethod_onReachEnd?: (() => void) + ScrollableCommonMethod_onScrollStart?: (() => void) + ScrollableCommonMethod_onScrollStop?: (() => void) + Counter_onInc?: (() => void) + Counter_onDec?: (() => void) + DatePicker_onChange?: ((value: DatePickerResult) => void) + DatePicker_onDateChange?: Callback + FolderStack_onFolderStateChange?: ((event: OnFoldStatusChangeInfo) => void) + FolderStack_onHoverStatusChange?: ((param: HoverEventParam) => void) FormComponent_onAcquired?: Callback + FormComponent_onError?: ((info: LITERAL_ErrcodeNumberMsgString) => void) + FormComponent_onRouter?: ((info: Object) => void) + FormComponent_onUninstall?: Callback + FormComponent_onLoad?: (() => void) + Grid_onScrollBarUpdate?: ((index: number, offset: number) => ComputedBarAttribute) + Grid_onScrollIndex?: ((first: number, last: number) => void) + Grid_onItemDragStart?: ((event: ItemDragInfo, itemIndex: number) => ((() => Object))) + Grid_onItemDragEnter?: ((event: ItemDragInfo) => void) + Grid_onItemDragMove?: ((event: ItemDragInfo, itemIndex: number, insertIndex: number) => void) + Grid_onItemDragLeave?: ((event: ItemDragInfo, itemIndex: number) => void) + Grid_onItemDrop?: ((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => void) + Grid_onScroll?: ((scrollOffset: number, scrollState: ScrollState) => void) + Grid_onReachStart?: (() => void) + Grid_onReachEnd?: (() => void) + Grid_onScrollStart?: (() => void) + Grid_onScrollStop?: (() => void) + Grid_onScrollFrameBegin?: ((offset: number, state: ScrollState) => LITERAL_OffsetRemainNumber) + GridItem_onSelect?: ((isSelected: boolean) => void) + GridRow_onBreakpointChange?: ((breakpoints: string) => void) + Image_onComplete?: ((event: LITERAL_WidthNumberHeightNumberComponentWidthNumberComponentHeightNumberLoadingStatusNumberContentWidthNumberContentHeightNumberContentOffsetXNumberContentOffsetYNumber|undefined) => void) + Image_onError?: ((error: ImageError) => void) + Image_onFinish?: (() => void) + ImageAnimator_onStart?: (() => void) + ImageAnimator_onPause?: (() => void) + ImageAnimator_onRepeat?: (() => void) + ImageAnimator_onCancel?: (() => void) + ImageAnimator_onFinish?: (() => void) + ImageSpan_onComplete?: ((result: ImageLoadResult) => void) + ImageSpan_onError?: ((error: ImageError) => void) + List_onScroll?: ((scrollOffset: number, scrollState: ScrollState) => void) + List_onScrollIndex?: ((start: number, end: number, center: number) => void) List_onScrollVisibleContentChange?: ((start: VisibleListContentInfo, end: VisibleListContentInfo) => void) + List_onReachStart?: (() => void) + List_onReachEnd?: (() => void) + List_onScrollStart?: (() => void) + List_onScrollStop?: (() => void) + List_onItemDelete?: ((index: number) => boolean) + List_onItemMove?: ((from: number, to: number) => boolean) + List_onItemDragStart?: ((event: ItemDragInfo, itemIndex: number) => (((() => Object)))) + List_onItemDragEnter?: ((event: ItemDragInfo) => void) + List_onItemDragMove?: ((event: ItemDragInfo, itemIndex: number, insertIndex: number) => void) + List_onItemDragLeave?: ((event: ItemDragInfo, itemIndex: number) => void) + List_onItemDrop?: ((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => void) + List_onScrollFrameBegin?: ((offset: number, state: ScrollState) => LITERAL_OffsetRemainNumber) + ListItem_onSelect?: ((isSelected: boolean) => void) + LocationButton_onClick?: ((event: ClickEvent, result: LocationButtonOnClickResult) => void) + Marquee_onStart?: (() => void) + Marquee_onBounce?: (() => void) + Marquee_onFinish?: (() => void) + MenuItem_onChange?: ((selected: boolean) => void) NavDestination_onShown?: (() => void) NavDestination_onHidden?: (() => void) NavDestination_onBackPressed?: (() => boolean) @@ -264,46 +2201,435 @@ export class PeerEventsProperties { NavDestination_onWillDisappear?: Callback NavDestination_onWillShow?: Callback NavDestination_onWillHide?: Callback + NavRouter_onStateChange?: ((isActivated: boolean) => void) Navigation_onTitleModeChange?: ((titleMode: NavigationTitleMode) => void) Navigation_onNavBarStateChange?: ((isVisible: boolean) => void) Navigation_onNavigationModeChange?: ((mode: NavigationMode) => void) Navigation_navDestination?: ((name: string, param: Object) => void) Navigation_customNavContentTransition?: ((from: NavContentInfo, to: NavContentInfo, operation: NavigationOperation) => NavigationAnimatedTransition | undefined) - Test_testFunction?: ((a: number) => boolean) - Test_testFunctionUndefined?: ((a: number) => boolean | undefined) + Panel_onChange?: ((width: number, height: number, mode: PanelMode) => void) + Panel_onHeightChange?: ((value: number) => void) + PasteButton_onClick?: ((event: ClickEvent, result: PasteButtonOnClickResult) => void) + PatternLock_onPatternComplete?: ((input: Array) => void) + PluginComponent_onComplete?: (() => void) + PluginComponent_onError?: ((info: LITERAL_ErrcodeNumberMsgString) => void) + Radio_onChange?: ((isChecked: boolean) => void) + Rating_onChange?: ((value: number) => void) + Refresh_onStateChange?: ((state: RefreshStatus) => void) + Refresh_onRefreshing?: (() => void) + Refresh_onOffsetChange?: Callback + RichEditor_onReady?: Callback + RichEditor_onSelect?: Callback + RichEditor_onSelectionChange?: Callback + RichEditor_aboutToIMEInput?: Callback + RichEditor_onIMEInputComplete?: Callback + RichEditor_onDidIMEInput?: Callback + RichEditor_aboutToDelete?: Callback + RichEditor_onDeleteComplete?: Callback + RichEditor_onPaste?: ((event: PasteEvent|undefined) => void) + RichEditor_onEditingChange?: Callback + RichEditor_onSubmit?: ((enterKey: EnterKeyType, event: SubmitEvent) => void) + RichEditor_onWillChange?: Callback + RichEditor_onDidChange?: ((rangeBefore: TextRange, rangeAfter: TextRange) => void) + RichEditor_onCut?: Callback + RichEditor_onCopy?: Callback + RichText_onStart?: (() => void) + RichText_onComplete?: (() => void) + SaveButton_onClick?: ((event: ClickEvent, result: SaveButtonOnClickResult) => void) + Scroll_onScroll?: ((xOffset: number, yOffset: number) => void) + Scroll_onDidScroll?: ((xOffset: number, yOffset: number, scrollState: ScrollState) => void) + Scroll_onScrollEdge?: ((side: Edge) => void) + Scroll_onScrollStart?: (() => void) + Scroll_onScrollEnd?: (() => void) + Scroll_onScrollStop?: (() => void) + Scroll_onScrollFrameBegin?: ((offset: number, state: ScrollState) => OnScrollFrameBeginHandlerResult) + Search_inputFilter?: Callback + Search_onEditChange?: Callback + Search_onSubmit?: ((value: string) => void) + Search_onChange?: ((value: string, previewText: PreviewText|undefined) => void) + Search_onTextSelectionChange?: ((selectionStart: number, selectionEnd: number) => void) + Search_onContentScroll?: ((totalOffsetX: number, totalOffsetY: number) => void) + Search_onCopy?: ((value: string) => void) + Search_onCut?: ((value: string) => void) + Search_onPaste?: ((value: string, event: PasteEvent) => void) + Search_onWillInsert?: Callback + Search_onDidInsert?: Callback + Search_onWillDelete?: Callback + Search_onDidDelete?: Callback + Select_onSelect?: ((index: number, value: string) => void) + Slider_onChange?: ((value: number, mode: SliderChangeMode) => void) + Stepper_onFinish?: (() => void) + Stepper_onSkip?: (() => void) + Stepper_onChange?: ((prevIndex: number, index: number) => void) + Stepper_onNext?: ((index: number, pendingIndex: number) => void) + Stepper_onPrevious?: ((index: number, pendingIndex: number) => void) + Swiper_onChange?: ((index: number) => void) + Swiper_onAnimationStart?: ((index: number, targetIndex: number, extraInfo: SwiperAnimationEvent) => void) + Swiper_onAnimationEnd?: ((index: number, extraInfo: SwiperAnimationEvent) => void) + Swiper_onGestureSwipe?: ((index: number, extraInfo: SwiperAnimationEvent) => void) + Swiper_onContentDidScroll?: ((selectedIndex: number, index: number, position: number, mainAxisLength: number) => void) + Tabs_onChange?: ((index: number) => void) + Tabs_onTabBarClick?: ((index: number) => void) + Tabs_onAnimationStart?: ((index: number, targetIndex: number, event: TabsAnimationEvent) => void) + Tabs_onAnimationEnd?: ((index: number, event: TabsAnimationEvent) => void) + Tabs_onGestureSwipe?: ((index: number, event: TabsAnimationEvent) => void) + Tabs_customContentTransition?: ((from: number, to: number) => TabContentAnimatedTransition | undefined) + Tabs_onContentWillChange?: ((currentIndex: number, comingIndex: number) => boolean) + TabContent_onWillShow?: (() => void) + TabContent_onWillHide?: (() => void) + Text_onCopy?: ((value: string) => void) + Text_onTextSelectionChange?: ((selectionStart: number, selectionEnd: number) => void) + TextArea_inputFilter?: ((value: string) => void) + TextArea_onSubmit?: ((enterKey: EnterKeyType) => void) + TextArea_onChange?: ((value: string, previewText: PreviewText|undefined) => void) + TextArea_onTextSelectionChange?: ((selectionStart: number, selectionEnd: number) => void) + TextArea_onContentScroll?: ((totalOffsetX: number, totalOffsetY: number) => void) + TextArea_onEditChange?: ((isEditing: boolean) => void) + TextArea_onCopy?: ((value: string) => void) + TextArea_onCut?: ((value: string) => void) + TextArea_onPaste?: ((value: string, event: PasteEvent) => void) + TextArea_onWillInsert?: Callback + TextArea_onDidInsert?: Callback + TextArea_onWillDelete?: Callback + TextArea_onDidDelete?: Callback + TextClock_onDateChange?: ((value: number) => void) TextInput_onEditChanged?: ((isEditing: boolean) => void) + TextInput_onEditChange?: ((isEditing: boolean) => void) + TextInput_onSubmit?: ((enterKey: EnterKeyType, event: SubmitEvent) => void) + TextInput_onChange?: ((value: string, previewText: PreviewText|undefined) => void) + TextInput_onTextSelectionChange?: ((selectionStart: number, selectionEnd: number) => void) + TextInput_onContentScroll?: ((totalOffsetX: number, totalOffsetY: number) => void) + TextInput_inputFilter?: ((value: string) => void) + TextInput_onCopy?: ((value: string) => void) + TextInput_onCut?: ((value: string) => void) + TextInput_onPaste?: ((value: string, event: PasteEvent) => void) + TextInput_onSecurityStateChange?: Callback + TextInput_onWillInsert?: Callback + TextInput_onDidInsert?: Callback + TextInput_onWillDelete?: Callback + TextInput_onDidDelete?: Callback TextPicker_onAccept?: ((value: string, index: number) => void) TextPicker_onCancel?: (() => void) TextPicker_onChange?: ((value: string | string[], index: number | number[]) => void) - UIExtensionComponent_onTerminated?: Callback - Web_onNativeEmbedLifecycleChange?: ((event: NativeEmbedDataInfo) => void) + TextTimer_onTimer?: ((utc: number, elapsedTime: number) => void) + TimePicker_onChange?: ((value: TimePickerResult) => void) + Toggle_onChange?: ((isOn: boolean) => void) + Video_onStart?: (() => void) + Video_onPause?: (() => void) + Video_onFinish?: (() => void) + Video_onFullscreenChange?: ((event: LITERAL_FullscreenBoolean) => void) + Video_onPrepared?: ((event: LITERAL_DurationNumber) => void) + Video_onSeeking?: ((event: LITERAL_TimeNumber) => void) + Video_onSeeked?: ((event: LITERAL_TimeNumber) => void) + Video_onUpdate?: ((event: LITERAL_TimeNumber) => void) + Video_onError?: (() => void) + Video_onStop?: Callback + Web_onPageEnd?: Callback + Web_onPageBegin?: Callback + Web_onProgressChange?: Callback + Web_onTitleReceive?: Callback + Web_onGeolocationHide?: (() => void) + Web_onGeolocationShow?: Callback + Web_onRequestSelected?: (() => void) + Web_onAlert?: Callback + Web_onBeforeUnload?: Callback + Web_onConfirm?: Callback + Web_onPrompt?: Callback + Web_onConsole?: Callback + Web_onErrorReceive?: Callback + Web_onHttpErrorReceive?: Callback + Web_onDownloadStart?: Callback + Web_onRefreshAccessedHistory?: Callback + Web_onUrlLoadIntercept?: ((event: LITERAL_DataStringWebResourceRequest|undefined) => boolean) + Web_onSslErrorReceive?: ((event: LITERAL_HandlerFunctionErrorObject|undefined) => void) Web_onRenderExited0?: Callback + Web_onShowFileSelector?: Callback Web_onRenderExited1?: ((event: LITERAL_DetailObject|undefined) => boolean) - Web_onHttpErrorReceive?: Callback + Web_onFileSelectorShow?: ((event: LITERAL_CallbackFunctionFileSelectorObject|undefined) => void) + Web_onResourceLoad?: Callback + Web_onFullScreenExit?: (() => void) + Web_onFullScreenEnter?: ((event: FullScreenEnterEvent) => void) + Web_onScaleChange?: Callback + Web_onHttpAuthRequest?: Callback + Web_onInterceptRequest?: Callback + Web_onPermissionRequest?: Callback + Web_onScreenCaptureRequest?: Callback + Web_onContextMenuShow?: Callback + Web_onContextMenuHide?: (() => void) + Web_onSearchResultReceive?: Callback + Web_onScroll?: Callback + Web_onSslErrorEventReceive?: Callback + Web_onSslErrorEvent?: ((sslErrorEvent: SslErrorEvent) => void) + Web_onClientAuthenticationRequest?: Callback + Web_onWindowNew?: Callback + Web_onWindowExit?: (() => void) + Web_onInterceptKeyEvent?: ((event: KeyEvent) => boolean) + Web_onTouchIconUrlReceived?: Callback + Web_onFaviconReceived?: Callback + Web_onPageVisible?: Callback + Web_onDataResubmitted?: Callback + Web_onAudioStateChanged?: Callback + Web_onFirstContentfulPaint?: Callback + Web_onFirstMeaningfulPaint?: ((firstMeaningfulPaint: FirstMeaningfulPaint) => void) + Web_onLargestContentfulPaint?: ((largestContentfulPaint: LargestContentfulPaint) => void) + Web_onLoadIntercept?: Callback + Web_onControllerAttached?: (() => void) + Web_onOverScroll?: Callback + Web_onSafeBrowsingCheckResult?: ((threatType: ThreatType) => void) + Web_onNavigationEntryCommitted?: ((loadCommittedDetails: LoadCommittedDetails) => void) + Web_onIntelligentTrackingPreventionResult?: ((details: IntelligentTrackingPreventionDetails) => void) + Web_onNativeEmbedLifecycleChange?: ((event: NativeEmbedDataInfo) => void) + Web_onNativeEmbedVisibilityChange?: ((nativeEmbedVisibilityInfo: NativeEmbedVisibilityInfo) => void) + Web_onNativeEmbedGestureEvent?: ((event: NativeEmbedTouchInfo) => void) + Web_onOverrideUrlLoading?: ((webResourceRequest: WebResourceRequest) => boolean) + Web_onRenderProcessNotResponding?: ((data: RenderProcessNotRespondingData) => void) + Web_onRenderProcessResponding?: (() => void) + Web_onViewportFitChanged?: ((viewportFit: ViewportFit) => void) + Web_onInterceptKeyboardAttach?: ((keyboardCallbackInfo: WebKeyboardCallbackInfo) => WebKeyboardOptions) + Web_onAdsBlocked?: ((details: AdsBlockedDetails) => void) + XComponent_onLoad?: ((event: Object|undefined) => void) + XComponent_onDestroy?: (() => void) + SideBarContainer_onChange?: ((value: boolean) => void) + WaterFlow_onReachStart?: (() => void) + WaterFlow_onReachEnd?: (() => void) + WaterFlow_onScrollFrameBegin?: ((offset: number, state: ScrollState) => LITERAL_OffsetRemainNumber) + WaterFlow_onScrollIndex?: ((first: number, last: number) => void) + UIExtensionComponent_onTerminated?: Callback } export function deliverGeneratedPeerEvent(event: PeerEvent, properties: PeerEventsProperties): void { switch (event.kind) { + case PeerEventKind.AbilityComponent_onConnect: properties.AbilityComponent_onConnect?.(); break + case PeerEventKind.AbilityComponent_onDisconnect: properties.AbilityComponent_onDisconnect?.(); break + case PeerEventKind.AlphabetIndexer_onSelected: properties.AlphabetIndexer_onSelected?.((event as AlphabetIndexer_onSelected_event).index); break + case PeerEventKind.AlphabetIndexer_onSelect: properties.AlphabetIndexer_onSelect?.((event as AlphabetIndexer_onSelect_event).index); break + case PeerEventKind.AlphabetIndexer_onRequestPopupData: properties.AlphabetIndexer_onRequestPopupData?.((event as AlphabetIndexer_onRequestPopupData_event).index); break + case PeerEventKind.AlphabetIndexer_onPopupSelect: properties.AlphabetIndexer_onPopupSelect?.((event as AlphabetIndexer_onPopupSelect_event).index); break + case PeerEventKind.Animator_onStart: properties.Animator_onStart?.(); break + case PeerEventKind.Animator_onPause: properties.Animator_onPause?.(); break + case PeerEventKind.Animator_onRepeat: properties.Animator_onRepeat?.(); break + case PeerEventKind.Animator_onCancel: properties.Animator_onCancel?.(); break + case PeerEventKind.Animator_onFinish: properties.Animator_onFinish?.(); break + case PeerEventKind.Animator_onFrame: properties.Animator_onFrame?.((event as Animator_onFrame_event).value); break + case PeerEventKind.Calendar_onSelectChange: properties.Calendar_onSelectChange?.((event as Calendar_onSelectChange_event).event); break + case PeerEventKind.Calendar_onRequestData: properties.Calendar_onRequestData?.((event as Calendar_onRequestData_event).event); break case PeerEventKind.Canvas_onReady: properties.Canvas_onReady?.(); break + case PeerEventKind.Checkbox_onChange: properties.Checkbox_onChange?.((event as Checkbox_onChange_event).value); break + case PeerEventKind.CheckboxGroup_onChange: properties.CheckboxGroup_onChange?.((event as CheckboxGroup_onChange_event).value); break case PeerEventKind.CommonMethod_onChildTouchTest: properties.CommonMethod_onChildTouchTest?.((event as CommonMethod_onChildTouchTest_event).value); break - case PeerEventKind.CommonMethod_onGestureRecognizerJudgeBegin: properties.CommonMethod_onGestureRecognizerJudgeBegin?.((event as CommonMethod_onGestureRecognizerJudgeBegin_event).event, (event as CommonMethod_onGestureRecognizerJudgeBegin_event).current, (event as CommonMethod_onGestureRecognizerJudgeBegin_event).recognizers); break case PeerEventKind.CommonMethod_onClick0: properties.CommonMethod_onClick0?.((event as CommonMethod_onClick0_event).event); break + case PeerEventKind.CommonMethod_onHover: properties.CommonMethod_onHover?.((event as CommonMethod_onHover_event).isHover, (event as CommonMethod_onHover_event).event); break + case PeerEventKind.CommonMethod_onAccessibilityHover: properties.CommonMethod_onAccessibilityHover?.((event as CommonMethod_onAccessibilityHover_event).isHover, (event as CommonMethod_onAccessibilityHover_event).event); break + case PeerEventKind.CommonMethod_onMouse: properties.CommonMethod_onMouse?.((event as CommonMethod_onMouse_event).event); break + case PeerEventKind.CommonMethod_onTouch: properties.CommonMethod_onTouch?.((event as CommonMethod_onTouch_event).event); break + case PeerEventKind.CommonMethod_onKeyEvent: properties.CommonMethod_onKeyEvent?.((event as CommonMethod_onKeyEvent_event).event); break + case PeerEventKind.CommonMethod_onFocus: properties.CommonMethod_onFocus?.(); break + case PeerEventKind.CommonMethod_onBlur: properties.CommonMethod_onBlur?.(); break + case PeerEventKind.CommonMethod_onAppear: properties.CommonMethod_onAppear?.(); break + case PeerEventKind.CommonMethod_onDisAppear: properties.CommonMethod_onDisAppear?.(); break + case PeerEventKind.CommonMethod_onAreaChange: properties.CommonMethod_onAreaChange?.((event as CommonMethod_onAreaChange_event).oldValue, (event as CommonMethod_onAreaChange_event).newValue); break + case PeerEventKind.CommonMethod_onDragStart: properties.CommonMethod_onDragStart?.((event as CommonMethod_onDragStart_event).event, (event as CommonMethod_onDragStart_event).extraParams); break + case PeerEventKind.CommonMethod_onDragEnter: properties.CommonMethod_onDragEnter?.((event as CommonMethod_onDragEnter_event).event, (event as CommonMethod_onDragEnter_event).extraParams); break + case PeerEventKind.CommonMethod_onDragMove: properties.CommonMethod_onDragMove?.((event as CommonMethod_onDragMove_event).event, (event as CommonMethod_onDragMove_event).extraParams); break + case PeerEventKind.CommonMethod_onDragLeave: properties.CommonMethod_onDragLeave?.((event as CommonMethod_onDragLeave_event).event, (event as CommonMethod_onDragLeave_event).extraParams); break + case PeerEventKind.CommonMethod_onDrop: properties.CommonMethod_onDrop?.((event as CommonMethod_onDrop_event).event, (event as CommonMethod_onDrop_event).extraParams); break + case PeerEventKind.CommonMethod_onDragEnd: properties.CommonMethod_onDragEnd?.((event as CommonMethod_onDragEnd_event).event, (event as CommonMethod_onDragEnd_event).extraParams); break + case PeerEventKind.CommonMethod_onVisibleAreaChange: properties.CommonMethod_onVisibleAreaChange?.((event as CommonMethod_onVisibleAreaChange_event).isExpanding, (event as CommonMethod_onVisibleAreaChange_event).currentRatio); break + case PeerEventKind.CommonMethod_keyboardShortcut: properties.CommonMethod_keyboardShortcut?.(); break + case PeerEventKind.CommonMethod_onGestureJudgeBegin: properties.CommonMethod_onGestureJudgeBegin?.((event as CommonMethod_onGestureJudgeBegin_event).gestureInfo, (event as CommonMethod_onGestureJudgeBegin_event).event); break + case PeerEventKind.CommonMethod_onGestureRecognizerJudgeBegin: properties.CommonMethod_onGestureRecognizerJudgeBegin?.((event as CommonMethod_onGestureRecognizerJudgeBegin_event).event, (event as CommonMethod_onGestureRecognizerJudgeBegin_event).current, (event as CommonMethod_onGestureRecognizerJudgeBegin_event).recognizers); break + case PeerEventKind.CommonMethod_shouldBuiltInRecognizerParallelWith: properties.CommonMethod_shouldBuiltInRecognizerParallelWith?.((event as CommonMethod_shouldBuiltInRecognizerParallelWith_event).current, (event as CommonMethod_shouldBuiltInRecognizerParallelWith_event).others); break + case PeerEventKind.CommonMethod_onSizeChange: properties.CommonMethod_onSizeChange?.((event as CommonMethod_onSizeChange_event).oldValue, (event as CommonMethod_onSizeChange_event).newValue); break + case PeerEventKind.ScrollableCommonMethod_onScroll: properties.ScrollableCommonMethod_onScroll?.((event as ScrollableCommonMethod_onScroll_event).scrollOffset, (event as ScrollableCommonMethod_onScroll_event).scrollState); break + case PeerEventKind.ScrollableCommonMethod_onDidScroll: properties.ScrollableCommonMethod_onDidScroll?.((event as ScrollableCommonMethod_onDidScroll_event).scrollOffset, (event as ScrollableCommonMethod_onDidScroll_event).scrollState); break + case PeerEventKind.ScrollableCommonMethod_onReachStart: properties.ScrollableCommonMethod_onReachStart?.(); break + case PeerEventKind.ScrollableCommonMethod_onReachEnd: properties.ScrollableCommonMethod_onReachEnd?.(); break + case PeerEventKind.ScrollableCommonMethod_onScrollStart: properties.ScrollableCommonMethod_onScrollStart?.(); break + case PeerEventKind.ScrollableCommonMethod_onScrollStop: properties.ScrollableCommonMethod_onScrollStop?.(); break + case PeerEventKind.Counter_onInc: properties.Counter_onInc?.(); break + case PeerEventKind.Counter_onDec: properties.Counter_onDec?.(); break + case PeerEventKind.DatePicker_onChange: properties.DatePicker_onChange?.((event as DatePicker_onChange_event).value); break + case PeerEventKind.FolderStack_onFolderStateChange: properties.FolderStack_onFolderStateChange?.((event as FolderStack_onFolderStateChange_event).event); break + case PeerEventKind.FolderStack_onHoverStatusChange: properties.FolderStack_onHoverStatusChange?.((event as FolderStack_onHoverStatusChange_event).param); break + case PeerEventKind.FormComponent_onError: properties.FormComponent_onError?.((event as FormComponent_onError_event).info); break + case PeerEventKind.FormComponent_onRouter: properties.FormComponent_onRouter?.((event as FormComponent_onRouter_event).info); break + case PeerEventKind.FormComponent_onLoad: properties.FormComponent_onLoad?.(); break + case PeerEventKind.Grid_onScrollBarUpdate: properties.Grid_onScrollBarUpdate?.((event as Grid_onScrollBarUpdate_event).index, (event as Grid_onScrollBarUpdate_event).offset); break + case PeerEventKind.Grid_onScrollIndex: properties.Grid_onScrollIndex?.((event as Grid_onScrollIndex_event).first, (event as Grid_onScrollIndex_event).last); break + case PeerEventKind.Grid_onItemDragStart: properties.Grid_onItemDragStart?.((event as Grid_onItemDragStart_event).event, (event as Grid_onItemDragStart_event).itemIndex); break + case PeerEventKind.Grid_onItemDragEnter: properties.Grid_onItemDragEnter?.((event as Grid_onItemDragEnter_event).event); break + case PeerEventKind.Grid_onItemDragMove: properties.Grid_onItemDragMove?.((event as Grid_onItemDragMove_event).event, (event as Grid_onItemDragMove_event).itemIndex, (event as Grid_onItemDragMove_event).insertIndex); break + case PeerEventKind.Grid_onItemDragLeave: properties.Grid_onItemDragLeave?.((event as Grid_onItemDragLeave_event).event, (event as Grid_onItemDragLeave_event).itemIndex); break + case PeerEventKind.Grid_onItemDrop: properties.Grid_onItemDrop?.((event as Grid_onItemDrop_event).event, (event as Grid_onItemDrop_event).itemIndex, (event as Grid_onItemDrop_event).insertIndex, (event as Grid_onItemDrop_event).isSuccess); break + case PeerEventKind.Grid_onScroll: properties.Grid_onScroll?.((event as Grid_onScroll_event).scrollOffset, (event as Grid_onScroll_event).scrollState); break + case PeerEventKind.Grid_onReachStart: properties.Grid_onReachStart?.(); break + case PeerEventKind.Grid_onReachEnd: properties.Grid_onReachEnd?.(); break + case PeerEventKind.Grid_onScrollStart: properties.Grid_onScrollStart?.(); break + case PeerEventKind.Grid_onScrollStop: properties.Grid_onScrollStop?.(); break + case PeerEventKind.Grid_onScrollFrameBegin: properties.Grid_onScrollFrameBegin?.((event as Grid_onScrollFrameBegin_event).offset, (event as Grid_onScrollFrameBegin_event).state); break + case PeerEventKind.GridItem_onSelect: properties.GridItem_onSelect?.((event as GridItem_onSelect_event).isSelected); break + case PeerEventKind.GridRow_onBreakpointChange: properties.GridRow_onBreakpointChange?.((event as GridRow_onBreakpointChange_event).breakpoints); break + case PeerEventKind.Image_onComplete: properties.Image_onComplete?.((event as Image_onComplete_event).event); break + case PeerEventKind.Image_onError: properties.Image_onError?.((event as Image_onError_event).error); break + case PeerEventKind.Image_onFinish: properties.Image_onFinish?.(); break + case PeerEventKind.ImageAnimator_onStart: properties.ImageAnimator_onStart?.(); break + case PeerEventKind.ImageAnimator_onPause: properties.ImageAnimator_onPause?.(); break + case PeerEventKind.ImageAnimator_onRepeat: properties.ImageAnimator_onRepeat?.(); break + case PeerEventKind.ImageAnimator_onCancel: properties.ImageAnimator_onCancel?.(); break + case PeerEventKind.ImageAnimator_onFinish: properties.ImageAnimator_onFinish?.(); break + case PeerEventKind.ImageSpan_onComplete: properties.ImageSpan_onComplete?.((event as ImageSpan_onComplete_event).result); break + case PeerEventKind.ImageSpan_onError: properties.ImageSpan_onError?.((event as ImageSpan_onError_event).error); break + case PeerEventKind.List_onScroll: properties.List_onScroll?.((event as List_onScroll_event).scrollOffset, (event as List_onScroll_event).scrollState); break + case PeerEventKind.List_onScrollIndex: properties.List_onScrollIndex?.((event as List_onScrollIndex_event).start, (event as List_onScrollIndex_event).end, (event as List_onScrollIndex_event).center); break case PeerEventKind.List_onScrollVisibleContentChange: properties.List_onScrollVisibleContentChange?.((event as List_onScrollVisibleContentChange_event).start, (event as List_onScrollVisibleContentChange_event).end); break + case PeerEventKind.List_onReachStart: properties.List_onReachStart?.(); break + case PeerEventKind.List_onReachEnd: properties.List_onReachEnd?.(); break + case PeerEventKind.List_onScrollStart: properties.List_onScrollStart?.(); break + case PeerEventKind.List_onScrollStop: properties.List_onScrollStop?.(); break + case PeerEventKind.List_onItemDelete: properties.List_onItemDelete?.((event as List_onItemDelete_event).index); break + case PeerEventKind.List_onItemMove: properties.List_onItemMove?.((event as List_onItemMove_event).from, (event as List_onItemMove_event).to); break + case PeerEventKind.List_onItemDragStart: properties.List_onItemDragStart?.((event as List_onItemDragStart_event).event, (event as List_onItemDragStart_event).itemIndex); break + case PeerEventKind.List_onItemDragEnter: properties.List_onItemDragEnter?.((event as List_onItemDragEnter_event).event); break + case PeerEventKind.List_onItemDragMove: properties.List_onItemDragMove?.((event as List_onItemDragMove_event).event, (event as List_onItemDragMove_event).itemIndex, (event as List_onItemDragMove_event).insertIndex); break + case PeerEventKind.List_onItemDragLeave: properties.List_onItemDragLeave?.((event as List_onItemDragLeave_event).event, (event as List_onItemDragLeave_event).itemIndex); break + case PeerEventKind.List_onItemDrop: properties.List_onItemDrop?.((event as List_onItemDrop_event).event, (event as List_onItemDrop_event).itemIndex, (event as List_onItemDrop_event).insertIndex, (event as List_onItemDrop_event).isSuccess); break + case PeerEventKind.List_onScrollFrameBegin: properties.List_onScrollFrameBegin?.((event as List_onScrollFrameBegin_event).offset, (event as List_onScrollFrameBegin_event).state); break + case PeerEventKind.ListItem_onSelect: properties.ListItem_onSelect?.((event as ListItem_onSelect_event).isSelected); break + case PeerEventKind.LocationButton_onClick: properties.LocationButton_onClick?.((event as LocationButton_onClick_event).event, (event as LocationButton_onClick_event).result); break + case PeerEventKind.Marquee_onStart: properties.Marquee_onStart?.(); break + case PeerEventKind.Marquee_onBounce: properties.Marquee_onBounce?.(); break + case PeerEventKind.Marquee_onFinish: properties.Marquee_onFinish?.(); break + case PeerEventKind.MenuItem_onChange: properties.MenuItem_onChange?.((event as MenuItem_onChange_event).selected); break case PeerEventKind.NavDestination_onShown: properties.NavDestination_onShown?.(); break case PeerEventKind.NavDestination_onHidden: properties.NavDestination_onHidden?.(); break case PeerEventKind.NavDestination_onBackPressed: properties.NavDestination_onBackPressed?.(); break + case PeerEventKind.NavRouter_onStateChange: properties.NavRouter_onStateChange?.((event as NavRouter_onStateChange_event).isActivated); break case PeerEventKind.Navigation_onTitleModeChange: properties.Navigation_onTitleModeChange?.((event as Navigation_onTitleModeChange_event).titleMode); break case PeerEventKind.Navigation_onNavBarStateChange: properties.Navigation_onNavBarStateChange?.((event as Navigation_onNavBarStateChange_event).isVisible); break case PeerEventKind.Navigation_onNavigationModeChange: properties.Navigation_onNavigationModeChange?.((event as Navigation_onNavigationModeChange_event).mode); break case PeerEventKind.Navigation_navDestination: properties.Navigation_navDestination?.((event as Navigation_navDestination_event).name, (event as Navigation_navDestination_event).param); break case PeerEventKind.Navigation_customNavContentTransition: properties.Navigation_customNavContentTransition?.((event as Navigation_customNavContentTransition_event).from, (event as Navigation_customNavContentTransition_event).to, (event as Navigation_customNavContentTransition_event).operation); break - case PeerEventKind.Test_testFunction: properties.Test_testFunction?.((event as Test_testFunction_event).a); break - case PeerEventKind.Test_testFunctionUndefined: properties.Test_testFunctionUndefined?.((event as Test_testFunctionUndefined_event).a); break + case PeerEventKind.Panel_onChange: properties.Panel_onChange?.((event as Panel_onChange_event).width, (event as Panel_onChange_event).height, (event as Panel_onChange_event).mode); break + case PeerEventKind.Panel_onHeightChange: properties.Panel_onHeightChange?.((event as Panel_onHeightChange_event).value); break + case PeerEventKind.PasteButton_onClick: properties.PasteButton_onClick?.((event as PasteButton_onClick_event).event, (event as PasteButton_onClick_event).result); break + case PeerEventKind.PatternLock_onPatternComplete: properties.PatternLock_onPatternComplete?.((event as PatternLock_onPatternComplete_event).input); break + case PeerEventKind.PluginComponent_onComplete: properties.PluginComponent_onComplete?.(); break + case PeerEventKind.PluginComponent_onError: properties.PluginComponent_onError?.((event as PluginComponent_onError_event).info); break + case PeerEventKind.Radio_onChange: properties.Radio_onChange?.((event as Radio_onChange_event).isChecked); break + case PeerEventKind.Rating_onChange: properties.Rating_onChange?.((event as Rating_onChange_event).value); break + case PeerEventKind.Refresh_onStateChange: properties.Refresh_onStateChange?.((event as Refresh_onStateChange_event).state); break + case PeerEventKind.Refresh_onRefreshing: properties.Refresh_onRefreshing?.(); break + case PeerEventKind.RichEditor_onPaste: properties.RichEditor_onPaste?.((event as RichEditor_onPaste_event).event); break + case PeerEventKind.RichEditor_onSubmit: properties.RichEditor_onSubmit?.((event as RichEditor_onSubmit_event).enterKey, (event as RichEditor_onSubmit_event).event); break + case PeerEventKind.RichEditor_onDidChange: properties.RichEditor_onDidChange?.((event as RichEditor_onDidChange_event).rangeBefore, (event as RichEditor_onDidChange_event).rangeAfter); break + case PeerEventKind.RichText_onStart: properties.RichText_onStart?.(); break + case PeerEventKind.RichText_onComplete: properties.RichText_onComplete?.(); break + case PeerEventKind.SaveButton_onClick: properties.SaveButton_onClick?.((event as SaveButton_onClick_event).event, (event as SaveButton_onClick_event).result); break + case PeerEventKind.Scroll_onScroll: properties.Scroll_onScroll?.((event as Scroll_onScroll_event).xOffset, (event as Scroll_onScroll_event).yOffset); break + case PeerEventKind.Scroll_onDidScroll: properties.Scroll_onDidScroll?.((event as Scroll_onDidScroll_event).xOffset, (event as Scroll_onDidScroll_event).yOffset, (event as Scroll_onDidScroll_event).scrollState); break + case PeerEventKind.Scroll_onScrollEdge: properties.Scroll_onScrollEdge?.((event as Scroll_onScrollEdge_event).side); break + case PeerEventKind.Scroll_onScrollStart: properties.Scroll_onScrollStart?.(); break + case PeerEventKind.Scroll_onScrollEnd: properties.Scroll_onScrollEnd?.(); break + case PeerEventKind.Scroll_onScrollStop: properties.Scroll_onScrollStop?.(); break + case PeerEventKind.Scroll_onScrollFrameBegin: properties.Scroll_onScrollFrameBegin?.((event as Scroll_onScrollFrameBegin_event).offset, (event as Scroll_onScrollFrameBegin_event).state); break + case PeerEventKind.Search_onSubmit: properties.Search_onSubmit?.((event as Search_onSubmit_event).value); break + case PeerEventKind.Search_onChange: properties.Search_onChange?.((event as Search_onChange_event).value, (event as Search_onChange_event).previewText); break + case PeerEventKind.Search_onTextSelectionChange: properties.Search_onTextSelectionChange?.((event as Search_onTextSelectionChange_event).selectionStart, (event as Search_onTextSelectionChange_event).selectionEnd); break + case PeerEventKind.Search_onContentScroll: properties.Search_onContentScroll?.((event as Search_onContentScroll_event).totalOffsetX, (event as Search_onContentScroll_event).totalOffsetY); break + case PeerEventKind.Search_onCopy: properties.Search_onCopy?.((event as Search_onCopy_event).value); break + case PeerEventKind.Search_onCut: properties.Search_onCut?.((event as Search_onCut_event).value); break + case PeerEventKind.Search_onPaste: properties.Search_onPaste?.((event as Search_onPaste_event).value, (event as Search_onPaste_event).event); break + case PeerEventKind.Select_onSelect: properties.Select_onSelect?.((event as Select_onSelect_event).index, (event as Select_onSelect_event).value); break + case PeerEventKind.Slider_onChange: properties.Slider_onChange?.((event as Slider_onChange_event).value, (event as Slider_onChange_event).mode); break + case PeerEventKind.Stepper_onFinish: properties.Stepper_onFinish?.(); break + case PeerEventKind.Stepper_onSkip: properties.Stepper_onSkip?.(); break + case PeerEventKind.Stepper_onChange: properties.Stepper_onChange?.((event as Stepper_onChange_event).prevIndex, (event as Stepper_onChange_event).index); break + case PeerEventKind.Stepper_onNext: properties.Stepper_onNext?.((event as Stepper_onNext_event).index, (event as Stepper_onNext_event).pendingIndex); break + case PeerEventKind.Stepper_onPrevious: properties.Stepper_onPrevious?.((event as Stepper_onPrevious_event).index, (event as Stepper_onPrevious_event).pendingIndex); break + case PeerEventKind.Swiper_onChange: properties.Swiper_onChange?.((event as Swiper_onChange_event).index); break + case PeerEventKind.Swiper_onAnimationStart: properties.Swiper_onAnimationStart?.((event as Swiper_onAnimationStart_event).index, (event as Swiper_onAnimationStart_event).targetIndex, (event as Swiper_onAnimationStart_event).extraInfo); break + case PeerEventKind.Swiper_onAnimationEnd: properties.Swiper_onAnimationEnd?.((event as Swiper_onAnimationEnd_event).index, (event as Swiper_onAnimationEnd_event).extraInfo); break + case PeerEventKind.Swiper_onGestureSwipe: properties.Swiper_onGestureSwipe?.((event as Swiper_onGestureSwipe_event).index, (event as Swiper_onGestureSwipe_event).extraInfo); break + case PeerEventKind.Swiper_onContentDidScroll: properties.Swiper_onContentDidScroll?.((event as Swiper_onContentDidScroll_event).selectedIndex, (event as Swiper_onContentDidScroll_event).index, (event as Swiper_onContentDidScroll_event).position, (event as Swiper_onContentDidScroll_event).mainAxisLength); break + case PeerEventKind.Tabs_onChange: properties.Tabs_onChange?.((event as Tabs_onChange_event).index); break + case PeerEventKind.Tabs_onTabBarClick: properties.Tabs_onTabBarClick?.((event as Tabs_onTabBarClick_event).index); break + case PeerEventKind.Tabs_onAnimationStart: properties.Tabs_onAnimationStart?.((event as Tabs_onAnimationStart_event).index, (event as Tabs_onAnimationStart_event).targetIndex, (event as Tabs_onAnimationStart_event).event); break + case PeerEventKind.Tabs_onAnimationEnd: properties.Tabs_onAnimationEnd?.((event as Tabs_onAnimationEnd_event).index, (event as Tabs_onAnimationEnd_event).event); break + case PeerEventKind.Tabs_onGestureSwipe: properties.Tabs_onGestureSwipe?.((event as Tabs_onGestureSwipe_event).index, (event as Tabs_onGestureSwipe_event).event); break + case PeerEventKind.Tabs_customContentTransition: properties.Tabs_customContentTransition?.((event as Tabs_customContentTransition_event).from, (event as Tabs_customContentTransition_event).to); break + case PeerEventKind.Tabs_onContentWillChange: properties.Tabs_onContentWillChange?.((event as Tabs_onContentWillChange_event).currentIndex, (event as Tabs_onContentWillChange_event).comingIndex); break + case PeerEventKind.TabContent_onWillShow: properties.TabContent_onWillShow?.(); break + case PeerEventKind.TabContent_onWillHide: properties.TabContent_onWillHide?.(); break + case PeerEventKind.Text_onCopy: properties.Text_onCopy?.((event as Text_onCopy_event).value); break + case PeerEventKind.Text_onTextSelectionChange: properties.Text_onTextSelectionChange?.((event as Text_onTextSelectionChange_event).selectionStart, (event as Text_onTextSelectionChange_event).selectionEnd); break + case PeerEventKind.TextArea_inputFilter: properties.TextArea_inputFilter?.((event as TextArea_inputFilter_event).value); break + case PeerEventKind.TextArea_onSubmit: properties.TextArea_onSubmit?.((event as TextArea_onSubmit_event).enterKey); break + case PeerEventKind.TextArea_onChange: properties.TextArea_onChange?.((event as TextArea_onChange_event).value, (event as TextArea_onChange_event).previewText); break + case PeerEventKind.TextArea_onTextSelectionChange: properties.TextArea_onTextSelectionChange?.((event as TextArea_onTextSelectionChange_event).selectionStart, (event as TextArea_onTextSelectionChange_event).selectionEnd); break + case PeerEventKind.TextArea_onContentScroll: properties.TextArea_onContentScroll?.((event as TextArea_onContentScroll_event).totalOffsetX, (event as TextArea_onContentScroll_event).totalOffsetY); break + case PeerEventKind.TextArea_onEditChange: properties.TextArea_onEditChange?.((event as TextArea_onEditChange_event).isEditing); break + case PeerEventKind.TextArea_onCopy: properties.TextArea_onCopy?.((event as TextArea_onCopy_event).value); break + case PeerEventKind.TextArea_onCut: properties.TextArea_onCut?.((event as TextArea_onCut_event).value); break + case PeerEventKind.TextArea_onPaste: properties.TextArea_onPaste?.((event as TextArea_onPaste_event).value, (event as TextArea_onPaste_event).event); break + case PeerEventKind.TextClock_onDateChange: properties.TextClock_onDateChange?.((event as TextClock_onDateChange_event).value); break case PeerEventKind.TextInput_onEditChanged: properties.TextInput_onEditChanged?.((event as TextInput_onEditChanged_event).isEditing); break + case PeerEventKind.TextInput_onEditChange: properties.TextInput_onEditChange?.((event as TextInput_onEditChange_event).isEditing); break + case PeerEventKind.TextInput_onSubmit: properties.TextInput_onSubmit?.((event as TextInput_onSubmit_event).enterKey, (event as TextInput_onSubmit_event).event); break + case PeerEventKind.TextInput_onChange: properties.TextInput_onChange?.((event as TextInput_onChange_event).value, (event as TextInput_onChange_event).previewText); break + case PeerEventKind.TextInput_onTextSelectionChange: properties.TextInput_onTextSelectionChange?.((event as TextInput_onTextSelectionChange_event).selectionStart, (event as TextInput_onTextSelectionChange_event).selectionEnd); break + case PeerEventKind.TextInput_onContentScroll: properties.TextInput_onContentScroll?.((event as TextInput_onContentScroll_event).totalOffsetX, (event as TextInput_onContentScroll_event).totalOffsetY); break + case PeerEventKind.TextInput_inputFilter: properties.TextInput_inputFilter?.((event as TextInput_inputFilter_event).value); break + case PeerEventKind.TextInput_onCopy: properties.TextInput_onCopy?.((event as TextInput_onCopy_event).value); break + case PeerEventKind.TextInput_onCut: properties.TextInput_onCut?.((event as TextInput_onCut_event).value); break + case PeerEventKind.TextInput_onPaste: properties.TextInput_onPaste?.((event as TextInput_onPaste_event).value, (event as TextInput_onPaste_event).event); break case PeerEventKind.TextPicker_onAccept: properties.TextPicker_onAccept?.((event as TextPicker_onAccept_event).value, (event as TextPicker_onAccept_event).index); break case PeerEventKind.TextPicker_onCancel: properties.TextPicker_onCancel?.(); break case PeerEventKind.TextPicker_onChange: properties.TextPicker_onChange?.((event as TextPicker_onChange_event).value, (event as TextPicker_onChange_event).index); break - case PeerEventKind.Web_onNativeEmbedLifecycleChange: properties.Web_onNativeEmbedLifecycleChange?.((event as Web_onNativeEmbedLifecycleChange_event).event); break + case PeerEventKind.TextTimer_onTimer: properties.TextTimer_onTimer?.((event as TextTimer_onTimer_event).utc, (event as TextTimer_onTimer_event).elapsedTime); break + case PeerEventKind.TimePicker_onChange: properties.TimePicker_onChange?.((event as TimePicker_onChange_event).value); break + case PeerEventKind.Toggle_onChange: properties.Toggle_onChange?.((event as Toggle_onChange_event).isOn); break + case PeerEventKind.Video_onStart: properties.Video_onStart?.(); break + case PeerEventKind.Video_onPause: properties.Video_onPause?.(); break + case PeerEventKind.Video_onFinish: properties.Video_onFinish?.(); break + case PeerEventKind.Video_onFullscreenChange: properties.Video_onFullscreenChange?.((event as Video_onFullscreenChange_event).event); break + case PeerEventKind.Video_onPrepared: properties.Video_onPrepared?.((event as Video_onPrepared_event).event); break + case PeerEventKind.Video_onSeeking: properties.Video_onSeeking?.((event as Video_onSeeking_event).event); break + case PeerEventKind.Video_onSeeked: properties.Video_onSeeked?.((event as Video_onSeeked_event).event); break + case PeerEventKind.Video_onUpdate: properties.Video_onUpdate?.((event as Video_onUpdate_event).event); break + case PeerEventKind.Video_onError: properties.Video_onError?.(); break + case PeerEventKind.Web_onGeolocationHide: properties.Web_onGeolocationHide?.(); break + case PeerEventKind.Web_onRequestSelected: properties.Web_onRequestSelected?.(); break + case PeerEventKind.Web_onUrlLoadIntercept: properties.Web_onUrlLoadIntercept?.((event as Web_onUrlLoadIntercept_event).event); break + case PeerEventKind.Web_onSslErrorReceive: properties.Web_onSslErrorReceive?.((event as Web_onSslErrorReceive_event).event); break case PeerEventKind.Web_onRenderExited1: properties.Web_onRenderExited1?.((event as Web_onRenderExited1_event).event); break + case PeerEventKind.Web_onFileSelectorShow: properties.Web_onFileSelectorShow?.((event as Web_onFileSelectorShow_event).event); break + case PeerEventKind.Web_onFullScreenExit: properties.Web_onFullScreenExit?.(); break + case PeerEventKind.Web_onFullScreenEnter: properties.Web_onFullScreenEnter?.((event as Web_onFullScreenEnter_event).event); break + case PeerEventKind.Web_onContextMenuHide: properties.Web_onContextMenuHide?.(); break + case PeerEventKind.Web_onSslErrorEvent: properties.Web_onSslErrorEvent?.((event as Web_onSslErrorEvent_event).sslErrorEvent); break + case PeerEventKind.Web_onWindowExit: properties.Web_onWindowExit?.(); break + case PeerEventKind.Web_onInterceptKeyEvent: properties.Web_onInterceptKeyEvent?.((event as Web_onInterceptKeyEvent_event).event); break + case PeerEventKind.Web_onFirstMeaningfulPaint: properties.Web_onFirstMeaningfulPaint?.((event as Web_onFirstMeaningfulPaint_event).firstMeaningfulPaint); break + case PeerEventKind.Web_onLargestContentfulPaint: properties.Web_onLargestContentfulPaint?.((event as Web_onLargestContentfulPaint_event).largestContentfulPaint); break + case PeerEventKind.Web_onControllerAttached: properties.Web_onControllerAttached?.(); break + case PeerEventKind.Web_onSafeBrowsingCheckResult: properties.Web_onSafeBrowsingCheckResult?.((event as Web_onSafeBrowsingCheckResult_event).threatType); break + case PeerEventKind.Web_onNavigationEntryCommitted: properties.Web_onNavigationEntryCommitted?.((event as Web_onNavigationEntryCommitted_event).loadCommittedDetails); break + case PeerEventKind.Web_onIntelligentTrackingPreventionResult: properties.Web_onIntelligentTrackingPreventionResult?.((event as Web_onIntelligentTrackingPreventionResult_event).details); break + case PeerEventKind.Web_onNativeEmbedLifecycleChange: properties.Web_onNativeEmbedLifecycleChange?.((event as Web_onNativeEmbedLifecycleChange_event).event); break + case PeerEventKind.Web_onNativeEmbedVisibilityChange: properties.Web_onNativeEmbedVisibilityChange?.((event as Web_onNativeEmbedVisibilityChange_event).nativeEmbedVisibilityInfo); break + case PeerEventKind.Web_onNativeEmbedGestureEvent: properties.Web_onNativeEmbedGestureEvent?.((event as Web_onNativeEmbedGestureEvent_event).event); break + case PeerEventKind.Web_onOverrideUrlLoading: properties.Web_onOverrideUrlLoading?.((event as Web_onOverrideUrlLoading_event).webResourceRequest); break + case PeerEventKind.Web_onRenderProcessNotResponding: properties.Web_onRenderProcessNotResponding?.((event as Web_onRenderProcessNotResponding_event).data); break + case PeerEventKind.Web_onRenderProcessResponding: properties.Web_onRenderProcessResponding?.(); break + case PeerEventKind.Web_onViewportFitChanged: properties.Web_onViewportFitChanged?.((event as Web_onViewportFitChanged_event).viewportFit); break + case PeerEventKind.Web_onInterceptKeyboardAttach: properties.Web_onInterceptKeyboardAttach?.((event as Web_onInterceptKeyboardAttach_event).keyboardCallbackInfo); break + case PeerEventKind.Web_onAdsBlocked: properties.Web_onAdsBlocked?.((event as Web_onAdsBlocked_event).details); break + case PeerEventKind.XComponent_onLoad: properties.XComponent_onLoad?.((event as XComponent_onLoad_event).event); break + case PeerEventKind.XComponent_onDestroy: properties.XComponent_onDestroy?.(); break + case PeerEventKind.SideBarContainer_onChange: properties.SideBarContainer_onChange?.((event as SideBarContainer_onChange_event).value); break + case PeerEventKind.WaterFlow_onReachStart: properties.WaterFlow_onReachStart?.(); break + case PeerEventKind.WaterFlow_onReachEnd: properties.WaterFlow_onReachEnd?.(); break + case PeerEventKind.WaterFlow_onScrollFrameBegin: properties.WaterFlow_onScrollFrameBegin?.((event as WaterFlow_onScrollFrameBegin_event).offset, (event as WaterFlow_onScrollFrameBegin_event).state); break + case PeerEventKind.WaterFlow_onScrollIndex: properties.WaterFlow_onScrollIndex?.((event as WaterFlow_onScrollIndex_event).first, (event as WaterFlow_onScrollIndex_event).last); break default: throw new Error(`Unknown kind ${event.kind}`) } } \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkBlankPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkBlankPeer.ts index fc4f2a482..d12ad6551 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkBlankPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkBlankPeer.ts @@ -26,13 +26,14 @@ import { NativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { ResourceColor, Resource } from "./../ArkUnitsInterfaces" import { Color } from "./../ArkEnumsInterfaces" -import { IMPORT_Resource_FROM_resource_resource } from "./../SyntheticDeclarations" +import { IMPORT_Resource_FROM_api_global_resource } from "./../SyntheticDeclarations" import { BlankAttribute, BlankInterface } from "./../ArkBlankInterfaces" import { GestureName, GestureComponent } from "./../shared/generated-utils" import { TypeChecker } from "#components" import { registerCallback } from "./SerializerBase" import { wrapCallback } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" export class ArkBlankPeer extends ArkCommonMethodPeer { diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkButtonPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkButtonPeer.ts index b1397686f..52124974d 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkButtonPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkButtonPeer.ts @@ -24,15 +24,18 @@ import { ArkUINodeType } from "./ArkUINodeType" import { ComponentBase } from "../ComponentBase" import { NativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { ButtonType, ButtonAttribute, LabelStyle, ButtonInterface } from "./../ArkButtonInterfaces" -import { TextOverflow, TextHeightAdaptivePolicy } from "./../ArkEnumsInterfaces" -import { ResourceStr, Resource, Font } from "./../ArkUnitsInterfaces" -import { IMPORT_Resource_FROM_resource_resource } from "./../SyntheticDeclarations" +import { ButtonType, ButtonAttribute, ButtonStyleMode, ControlSize, ButtonRole, ButtonConfiguration, LabelStyle, ButtonOptions, ButtonInterface, ButtonTriggerClickCallback } from "./../ArkButtonInterfaces" +import { ResourceColor, Resource, Length, ResourceStr, Font } from "./../ArkUnitsInterfaces" +import { Color, FontWeight, FontStyle, TextOverflow, TextHeightAdaptivePolicy } from "./../ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource } from "./../SyntheticDeclarations" +import { ContentModifier } from "./../ConflictedDeclarations" +import { CommonConfiguration } from "./../ArkCommonInterfaces" import { GestureName, GestureComponent } from "./../shared/generated-utils" import { TypeChecker } from "#components" import { registerCallback } from "./SerializerBase" import { wrapCallback } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" export class ArkButtonPeer extends ArkCommonMethodPeer { @@ -44,12 +47,137 @@ export class ArkButtonPeer extends ArkCommonMethodPeer { component?.setPeer(_peer) return _peer } - setButtonOptionsAttribute(): void { - NativeModule._ButtonInterface_setButtonOptions(this.peer.ptr); + setButtonOptions0Attribute(): void { + NativeModule._ButtonInterface_setButtonOptions0(this.peer.ptr); + } + setButtonOptions1Attribute(options: ButtonOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeButtonOptions(options) + NativeModule._ButtonInterface_setButtonOptions1(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + setButtonOptions2Attribute(label: ResourceStr, options?: ButtonOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let label_type = RuntimeType.UNDEFINED + label_type = runtimeType(label) + if (((RuntimeType.STRING == label_type))) { + thisSerializer.writeInt8(0 as int32) + const label_0 = label as string + thisSerializer.writeString(label_0) + } + else if (((RuntimeType.OBJECT == label_type))) { + thisSerializer.writeInt8(1 as int32) + const label_1 = label as Resource + thisSerializer.writeResource(label_1) + } + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeButtonOptions(options_value) + } + NativeModule._ButtonInterface_setButtonOptions2(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); } typeAttribute(value: ButtonType): void { NativeModule._ButtonAttribute_type(this.peer.ptr, (value.value as int32)); } + stateEffectAttribute(value: boolean): void { + NativeModule._ButtonAttribute_stateEffect(this.peer.ptr, value ? 1 : 0); + } + buttonStyleAttribute(value: ButtonStyleMode): void { + NativeModule._ButtonAttribute_buttonStyle(this.peer.ptr, (value.value as int32)); + } + controlSizeAttribute(value: ControlSize): void { + NativeModule._ButtonAttribute_controlSize(this.peer.ptr, (value.ordinal as int32)); + } + roleAttribute(value: ButtonRole): void { + NativeModule._ButtonAttribute_role(this.peer.ptr, (value.value as int32)); + } + fontColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._ButtonAttribute_fontColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + fontSizeAttribute(value: Length): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeLength(value); + NativeModule._ButtonAttribute_fontSize(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + fontWeightAttribute(value: number | FontWeight | string): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((value instanceof FontWeight))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as FontWeight + thisSerializer.writeInt32((value_1.value as int32)) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + NativeModule._ButtonAttribute_fontWeight(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + fontStyleAttribute(value: FontStyle): void { + NativeModule._ButtonAttribute_fontStyle(this.peer.ptr, (value.value as int32)); + } + fontFamilyAttribute(value: string | Resource): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as string + thisSerializer.writeString(value_0) + } + else if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as Resource + thisSerializer.writeResource(value_1) + } + NativeModule._ButtonAttribute_fontFamily(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + contentModifierAttribute(modifier: ContentModifier): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeCustomObject("ContentModifier", modifier) + NativeModule._ButtonAttribute_contentModifier(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } labelStyleAttribute(value: LabelStyle): void { const thisSerializer = SerializerBase.hold(createSerializer) thisSerializer.writeLabelStyle(value) @@ -62,5 +190,15 @@ export class ArkButtonPeer extends ArkCommonMethodPeer { } export interface ArkButtonAttributes extends ArkCommonMethodAttributes { type?: ButtonType + stateEffect?: boolean + buttonStyle?: ButtonStyleMode + controlSize?: ControlSize + role?: ButtonRole + fontColor?: ResourceColor + fontSize?: Length + fontWeight?: number | FontWeight | string + fontStyle?: FontStyle + fontFamily?: string | Resource + contentModifier?: ContentModifier labelStyle?: LabelStyle } diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkCalendarPickerPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkCalendarPickerPeer.ts index 69130c8e1..a00378917 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkCalendarPickerPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkCalendarPickerPeer.ts @@ -24,14 +24,16 @@ import { ArkUINodeType } from "./ArkUINodeType" import { ComponentBase } from "../ComponentBase" import { NativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CalendarAlign, CalendarPickerAttribute, CalendarPickerInterface } from "./../ArkCalendarPickerInterfaces" -import { Offset, Length, Resource, AltOffset } from "./../ArkUnitsInterfaces" -import { IMPORT_Resource_FROM_resource_resource, LITERAL_DxLengthDyLength, LITERAL_Dx1LengthDy2Length } from "./../SyntheticDeclarations" +import { CalendarAlign, CalendarPickerAttribute, CalendarOptions, CalendarPickerInterface } from "./../ArkCalendarPickerInterfaces" +import { Offset, Length, Resource } from "./../ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, LITERAL_DxLengthDyLength } from "./../SyntheticDeclarations" +import { PickerTextStyle, Callback } from "./../ArkCommonInterfaces" import { GestureName, GestureComponent } from "./../shared/generated-utils" import { TypeChecker } from "#components" import { registerCallback } from "./SerializerBase" import { wrapCallback } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" export class ArkCalendarPickerPeer extends ArkCommonMethodPeer { @@ -43,8 +45,19 @@ export class ArkCalendarPickerPeer extends ArkCommonMethodPeer { component?.setPeer(_peer) return _peer } - setCalendarPickerOptionsAttribute(): void { - NativeModule._CalendarPickerInterface_setCalendarPickerOptions(this.peer.ptr); + setCalendarPickerOptionsAttribute(options?: CalendarOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeCalendarOptions(options_value) + } + NativeModule._CalendarPickerInterface_setCalendarPickerOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); } edgeAlignAttribute(alignType: CalendarAlign, offset?: Offset): void { const thisSerializer = SerializerBase.hold(createSerializer) @@ -63,26 +76,20 @@ export class ArkCalendarPickerPeer extends ArkCommonMethodPeer { NativeModule._CalendarPickerAttribute_edgeAlign(this.peer.ptr, (alignType.value as int32), thisSerializer.asArray(), thisSerializer.length()); thisSerializer.release(); } - altEdgeAlignAttribute(alignType: CalendarAlign, offset?: AltOffset): void { + textStyleAttribute(value: PickerTextStyle): void { const thisSerializer = SerializerBase.hold(createSerializer) - let offset_type = RuntimeType.UNDEFINED - if (offset != undefined) { - offset_type = RuntimeType.OBJECT - } - thisSerializer.writeInt8(offset_type as int32) - if ((RuntimeType.UNDEFINED) != (offset_type)) { - const offset_value = offset! - const offset_value_dx1 = offset_value.dx1 - thisSerializer.writeLength(offset_value_dx1); - const offset_value_dy2 = offset_value.dy2 - thisSerializer.writeLength(offset_value_dy2); - } - NativeModule._CalendarPickerAttribute_altEdgeAlign(this.peer.ptr, (alignType.value as int32), thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.writePickerTextStyle(value) + NativeModule._CalendarPickerAttribute_textStyle(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); thisSerializer.release(); } + onChangeAttribute(callback: Callback): void { + NativeModule._CalendarPickerAttribute_onChange(this.peer.ptr, registerCallback(callback)); + } applyAttributes(attributes: T): void { super.applyAttributes(attributes) } } export interface ArkCalendarPickerAttributes extends ArkCommonMethodAttributes { + textStyle?: PickerTextStyle + onChange?: Callback } diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkCanvasPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkCanvasPeer.ts index 71e3a8639..638b4aff0 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkCanvasPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkCanvasPeer.ts @@ -24,16 +24,18 @@ import { ArkUINodeType } from "./ArkUINodeType" import { ComponentBase } from "../ComponentBase" import { NativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CanvasAttribute, CanvasInterface, CanvasFillRule, ImageData, RenderingContextSettings, Size, DrawingCanvas } from "./../ArkCanvasInterfaces" +import { CanvasAttribute, CanvasInterface, CanvasFillRule, ImageData, ImageSmoothingQuality, CanvasLineCap, CanvasLineJoin, TextMetrics, CanvasDirection, CanvasTextAlign, CanvasTextBaseline, RenderingContextSettings, Size, DrawingCanvas } from "./../ArkCanvasInterfaces" import { CanvasRenderingContext2D } from "./../ArkCanvasRenderingContext2DMaterialized" import { DrawingRenderingContext } from "./../ArkDrawingRenderingContextMaterialized" -import { LITERAL_Evenodd, LITERAL_Nonzero, IMPORT_LengthMetricsUnit_FROM_api_arkui_Graphics } from "./../SyntheticDeclarations" +import { ImageAIOptions } from "./../ArkImageCommonInterfaces" +import { LITERAL_Evenodd, LITERAL_Nonzero, IMPORT_LengthMetricsUnit_FROM_api_arkui_Graphics, LITERAL_High, LITERAL_Low, LITERAL_Medium, LITERAL_Butt, LITERAL_Round, LITERAL_Square, LITERAL_Bevel, LITERAL_Miter, LITERAL_Inherit, LITERAL_Ltr, LITERAL_Rtl, LITERAL_Center, LITERAL_End, LITERAL_Left, LITERAL_Right, LITERAL_Start, LITERAL_Alphabetic, LITERAL_Bottom, LITERAL_Hanging, LITERAL_Ideographic, LITERAL_Middle, LITERAL_Top, IMPORT_default_Canvas_FROM_api_ohos_graphics_drawing } from "./../SyntheticDeclarations" import { LengthMetricsUnit } from "./../ArkUnitsInterfaces" import { GestureName, GestureComponent } from "./../shared/generated-utils" import { TypeChecker } from "#components" import { registerCallback } from "./SerializerBase" import { wrapCallback } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" export class ArkCanvasPeer extends ArkCommonMethodPeer { @@ -45,7 +47,7 @@ export class ArkCanvasPeer extends ArkCommonMethodPeer { component?.setPeer(_peer) return _peer } - setCanvasOptionsAttribute(context?: CanvasRenderingContext2D | DrawingRenderingContext): void { + setCanvasOptions0Attribute(context?: CanvasRenderingContext2D | DrawingRenderingContext): void { const thisSerializer = SerializerBase.hold(createSerializer) let context_type = RuntimeType.UNDEFINED if (context != undefined) { @@ -67,7 +69,25 @@ export class ArkCanvasPeer extends ArkCommonMethodPeer { thisSerializer.writeMaterialized(context_value_1) } } - NativeModule._CanvasInterface_setCanvasOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + NativeModule._CanvasInterface_setCanvasOptions0(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + setCanvasOptions1Attribute(context: CanvasRenderingContext2D | DrawingRenderingContext, imageAIOptions: ImageAIOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let context_type = RuntimeType.UNDEFINED + context_type = runtimeType(context) + if (((RuntimeType.OBJECT) == (context_type)) && (context instanceof CanvasRenderingContext2D)) { + thisSerializer.writeInt8(0 as int32) + const context_0 = context as CanvasRenderingContext2D + thisSerializer.writeMaterialized(context_0) + } + else if (((RuntimeType.OBJECT) == (context_type)) && (context instanceof DrawingRenderingContext)) { + thisSerializer.writeInt8(1 as int32) + const context_1 = context as DrawingRenderingContext + thisSerializer.writeMaterialized(context_1) + } + thisSerializer.writeImageAIOptions(imageAIOptions) + NativeModule._CanvasInterface_setCanvasOptions1(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); thisSerializer.release(); } onReadyAttribute(event: (() => void)): void { diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkColumnPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkColumnPeer.ts index db8f1951d..296238b90 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkColumnPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkColumnPeer.ts @@ -24,12 +24,15 @@ import { ArkUINodeType } from "./ArkUINodeType" import { ComponentBase } from "../ComponentBase" import { NativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { HorizontalAlign, ColumnAttribute, ColumnInterface } from "./../ArkColumnInterfaces" +import { HorizontalAlign, FlexAlign } from "./../ArkEnumsInterfaces" +import { ColumnAttribute, ColumnOptions, ColumnInterface } from "./../ArkColumnInterfaces" +import { PointLightStyle, Optional } from "./../ArkCommonInterfaces" import { GestureName, GestureComponent } from "./../shared/generated-utils" import { TypeChecker } from "#components" import { registerCallback } from "./SerializerBase" import { wrapCallback } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" export class ArkColumnPeer extends ArkCommonMethodPeer { @@ -41,16 +44,53 @@ export class ArkColumnPeer extends ArkCommonMethodPeer { component?.setPeer(_peer) return _peer } - setColumnOptionsAttribute(): void { - NativeModule._ColumnInterface_setColumnOptions(this.peer.ptr); + setColumnOptionsAttribute(options?: ColumnOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeColumnOptions(options_value) + } + NativeModule._ColumnInterface_setColumnOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); } alignItemsAttribute(value: HorizontalAlign): void { NativeModule._ColumnAttribute_alignItems(this.peer.ptr, (value.value as int32)); } + justifyContentAttribute(value: FlexAlign): void { + NativeModule._ColumnAttribute_justifyContent(this.peer.ptr, (value.value as int32)); + } + pointLightAttribute(value: PointLightStyle): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writePointLightStyle(value) + NativeModule._ColumnAttribute_pointLight(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + reverseAttribute(isReversed: boolean | undefined): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let isReversed_type = RuntimeType.UNDEFINED + if (isReversed != undefined) { + isReversed_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(isReversed_type as int32) + if ((RuntimeType.UNDEFINED) != (isReversed_type)) { + const isReversed_value = isReversed! + thisSerializer.writeBoolean(isReversed_value) + } + NativeModule._ColumnAttribute_reverse(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } applyAttributes(attributes: T): void { super.applyAttributes(attributes) } } export interface ArkColumnAttributes extends ArkCommonMethodAttributes { alignItems?: HorizontalAlign + justifyContent?: FlexAlign + pointLight?: PointLightStyle + reverse?: boolean | undefined } diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkCommonPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkCommonPeer.ts index 68f6dbbd5..9afa57d54 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkCommonPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkCommonPeer.ts @@ -24,20 +24,31 @@ import { ArkUINodeType } from "./ArkUINodeType" import { ComponentBase } from "../ComponentBase" import { NativeModule } from "#components" import { PeerNode } from "./../PeerNode" -import { StateStyles, BlurOptions, Padding, CustomBuilder, SheetOptions, BlurStyle, BackgroundBlurStyleOptions, DragPreviewOptions, DragInteractionOptions, GradientDirection, BorderOptions, TouchTestInfo, AttributeModifier, GestureRecognizerJudgeBeginCallback, ClickEvent, Callback, CommonMethod, CommonAttribute, CommonInterface, ScrollableCommonMethod, CommonShapeMethod, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetDismiss, DismissSheetAction, SpringBackAction, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderStyle, EdgeStyles, ShadowOptions, ShadowStyle, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, DismissReason, ShadowType, BlurStyleOptions, ThemeColorMode, AdaptiveColor, BlurStyleActivePolicy, DragPreviewMode, ImageModifier, RectResult, UIGestureEvent, BaseEvent, PixelMap, SymbolGlyphModifier, CommonConfiguration, ComponentContent } from "./../ArkCommonInterfaces" -import { Length, Resource, Dimension, PX, VP, FP, LPX, Percentage, ResourceColor, ResourceStr, LengthMetrics } from "./../ArkUnitsInterfaces" -import { IMPORT_Resource_FROM_resource_resource, LITERAL_TopLengthRightLengthBottomLengthLeftLength, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, LITERAL_AngleNumberstringDirectionGradientDirectionColorsArrayResourceColornumberRepeatingBoolean, LITERAL_TopResourceColorRightResourceColorBottomResourceColorLeftResourceColor, LITERAL_TopBorderStyleRightBorderStyleBottomBorderStyleLeftBorderStyle, IMPORT_UIContext_FROM_api_ohos_arkui_UIContext, IMPORT_LengthMetrics_FROM_api_arkui_Graphics, IMPORT_ImageModifier_FROM_api_arkui_ImageModifier, IMPORT_default_PixelMap_FROM_resource_image, IMPORT_SymbolGlyphModifier_FROM_resource_symbol, IMPORT_ComponentContent_FROM_api_arkui_ComponentContent } from "./../SyntheticDeclarations" -import { Optional } from "./../ArkListInterfaces" -import { Color, ColoringStrategy } from "./../ArkEnumsInterfaces" +import { Length, Resource, SizeOptions, ConstraintSizeOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, ResourceStr, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, PX, VP, FP, LPX, Percentage, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, Bias, Font, LengthMetrics } from "./../ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, LITERAL_TopLengthRightLengthBottomLengthLeftLength, LITERAL_AlignAlignment, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image, IMPORT_default_VisualEffect_FROM_api_ohos_graphics_uiEffect, IMPORT_default_Filter_FROM_api_ohos_graphics_uiEffect, LITERAL_TopBorderStyleRightBorderStyleBottomBorderStyleLeftBorderStyle, LITERAL_TopResourceColorRightResourceColorBottomResourceColorLeftResourceColor, LITERAL_TopLeftLengthTopRightLengthBottomLeftLengthBottomRightLength, LITERAL_TopOutlineStyleRightOutlineStyleBottomOutlineStyleLeftOutlineStyle, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, LITERAL_TopDimensionRightDimensionBottomDimensionLeftDimension, LITERAL_TopLeftDimensionTopRightDimensionBottomLeftDimensionBottomRightDimension, LITERAL_SpanNumberOffsetNumber, LITERAL_XsNumberLITERALSpanNumberOffsetNumberSmNumberLITERALSpanNumberOffsetNumberMdNumberLITERALSpanNumberOffsetNumberLgNumberLITERALSpanNumberOffsetNumber, IMPORT_default_UniformDataType_FROM_api_ohos_data_uniformTypeDescriptor, IMPORT_ComponentContent_T_FROM_api_arkui_ComponentContent, LITERAL_AngleNumberstringDirectionGradientDirectionColorsArrayResourceColornumberRepeatingBoolean, LITERAL_CenterLengthLengthStartNumberstringEndNumberstringRotationNumberstringColorsArrayResourceColornumberRepeatingBoolean, LITERAL_CenterLengthLengthRadiusNumberstringColorsArrayResourceColornumberRepeatingBoolean, IMPORT_default_Blender_FROM_api_ohos_graphics_uiEffect, IMPORT_CircleShape_FROM_api_ohos_arkui_shape, IMPORT_EllipseShape_FROM_api_ohos_arkui_shape, IMPORT_PathShape_FROM_api_ohos_arkui_shape, IMPORT_RectShape_FROM_api_ohos_arkui_shape, IMPORT_DrawContext_FROM_api_arkui_Graphics, IMPORT_IntentionCode_FROM_api_ohos_multimodalInput_intentionCode, LITERAL_AnchorStringAlignHorizontalAlign, LITERAL_AnchorStringAlignVerticalAlign, IMPORT_default_UnifiedData_FROM_api_ohos_data_unifiedDataChannel, IMPORT_default_Summary_FROM_api_ohos_data_unifiedDataChannel, IMPORT_ImageModifier_FROM_api_arkui_ImageModifier, LITERAL_ValueStringActionVoid, LITERAL_IsVisibleBoolean, LITERAL_ColorResourceColor, IMPORT_SymbolGlyphModifier_FROM_api_arkui_SymbolGlyphModifier, IMPORT_UIContext_FROM_api_ohos_arkui_UIContext, IMPORT_LengthMetrics_FROM_api_arkui_Graphics } from "./../SyntheticDeclarations" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { Optional, SafeAreaType, SafeAreaEdge, Rectangle, TouchTestInfo, TouchResult, CustomBuilder, PixelRoundPolicy, PixelMap, BlurStyle, BackgroundBlurStyleOptions, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, ForegroundBlurStyleOptions, BorderImageOption, OutlineStyle, ClickEvent, Callback, HoverEvent, AccessibilityCallback, AccessibilityHoverEvent, MouseEvent, TouchEvent, KeyEvent, AnimateParam, TransitionOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, sharedTransitionOptions, AlignRuleOption, LocalizedAlignRuleOptions, ChainStyle, ClickEffect, DragEvent, DragItemInfo, UniformDataType, DragPreviewOptions, DragInteractionOptions, PreDragStatus, ComponentContent, OverlayOptions, MotionPathOptions, ShadowOptions, ShadowStyle, BlendMode, BlendApplyType, Blender, CircleShape, EllipseShape, PathShape, RectShape, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, StateStyles, VisibleAreaChangeCallback, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, CommonMethod, CommonShapeMethod, CommonAttribute, CommonInterface, EdgeEffectOptions, FadingEdgeOptions, NestedScrollOptions, ScrollResult, OnScrollCallback, ScrollableCommonMethod, DrawContext, RectResult, TouchTestStrategy, BlurStyleOptions, ThemeColorMode, AdaptiveColor, BlurStyleActivePolicy, BlurType, RepeatMode, BaseEvent, EventTarget, SourceType, SourceTool, TouchObject, HistoricalPoint, IntentionCode, FinishCallbackType, ExpectedFrameRateRange, FractionStop, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, DragBehavior, UnifiedData, Summary, DragResult, DragPreviewMode, ImageModifier, OverlayOffset, ShadowType, TransitionHierarchyStrategy, PopupMessageOptions, DismissPopupAction, DismissReason, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, AnimationRange, BindOptions, DismissContentCoverAction, SheetSize, SheetType, SheetTitleOptions, SheetDismiss, DismissSheetAction, SpringBackAction, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, UIGestureEvent, CommonConfiguration, WrappedBuilder, PickerTextStyle, LightSource, PointLightStyle, MultiShadowOptions, ItemDragInfo, MenuPolicy, SelectionOptions, TextDecorationOptions, CaretOffset, InputCounterOptions } from "./../ArkCommonInterfaces" +import { HitTestMode, Alignment, Color, ImageRepeat, ImageSize, BorderStyle, ColoringStrategy, HoverEffect, Visibility, ItemAlign, Direction, Axis, GradientDirection, ResponseType, FunctionKey, ModifierKey, ObscuredReasons, RenderFit, LineCapStyle, LineJoinStyle, BarState, EdgeEffect, ScrollSource, PixelRoundCalcPolicy, AccessibilityHoverType, MouseButton, MouseAction, TouchType, KeyType, KeySource, Curve, PlayMode, TransitionType, SharedTransitionEffectType, HorizontalAlign, VerticalAlign, ClickEffectLevel, Placement, ArrowPointPosition, IlluminatedType, NestedScrollMode, TextDecorationType, TextDecorationStyle } from "./../ArkEnumsInterfaces" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect, OnWillScrollCallback, LinearGradient, ContentModifier } from "./../ConflictedDeclarations" +import { GestureType, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureMask, GestureInfo, BaseGestureEvent, GestureJudgeResult, GestureHandler, GesturePriority } from "./../ArkGestureInterfaces" +import { CircleAttribute } from "./../ArkCircleInterfaces" +import { EllipseAttribute } from "./../ArkEllipseInterfaces" +import { PathAttribute } from "./../ArkPathInterfaces" +import { RectAttribute } from "./../ArkRectInterfaces" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../ArkAttributeModifierMaterialized" import { GestureModifier } from "./../ArkGestureModifierMaterialized" -import { BaseGestureEvent, GestureJudgeResult, GestureHandler, GesturePriority, GestureMask } from "./../ArkGestureInterfaces" import { GestureRecognizer } from "./../ArkGestureRecognizerMaterialized" -import { ContentModifier } from "./../ConflictedDeclarations" +import { ScrollState } from "./../ArkListInterfaces" +import { ICurve } from "./../ArkICurveMaterialized" import { GestureName, GestureComponent } from "./../shared/generated-utils" import { TypeChecker } from "#components" import { registerCallback } from "./SerializerBase" import { wrapCallback } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" export class ArkCommonMethodPeer extends PeerNode { @@ -49,43 +60,167 @@ export class ArkCommonMethodPeer extends PeerNode { component?.setPeer(_peer) return _peer } - stateStylesAttribute(value: StateStyles): void { + widthAttribute(value: Length): void { const thisSerializer = SerializerBase.hold(createSerializer) - thisSerializer.writeStateStyles(value) - NativeModule._CommonMethod_stateStyles(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.writeLength(value); + NativeModule._CommonMethod_width(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); thisSerializer.release(); } - backdropBlurAttribute(value: number, options?: BlurOptions): void { + heightAttribute(value: Length): void { const thisSerializer = SerializerBase.hold(createSerializer) - let options_type = RuntimeType.UNDEFINED - if (options != undefined) { - options_type = RuntimeType.OBJECT + thisSerializer.writeLength(value); + NativeModule._CommonMethod_height(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + drawModifierAttribute(modifier: DrawModifier | undefined): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let modifier_type = RuntimeType.UNDEFINED + modifier_type = runtimeType(modifier) + if (((RuntimeType.OBJECT == modifier_type))) { + thisSerializer.writeInt8(0 as int32) + const modifier_0 = modifier as DrawModifier + thisSerializer.writeMaterialized(modifier_0) } - thisSerializer.writeInt8(options_type as int32) - if ((RuntimeType.UNDEFINED) != (options_type)) { - const options_value = options! - thisSerializer.writeBlurOptions(options_value) + else if (((RuntimeType.UNDEFINED == modifier_type))) { + thisSerializer.writeInt8(1 as int32) } - NativeModule._CommonMethod_backdropBlur(this.peer.ptr, value, thisSerializer.asArray(), thisSerializer.length()); + NativeModule._CommonMethod_drawModifier(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); thisSerializer.release(); } - widthAttribute(value: Length): void { - NativeModule._CommonMethod_width(this.peer.ptr, value); + customPropertyAttribute(name: string, value: Object | undefined): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + if (value != undefined) { + value_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_type as int32) + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value! + thisSerializer.writeObject(value_value) + } + NativeModule._CommonMethod_customProperty(this.peer.ptr, name, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); } - heightAttribute(value: Length): void { - NativeModule._CommonMethod_height(this.peer.ptr, value); + expandSafeAreaAttribute(types?: Array, edges?: Array): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let types_type = RuntimeType.UNDEFINED + if (types != undefined) { + types_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(types_type as int32) + if ((RuntimeType.UNDEFINED) != (types_type)) { + const types_value = types! + thisSerializer.writeInt8(runtimeType(types_value) as int32) + thisSerializer.writeInt32(types_value.length as int32) + for (let i = 0; i < types_value.length; i++) { + const types_value_element = types_value[i] + thisSerializer.writeInt32((types_value_element.value as int32)) + } + } + let edges_type = RuntimeType.UNDEFINED + if (edges != undefined) { + edges_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(edges_type as int32) + if ((RuntimeType.UNDEFINED) != (edges_type)) { + const edges_value = edges! + thisSerializer.writeInt8(runtimeType(edges_value) as int32) + thisSerializer.writeInt32(edges_value.length as int32) + for (let i = 0; i < edges_value.length; i++) { + const edges_value_element = edges_value[i] + thisSerializer.writeInt32((edges_value_element.value as int32)) + } + } + NativeModule._CommonMethod_expandSafeArea(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); } - keyAttribute(value: string): void { - NativeModule._CommonMethod_key(this.peer.ptr, value); + responseRegionAttribute(value: Array | Rectangle): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Array)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Array + thisSerializer.writeInt8(runtimeType(value_0) as int32) + thisSerializer.writeInt32(value_0.length as int32) + for (let i = 0; i < value_0.length; i++) { + const value_0_element = value_0[i] + thisSerializer.writeRectangle(value_0_element) + } + } + else if (TypeChecker.isRectangle(value, false, false, false, false)) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as Rectangle + thisSerializer.writeRectangle(value_1) + } + NativeModule._CommonMethod_responseRegion(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); } - restoreIdAttribute(value: number): void { - NativeModule._CommonMethod_restoreId(this.peer.ptr, value); + mouseResponseRegionAttribute(value: Array | Rectangle): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Array)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Array + thisSerializer.writeInt8(runtimeType(value_0) as int32) + thisSerializer.writeInt32(value_0.length as int32) + for (let i = 0; i < value_0.length; i++) { + const value_0_element = value_0[i] + thisSerializer.writeRectangle(value_0_element) + } + } + else if (TypeChecker.isRectangle(value, false, false, false, false)) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as Rectangle + thisSerializer.writeRectangle(value_1) + } + NativeModule._CommonMethod_mouseResponseRegion(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + sizeAttribute(value: SizeOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeSizeOptions(value) + NativeModule._CommonMethod_size(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + constraintSizeAttribute(value: ConstraintSizeOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeConstraintSizeOptions(value) + NativeModule._CommonMethod_constraintSize(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + touchableAttribute(value: boolean): void { + NativeModule._CommonMethod_touchable(this.peer.ptr, value ? 1 : 0); + } + hitTestBehaviorAttribute(value: HitTestMode): void { + NativeModule._CommonMethod_hitTestBehavior(this.peer.ptr, (value.value as int32)); } - paddingAttribute(value: Padding | Dimension): void { + onChildTouchTestAttribute(event: ((value: Array) => TouchResult)): void { + NativeModule._CommonMethod_onChildTouchTest(this.peer.ptr, registerCallback(event)); + } + layoutWeightAttribute(value: number | string): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as string + thisSerializer.writeString(value_1) + } + NativeModule._CommonMethod_layoutWeight(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + paddingAttribute(value: Padding | Length | LocalizedPadding): void { const thisSerializer = SerializerBase.hold(createSerializer) let value_type = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (TypeChecker.isPadding(value, false, false, false, false)) { + if (TypeChecker.isPadding(value, true, false, true, false)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Padding const value_0_top = value_0.top @@ -131,23 +266,80 @@ export class ArkCommonMethodPeer extends PeerNode { } else if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value)))) { thisSerializer.writeInt8(1 as int32) - const value_1 = value as Dimension + const value_1 = value as Length thisSerializer.writeLength(value_1); } + else if (TypeChecker.isLocalizedPadding(value, true, false, true, false)) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as LocalizedPadding + thisSerializer.writeLocalizedPadding(value_2) + } NativeModule._CommonMethod_padding(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); thisSerializer.release(); } - bindSheetAttribute(isShow: boolean | undefined, builder: CustomBuilder, options?: SheetOptions): void { + marginAttribute(value: Margin | Length | LocalizedMargin): void { const thisSerializer = SerializerBase.hold(createSerializer) - let isShow_type = RuntimeType.UNDEFINED - if (isShow != undefined) { - isShow_type = RuntimeType.OBJECT + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (TypeChecker.isPadding(value, true, false, true, false)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Margin + const value_0_top = value_0.top + let value_0_top_type = RuntimeType.UNDEFINED + if (value_0_top != undefined) { + value_0_top_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_0_top_type as int32) + if ((RuntimeType.UNDEFINED) != (value_0_top_type)) { + const value_0_top_value = value_0_top! + thisSerializer.writeLength(value_0_top_value); + } + const value_0_right = value_0.right + let value_0_right_type = RuntimeType.UNDEFINED + if (value_0_right != undefined) { + value_0_right_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_0_right_type as int32) + if ((RuntimeType.UNDEFINED) != (value_0_right_type)) { + const value_0_right_value = value_0_right! + thisSerializer.writeLength(value_0_right_value); + } + const value_0_bottom = value_0.bottom + let value_0_bottom_type = RuntimeType.UNDEFINED + if (value_0_bottom != undefined) { + value_0_bottom_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_0_bottom_type as int32) + if ((RuntimeType.UNDEFINED) != (value_0_bottom_type)) { + const value_0_bottom_value = value_0_bottom! + thisSerializer.writeLength(value_0_bottom_value); + } + const value_0_left = value_0.left + let value_0_left_type = RuntimeType.UNDEFINED + if (value_0_left != undefined) { + value_0_left_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_0_left_type as int32) + if ((RuntimeType.UNDEFINED) != (value_0_left_type)) { + const value_0_left_value = value_0_left! + thisSerializer.writeLength(value_0_left_value); + } } - thisSerializer.writeInt8(isShow_type as int32) - if ((RuntimeType.UNDEFINED) != (isShow_type)) { - const isShow_value = isShow! - thisSerializer.writeBoolean(isShow_value) + else if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value)))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as Length + thisSerializer.writeLength(value_1); + } + else if (TypeChecker.isLocalizedPadding(value, true, false, true, false)) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as LocalizedMargin + thisSerializer.writeLocalizedPadding(value_2) } + NativeModule._CommonMethod_margin(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + backgroundAttribute(builder: CustomBuilder, options?: LITERAL_AlignAlignment): void { + const thisSerializer = SerializerBase.hold(createSerializer) let builder_type = RuntimeType.UNDEFINED builder_type = runtimeType(builder) if (((RuntimeType.FUNCTION == builder_type))) { @@ -165,9 +357,122 @@ export class ArkCommonMethodPeer extends PeerNode { thisSerializer.writeInt8(options_type as int32) if ((RuntimeType.UNDEFINED) != (options_type)) { const options_value = options! - thisSerializer.writeSheetOptions(options_value) + const options_value_align = options_value.align + let options_value_align_type = RuntimeType.UNDEFINED + if (options_value_align != undefined) { + options_value_align_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_value_align_type as int32) + if ((RuntimeType.UNDEFINED) != (options_value_align_type)) { + const options_value_align_value = options_value_align! + thisSerializer.writeInt32((options_value_align_value.value as int32)) + } } - NativeModule._CommonMethod_bindSheet(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + NativeModule._CommonMethod_background(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + backgroundColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._CommonMethod_backgroundColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + pixelRoundAttribute(value: PixelRoundPolicy): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writePixelRoundPolicy(value) + NativeModule._CommonMethod_pixelRound(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + backgroundImageAttribute(src: ResourceStr | PixelMap, repeat?: ImageRepeat): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let src_type = RuntimeType.UNDEFINED + src_type = runtimeType(src) + if (((RuntimeType.OBJECT) == (src_type)) && (isPixelMap(src))) { + thisSerializer.writeInt8(1 as int32) + const src_1 = src as PixelMap + thisSerializer.writeCustomObject("PixelMap", src_1) + } + else if (((RuntimeType.STRING == src_type)) || ((RuntimeType.OBJECT == src_type))) { + thisSerializer.writeInt8(0 as int32) + const src_0 = src as ResourceStr + let src_0_type = RuntimeType.UNDEFINED + src_0_type = runtimeType(src_0) + if (((RuntimeType.STRING == src_0_type))) { + thisSerializer.writeInt8(0 as int32) + const src_0_0 = src_0 as string + thisSerializer.writeString(src_0_0) + } + else if (((RuntimeType.OBJECT == src_0_type))) { + thisSerializer.writeInt8(1 as int32) + const src_0_1 = src_0 as Resource + thisSerializer.writeResource(src_0_1) + } + } + let repeat_type = RuntimeType.UNDEFINED + if (repeat != undefined) { + repeat_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(repeat_type as int32) + if ((RuntimeType.UNDEFINED) != (repeat_type)) { + const repeat_value = repeat! + thisSerializer.writeInt32((repeat_value.value as int32)) + } + NativeModule._CommonMethod_backgroundImage(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + backgroundImageSizeAttribute(value: SizeOptions | ImageSize): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (TypeChecker.isSizeOptions(value, false, false)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as SizeOptions + thisSerializer.writeSizeOptions(value_0) + } + else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof ImageSize)) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as ImageSize + thisSerializer.writeInt32((value_1.value as int32)) + } + NativeModule._CommonMethod_backgroundImageSize(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + backgroundImagePositionAttribute(value: Position | Alignment): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (TypeChecker.isPosition(value, false, false)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Position + thisSerializer.writePosition(value_0) + } + else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Alignment)) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as Alignment + thisSerializer.writeInt32((value_1.value as int32)) + } + NativeModule._CommonMethod_backgroundImagePosition(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); thisSerializer.release(); } backgroundBlurStyleAttribute(value: BlurStyle, options?: BackgroundBlurStyleOptions): void { @@ -184,9 +489,50 @@ export class ArkCommonMethodPeer extends PeerNode { NativeModule._CommonMethod_backgroundBlurStyle(this.peer.ptr, (value.value as int32), thisSerializer.asArray(), thisSerializer.length()); thisSerializer.release(); } - dragPreviewOptionsAttribute(value: DragPreviewOptions, options?: DragInteractionOptions): void { + backgroundEffectAttribute(options: BackgroundEffectOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeBackgroundEffectOptions(options) + NativeModule._CommonMethod_backgroundEffect(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + backgroundImageResizableAttribute(value: ResizableOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeResizableOptions(value) + NativeModule._CommonMethod_backgroundImageResizable(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + foregroundEffectAttribute(options: ForegroundEffectOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeForegroundEffectOptions(options) + NativeModule._CommonMethod_foregroundEffect(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + visualEffectAttribute(effect: VisualEffect): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeCustomObject("VisualEffect", effect) + NativeModule._CommonMethod_visualEffect(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + backgroundFilterAttribute(filter: Filter): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeCustomObject("Filter", filter) + NativeModule._CommonMethod_backgroundFilter(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + foregroundFilterAttribute(filter: Filter): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeCustomObject("Filter", filter) + NativeModule._CommonMethod_foregroundFilter(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + compositingFilterAttribute(filter: Filter): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeCustomObject("Filter", filter) + NativeModule._CommonMethod_compositingFilter(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + foregroundBlurStyleAttribute(value: BlurStyle, options?: ForegroundBlurStyleOptions): void { const thisSerializer = SerializerBase.hold(createSerializer) - thisSerializer.writeDragPreviewOptions(value) let options_type = RuntimeType.UNDEFINED if (options != undefined) { options_type = RuntimeType.OBJECT @@ -194,97 +540,2430 @@ export class ArkCommonMethodPeer extends PeerNode { thisSerializer.writeInt8(options_type as int32) if ((RuntimeType.UNDEFINED) != (options_type)) { const options_value = options! - thisSerializer.writeDragInteractionOptions(options_value) + thisSerializer.writeForegroundBlurStyleOptions(options_value) } - NativeModule._CommonMethod_dragPreviewOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + NativeModule._CommonMethod_foregroundBlurStyle(this.peer.ptr, (value.value as int32), thisSerializer.asArray(), thisSerializer.length()); thisSerializer.release(); } - linearGradientAttribute(value: LinearGradientValuesType): void { + opacityAttribute(value: number | Resource): void { const thisSerializer = SerializerBase.hold(createSerializer) - const value_angle = value.angle - let value_angle_type = RuntimeType.UNDEFINED - if (value_angle != undefined) { - value_angle_type = RuntimeType.OBJECT + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) } - thisSerializer.writeInt8(value_angle_type as int32) - if ((RuntimeType.UNDEFINED) != (value_angle_type)) { - const value_angle_value = value_angle! - let value_angle_value_type = RuntimeType.UNDEFINED - value_angle_value_type = runtimeType(value_angle_value) - if (((RuntimeType.NUMBER == value_angle_value_type))) { - thisSerializer.writeInt8(0 as int32) - const value_angle_value_0 = value_angle_value as number - thisSerializer.writeNumber(value_angle_value_0) - } - else if (((RuntimeType.STRING == value_angle_value_type))) { - thisSerializer.writeInt8(1 as int32) - const value_angle_value_1 = value_angle_value as string - thisSerializer.writeString(value_angle_value_1) - } + else if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as Resource + thisSerializer.writeResource(value_1) } - const value_direction = value.direction - let value_direction_type = RuntimeType.UNDEFINED - if (value_direction != undefined) { - value_direction_type = RuntimeType.OBJECT + NativeModule._CommonMethod_opacity(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + borderAttribute(value: BorderOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeBorderOptions(value) + NativeModule._CommonMethod_border(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + borderStyleAttribute(value: BorderStyle | EdgeStyles): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof BorderStyle)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as BorderStyle + thisSerializer.writeInt32((value_0.value as int32)) } - thisSerializer.writeInt8(value_direction_type as int32) - if ((RuntimeType.UNDEFINED) != (value_direction_type)) { - const value_direction_value = value_direction! - thisSerializer.writeInt32((value_direction_value.value as int32)) + else if (TypeChecker.isEdgeStyles(value, false, false, false, false)) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as EdgeStyles + const value_1_top = value_1.top + let value_1_top_type = RuntimeType.UNDEFINED + if (value_1_top != undefined) { + value_1_top_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_1_top_type as int32) + if ((RuntimeType.UNDEFINED) != (value_1_top_type)) { + const value_1_top_value = value_1_top! + thisSerializer.writeInt32((value_1_top_value.value as int32)) + } + const value_1_right = value_1.right + let value_1_right_type = RuntimeType.UNDEFINED + if (value_1_right != undefined) { + value_1_right_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_1_right_type as int32) + if ((RuntimeType.UNDEFINED) != (value_1_right_type)) { + const value_1_right_value = value_1_right! + thisSerializer.writeInt32((value_1_right_value.value as int32)) + } + const value_1_bottom = value_1.bottom + let value_1_bottom_type = RuntimeType.UNDEFINED + if (value_1_bottom != undefined) { + value_1_bottom_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_1_bottom_type as int32) + if ((RuntimeType.UNDEFINED) != (value_1_bottom_type)) { + const value_1_bottom_value = value_1_bottom! + thisSerializer.writeInt32((value_1_bottom_value.value as int32)) + } + const value_1_left = value_1.left + let value_1_left_type = RuntimeType.UNDEFINED + if (value_1_left != undefined) { + value_1_left_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_1_left_type as int32) + if ((RuntimeType.UNDEFINED) != (value_1_left_type)) { + const value_1_left_value = value_1_left! + thisSerializer.writeInt32((value_1_left_value.value as int32)) + } } - const value_colors = value.colors - thisSerializer.writeInt8(runtimeType(value_colors) as int32) - thisSerializer.writeInt32(value_colors.length as int32) - for (let i = 0; i < value_colors.length; i++) { - const value_colors_element = value_colors[i] - thisSerializer.writeInt8(runtimeType(value_colors_element) as int32) - const value_colors_element_0 = value_colors_element[0] - let value_colors_element_0_type = RuntimeType.UNDEFINED - value_colors_element_0_type = runtimeType(value_colors_element_0) - if (((RuntimeType.OBJECT) == (value_colors_element_0_type)) && (value_colors_element_0 instanceof Color)) { + NativeModule._CommonMethod_borderStyle(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + borderWidthAttribute(value: Length | EdgeWidths | LocalizedEdgeWidths): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value)))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Length + thisSerializer.writeLength(value_0); + } + else if (TypeChecker.isEdgeWidths(value, true, false, true, false)) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as EdgeWidths + const value_1_top = value_1.top + let value_1_top_type = RuntimeType.UNDEFINED + if (value_1_top != undefined) { + value_1_top_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_1_top_type as int32) + if ((RuntimeType.UNDEFINED) != (value_1_top_type)) { + const value_1_top_value = value_1_top! + thisSerializer.writeLength(value_1_top_value); + } + const value_1_right = value_1.right + let value_1_right_type = RuntimeType.UNDEFINED + if (value_1_right != undefined) { + value_1_right_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_1_right_type as int32) + if ((RuntimeType.UNDEFINED) != (value_1_right_type)) { + const value_1_right_value = value_1_right! + thisSerializer.writeLength(value_1_right_value); + } + const value_1_bottom = value_1.bottom + let value_1_bottom_type = RuntimeType.UNDEFINED + if (value_1_bottom != undefined) { + value_1_bottom_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_1_bottom_type as int32) + if ((RuntimeType.UNDEFINED) != (value_1_bottom_type)) { + const value_1_bottom_value = value_1_bottom! + thisSerializer.writeLength(value_1_bottom_value); + } + const value_1_left = value_1.left + let value_1_left_type = RuntimeType.UNDEFINED + if (value_1_left != undefined) { + value_1_left_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_1_left_type as int32) + if ((RuntimeType.UNDEFINED) != (value_1_left_type)) { + const value_1_left_value = value_1_left! + thisSerializer.writeLength(value_1_left_value); + } + } + else if (TypeChecker.isLocalizedEdgeWidths(value, true, false, true, false)) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as LocalizedEdgeWidths + thisSerializer.writeLocalizedEdgeWidths(value_2) + } + NativeModule._CommonMethod_borderWidth(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + borderColorAttribute(value: ResourceColor | EdgeColors | LocalizedEdgeColors): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (TypeChecker.isEdgeColors(value, true, false, true, false)) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as EdgeColors + const value_1_top = value_1.top + let value_1_top_type = RuntimeType.UNDEFINED + if (value_1_top != undefined) { + value_1_top_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_1_top_type as int32) + if ((RuntimeType.UNDEFINED) != (value_1_top_type)) { + const value_1_top_value = value_1_top! + let value_1_top_value_type = RuntimeType.UNDEFINED + value_1_top_value_type = runtimeType(value_1_top_value) + if (((RuntimeType.OBJECT) == (value_1_top_value_type)) && (value_1_top_value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_1_top_value_0 = value_1_top_value as Color + thisSerializer.writeInt32((value_1_top_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_1_top_value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1_top_value_1 = value_1_top_value as number + thisSerializer.writeNumber(value_1_top_value_1) + } + else if (((RuntimeType.STRING == value_1_top_value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_1_top_value_2 = value_1_top_value as string + thisSerializer.writeString(value_1_top_value_2) + } + else if (isResource(value_1_top_value)) { + thisSerializer.writeInt8(3 as int32) + const value_1_top_value_3 = value_1_top_value as Resource + thisSerializer.writeResource(value_1_top_value_3) + } + } + const value_1_right = value_1.right + let value_1_right_type = RuntimeType.UNDEFINED + if (value_1_right != undefined) { + value_1_right_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_1_right_type as int32) + if ((RuntimeType.UNDEFINED) != (value_1_right_type)) { + const value_1_right_value = value_1_right! + let value_1_right_value_type = RuntimeType.UNDEFINED + value_1_right_value_type = runtimeType(value_1_right_value) + if (((RuntimeType.OBJECT) == (value_1_right_value_type)) && (value_1_right_value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_1_right_value_0 = value_1_right_value as Color + thisSerializer.writeInt32((value_1_right_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_1_right_value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1_right_value_1 = value_1_right_value as number + thisSerializer.writeNumber(value_1_right_value_1) + } + else if (((RuntimeType.STRING == value_1_right_value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_1_right_value_2 = value_1_right_value as string + thisSerializer.writeString(value_1_right_value_2) + } + else if (isResource(value_1_right_value)) { + thisSerializer.writeInt8(3 as int32) + const value_1_right_value_3 = value_1_right_value as Resource + thisSerializer.writeResource(value_1_right_value_3) + } + } + const value_1_bottom = value_1.bottom + let value_1_bottom_type = RuntimeType.UNDEFINED + if (value_1_bottom != undefined) { + value_1_bottom_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_1_bottom_type as int32) + if ((RuntimeType.UNDEFINED) != (value_1_bottom_type)) { + const value_1_bottom_value = value_1_bottom! + let value_1_bottom_value_type = RuntimeType.UNDEFINED + value_1_bottom_value_type = runtimeType(value_1_bottom_value) + if (((RuntimeType.OBJECT) == (value_1_bottom_value_type)) && (value_1_bottom_value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_1_bottom_value_0 = value_1_bottom_value as Color + thisSerializer.writeInt32((value_1_bottom_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_1_bottom_value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1_bottom_value_1 = value_1_bottom_value as number + thisSerializer.writeNumber(value_1_bottom_value_1) + } + else if (((RuntimeType.STRING == value_1_bottom_value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_1_bottom_value_2 = value_1_bottom_value as string + thisSerializer.writeString(value_1_bottom_value_2) + } + else if (isResource(value_1_bottom_value)) { + thisSerializer.writeInt8(3 as int32) + const value_1_bottom_value_3 = value_1_bottom_value as Resource + thisSerializer.writeResource(value_1_bottom_value_3) + } + } + const value_1_left = value_1.left + let value_1_left_type = RuntimeType.UNDEFINED + if (value_1_left != undefined) { + value_1_left_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_1_left_type as int32) + if ((RuntimeType.UNDEFINED) != (value_1_left_type)) { + const value_1_left_value = value_1_left! + let value_1_left_value_type = RuntimeType.UNDEFINED + value_1_left_value_type = runtimeType(value_1_left_value) + if (((RuntimeType.OBJECT) == (value_1_left_value_type)) && (value_1_left_value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_1_left_value_0 = value_1_left_value as Color + thisSerializer.writeInt32((value_1_left_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_1_left_value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1_left_value_1 = value_1_left_value as number + thisSerializer.writeNumber(value_1_left_value_1) + } + else if (((RuntimeType.STRING == value_1_left_value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_1_left_value_2 = value_1_left_value as string + thisSerializer.writeString(value_1_left_value_2) + } + else if (isResource(value_1_left_value)) { + thisSerializer.writeInt8(3 as int32) + const value_1_left_value_3 = value_1_left_value as Resource + thisSerializer.writeResource(value_1_left_value_3) + } + } + } + else if (TypeChecker.isLocalizedEdgeColors(value, true, false, true, false)) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as LocalizedEdgeColors + thisSerializer.writeLocalizedEdgeColors(value_2) + } + else if (((RuntimeType.OBJECT == value_type)) || ((RuntimeType.NUMBER == value_type)) || ((RuntimeType.STRING == value_type)) || ((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as ResourceColor + let value_0_type = RuntimeType.UNDEFINED + value_0_type = runtimeType(value_0) + if (((RuntimeType.OBJECT) == (value_0_type)) && (value_0 instanceof Color)) { thisSerializer.writeInt8(0 as int32) - const value_colors_element_0_0 = value_colors_element_0 as Color - thisSerializer.writeInt32((value_colors_element_0_0.value as int32)) + const value_0_0 = value_0 as Color + thisSerializer.writeInt32((value_0_0.value as int32)) } - else if (((RuntimeType.NUMBER == value_colors_element_0_type))) { + else if (((RuntimeType.NUMBER == value_0_type))) { thisSerializer.writeInt8(1 as int32) - const value_colors_element_0_1 = value_colors_element_0 as number - thisSerializer.writeNumber(value_colors_element_0_1) + const value_0_1 = value_0 as number + thisSerializer.writeNumber(value_0_1) } - else if (((RuntimeType.STRING == value_colors_element_0_type))) { + else if (((RuntimeType.STRING == value_0_type))) { thisSerializer.writeInt8(2 as int32) - const value_colors_element_0_2 = value_colors_element_0 as string - thisSerializer.writeString(value_colors_element_0_2) + const value_0_2 = value_0 as string + thisSerializer.writeString(value_0_2) } - else if (isResource(value_colors_element_0)) { + else if (isResource(value_0)) { thisSerializer.writeInt8(3 as int32) - const value_colors_element_0_3 = value_colors_element_0 as Resource - thisSerializer.writeResource(value_colors_element_0_3) + const value_0_3 = value_0 as Resource + thisSerializer.writeResource(value_0_3) } - const value_colors_element_1 = value_colors_element[1] - thisSerializer.writeNumber(value_colors_element_1) } - const value_repeating = value.repeating - let value_repeating_type = RuntimeType.UNDEFINED - if (value_repeating != undefined) { - value_repeating_type = RuntimeType.OBJECT + NativeModule._CommonMethod_borderColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + borderRadiusAttribute(value: Length | BorderRadiuses | LocalizedBorderRadiuses): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value)))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Length + thisSerializer.writeLength(value_0); } - thisSerializer.writeInt8(value_repeating_type as int32) - if ((RuntimeType.UNDEFINED) != (value_repeating_type)) { - const value_repeating_value = value_repeating! - thisSerializer.writeBoolean(value_repeating_value) + else if (TypeChecker.isBorderRadiuses(value, false, false, false, false)) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as BorderRadiuses + const value_1_topLeft = value_1.topLeft + let value_1_topLeft_type = RuntimeType.UNDEFINED + if (value_1_topLeft != undefined) { + value_1_topLeft_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_1_topLeft_type as int32) + if ((RuntimeType.UNDEFINED) != (value_1_topLeft_type)) { + const value_1_topLeft_value = value_1_topLeft! + thisSerializer.writeLength(value_1_topLeft_value); + } + const value_1_topRight = value_1.topRight + let value_1_topRight_type = RuntimeType.UNDEFINED + if (value_1_topRight != undefined) { + value_1_topRight_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_1_topRight_type as int32) + if ((RuntimeType.UNDEFINED) != (value_1_topRight_type)) { + const value_1_topRight_value = value_1_topRight! + thisSerializer.writeLength(value_1_topRight_value); + } + const value_1_bottomLeft = value_1.bottomLeft + let value_1_bottomLeft_type = RuntimeType.UNDEFINED + if (value_1_bottomLeft != undefined) { + value_1_bottomLeft_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_1_bottomLeft_type as int32) + if ((RuntimeType.UNDEFINED) != (value_1_bottomLeft_type)) { + const value_1_bottomLeft_value = value_1_bottomLeft! + thisSerializer.writeLength(value_1_bottomLeft_value); + } + const value_1_bottomRight = value_1.bottomRight + let value_1_bottomRight_type = RuntimeType.UNDEFINED + if (value_1_bottomRight != undefined) { + value_1_bottomRight_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_1_bottomRight_type as int32) + if ((RuntimeType.UNDEFINED) != (value_1_bottomRight_type)) { + const value_1_bottomRight_value = value_1_bottomRight! + thisSerializer.writeLength(value_1_bottomRight_value); + } + } + else if (TypeChecker.isLocalizedBorderRadiuses(value, false, false, false, false)) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as LocalizedBorderRadiuses + thisSerializer.writeLocalizedBorderRadiuses(value_2) + } + NativeModule._CommonMethod_borderRadius(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + borderImageAttribute(value: BorderImageOption): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeBorderImageOption(value) + NativeModule._CommonMethod_borderImage(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + outlineAttribute(value: OutlineOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeOutlineOptions(value) + NativeModule._CommonMethod_outline(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + outlineStyleAttribute(value: OutlineStyle | EdgeOutlineStyles): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof OutlineStyle)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as OutlineStyle + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (TypeChecker.isEdgeOutlineStyles(value, false, false, false, false)) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as EdgeOutlineStyles + const value_1_top = value_1.top + let value_1_top_type = RuntimeType.UNDEFINED + if (value_1_top != undefined) { + value_1_top_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_1_top_type as int32) + if ((RuntimeType.UNDEFINED) != (value_1_top_type)) { + const value_1_top_value = value_1_top! + thisSerializer.writeInt32((value_1_top_value.value as int32)) + } + const value_1_right = value_1.right + let value_1_right_type = RuntimeType.UNDEFINED + if (value_1_right != undefined) { + value_1_right_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_1_right_type as int32) + if ((RuntimeType.UNDEFINED) != (value_1_right_type)) { + const value_1_right_value = value_1_right! + thisSerializer.writeInt32((value_1_right_value.value as int32)) + } + const value_1_bottom = value_1.bottom + let value_1_bottom_type = RuntimeType.UNDEFINED + if (value_1_bottom != undefined) { + value_1_bottom_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_1_bottom_type as int32) + if ((RuntimeType.UNDEFINED) != (value_1_bottom_type)) { + const value_1_bottom_value = value_1_bottom! + thisSerializer.writeInt32((value_1_bottom_value.value as int32)) + } + const value_1_left = value_1.left + let value_1_left_type = RuntimeType.UNDEFINED + if (value_1_left != undefined) { + value_1_left_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_1_left_type as int32) + if ((RuntimeType.UNDEFINED) != (value_1_left_type)) { + const value_1_left_value = value_1_left! + thisSerializer.writeInt32((value_1_left_value.value as int32)) + } + } + NativeModule._CommonMethod_outlineStyle(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + outlineWidthAttribute(value: Dimension | EdgeOutlineWidths): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value)))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Dimension + thisSerializer.writeLength(value_0); + } + else if (TypeChecker.isEdgeOutlineWidths(value, false, false, false, false)) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as EdgeOutlineWidths + const value_1_top = value_1.top + let value_1_top_type = RuntimeType.UNDEFINED + if (value_1_top != undefined) { + value_1_top_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_1_top_type as int32) + if ((RuntimeType.UNDEFINED) != (value_1_top_type)) { + const value_1_top_value = value_1_top! + thisSerializer.writeLength(value_1_top_value); + } + const value_1_right = value_1.right + let value_1_right_type = RuntimeType.UNDEFINED + if (value_1_right != undefined) { + value_1_right_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_1_right_type as int32) + if ((RuntimeType.UNDEFINED) != (value_1_right_type)) { + const value_1_right_value = value_1_right! + thisSerializer.writeLength(value_1_right_value); + } + const value_1_bottom = value_1.bottom + let value_1_bottom_type = RuntimeType.UNDEFINED + if (value_1_bottom != undefined) { + value_1_bottom_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_1_bottom_type as int32) + if ((RuntimeType.UNDEFINED) != (value_1_bottom_type)) { + const value_1_bottom_value = value_1_bottom! + thisSerializer.writeLength(value_1_bottom_value); + } + const value_1_left = value_1.left + let value_1_left_type = RuntimeType.UNDEFINED + if (value_1_left != undefined) { + value_1_left_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_1_left_type as int32) + if ((RuntimeType.UNDEFINED) != (value_1_left_type)) { + const value_1_left_value = value_1_left! + thisSerializer.writeLength(value_1_left_value); + } + } + NativeModule._CommonMethod_outlineWidth(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + outlineColorAttribute(value: ResourceColor | EdgeColors | LocalizedEdgeColors): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (TypeChecker.isEdgeColors(value, true, false, true, false)) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as EdgeColors + const value_1_top = value_1.top + let value_1_top_type = RuntimeType.UNDEFINED + if (value_1_top != undefined) { + value_1_top_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_1_top_type as int32) + if ((RuntimeType.UNDEFINED) != (value_1_top_type)) { + const value_1_top_value = value_1_top! + let value_1_top_value_type = RuntimeType.UNDEFINED + value_1_top_value_type = runtimeType(value_1_top_value) + if (((RuntimeType.OBJECT) == (value_1_top_value_type)) && (value_1_top_value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_1_top_value_0 = value_1_top_value as Color + thisSerializer.writeInt32((value_1_top_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_1_top_value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1_top_value_1 = value_1_top_value as number + thisSerializer.writeNumber(value_1_top_value_1) + } + else if (((RuntimeType.STRING == value_1_top_value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_1_top_value_2 = value_1_top_value as string + thisSerializer.writeString(value_1_top_value_2) + } + else if (isResource(value_1_top_value)) { + thisSerializer.writeInt8(3 as int32) + const value_1_top_value_3 = value_1_top_value as Resource + thisSerializer.writeResource(value_1_top_value_3) + } + } + const value_1_right = value_1.right + let value_1_right_type = RuntimeType.UNDEFINED + if (value_1_right != undefined) { + value_1_right_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_1_right_type as int32) + if ((RuntimeType.UNDEFINED) != (value_1_right_type)) { + const value_1_right_value = value_1_right! + let value_1_right_value_type = RuntimeType.UNDEFINED + value_1_right_value_type = runtimeType(value_1_right_value) + if (((RuntimeType.OBJECT) == (value_1_right_value_type)) && (value_1_right_value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_1_right_value_0 = value_1_right_value as Color + thisSerializer.writeInt32((value_1_right_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_1_right_value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1_right_value_1 = value_1_right_value as number + thisSerializer.writeNumber(value_1_right_value_1) + } + else if (((RuntimeType.STRING == value_1_right_value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_1_right_value_2 = value_1_right_value as string + thisSerializer.writeString(value_1_right_value_2) + } + else if (isResource(value_1_right_value)) { + thisSerializer.writeInt8(3 as int32) + const value_1_right_value_3 = value_1_right_value as Resource + thisSerializer.writeResource(value_1_right_value_3) + } + } + const value_1_bottom = value_1.bottom + let value_1_bottom_type = RuntimeType.UNDEFINED + if (value_1_bottom != undefined) { + value_1_bottom_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_1_bottom_type as int32) + if ((RuntimeType.UNDEFINED) != (value_1_bottom_type)) { + const value_1_bottom_value = value_1_bottom! + let value_1_bottom_value_type = RuntimeType.UNDEFINED + value_1_bottom_value_type = runtimeType(value_1_bottom_value) + if (((RuntimeType.OBJECT) == (value_1_bottom_value_type)) && (value_1_bottom_value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_1_bottom_value_0 = value_1_bottom_value as Color + thisSerializer.writeInt32((value_1_bottom_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_1_bottom_value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1_bottom_value_1 = value_1_bottom_value as number + thisSerializer.writeNumber(value_1_bottom_value_1) + } + else if (((RuntimeType.STRING == value_1_bottom_value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_1_bottom_value_2 = value_1_bottom_value as string + thisSerializer.writeString(value_1_bottom_value_2) + } + else if (isResource(value_1_bottom_value)) { + thisSerializer.writeInt8(3 as int32) + const value_1_bottom_value_3 = value_1_bottom_value as Resource + thisSerializer.writeResource(value_1_bottom_value_3) + } + } + const value_1_left = value_1.left + let value_1_left_type = RuntimeType.UNDEFINED + if (value_1_left != undefined) { + value_1_left_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_1_left_type as int32) + if ((RuntimeType.UNDEFINED) != (value_1_left_type)) { + const value_1_left_value = value_1_left! + let value_1_left_value_type = RuntimeType.UNDEFINED + value_1_left_value_type = runtimeType(value_1_left_value) + if (((RuntimeType.OBJECT) == (value_1_left_value_type)) && (value_1_left_value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_1_left_value_0 = value_1_left_value as Color + thisSerializer.writeInt32((value_1_left_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_1_left_value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1_left_value_1 = value_1_left_value as number + thisSerializer.writeNumber(value_1_left_value_1) + } + else if (((RuntimeType.STRING == value_1_left_value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_1_left_value_2 = value_1_left_value as string + thisSerializer.writeString(value_1_left_value_2) + } + else if (isResource(value_1_left_value)) { + thisSerializer.writeInt8(3 as int32) + const value_1_left_value_3 = value_1_left_value as Resource + thisSerializer.writeResource(value_1_left_value_3) + } + } + } + else if (TypeChecker.isLocalizedEdgeColors(value, true, false, true, false)) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as LocalizedEdgeColors + thisSerializer.writeLocalizedEdgeColors(value_2) + } + else if (((RuntimeType.OBJECT == value_type)) || ((RuntimeType.NUMBER == value_type)) || ((RuntimeType.STRING == value_type)) || ((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as ResourceColor + let value_0_type = RuntimeType.UNDEFINED + value_0_type = runtimeType(value_0) + if (((RuntimeType.OBJECT) == (value_0_type)) && (value_0 instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0_0 = value_0 as Color + thisSerializer.writeInt32((value_0_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_0_type))) { + thisSerializer.writeInt8(1 as int32) + const value_0_1 = value_0 as number + thisSerializer.writeNumber(value_0_1) + } + else if (((RuntimeType.STRING == value_0_type))) { + thisSerializer.writeInt8(2 as int32) + const value_0_2 = value_0 as string + thisSerializer.writeString(value_0_2) + } + else if (isResource(value_0)) { + thisSerializer.writeInt8(3 as int32) + const value_0_3 = value_0 as Resource + thisSerializer.writeResource(value_0_3) + } + } + NativeModule._CommonMethod_outlineColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + outlineRadiusAttribute(value: Dimension | OutlineRadiuses): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value)))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Dimension + thisSerializer.writeLength(value_0); + } + else if (TypeChecker.isOutlineRadiuses(value, false, false, false, false)) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as OutlineRadiuses + const value_1_topLeft = value_1.topLeft + let value_1_topLeft_type = RuntimeType.UNDEFINED + if (value_1_topLeft != undefined) { + value_1_topLeft_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_1_topLeft_type as int32) + if ((RuntimeType.UNDEFINED) != (value_1_topLeft_type)) { + const value_1_topLeft_value = value_1_topLeft! + thisSerializer.writeLength(value_1_topLeft_value); + } + const value_1_topRight = value_1.topRight + let value_1_topRight_type = RuntimeType.UNDEFINED + if (value_1_topRight != undefined) { + value_1_topRight_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_1_topRight_type as int32) + if ((RuntimeType.UNDEFINED) != (value_1_topRight_type)) { + const value_1_topRight_value = value_1_topRight! + thisSerializer.writeLength(value_1_topRight_value); + } + const value_1_bottomLeft = value_1.bottomLeft + let value_1_bottomLeft_type = RuntimeType.UNDEFINED + if (value_1_bottomLeft != undefined) { + value_1_bottomLeft_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_1_bottomLeft_type as int32) + if ((RuntimeType.UNDEFINED) != (value_1_bottomLeft_type)) { + const value_1_bottomLeft_value = value_1_bottomLeft! + thisSerializer.writeLength(value_1_bottomLeft_value); + } + const value_1_bottomRight = value_1.bottomRight + let value_1_bottomRight_type = RuntimeType.UNDEFINED + if (value_1_bottomRight != undefined) { + value_1_bottomRight_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_1_bottomRight_type as int32) + if ((RuntimeType.UNDEFINED) != (value_1_bottomRight_type)) { + const value_1_bottomRight_value = value_1_bottomRight! + thisSerializer.writeLength(value_1_bottomRight_value); + } + } + NativeModule._CommonMethod_outlineRadius(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + foregroundColorAttribute(value: ResourceColor | ColoringStrategy): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof ColoringStrategy)) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as ColoringStrategy + thisSerializer.writeInt32((value_1.ordinal as int32)) + } + else if (((RuntimeType.OBJECT == value_type)) || ((RuntimeType.NUMBER == value_type)) || ((RuntimeType.STRING == value_type)) || ((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as ResourceColor + let value_0_type = RuntimeType.UNDEFINED + value_0_type = runtimeType(value_0) + if (((RuntimeType.OBJECT) == (value_0_type)) && (value_0 instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0_0 = value_0 as Color + thisSerializer.writeInt32((value_0_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_0_type))) { + thisSerializer.writeInt8(1 as int32) + const value_0_1 = value_0 as number + thisSerializer.writeNumber(value_0_1) + } + else if (((RuntimeType.STRING == value_0_type))) { + thisSerializer.writeInt8(2 as int32) + const value_0_2 = value_0 as string + thisSerializer.writeString(value_0_2) + } + else if (isResource(value_0)) { + thisSerializer.writeInt8(3 as int32) + const value_0_3 = value_0 as Resource + thisSerializer.writeResource(value_0_3) + } + } + NativeModule._CommonMethod_foregroundColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + onClick0Attribute(event: ((event: ClickEvent) => void)): void { + NativeModule._CommonMethod_onClick0(this.peer.ptr, registerCallback(event)); + } + onClick1Attribute(event: Callback, distanceThreshold: number): void { + NativeModule._CommonMethod_onClick1(this.peer.ptr, registerCallback(event), distanceThreshold); + } + onHoverAttribute(event: ((isHover: boolean, event: HoverEvent) => void)): void { + NativeModule._CommonMethod_onHover(this.peer.ptr, registerCallback(event)); + } + onAccessibilityHoverAttribute(callback: AccessibilityCallback): void { + NativeModule._CommonMethod_onAccessibilityHover(this.peer.ptr, registerCallback(callback)); + } + hoverEffectAttribute(value: HoverEffect): void { + NativeModule._CommonMethod_hoverEffect(this.peer.ptr, (value.value as int32)); + } + onMouseAttribute(event: ((event: MouseEvent) => void)): void { + NativeModule._CommonMethod_onMouse(this.peer.ptr, registerCallback(event)); + } + onTouchAttribute(event: ((event: TouchEvent) => void)): void { + NativeModule._CommonMethod_onTouch(this.peer.ptr, registerCallback(event)); + } + onKeyEventAttribute(event: ((event: KeyEvent) => void)): void { + NativeModule._CommonMethod_onKeyEvent(this.peer.ptr, registerCallback(event)); + } + onKeyPreImeAttribute(event: Callback): void { + NativeModule._CommonMethod_onKeyPreIme(this.peer.ptr, registerCallback(event)); + } + focusableAttribute(value: boolean): void { + NativeModule._CommonMethod_focusable(this.peer.ptr, value ? 1 : 0); + } + onFocusAttribute(event: (() => void)): void { + NativeModule._CommonMethod_onFocus(this.peer.ptr, registerCallback(event)); + } + onBlurAttribute(event: (() => void)): void { + NativeModule._CommonMethod_onBlur(this.peer.ptr, registerCallback(event)); + } + tabIndexAttribute(index: number): void { + NativeModule._CommonMethod_tabIndex(this.peer.ptr, index); + } + defaultFocusAttribute(value: boolean): void { + NativeModule._CommonMethod_defaultFocus(this.peer.ptr, value ? 1 : 0); + } + groupDefaultFocusAttribute(value: boolean): void { + NativeModule._CommonMethod_groupDefaultFocus(this.peer.ptr, value ? 1 : 0); + } + focusOnTouchAttribute(value: boolean): void { + NativeModule._CommonMethod_focusOnTouch(this.peer.ptr, value ? 1 : 0); + } + focusBoxAttribute(style: FocusBoxStyle): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeFocusBoxStyle(style) + NativeModule._CommonMethod_focusBox(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + focusScopeIdAttribute(id: string, isGroup?: boolean): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let isGroup_type = RuntimeType.UNDEFINED + if (isGroup != undefined) { + isGroup_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(isGroup_type as int32) + if ((RuntimeType.UNDEFINED) != (isGroup_type)) { + const isGroup_value = isGroup! + thisSerializer.writeBoolean(isGroup_value) + } + NativeModule._CommonMethod_focusScopeId(this.peer.ptr, id, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + focusScopePriorityAttribute(scopeId: string, priority?: FocusPriority): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let priority_type = RuntimeType.UNDEFINED + if (priority != undefined) { + priority_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(priority_type as int32) + if ((RuntimeType.UNDEFINED) != (priority_type)) { + const priority_value = priority! + thisSerializer.writeInt32((priority_value.value as int32)) + } + NativeModule._CommonMethod_focusScopePriority(this.peer.ptr, scopeId, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + animationAttribute(value: AnimateParam): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeAnimateParam(value) + NativeModule._CommonMethod_animation(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + transition0Attribute(value: TransitionOptions | TransitionEffect): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (TypeChecker.isTransitionOptions(value, false, false, false, false, false)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as TransitionOptions + thisSerializer.writeTransitionOptions(value_0) + } + else if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as Object + thisSerializer.writeCustomObject("TransitionEffect", value_1) + } + NativeModule._CommonMethod_transition0(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + transition1Attribute(effect: TransitionEffect, onFinish: TransitionFinishCallback | undefined): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeCustomObject("TransitionEffect", effect) + let onFinish_type = RuntimeType.UNDEFINED + if (onFinish != undefined) { + onFinish_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(onFinish_type as int32) + if ((RuntimeType.UNDEFINED) != (onFinish_type)) { + const onFinish_value = onFinish! + thisSerializer.writeFunction(onFinish_value) + } + NativeModule._CommonMethod_transition1(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + gestureAttribute(gesture: GestureType, mask?: GestureMask): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let gesture_type = RuntimeType.UNDEFINED + gesture_type = runtimeType(gesture) + if (TypeChecker.isTapGestureInterface(gesture)) { + thisSerializer.writeInt8(0 as int32) + const gesture_0 = gesture as TapGestureInterface + thisSerializer.writeTapGestureInterface(gesture_0) + } + else if (TypeChecker.isLongPressGestureInterface(gesture)) { + thisSerializer.writeInt8(1 as int32) + const gesture_1 = gesture as LongPressGestureInterface + thisSerializer.writeLongPressGestureInterface(gesture_1) + } + else if (TypeChecker.isPanGestureInterface(gesture)) { + thisSerializer.writeInt8(2 as int32) + const gesture_2 = gesture as PanGestureInterface + thisSerializer.writePanGestureInterface(gesture_2) + } + else if (TypeChecker.isPinchGestureInterface(gesture)) { + thisSerializer.writeInt8(3 as int32) + const gesture_3 = gesture as PinchGestureInterface + thisSerializer.writePinchGestureInterface(gesture_3) + } + else if (TypeChecker.isSwipeGestureInterface(gesture)) { + thisSerializer.writeInt8(4 as int32) + const gesture_4 = gesture as SwipeGestureInterface + thisSerializer.writeSwipeGestureInterface(gesture_4) + } + else if (TypeChecker.isRotationGestureInterface(gesture)) { + thisSerializer.writeInt8(5 as int32) + const gesture_5 = gesture as RotationGestureInterface + thisSerializer.writeRotationGestureInterface(gesture_5) + } + else if (TypeChecker.isGestureGroupInterface(gesture)) { + thisSerializer.writeInt8(6 as int32) + const gesture_6 = gesture as GestureGroupInterface + thisSerializer.writeGestureGroupInterface(gesture_6) + } + let mask_type = RuntimeType.UNDEFINED + if (mask != undefined) { + mask_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(mask_type as int32) + if ((RuntimeType.UNDEFINED) != (mask_type)) { + const mask_value = mask! + thisSerializer.writeInt32((mask_value.value as int32)) + } + NativeModule._CommonMethod_gesture(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + priorityGestureAttribute(gesture: GestureType, mask?: GestureMask): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let gesture_type = RuntimeType.UNDEFINED + gesture_type = runtimeType(gesture) + if (TypeChecker.isTapGestureInterface(gesture)) { + thisSerializer.writeInt8(0 as int32) + const gesture_0 = gesture as TapGestureInterface + thisSerializer.writeTapGestureInterface(gesture_0) + } + else if (TypeChecker.isLongPressGestureInterface(gesture)) { + thisSerializer.writeInt8(1 as int32) + const gesture_1 = gesture as LongPressGestureInterface + thisSerializer.writeLongPressGestureInterface(gesture_1) + } + else if (TypeChecker.isPanGestureInterface(gesture)) { + thisSerializer.writeInt8(2 as int32) + const gesture_2 = gesture as PanGestureInterface + thisSerializer.writePanGestureInterface(gesture_2) + } + else if (TypeChecker.isPinchGestureInterface(gesture)) { + thisSerializer.writeInt8(3 as int32) + const gesture_3 = gesture as PinchGestureInterface + thisSerializer.writePinchGestureInterface(gesture_3) + } + else if (TypeChecker.isSwipeGestureInterface(gesture)) { + thisSerializer.writeInt8(4 as int32) + const gesture_4 = gesture as SwipeGestureInterface + thisSerializer.writeSwipeGestureInterface(gesture_4) + } + else if (TypeChecker.isRotationGestureInterface(gesture)) { + thisSerializer.writeInt8(5 as int32) + const gesture_5 = gesture as RotationGestureInterface + thisSerializer.writeRotationGestureInterface(gesture_5) + } + else if (TypeChecker.isGestureGroupInterface(gesture)) { + thisSerializer.writeInt8(6 as int32) + const gesture_6 = gesture as GestureGroupInterface + thisSerializer.writeGestureGroupInterface(gesture_6) + } + let mask_type = RuntimeType.UNDEFINED + if (mask != undefined) { + mask_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(mask_type as int32) + if ((RuntimeType.UNDEFINED) != (mask_type)) { + const mask_value = mask! + thisSerializer.writeInt32((mask_value.value as int32)) + } + NativeModule._CommonMethod_priorityGesture(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + parallelGestureAttribute(gesture: GestureType, mask?: GestureMask): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let gesture_type = RuntimeType.UNDEFINED + gesture_type = runtimeType(gesture) + if (TypeChecker.isTapGestureInterface(gesture)) { + thisSerializer.writeInt8(0 as int32) + const gesture_0 = gesture as TapGestureInterface + thisSerializer.writeTapGestureInterface(gesture_0) + } + else if (TypeChecker.isLongPressGestureInterface(gesture)) { + thisSerializer.writeInt8(1 as int32) + const gesture_1 = gesture as LongPressGestureInterface + thisSerializer.writeLongPressGestureInterface(gesture_1) + } + else if (TypeChecker.isPanGestureInterface(gesture)) { + thisSerializer.writeInt8(2 as int32) + const gesture_2 = gesture as PanGestureInterface + thisSerializer.writePanGestureInterface(gesture_2) + } + else if (TypeChecker.isPinchGestureInterface(gesture)) { + thisSerializer.writeInt8(3 as int32) + const gesture_3 = gesture as PinchGestureInterface + thisSerializer.writePinchGestureInterface(gesture_3) + } + else if (TypeChecker.isSwipeGestureInterface(gesture)) { + thisSerializer.writeInt8(4 as int32) + const gesture_4 = gesture as SwipeGestureInterface + thisSerializer.writeSwipeGestureInterface(gesture_4) + } + else if (TypeChecker.isRotationGestureInterface(gesture)) { + thisSerializer.writeInt8(5 as int32) + const gesture_5 = gesture as RotationGestureInterface + thisSerializer.writeRotationGestureInterface(gesture_5) + } + else if (TypeChecker.isGestureGroupInterface(gesture)) { + thisSerializer.writeInt8(6 as int32) + const gesture_6 = gesture as GestureGroupInterface + thisSerializer.writeGestureGroupInterface(gesture_6) + } + let mask_type = RuntimeType.UNDEFINED + if (mask != undefined) { + mask_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(mask_type as int32) + if ((RuntimeType.UNDEFINED) != (mask_type)) { + const mask_value = mask! + thisSerializer.writeInt32((mask_value.value as int32)) + } + NativeModule._CommonMethod_parallelGesture(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + blurAttribute(value: number, options?: BlurOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeBlurOptions(options_value) + } + NativeModule._CommonMethod_blur(this.peer.ptr, value, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + linearGradientBlurAttribute(value: number, options: LinearGradientBlurOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeLinearGradientBlurOptions(options) + NativeModule._CommonMethod_linearGradientBlur(this.peer.ptr, value, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + motionBlurAttribute(value: MotionBlurOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeMotionBlurOptions(value) + NativeModule._CommonMethod_motionBlur(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + brightnessAttribute(value: number): void { + NativeModule._CommonMethod_brightness(this.peer.ptr, value); + } + contrastAttribute(value: number): void { + NativeModule._CommonMethod_contrast(this.peer.ptr, value); + } + grayscaleAttribute(value: number): void { + NativeModule._CommonMethod_grayscale(this.peer.ptr, value); + } + colorBlendAttribute(value: Color | string | Resource): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as string + thisSerializer.writeString(value_1) + } + else if (isResource(value)) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as Resource + thisSerializer.writeResource(value_2) + } + NativeModule._CommonMethod_colorBlend(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + saturateAttribute(value: number): void { + NativeModule._CommonMethod_saturate(this.peer.ptr, value); + } + sepiaAttribute(value: number): void { + NativeModule._CommonMethod_sepia(this.peer.ptr, value); + } + invertAttribute(value: number | InvertOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as InvertOptions + thisSerializer.writeInvertOptions(value_1) + } + NativeModule._CommonMethod_invert(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + systemBarEffectAttribute(): void { + NativeModule._CommonMethod_systemBarEffect(this.peer.ptr); + } + hueRotateAttribute(value: number | string): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as string + thisSerializer.writeString(value_1) + } + NativeModule._CommonMethod_hueRotate(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + useShadowBatchingAttribute(value: boolean): void { + NativeModule._CommonMethod_useShadowBatching(this.peer.ptr, value ? 1 : 0); + } + useEffectAttribute(value: boolean): void { + NativeModule._CommonMethod_useEffect(this.peer.ptr, value ? 1 : 0); + } + backdropBlurAttribute(value: number, options?: BlurOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeBlurOptions(options_value) + } + NativeModule._CommonMethod_backdropBlur(this.peer.ptr, value, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + renderGroupAttribute(value: boolean): void { + NativeModule._CommonMethod_renderGroup(this.peer.ptr, value ? 1 : 0); + } + freezeAttribute(value: boolean): void { + NativeModule._CommonMethod_freeze(this.peer.ptr, value ? 1 : 0); + } + translateAttribute(value: TranslateOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeTranslateOptions(value) + NativeModule._CommonMethod_translate(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + scaleAttribute(value: ScaleOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeScaleOptions(value) + NativeModule._CommonMethod_scale(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + gridSpanAttribute(value: number): void { + NativeModule._CommonMethod_gridSpan(this.peer.ptr, value); + } + gridOffsetAttribute(value: number): void { + NativeModule._CommonMethod_gridOffset(this.peer.ptr, value); + } + rotateAttribute(value: RotateOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeRotateOptions(value) + NativeModule._CommonMethod_rotate(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + transformAttribute(value: Object): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeCustomObject("Object", value) + NativeModule._CommonMethod_transform(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + onAppearAttribute(event: (() => void)): void { + NativeModule._CommonMethod_onAppear(this.peer.ptr, registerCallback(event)); + } + onDisAppearAttribute(event: (() => void)): void { + NativeModule._CommonMethod_onDisAppear(this.peer.ptr, registerCallback(event)); + } + onAttachAttribute(callback: Callback): void { + NativeModule._CommonMethod_onAttach(this.peer.ptr, registerCallback(callback)); + } + onDetachAttribute(callback: Callback): void { + NativeModule._CommonMethod_onDetach(this.peer.ptr, registerCallback(callback)); + } + onAreaChangeAttribute(event: ((oldValue: Area, newValue: Area) => void)): void { + NativeModule._CommonMethod_onAreaChange(this.peer.ptr, registerCallback(event)); + } + visibilityAttribute(value: Visibility): void { + NativeModule._CommonMethod_visibility(this.peer.ptr, (value.value as int32)); + } + flexGrowAttribute(value: number): void { + NativeModule._CommonMethod_flexGrow(this.peer.ptr, value); + } + flexShrinkAttribute(value: number): void { + NativeModule._CommonMethod_flexShrink(this.peer.ptr, value); + } + flexBasisAttribute(value: number | string): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as string + thisSerializer.writeString(value_1) + } + NativeModule._CommonMethod_flexBasis(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + alignSelfAttribute(value: ItemAlign): void { + NativeModule._CommonMethod_alignSelf(this.peer.ptr, (value.value as int32)); + } + displayPriorityAttribute(value: number): void { + NativeModule._CommonMethod_displayPriority(this.peer.ptr, value); + } + zIndexAttribute(value: number): void { + NativeModule._CommonMethod_zIndex(this.peer.ptr, value); + } + sharedTransitionAttribute(id: string, options?: sharedTransitionOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writesharedTransitionOptions(options_value) + } + NativeModule._CommonMethod_sharedTransition(this.peer.ptr, id, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + directionAttribute(value: Direction): void { + NativeModule._CommonMethod_direction(this.peer.ptr, (value.value as int32)); + } + alignAttribute(value: Alignment): void { + NativeModule._CommonMethod_align(this.peer.ptr, (value.value as int32)); + } + positionAttribute(value: Position | Edges | LocalizedEdges): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (TypeChecker.isPosition(value, false, false)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Position + thisSerializer.writePosition(value_0) + } + else if (TypeChecker.isEdges(value, true, false, true, false)) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as Edges + thisSerializer.writeEdges(value_1) + } + else if (TypeChecker.isLocalizedEdges(value, true, false, true, false)) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as LocalizedEdges + thisSerializer.writeLocalizedEdges(value_2) + } + NativeModule._CommonMethod_position(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + markAnchorAttribute(value: Position | LocalizedPosition): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (TypeChecker.isPosition(value, false, false)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Position + thisSerializer.writePosition(value_0) + } + else if (TypeChecker.isLocalizedPosition(value, false, false)) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as LocalizedPosition + thisSerializer.writeLocalizedPosition(value_1) + } + NativeModule._CommonMethod_markAnchor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + offsetAttribute(value: Position | Edges | LocalizedEdges): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (TypeChecker.isPosition(value, false, false)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Position + thisSerializer.writePosition(value_0) + } + else if (TypeChecker.isEdges(value, true, false, true, false)) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as Edges + thisSerializer.writeEdges(value_1) + } + else if (TypeChecker.isLocalizedEdges(value, true, false, true, false)) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as LocalizedEdges + thisSerializer.writeLocalizedEdges(value_2) + } + NativeModule._CommonMethod_offset(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + enabledAttribute(value: boolean): void { + NativeModule._CommonMethod_enabled(this.peer.ptr, value ? 1 : 0); + } + useSizeTypeAttribute(value: UseSizeTypeValuesType): void { + const thisSerializer = SerializerBase.hold(createSerializer) + const value_xs = value.xs + let value_xs_type = RuntimeType.UNDEFINED + if (value_xs != undefined) { + value_xs_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_xs_type as int32) + if ((RuntimeType.UNDEFINED) != (value_xs_type)) { + const value_xs_value = value_xs! + let value_xs_value_type = RuntimeType.UNDEFINED + value_xs_value_type = runtimeType(value_xs_value) + if (((RuntimeType.NUMBER == value_xs_value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_xs_value_0 = value_xs_value as number + thisSerializer.writeNumber(value_xs_value_0) + } + else if (((RuntimeType.OBJECT == value_xs_value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_xs_value_1 = value_xs_value as LITERAL_SpanNumberOffsetNumber + const value_xs_value_1_span = value_xs_value_1.span + thisSerializer.writeNumber(value_xs_value_1_span) + const value_xs_value_1_offset = value_xs_value_1.offset + thisSerializer.writeNumber(value_xs_value_1_offset) + } + } + const value_sm = value.sm + let value_sm_type = RuntimeType.UNDEFINED + if (value_sm != undefined) { + value_sm_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_sm_type as int32) + if ((RuntimeType.UNDEFINED) != (value_sm_type)) { + const value_sm_value = value_sm! + let value_sm_value_type = RuntimeType.UNDEFINED + value_sm_value_type = runtimeType(value_sm_value) + if (((RuntimeType.NUMBER == value_sm_value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_sm_value_0 = value_sm_value as number + thisSerializer.writeNumber(value_sm_value_0) + } + else if (((RuntimeType.OBJECT == value_sm_value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_sm_value_1 = value_sm_value as LITERAL_SpanNumberOffsetNumber + const value_sm_value_1_span = value_sm_value_1.span + thisSerializer.writeNumber(value_sm_value_1_span) + const value_sm_value_1_offset = value_sm_value_1.offset + thisSerializer.writeNumber(value_sm_value_1_offset) + } + } + const value_md = value.md + let value_md_type = RuntimeType.UNDEFINED + if (value_md != undefined) { + value_md_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_md_type as int32) + if ((RuntimeType.UNDEFINED) != (value_md_type)) { + const value_md_value = value_md! + let value_md_value_type = RuntimeType.UNDEFINED + value_md_value_type = runtimeType(value_md_value) + if (((RuntimeType.NUMBER == value_md_value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_md_value_0 = value_md_value as number + thisSerializer.writeNumber(value_md_value_0) + } + else if (((RuntimeType.OBJECT == value_md_value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_md_value_1 = value_md_value as LITERAL_SpanNumberOffsetNumber + const value_md_value_1_span = value_md_value_1.span + thisSerializer.writeNumber(value_md_value_1_span) + const value_md_value_1_offset = value_md_value_1.offset + thisSerializer.writeNumber(value_md_value_1_offset) + } + } + const value_lg = value.lg + let value_lg_type = RuntimeType.UNDEFINED + if (value_lg != undefined) { + value_lg_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_lg_type as int32) + if ((RuntimeType.UNDEFINED) != (value_lg_type)) { + const value_lg_value = value_lg! + let value_lg_value_type = RuntimeType.UNDEFINED + value_lg_value_type = runtimeType(value_lg_value) + if (((RuntimeType.NUMBER == value_lg_value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_lg_value_0 = value_lg_value as number + thisSerializer.writeNumber(value_lg_value_0) + } + else if (((RuntimeType.OBJECT == value_lg_value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_lg_value_1 = value_lg_value as LITERAL_SpanNumberOffsetNumber + const value_lg_value_1_span = value_lg_value_1.span + thisSerializer.writeNumber(value_lg_value_1_span) + const value_lg_value_1_offset = value_lg_value_1.offset + thisSerializer.writeNumber(value_lg_value_1_offset) + } + } + NativeModule._CommonMethod_useSizeType(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + alignRules0Attribute(value: AlignRuleOption): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeAlignRuleOption(value) + NativeModule._CommonMethod_alignRules0(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + alignRules1Attribute(alignRule: LocalizedAlignRuleOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeLocalizedAlignRuleOptions(alignRule) + NativeModule._CommonMethod_alignRules1(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + chainModeAttribute(direction: Axis, style: ChainStyle): void { + NativeModule._CommonMethod_chainMode(this.peer.ptr, (direction.value as int32), (style.value as int32)); + } + aspectRatioAttribute(value: number): void { + NativeModule._CommonMethod_aspectRatio(this.peer.ptr, value); + } + clickEffectAttribute(value: ClickEffect | null): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (TypeChecker.isClickEffect(value, false, false)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as ClickEffect + thisSerializer.writeClickEffect(value_0) + } + else if (value === null) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as null + } + NativeModule._CommonMethod_clickEffect(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + onDragStartAttribute(event: ((event: DragEvent, extraParams: string|undefined) => CustomBuilder | DragItemInfo)): void { + NativeModule._CommonMethod_onDragStart(this.peer.ptr, registerCallback(event)); + } + onDragEnterAttribute(event: ((event: DragEvent, extraParams: string|undefined) => void)): void { + NativeModule._CommonMethod_onDragEnter(this.peer.ptr, registerCallback(event)); + } + onDragMoveAttribute(event: ((event: DragEvent, extraParams: string|undefined) => void)): void { + NativeModule._CommonMethod_onDragMove(this.peer.ptr, registerCallback(event)); + } + onDragLeaveAttribute(event: ((event: DragEvent, extraParams: string|undefined) => void)): void { + NativeModule._CommonMethod_onDragLeave(this.peer.ptr, registerCallback(event)); + } + onDropAttribute(event: ((event: DragEvent, extraParams: string|undefined) => void)): void { + NativeModule._CommonMethod_onDrop(this.peer.ptr, registerCallback(event)); + } + onDragEndAttribute(event: ((event: DragEvent, extraParams: string|undefined) => void)): void { + NativeModule._CommonMethod_onDragEnd(this.peer.ptr, registerCallback(event)); + } + allowDropAttribute(value: Array | null): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Array)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Array + thisSerializer.writeInt8(runtimeType(value_0) as int32) + thisSerializer.writeInt32(value_0.length as int32) + for (let i = 0; i < value_0.length; i++) { + const value_0_element = value_0[i] + thisSerializer.writeCustomObject("UniformDataType", value_0_element) + } + } + else if (value === null) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as null + } + NativeModule._CommonMethod_allowDrop(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + draggableAttribute(value: boolean): void { + NativeModule._CommonMethod_draggable(this.peer.ptr, value ? 1 : 0); + } + dragPreviewAttribute(value: CustomBuilder | DragItemInfo | string): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as DragItemInfo + thisSerializer.writeDragItemInfo(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (((RuntimeType.FUNCTION == value_type)) || ((RuntimeType.UNDEFINED == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as CustomBuilder + let value_0_type = RuntimeType.UNDEFINED + value_0_type = runtimeType(value_0) + if (((RuntimeType.FUNCTION == value_0_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0_0 = value_0 as Object + thisSerializer.writeFunction(value_0_0) + } + else if (((RuntimeType.UNDEFINED == value_0_type))) { + thisSerializer.writeInt8(1 as int32) + } + } + NativeModule._CommonMethod_dragPreview(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + dragPreviewOptionsAttribute(value: DragPreviewOptions, options?: DragInteractionOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeDragPreviewOptions(value) + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeDragInteractionOptions(options_value) + } + NativeModule._CommonMethod_dragPreviewOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + onPreDragAttribute(callback: Callback): void { + NativeModule._CommonMethod_onPreDrag(this.peer.ptr, registerCallback(callback)); + } + overlayAttribute(value: string | CustomBuilder | ComponentContent, options?: OverlayOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as string + thisSerializer.writeString(value_0) + } + else if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as ComponentContent + thisSerializer.writeCustomObject("ComponentContent", value_2) + } + else if (((RuntimeType.FUNCTION == value_type)) || ((RuntimeType.UNDEFINED == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as CustomBuilder + let value_1_type = RuntimeType.UNDEFINED + value_1_type = runtimeType(value_1) + if (((RuntimeType.FUNCTION == value_1_type))) { + thisSerializer.writeInt8(0 as int32) + const value_1_0 = value_1 as Object + thisSerializer.writeFunction(value_1_0) + } + else if (((RuntimeType.UNDEFINED == value_1_type))) { + thisSerializer.writeInt8(1 as int32) + } + } + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeOverlayOptions(options_value) + } + NativeModule._CommonMethod_overlay(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + linearGradientAttribute(value: LinearGradientValuesType): void { + const thisSerializer = SerializerBase.hold(createSerializer) + const value_angle = value.angle + let value_angle_type = RuntimeType.UNDEFINED + if (value_angle != undefined) { + value_angle_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_angle_type as int32) + if ((RuntimeType.UNDEFINED) != (value_angle_type)) { + const value_angle_value = value_angle! + let value_angle_value_type = RuntimeType.UNDEFINED + value_angle_value_type = runtimeType(value_angle_value) + if (((RuntimeType.NUMBER == value_angle_value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_angle_value_0 = value_angle_value as number + thisSerializer.writeNumber(value_angle_value_0) + } + else if (((RuntimeType.STRING == value_angle_value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_angle_value_1 = value_angle_value as string + thisSerializer.writeString(value_angle_value_1) + } + } + const value_direction = value.direction + let value_direction_type = RuntimeType.UNDEFINED + if (value_direction != undefined) { + value_direction_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_direction_type as int32) + if ((RuntimeType.UNDEFINED) != (value_direction_type)) { + const value_direction_value = value_direction! + thisSerializer.writeInt32((value_direction_value.value as int32)) + } + const value_colors = value.colors + thisSerializer.writeInt8(runtimeType(value_colors) as int32) + thisSerializer.writeInt32(value_colors.length as int32) + for (let i = 0; i < value_colors.length; i++) { + const value_colors_element = value_colors[i] + thisSerializer.writeInt8(runtimeType(value_colors_element) as int32) + const value_colors_element_0 = value_colors_element[0] + let value_colors_element_0_type = RuntimeType.UNDEFINED + value_colors_element_0_type = runtimeType(value_colors_element_0) + if (((RuntimeType.OBJECT) == (value_colors_element_0_type)) && (value_colors_element_0 instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_colors_element_0_0 = value_colors_element_0 as Color + thisSerializer.writeInt32((value_colors_element_0_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_colors_element_0_type))) { + thisSerializer.writeInt8(1 as int32) + const value_colors_element_0_1 = value_colors_element_0 as number + thisSerializer.writeNumber(value_colors_element_0_1) + } + else if (((RuntimeType.STRING == value_colors_element_0_type))) { + thisSerializer.writeInt8(2 as int32) + const value_colors_element_0_2 = value_colors_element_0 as string + thisSerializer.writeString(value_colors_element_0_2) + } + else if (isResource(value_colors_element_0)) { + thisSerializer.writeInt8(3 as int32) + const value_colors_element_0_3 = value_colors_element_0 as Resource + thisSerializer.writeResource(value_colors_element_0_3) + } + const value_colors_element_1 = value_colors_element[1] + thisSerializer.writeNumber(value_colors_element_1) + } + const value_repeating = value.repeating + let value_repeating_type = RuntimeType.UNDEFINED + if (value_repeating != undefined) { + value_repeating_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_repeating_type as int32) + if ((RuntimeType.UNDEFINED) != (value_repeating_type)) { + const value_repeating_value = value_repeating! + thisSerializer.writeBoolean(value_repeating_value) + } + NativeModule._CommonMethod_linearGradient(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + sweepGradientAttribute(value: SweepGradientValuesType): void { + const thisSerializer = SerializerBase.hold(createSerializer) + const value_center = value.center + thisSerializer.writeInt8(runtimeType(value_center) as int32) + const value_center_0 = value_center[0] + thisSerializer.writeLength(value_center_0); + const value_center_1 = value_center[1] + thisSerializer.writeLength(value_center_1); + const value_start = value.start + let value_start_type = RuntimeType.UNDEFINED + if (value_start != undefined) { + value_start_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_start_type as int32) + if ((RuntimeType.UNDEFINED) != (value_start_type)) { + const value_start_value = value_start! + let value_start_value_type = RuntimeType.UNDEFINED + value_start_value_type = runtimeType(value_start_value) + if (((RuntimeType.NUMBER == value_start_value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_start_value_0 = value_start_value as number + thisSerializer.writeNumber(value_start_value_0) + } + else if (((RuntimeType.STRING == value_start_value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_start_value_1 = value_start_value as string + thisSerializer.writeString(value_start_value_1) + } + } + const value_end = value.end + let value_end_type = RuntimeType.UNDEFINED + if (value_end != undefined) { + value_end_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_end_type as int32) + if ((RuntimeType.UNDEFINED) != (value_end_type)) { + const value_end_value = value_end! + let value_end_value_type = RuntimeType.UNDEFINED + value_end_value_type = runtimeType(value_end_value) + if (((RuntimeType.NUMBER == value_end_value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_end_value_0 = value_end_value as number + thisSerializer.writeNumber(value_end_value_0) + } + else if (((RuntimeType.STRING == value_end_value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_end_value_1 = value_end_value as string + thisSerializer.writeString(value_end_value_1) + } + } + const value_rotation = value.rotation + let value_rotation_type = RuntimeType.UNDEFINED + if (value_rotation != undefined) { + value_rotation_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_rotation_type as int32) + if ((RuntimeType.UNDEFINED) != (value_rotation_type)) { + const value_rotation_value = value_rotation! + let value_rotation_value_type = RuntimeType.UNDEFINED + value_rotation_value_type = runtimeType(value_rotation_value) + if (((RuntimeType.NUMBER == value_rotation_value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_rotation_value_0 = value_rotation_value as number + thisSerializer.writeNumber(value_rotation_value_0) + } + else if (((RuntimeType.STRING == value_rotation_value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_rotation_value_1 = value_rotation_value as string + thisSerializer.writeString(value_rotation_value_1) + } + } + const value_colors = value.colors + thisSerializer.writeInt8(runtimeType(value_colors) as int32) + thisSerializer.writeInt32(value_colors.length as int32) + for (let i = 0; i < value_colors.length; i++) { + const value_colors_element = value_colors[i] + thisSerializer.writeInt8(runtimeType(value_colors_element) as int32) + const value_colors_element_0 = value_colors_element[0] + let value_colors_element_0_type = RuntimeType.UNDEFINED + value_colors_element_0_type = runtimeType(value_colors_element_0) + if (((RuntimeType.OBJECT) == (value_colors_element_0_type)) && (value_colors_element_0 instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_colors_element_0_0 = value_colors_element_0 as Color + thisSerializer.writeInt32((value_colors_element_0_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_colors_element_0_type))) { + thisSerializer.writeInt8(1 as int32) + const value_colors_element_0_1 = value_colors_element_0 as number + thisSerializer.writeNumber(value_colors_element_0_1) + } + else if (((RuntimeType.STRING == value_colors_element_0_type))) { + thisSerializer.writeInt8(2 as int32) + const value_colors_element_0_2 = value_colors_element_0 as string + thisSerializer.writeString(value_colors_element_0_2) + } + else if (isResource(value_colors_element_0)) { + thisSerializer.writeInt8(3 as int32) + const value_colors_element_0_3 = value_colors_element_0 as Resource + thisSerializer.writeResource(value_colors_element_0_3) + } + const value_colors_element_1 = value_colors_element[1] + thisSerializer.writeNumber(value_colors_element_1) + } + const value_repeating = value.repeating + let value_repeating_type = RuntimeType.UNDEFINED + if (value_repeating != undefined) { + value_repeating_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_repeating_type as int32) + if ((RuntimeType.UNDEFINED) != (value_repeating_type)) { + const value_repeating_value = value_repeating! + thisSerializer.writeBoolean(value_repeating_value) + } + NativeModule._CommonMethod_sweepGradient(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + radialGradientAttribute(value: RadialGradientValuesType): void { + const thisSerializer = SerializerBase.hold(createSerializer) + const value_center = value.center + thisSerializer.writeInt8(runtimeType(value_center) as int32) + const value_center_0 = value_center[0] + thisSerializer.writeLength(value_center_0); + const value_center_1 = value_center[1] + thisSerializer.writeLength(value_center_1); + const value_radius = value.radius + let value_radius_type = RuntimeType.UNDEFINED + value_radius_type = runtimeType(value_radius) + if (((RuntimeType.NUMBER == value_radius_type))) { + thisSerializer.writeInt8(0 as int32) + const value_radius_0 = value_radius as number + thisSerializer.writeNumber(value_radius_0) + } + else if (((RuntimeType.STRING == value_radius_type))) { + thisSerializer.writeInt8(1 as int32) + const value_radius_1 = value_radius as string + thisSerializer.writeString(value_radius_1) + } + const value_colors = value.colors + thisSerializer.writeInt8(runtimeType(value_colors) as int32) + thisSerializer.writeInt32(value_colors.length as int32) + for (let i = 0; i < value_colors.length; i++) { + const value_colors_element = value_colors[i] + thisSerializer.writeInt8(runtimeType(value_colors_element) as int32) + const value_colors_element_0 = value_colors_element[0] + let value_colors_element_0_type = RuntimeType.UNDEFINED + value_colors_element_0_type = runtimeType(value_colors_element_0) + if (((RuntimeType.OBJECT) == (value_colors_element_0_type)) && (value_colors_element_0 instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_colors_element_0_0 = value_colors_element_0 as Color + thisSerializer.writeInt32((value_colors_element_0_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_colors_element_0_type))) { + thisSerializer.writeInt8(1 as int32) + const value_colors_element_0_1 = value_colors_element_0 as number + thisSerializer.writeNumber(value_colors_element_0_1) + } + else if (((RuntimeType.STRING == value_colors_element_0_type))) { + thisSerializer.writeInt8(2 as int32) + const value_colors_element_0_2 = value_colors_element_0 as string + thisSerializer.writeString(value_colors_element_0_2) + } + else if (isResource(value_colors_element_0)) { + thisSerializer.writeInt8(3 as int32) + const value_colors_element_0_3 = value_colors_element_0 as Resource + thisSerializer.writeResource(value_colors_element_0_3) + } + const value_colors_element_1 = value_colors_element[1] + thisSerializer.writeNumber(value_colors_element_1) + } + const value_repeating = value.repeating + let value_repeating_type = RuntimeType.UNDEFINED + if (value_repeating != undefined) { + value_repeating_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_repeating_type as int32) + if ((RuntimeType.UNDEFINED) != (value_repeating_type)) { + const value_repeating_value = value_repeating! + thisSerializer.writeBoolean(value_repeating_value) + } + NativeModule._CommonMethod_radialGradient(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + motionPathAttribute(value: MotionPathOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeMotionPathOptions(value) + NativeModule._CommonMethod_motionPath(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + shadowAttribute(value: ShadowOptions | ShadowStyle): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (TypeChecker.isShadowOptions(value, false, false, false, false, false, false)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as ShadowOptions + thisSerializer.writeShadowOptions(value_0) + } + else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof ShadowStyle)) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as ShadowStyle + thisSerializer.writeInt32((value_1.value as int32)) + } + NativeModule._CommonMethod_shadow(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + blendModeAttribute(value: BlendMode, type?: BlendApplyType): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let type_type = RuntimeType.UNDEFINED + if (type != undefined) { + type_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(type_type as int32) + if ((RuntimeType.UNDEFINED) != (type_type)) { + const type_value = type! + thisSerializer.writeInt32((type_value.value as int32)) + } + NativeModule._CommonMethod_blendMode(this.peer.ptr, (value.value as int32), thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + advancedBlendModeAttribute(effect: BlendMode | Blender, type?: BlendApplyType): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let effect_type = RuntimeType.UNDEFINED + effect_type = runtimeType(effect) + if (((RuntimeType.OBJECT) == (effect_type)) && (effect instanceof BlendMode)) { + thisSerializer.writeInt8(0 as int32) + const effect_0 = effect as BlendMode + thisSerializer.writeInt32((effect_0.value as int32)) + } + else if (((RuntimeType.OBJECT == effect_type))) { + thisSerializer.writeInt8(1 as int32) + const effect_1 = effect as Blender + thisSerializer.writeCustomObject("Blender", effect_1) + } + let type_type = RuntimeType.UNDEFINED + if (type != undefined) { + type_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(type_type as int32) + if ((RuntimeType.UNDEFINED) != (type_type)) { + const type_value = type! + thisSerializer.writeInt32((type_value.value as int32)) + } + NativeModule._CommonMethod_advancedBlendMode(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + clip0Attribute(value: boolean): void { + NativeModule._CommonMethod_clip0(this.peer.ptr, value ? 1 : 0); + } + clip1Attribute(value: boolean | CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.BOOLEAN == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as boolean + thisSerializer.writeBoolean(value_0) + } + else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof CircleAttribute)) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as CircleAttribute + thisSerializer.writeCircleAttribute(value_1) + } + else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof EllipseAttribute)) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as EllipseAttribute + thisSerializer.writeEllipseAttribute(value_2) + } + else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof PathAttribute)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as PathAttribute + thisSerializer.writePathAttribute(value_3) + } + else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof RectAttribute)) { + thisSerializer.writeInt8(4 as int32) + const value_4 = value as RectAttribute + thisSerializer.writeRectAttribute(value_4) + } + NativeModule._CommonMethod_clip1(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + clipShapeAttribute(value: CircleShape | EllipseShape | PathShape | RectShape): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (isInstanceOf("CircleShape", value))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as CircleShape + thisSerializer.writeCustomObject("CircleShape", value_0) + } + else if (((RuntimeType.OBJECT) == (value_type)) && (isInstanceOf("EllipseShape", value))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as EllipseShape + thisSerializer.writeCustomObject("EllipseShape", value_1) + } + else if (((RuntimeType.OBJECT) == (value_type)) && (isInstanceOf("PathShape", value))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as PathShape + thisSerializer.writeCustomObject("PathShape", value_2) + } + else if (((RuntimeType.OBJECT) == (value_type)) && (isInstanceOf("RectShape", value))) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as RectShape + thisSerializer.writeCustomObject("RectShape", value_3) + } + NativeModule._CommonMethod_clipShape(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + mask0Attribute(value: ProgressMask): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeMaterialized(value) + NativeModule._CommonMethod_mask0(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + mask1Attribute(value: CircleAttribute | EllipseAttribute | PathAttribute | RectAttribute | ProgressMask): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof CircleAttribute)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as CircleAttribute + thisSerializer.writeCircleAttribute(value_0) + } + else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof EllipseAttribute)) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as EllipseAttribute + thisSerializer.writeEllipseAttribute(value_1) + } + else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof PathAttribute)) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as PathAttribute + thisSerializer.writePathAttribute(value_2) + } + else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof RectAttribute)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as RectAttribute + thisSerializer.writeRectAttribute(value_3) + } + else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof ProgressMask)) { + thisSerializer.writeInt8(4 as int32) + const value_4 = value as ProgressMask + thisSerializer.writeMaterialized(value_4) + } + NativeModule._CommonMethod_mask1(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + maskShapeAttribute(value: CircleShape | EllipseShape | PathShape | RectShape): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (isInstanceOf("CircleShape", value))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as CircleShape + thisSerializer.writeCustomObject("CircleShape", value_0) + } + else if (((RuntimeType.OBJECT) == (value_type)) && (isInstanceOf("EllipseShape", value))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as EllipseShape + thisSerializer.writeCustomObject("EllipseShape", value_1) + } + else if (((RuntimeType.OBJECT) == (value_type)) && (isInstanceOf("PathShape", value))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as PathShape + thisSerializer.writeCustomObject("PathShape", value_2) + } + else if (((RuntimeType.OBJECT) == (value_type)) && (isInstanceOf("RectShape", value))) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as RectShape + thisSerializer.writeCustomObject("RectShape", value_3) + } + NativeModule._CommonMethod_maskShape(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + keyAttribute(value: string): void { + NativeModule._CommonMethod_key(this.peer.ptr, value); + } + idAttribute(value: string): void { + NativeModule._CommonMethod_id(this.peer.ptr, value); + } + geometryTransition0Attribute(id: string): void { + NativeModule._CommonMethod_geometryTransition0(this.peer.ptr, id); + } + geometryTransition1Attribute(id: string, options?: GeometryTransitionOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeGeometryTransitionOptions(options_value) + } + NativeModule._CommonMethod_geometryTransition1(this.peer.ptr, id, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + bindPopupAttribute(show: boolean, popup: PopupOptions | CustomPopupOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let popup_type = RuntimeType.UNDEFINED + popup_type = runtimeType(popup) + 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)) { + thisSerializer.writeInt8(0 as int32) + const popup_0 = popup as PopupOptions + thisSerializer.writePopupOptions(popup_0) + } + 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)) { + thisSerializer.writeInt8(1 as int32) + const popup_1 = popup as CustomPopupOptions + thisSerializer.writeCustomPopupOptions(popup_1) + } + NativeModule._CommonMethod_bindPopup(this.peer.ptr, show ? 1 : 0, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + bindMenu0Attribute(content: Array | CustomBuilder, options?: MenuOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let content_type = RuntimeType.UNDEFINED + content_type = runtimeType(content) + if (((RuntimeType.OBJECT == content_type))) { + thisSerializer.writeInt8(0 as int32) + const content_0 = content as Array + thisSerializer.writeInt8(runtimeType(content_0) as int32) + thisSerializer.writeInt32(content_0.length as int32) + for (let i = 0; i < content_0.length; i++) { + const content_0_element = content_0[i] + thisSerializer.writeMenuElement(content_0_element) + } + } + else if (((RuntimeType.FUNCTION == content_type)) || ((RuntimeType.UNDEFINED == content_type))) { + thisSerializer.writeInt8(1 as int32) + const content_1 = content as CustomBuilder + let content_1_type = RuntimeType.UNDEFINED + content_1_type = runtimeType(content_1) + if (((RuntimeType.FUNCTION == content_1_type))) { + thisSerializer.writeInt8(0 as int32) + const content_1_0 = content_1 as Object + thisSerializer.writeFunction(content_1_0) + } + else if (((RuntimeType.UNDEFINED == content_1_type))) { + thisSerializer.writeInt8(1 as int32) + } + } + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeMenuOptions(options_value) + } + NativeModule._CommonMethod_bindMenu0(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + bindMenu1Attribute(isShow: boolean, content: Array | CustomBuilder, options?: MenuOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let content_type = RuntimeType.UNDEFINED + content_type = runtimeType(content) + if (((RuntimeType.OBJECT == content_type))) { + thisSerializer.writeInt8(0 as int32) + const content_0 = content as Array + thisSerializer.writeInt8(runtimeType(content_0) as int32) + thisSerializer.writeInt32(content_0.length as int32) + for (let i = 0; i < content_0.length; i++) { + const content_0_element = content_0[i] + thisSerializer.writeMenuElement(content_0_element) + } + } + else if (((RuntimeType.FUNCTION == content_type)) || ((RuntimeType.UNDEFINED == content_type))) { + thisSerializer.writeInt8(1 as int32) + const content_1 = content as CustomBuilder + let content_1_type = RuntimeType.UNDEFINED + content_1_type = runtimeType(content_1) + if (((RuntimeType.FUNCTION == content_1_type))) { + thisSerializer.writeInt8(0 as int32) + const content_1_0 = content_1 as Object + thisSerializer.writeFunction(content_1_0) + } + else if (((RuntimeType.UNDEFINED == content_1_type))) { + thisSerializer.writeInt8(1 as int32) + } + } + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeMenuOptions(options_value) + } + NativeModule._CommonMethod_bindMenu1(this.peer.ptr, isShow ? 1 : 0, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + bindContextMenu0Attribute(content: CustomBuilder, responseType: ResponseType, options?: ContextMenuOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let content_type = RuntimeType.UNDEFINED + content_type = runtimeType(content) + if (((RuntimeType.FUNCTION == content_type))) { + thisSerializer.writeInt8(0 as int32) + const content_0 = content as Object + thisSerializer.writeFunction(content_0) + } + else if (((RuntimeType.UNDEFINED == content_type))) { + thisSerializer.writeInt8(1 as int32) + } + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeContextMenuOptions(options_value) + } + NativeModule._CommonMethod_bindContextMenu0(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length(), (responseType.value as int32)); + thisSerializer.release(); + } + bindContextMenu1Attribute(isShown: boolean, content: CustomBuilder, options?: ContextMenuOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let content_type = RuntimeType.UNDEFINED + content_type = runtimeType(content) + if (((RuntimeType.FUNCTION == content_type))) { + thisSerializer.writeInt8(0 as int32) + const content_0 = content as Object + thisSerializer.writeFunction(content_0) + } + else if (((RuntimeType.UNDEFINED == content_type))) { + thisSerializer.writeInt8(1 as int32) + } + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeContextMenuOptions(options_value) + } + NativeModule._CommonMethod_bindContextMenu1(this.peer.ptr, isShown ? 1 : 0, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + bindContentCover0Attribute(isShow: boolean | undefined, builder: CustomBuilder, type?: ModalTransition): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let isShow_type = RuntimeType.UNDEFINED + if (isShow != undefined) { + isShow_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(isShow_type as int32) + if ((RuntimeType.UNDEFINED) != (isShow_type)) { + const isShow_value = isShow! + thisSerializer.writeBoolean(isShow_value) + } + let builder_type = RuntimeType.UNDEFINED + builder_type = runtimeType(builder) + if (((RuntimeType.FUNCTION == builder_type))) { + thisSerializer.writeInt8(0 as int32) + const builder_0 = builder as Object + thisSerializer.writeFunction(builder_0) + } + else if (((RuntimeType.UNDEFINED == builder_type))) { + thisSerializer.writeInt8(1 as int32) + } + let type_type = RuntimeType.UNDEFINED + if (type != undefined) { + type_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(type_type as int32) + if ((RuntimeType.UNDEFINED) != (type_type)) { + const type_value = type! + thisSerializer.writeInt32((type_value.value as int32)) + } + NativeModule._CommonMethod_bindContentCover0(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + bindContentCover1Attribute(isShow: boolean | undefined, builder: CustomBuilder, options?: ContentCoverOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let isShow_type = RuntimeType.UNDEFINED + if (isShow != undefined) { + isShow_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(isShow_type as int32) + if ((RuntimeType.UNDEFINED) != (isShow_type)) { + const isShow_value = isShow! + thisSerializer.writeBoolean(isShow_value) + } + let builder_type = RuntimeType.UNDEFINED + builder_type = runtimeType(builder) + if (((RuntimeType.FUNCTION == builder_type))) { + thisSerializer.writeInt8(0 as int32) + const builder_0 = builder as Object + thisSerializer.writeFunction(builder_0) + } + else if (((RuntimeType.UNDEFINED == builder_type))) { + thisSerializer.writeInt8(1 as int32) + } + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeContentCoverOptions(options_value) + } + NativeModule._CommonMethod_bindContentCover1(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + bindSheetAttribute(isShow: boolean | undefined, builder: CustomBuilder, options?: SheetOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let isShow_type = RuntimeType.UNDEFINED + if (isShow != undefined) { + isShow_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(isShow_type as int32) + if ((RuntimeType.UNDEFINED) != (isShow_type)) { + const isShow_value = isShow! + thisSerializer.writeBoolean(isShow_value) + } + let builder_type = RuntimeType.UNDEFINED + builder_type = runtimeType(builder) + if (((RuntimeType.FUNCTION == builder_type))) { + thisSerializer.writeInt8(0 as int32) + const builder_0 = builder as Object + thisSerializer.writeFunction(builder_0) + } + else if (((RuntimeType.UNDEFINED == builder_type))) { + thisSerializer.writeInt8(1 as int32) + } + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeSheetOptions(options_value) + } + NativeModule._CommonMethod_bindSheet(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + stateStylesAttribute(value: StateStyles): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeStateStyles(value) + NativeModule._CommonMethod_stateStyles(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + restoreIdAttribute(value: number): void { + NativeModule._CommonMethod_restoreId(this.peer.ptr, value); + } + onVisibleAreaChangeAttribute(ratios: Array, event: VisibleAreaChangeCallback): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeInt8(runtimeType(ratios) as int32) + thisSerializer.writeInt32(ratios.length as int32) + for (let i = 0; i < ratios.length; i++) { + const ratios_element = ratios[i] + thisSerializer.writeNumber(ratios_element) + } + NativeModule._CommonMethod_onVisibleAreaChange(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length(), registerCallback(event)); + thisSerializer.release(); + } + sphericalEffectAttribute(value: number): void { + NativeModule._CommonMethod_sphericalEffect(this.peer.ptr, value); + } + lightUpEffectAttribute(value: number): void { + NativeModule._CommonMethod_lightUpEffect(this.peer.ptr, value); + } + pixelStretchEffectAttribute(options: PixelStretchEffectOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writePixelStretchEffectOptions(options) + NativeModule._CommonMethod_pixelStretchEffect(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + keyboardShortcutAttribute(value: string | FunctionKey, keys: Array, action?: (() => void)): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as string + thisSerializer.writeString(value_0) + } + else if (((value instanceof FunctionKey))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as FunctionKey + thisSerializer.writeInt32((value_1.value as int32)) + } + thisSerializer.writeInt8(runtimeType(keys) as int32) + thisSerializer.writeInt32(keys.length as int32) + for (let i = 0; i < keys.length; i++) { + const keys_element = keys[i] + thisSerializer.writeInt32((keys_element.value as int32)) + } + let action_type = RuntimeType.UNDEFINED + if (action != undefined) { + action_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(action_type as int32) + if ((RuntimeType.UNDEFINED) != (action_type)) { + const action_value = action! + thisSerializer.writeFunction(action_value) + } + NativeModule._CommonMethod_keyboardShortcut(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + accessibilityGroupAttribute(value: boolean): void { + NativeModule._CommonMethod_accessibilityGroup(this.peer.ptr, value ? 1 : 0); + } + accessibilityText0Attribute(value: string): void { + NativeModule._CommonMethod_accessibilityText0(this.peer.ptr, value); + } + accessibilityText1Attribute(text: Resource): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeResource(text) + NativeModule._CommonMethod_accessibilityText1(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + accessibilityTextHintAttribute(value: string): void { + NativeModule._CommonMethod_accessibilityTextHint(this.peer.ptr, value); + } + accessibilityDescription0Attribute(value: string): void { + NativeModule._CommonMethod_accessibilityDescription0(this.peer.ptr, value); + } + accessibilityDescription1Attribute(description: Resource): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeResource(description) + NativeModule._CommonMethod_accessibilityDescription1(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + accessibilityLevelAttribute(value: string): void { + NativeModule._CommonMethod_accessibilityLevel(this.peer.ptr, value); + } + accessibilityVirtualNodeAttribute(builder: CustomBuilder): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let builder_type = RuntimeType.UNDEFINED + builder_type = runtimeType(builder) + if (((RuntimeType.FUNCTION == builder_type))) { + thisSerializer.writeInt8(0 as int32) + const builder_0 = builder as Object + thisSerializer.writeFunction(builder_0) + } + else if (((RuntimeType.UNDEFINED == builder_type))) { + thisSerializer.writeInt8(1 as int32) } - NativeModule._CommonMethod_linearGradient(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + NativeModule._CommonMethod_accessibilityVirtualNode(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); thisSerializer.release(); } - borderAttribute(value: BorderOptions): void { + obscuredAttribute(reasons: Array): void { const thisSerializer = SerializerBase.hold(createSerializer) - thisSerializer.writeBorderOptions(value) - NativeModule._CommonMethod_border(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.writeInt8(runtimeType(reasons) as int32) + thisSerializer.writeInt32(reasons.length as int32) + for (let i = 0; i < reasons.length; i++) { + const reasons_element = reasons[i] + thisSerializer.writeInt32((reasons_element.value as int32)) + } + NativeModule._CommonMethod_obscured(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); thisSerializer.release(); } - onChildTouchTestAttribute(event: ((value: Array) => string)): void { - NativeModule._CommonMethod_onChildTouchTest(this.peer.ptr, registerCallback(event)); + reuseIdAttribute(id: string): void { + NativeModule._CommonMethod_reuseId(this.peer.ptr, id); + } + renderFitAttribute(fitMode: RenderFit): void { + NativeModule._CommonMethod_renderFit(this.peer.ptr, (fitMode.value as int32)); } gestureModifierAttribute(modifier: GestureModifier): void { const thisSerializer = SerializerBase.hold(createSerializer) @@ -292,37 +2971,384 @@ export class ArkCommonMethodPeer extends PeerNode { NativeModule._CommonMethod_gestureModifier(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); thisSerializer.release(); } + backgroundBrightnessAttribute(params: BackgroundBrightnessOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeBackgroundBrightnessOptions(params) + NativeModule._CommonMethod_backgroundBrightness(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + onGestureJudgeBeginAttribute(callback: ((gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult)): void { + NativeModule._CommonMethod_onGestureJudgeBegin(this.peer.ptr, registerCallback(callback)); + } onGestureRecognizerJudgeBeginAttribute(callback: GestureRecognizerJudgeBeginCallback): void { NativeModule._CommonMethod_onGestureRecognizerJudgeBegin(this.peer.ptr, registerCallback(callback)); } - onClick0Attribute(event: ((event: ClickEvent) => void)): void { - NativeModule._CommonMethod_onClick0(this.peer.ptr, registerCallback(event)); + shouldBuiltInRecognizerParallelWithAttribute(callback: ShouldBuiltInRecognizerParallelWithCallback): void { + NativeModule._CommonMethod_shouldBuiltInRecognizerParallelWith(this.peer.ptr, registerCallback(callback)); } - onClick1Attribute(event: Callback, distanceThreshold: number): void { - NativeModule._CommonMethod_onClick1(this.peer.ptr, registerCallback(event), distanceThreshold); + monopolizeEventsAttribute(monopolize: boolean): void { + NativeModule._CommonMethod_monopolizeEvents(this.peer.ptr, monopolize ? 1 : 0); + } + onTouchInterceptAttribute(callback: Callback): void { + NativeModule._CommonMethod_onTouchIntercept(this.peer.ptr, registerCallback(callback)); + } + onSizeChangeAttribute(event: SizeChangeCallback): void { + NativeModule._CommonMethod_onSizeChange(this.peer.ptr, registerCallback(event)); } applyAttributes(attributes: ArkCommonMethodAttributes): void {} } +export interface UseSizeTypeValuesType { + xs?: number | LITERAL_SpanNumberOffsetNumber + sm?: number | LITERAL_SpanNumberOffsetNumber + md?: number | LITERAL_SpanNumberOffsetNumber + lg?: number | LITERAL_SpanNumberOffsetNumber +} export interface LinearGradientValuesType { angle?: number | string direction?: GradientDirection colors: Array<[ResourceColor, number]> repeating?: boolean } +export interface SweepGradientValuesType { + center: [Length, Length] + start?: number | string + end?: number | string + rotation?: number | string + colors: Array<[ResourceColor, number]> + repeating?: boolean +} +export interface RadialGradientValuesType { + center: [Length, Length] + radius: number | string + colors: Array<[ResourceColor, number]> + repeating?: boolean +} export interface ArkCommonMethodAttributes { - stateStyles?: StateStyles width?: Length height?: Length + drawModifier?: DrawModifier | undefined + responseRegion?: Array | Rectangle + mouseResponseRegion?: Array | Rectangle + size?: SizeOptions + constraintSize?: ConstraintSizeOptions + touchable?: boolean + hitTestBehavior?: HitTestMode + onChildTouchTest?: ((value: Array) => TouchResult) + layoutWeight?: number | string + padding?: Padding | Length | LocalizedPadding + margin?: Margin | Length | LocalizedMargin + backgroundColor?: ResourceColor + pixelRound?: PixelRoundPolicy + backgroundImageSize?: SizeOptions | ImageSize + backgroundImagePosition?: Position | Alignment + backgroundEffect?: BackgroundEffectOptions + backgroundImageResizable?: ResizableOptions + foregroundEffect?: ForegroundEffectOptions + visualEffect?: VisualEffect + backgroundFilter?: Filter + foregroundFilter?: Filter + compositingFilter?: Filter + opacity?: number | Resource + border?: BorderOptions + borderStyle?: BorderStyle | EdgeStyles + borderWidth?: Length | EdgeWidths | LocalizedEdgeWidths + borderColor?: ResourceColor | EdgeColors | LocalizedEdgeColors + borderRadius?: Length | BorderRadiuses | LocalizedBorderRadiuses + borderImage?: BorderImageOption + outline?: OutlineOptions + outlineStyle?: OutlineStyle | EdgeOutlineStyles + outlineWidth?: Dimension | EdgeOutlineWidths + outlineColor?: ResourceColor | EdgeColors | LocalizedEdgeColors + outlineRadius?: Dimension | OutlineRadiuses + foregroundColor?: ResourceColor | ColoringStrategy + onClick?: ((event: ClickEvent) => void) + onHover?: ((isHover: boolean, event: HoverEvent) => void) + onAccessibilityHover?: AccessibilityCallback + hoverEffect?: HoverEffect + onMouse?: ((event: MouseEvent) => void) + onTouch?: ((event: TouchEvent) => void) + onKeyEvent?: ((event: KeyEvent) => void) + onKeyPreIme?: Callback + focusable?: boolean + onFocus?: (() => void) + onBlur?: (() => void) + tabIndex?: number + defaultFocus?: boolean + groupDefaultFocus?: boolean + focusOnTouch?: boolean + focusBox?: FocusBoxStyle + animation?: AnimateParam + transition?: TransitionOptions | TransitionEffect + motionBlur?: MotionBlurOptions + brightness?: number + contrast?: number + grayscale?: number + colorBlend?: Color | string | Resource + saturate?: number + sepia?: number + invert?: number | InvertOptions + hueRotate?: number | string + useShadowBatching?: boolean + useEffect?: boolean + renderGroup?: boolean + freeze?: boolean + translate?: TranslateOptions + scale?: ScaleOptions + gridSpan?: number + gridOffset?: number + rotate?: RotateOptions + transform?: Object + onAppear?: (() => void) + onDisAppear?: (() => void) + onAttach?: Callback + onDetach?: Callback + onAreaChange?: ((oldValue: Area, newValue: Area) => void) + visibility?: Visibility + flexGrow?: number + flexShrink?: number + flexBasis?: number | string + alignSelf?: ItemAlign + displayPriority?: number + zIndex?: number + direction?: Direction + align?: Alignment + position?: Position | Edges | LocalizedEdges + markAnchor?: Position | LocalizedPosition + offset?: Position | Edges | LocalizedEdges + enabled?: boolean + useSizeType?: UseSizeTypeValuesType + alignRules?: AlignRuleOption + aspectRatio?: number + clickEffect?: ClickEffect | null + onDragStart?: ((event: DragEvent, extraParams: string|undefined) => CustomBuilder | DragItemInfo) + onDragEnter?: ((event: DragEvent, extraParams: string|undefined) => void) + onDragMove?: ((event: DragEvent, extraParams: string|undefined) => void) + onDragLeave?: ((event: DragEvent, extraParams: string|undefined) => void) + onDrop?: ((event: DragEvent, extraParams: string|undefined) => void) + onDragEnd?: ((event: DragEvent, extraParams: string|undefined) => void) + allowDrop?: Array | null + draggable?: boolean + dragPreview?: CustomBuilder | DragItemInfo | string + onPreDrag?: Callback + linearGradient?: LinearGradientValuesType + sweepGradient?: SweepGradientValuesType + radialGradient?: RadialGradientValuesType + motionPath?: MotionPathOptions + shadow?: ShadowOptions | ShadowStyle + clip?: boolean + clipShape?: CircleShape | EllipseShape | PathShape | RectShape + mask?: ProgressMask + maskShape?: CircleShape | EllipseShape | PathShape | RectShape key?: string + id?: string + geometryTransition?: string + stateStyles?: StateStyles restoreId?: number - padding?: Padding | Dimension - linearGradient?: LinearGradientValuesType - border?: BorderOptions - onChildTouchTest?: ((value: Array) => string) + sphericalEffect?: number + lightUpEffect?: number + pixelStretchEffect?: PixelStretchEffectOptions + accessibilityGroup?: boolean + accessibilityText?: string + accessibilityTextHint?: string + accessibilityDescription?: string + accessibilityLevel?: string + accessibilityVirtualNode?: CustomBuilder + obscured?: Array + reuseId?: string + renderFit?: RenderFit attributeModifier?: AttributeModifier gestureModifier?: GestureModifier + backgroundBrightness?: BackgroundBrightnessOptions + onGestureJudgeBegin?: ((gestureInfo: GestureInfo, event: BaseGestureEvent) => GestureJudgeResult) onGestureRecognizerJudgeBegin?: GestureRecognizerJudgeBeginCallback - onClick?: ((event: ClickEvent) => void) + shouldBuiltInRecognizerParallelWith?: ShouldBuiltInRecognizerParallelWithCallback + monopolizeEvents?: boolean + onTouchIntercept?: Callback + onSizeChange?: SizeChangeCallback +} +export class ArkCommonShapeMethodPeer extends ArkCommonMethodPeer { + protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { + super(nodeType, flags, name); + } + public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkCommonShapeMethodPeer { + const _peer = new ArkCommonShapeMethodPeer(nodeType, flags, "CommonShapeMethod") + component?.setPeer(_peer) + return _peer + } + strokeAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._CommonShapeMethod_stroke(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + fillAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._CommonShapeMethod_fill(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + strokeDashOffsetAttribute(value: number | string): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as string + thisSerializer.writeString(value_1) + } + NativeModule._CommonShapeMethod_strokeDashOffset(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + strokeLineCapAttribute(value: LineCapStyle): void { + NativeModule._CommonShapeMethod_strokeLineCap(this.peer.ptr, (value.value as int32)); + } + strokeLineJoinAttribute(value: LineJoinStyle): void { + NativeModule._CommonShapeMethod_strokeLineJoin(this.peer.ptr, (value.value as int32)); + } + strokeMiterLimitAttribute(value: number | string): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as string + thisSerializer.writeString(value_1) + } + NativeModule._CommonShapeMethod_strokeMiterLimit(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + strokeOpacityAttribute(value: number | string | Resource): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as string + thisSerializer.writeString(value_1) + } + else if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as Resource + thisSerializer.writeResource(value_2) + } + NativeModule._CommonShapeMethod_strokeOpacity(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + fillOpacityAttribute(value: number | string | Resource): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as string + thisSerializer.writeString(value_1) + } + else if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as Resource + thisSerializer.writeResource(value_2) + } + NativeModule._CommonShapeMethod_fillOpacity(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + strokeWidthAttribute(value: Length): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeLength(value); + NativeModule._CommonShapeMethod_strokeWidth(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + antiAliasAttribute(value: boolean): void { + NativeModule._CommonShapeMethod_antiAlias(this.peer.ptr, value ? 1 : 0); + } + strokeDashArrayAttribute(value: Array): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeInt8(runtimeType(value) as int32) + thisSerializer.writeInt32(value.length as int32) + for (let i = 0; i < value.length; i++) { + const value_element = value[i] + thisSerializer.writeCustomObject("Any", value_element) + } + NativeModule._CommonShapeMethod_strokeDashArray(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + applyAttributes(attributes: T): void { + super.applyAttributes(attributes) + } +} +export interface ArkCommonShapeMethodAttributes extends ArkCommonMethodAttributes { + stroke?: ResourceColor + fill?: ResourceColor + strokeDashOffset?: number | string + strokeLineCap?: LineCapStyle + strokeLineJoin?: LineJoinStyle + strokeMiterLimit?: number | string + strokeOpacity?: number | string | Resource + fillOpacity?: number | string | Resource + strokeWidth?: Length + antiAlias?: boolean + strokeDashArray?: Array } export class ArkCommonPeer extends ArkCommonMethodPeer { protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { @@ -351,6 +3377,31 @@ export class ArkScrollableCommonMethodPeer extends ArkCommonMethodPeer { component?.setPeer(_peer) return _peer } + scrollBarAttribute(barState: BarState): void { + NativeModule._ScrollableCommonMethod_scrollBar(this.peer.ptr, (barState.value as int32)); + } + scrollBarColorAttribute(color: Color | number | string): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let color_type = RuntimeType.UNDEFINED + color_type = runtimeType(color) + if (((color instanceof Color))) { + thisSerializer.writeInt8(0 as int32) + const color_0 = color as Color + thisSerializer.writeInt32((color_0.value as int32)) + } + else if (((RuntimeType.NUMBER == color_type))) { + thisSerializer.writeInt8(1 as int32) + const color_1 = color as number + thisSerializer.writeNumber(color_1) + } + else if (((RuntimeType.STRING == color_type))) { + thisSerializer.writeInt8(2 as int32) + const color_2 = color as string + thisSerializer.writeString(color_2) + } + NativeModule._ScrollableCommonMethod_scrollBarColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } scrollBarWidthAttribute(value: number | string): void { const thisSerializer = SerializerBase.hold(createSerializer) let value_type = RuntimeType.UNDEFINED @@ -368,52 +3419,93 @@ export class ArkScrollableCommonMethodPeer extends ArkCommonMethodPeer { NativeModule._ScrollableCommonMethod_scrollBarWidth(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); thisSerializer.release(); } - applyAttributes(attributes: T): void { - super.applyAttributes(attributes) + edgeEffectAttribute(edgeEffect: EdgeEffect, options?: EdgeEffectOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeEdgeEffectOptions(options_value) + } + NativeModule._ScrollableCommonMethod_edgeEffect(this.peer.ptr, (edgeEffect.value as int32), thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); } -} -export interface ArkScrollableCommonMethodAttributes extends ArkCommonMethodAttributes { -} -export class ArkCommonShapeMethodPeer extends ArkCommonMethodPeer { - protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { - super(nodeType, flags, name); + fadingEdgeAttribute(enabled: boolean | undefined, options?: FadingEdgeOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let enabled_type = RuntimeType.UNDEFINED + if (enabled != undefined) { + enabled_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(enabled_type as int32) + if ((RuntimeType.UNDEFINED) != (enabled_type)) { + const enabled_value = enabled! + thisSerializer.writeBoolean(enabled_value) + } + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeFadingEdgeOptions(options_value) + } + NativeModule._ScrollableCommonMethod_fadingEdge(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); } - public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkCommonShapeMethodPeer { - const _peer = new ArkCommonShapeMethodPeer(nodeType, flags, "CommonShapeMethod") - component?.setPeer(_peer) - return _peer + nestedScrollAttribute(value: NestedScrollOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeNestedScrollOptions(value) + NativeModule._ScrollableCommonMethod_nestedScroll(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); } - strokeAttribute(value: ResourceColor): void { + enableScrollInteractionAttribute(value: boolean): void { + NativeModule._ScrollableCommonMethod_enableScrollInteraction(this.peer.ptr, value ? 1 : 0); + } + frictionAttribute(value: number | Resource): void { const thisSerializer = SerializerBase.hold(createSerializer) let value_type = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + if (((RuntimeType.NUMBER == value_type))) { thisSerializer.writeInt8(0 as int32) - const value_0 = value as Color - thisSerializer.writeInt32((value_0.value as int32)) + const value_0 = value as number + thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (((RuntimeType.OBJECT == value_type))) { thisSerializer.writeInt8(1 as int32) - const value_1 = value as number - thisSerializer.writeNumber(value_1) - } - else if (((RuntimeType.STRING == value_type))) { - thisSerializer.writeInt8(2 as int32) - const value_2 = value as string - thisSerializer.writeString(value_2) - } - else if (isResource(value)) { - thisSerializer.writeInt8(3 as int32) - const value_3 = value as Resource - thisSerializer.writeResource(value_3) + const value_1 = value as Resource + thisSerializer.writeResource(value_1) } - NativeModule._CommonShapeMethod_stroke(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + NativeModule._ScrollableCommonMethod_friction(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); thisSerializer.release(); } - applyAttributes(attributes: T): void { + onScrollAttribute(event: ((scrollOffset: number, scrollState: ScrollState) => void)): void { + NativeModule._ScrollableCommonMethod_onScroll(this.peer.ptr, registerCallback(event)); + } + onDidScrollAttribute(handler: OnScrollCallback): void { + NativeModule._ScrollableCommonMethod_onDidScroll(this.peer.ptr, registerCallback(handler)); + } + onReachStartAttribute(event: (() => void)): void { + NativeModule._ScrollableCommonMethod_onReachStart(this.peer.ptr, registerCallback(event)); + } + onReachEndAttribute(event: (() => void)): void { + NativeModule._ScrollableCommonMethod_onReachEnd(this.peer.ptr, registerCallback(event)); + } + onScrollStartAttribute(event: (() => void)): void { + NativeModule._ScrollableCommonMethod_onScrollStart(this.peer.ptr, registerCallback(event)); + } + onScrollStopAttribute(event: (() => void)): void { + NativeModule._ScrollableCommonMethod_onScrollStop(this.peer.ptr, registerCallback(event)); + } + flingSpeedLimitAttribute(speedLimit: number): void { + NativeModule._ScrollableCommonMethod_flingSpeedLimit(this.peer.ptr, speedLimit); + } + applyAttributes(attributes: T): void { super.applyAttributes(attributes) } } -export interface ArkCommonShapeMethodAttributes extends ArkCommonMethodAttributes { - stroke?: ResourceColor +export interface ArkScrollableCommonMethodAttributes extends ArkCommonMethodAttributes { } diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkEmbeddedComponentPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkEmbeddedComponentPeer.ts index c3ba7a6b2..eae35bc9f 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkEmbeddedComponentPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkEmbeddedComponentPeer.ts @@ -32,6 +32,7 @@ import { TypeChecker } from "#components" import { registerCallback } from "./SerializerBase" import { wrapCallback } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" export class ArkEmbeddedComponentPeer extends ArkCommonMethodPeer { diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkFormComponentPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkFormComponentPeer.ts index 89cda0b14..3514cf827 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkFormComponentPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkFormComponentPeer.ts @@ -24,14 +24,30 @@ import { ArkUINodeType } from "./ArkUINodeType" import { ComponentBase } from "../ComponentBase" import { NativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { LITERAL_WidthNumberHeightNumber } from "./../SyntheticDeclarations" -import { FormComponentAttribute, FormCallbackInfo, FormComponentInterface } from "./../ArkFormComponentInterfaces" -import { Callback } from "./../ArkCommonInterfaces" +import { Length, Resource, SizeOptions, ConstraintSizeOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, ResourceStr, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, PX, VP, FP, LPX, Percentage, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition } from "./../ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, LITERAL_TopLengthRightLengthBottomLengthLeftLength, LITERAL_AlignAlignment, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image, IMPORT_default_VisualEffect_FROM_api_ohos_graphics_uiEffect, IMPORT_default_Filter_FROM_api_ohos_graphics_uiEffect, LITERAL_TopBorderStyleRightBorderStyleBottomBorderStyleLeftBorderStyle, LITERAL_TopResourceColorRightResourceColorBottomResourceColorLeftResourceColor, LITERAL_TopLeftLengthTopRightLengthBottomLeftLengthBottomRightLength, LITERAL_TopOutlineStyleRightOutlineStyleBottomOutlineStyleLeftOutlineStyle, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, LITERAL_TopDimensionRightDimensionBottomDimensionLeftDimension, LITERAL_TopLeftDimensionTopRightDimensionBottomLeftDimensionBottomRightDimension, LITERAL_SpanNumberOffsetNumber, LITERAL_XsNumberLITERALSpanNumberOffsetNumberSmNumberLITERALSpanNumberOffsetNumberMdNumberLITERALSpanNumberOffsetNumberLgNumberLITERALSpanNumberOffsetNumber, IMPORT_default_UniformDataType_FROM_api_ohos_data_uniformTypeDescriptor, IMPORT_ComponentContent_T_FROM_api_arkui_ComponentContent, LITERAL_AngleNumberstringDirectionGradientDirectionColorsArrayResourceColornumberRepeatingBoolean, LITERAL_CenterLengthLengthStartNumberstringEndNumberstringRotationNumberstringColorsArrayResourceColornumberRepeatingBoolean, LITERAL_CenterLengthLengthRadiusNumberstringColorsArrayResourceColornumberRepeatingBoolean, IMPORT_default_Blender_FROM_api_ohos_graphics_uiEffect, IMPORT_CircleShape_FROM_api_ohos_arkui_shape, IMPORT_EllipseShape_FROM_api_ohos_arkui_shape, IMPORT_PathShape_FROM_api_ohos_arkui_shape, IMPORT_RectShape_FROM_api_ohos_arkui_shape, LITERAL_WidthNumberHeightNumber, LITERAL_ErrcodeNumberMsgString, IMPORT_default_FROM_api_ohos_app_ability_Want } from "./../SyntheticDeclarations" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { Optional, SafeAreaType, SafeAreaEdge, Rectangle, TouchTestInfo, TouchResult, CustomBuilder, PixelRoundPolicy, PixelMap, BlurStyle, BackgroundBlurStyleOptions, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, ForegroundBlurStyleOptions, BorderImageOption, OutlineStyle, ClickEvent, Callback, HoverEvent, AccessibilityCallback, AccessibilityHoverEvent, MouseEvent, TouchEvent, KeyEvent, AnimateParam, TransitionOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, sharedTransitionOptions, AlignRuleOption, LocalizedAlignRuleOptions, ChainStyle, ClickEffect, DragEvent, DragItemInfo, UniformDataType, DragPreviewOptions, DragInteractionOptions, PreDragStatus, ComponentContent, OverlayOptions, MotionPathOptions, ShadowOptions, ShadowStyle, BlendMode, BlendApplyType, Blender, CircleShape, EllipseShape, PathShape, RectShape, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, StateStyles, VisibleAreaChangeCallback, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback } from "./../ArkCommonInterfaces" +import { HitTestMode, Alignment, Color, ImageRepeat, ImageSize, BorderStyle, ColoringStrategy, HoverEffect, Visibility, ItemAlign, Direction, Axis, GradientDirection, ResponseType, FunctionKey, ModifierKey, ObscuredReasons, RenderFit } from "./../ArkEnumsInterfaces" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ConflictedDeclarations" +import { GestureType, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureMask, GestureInfo, BaseGestureEvent, GestureJudgeResult } from "./../ArkGestureInterfaces" +import { CircleAttribute } from "./../ArkCircleInterfaces" +import { EllipseAttribute } from "./../ArkEllipseInterfaces" +import { PathAttribute } from "./../ArkPathInterfaces" +import { RectAttribute } from "./../ArkRectInterfaces" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../ArkAttributeModifierMaterialized" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureRecognizer } from "./../ArkGestureRecognizerMaterialized" +import { FormComponentAttribute, FormDimension, FormCallbackInfo, FormInfo, FormComponentInterface, FormRenderingMode, FormShape } from "./../ArkFormComponentInterfaces" import { GestureName, GestureComponent } from "./../shared/generated-utils" import { TypeChecker } from "#components" import { registerCallback } from "./SerializerBase" import { wrapCallback } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" export class ArkFormComponentPeer extends ArkCommonMethodPeer { @@ -43,10 +59,13 @@ export class ArkFormComponentPeer extends ArkCommonMethodPeer { component?.setPeer(_peer) return _peer } - setFormComponentOptionsAttribute(): void { - NativeModule._FormComponentInterface_setFormComponentOptions(this.peer.ptr); + setFormComponentOptionsAttribute(value: FormInfo): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeFormInfo(value) + NativeModule._FormComponentInterface_setFormComponentOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); } - sizeAttribute(value: SizeValuesType): void { + sizeAttribute(value: LITERAL_WidthNumberHeightNumber): void { const thisSerializer = SerializerBase.hold(createSerializer) const value_width = value.width thisSerializer.writeNumber(value_width) @@ -55,18 +74,46 @@ export class ArkFormComponentPeer extends ArkCommonMethodPeer { NativeModule._FormComponentAttribute_size(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); thisSerializer.release(); } + moduleNameAttribute(value: string): void { + NativeModule._FormComponentAttribute_moduleName(this.peer.ptr, value); + } + dimensionAttribute(value: FormDimension): void { + NativeModule._FormComponentAttribute_dimension(this.peer.ptr, (value.value as int32)); + } + allowUpdateAttribute(value: boolean): void { + NativeModule._FormComponentAttribute_allowUpdate(this.peer.ptr, value ? 1 : 0); + } + visibilityAttribute(value: Visibility): void { + NativeModule._FormComponentAttribute_visibility(this.peer.ptr, (value.value as int32)); + } onAcquiredAttribute(callback: Callback): void { NativeModule._FormComponentAttribute_onAcquired(this.peer.ptr, registerCallback(callback)); } + onErrorAttribute(callback: ((info: LITERAL_ErrcodeNumberMsgString) => void)): void { + NativeModule._FormComponentAttribute_onError(this.peer.ptr, registerCallback(callback)); + } + onRouterAttribute(callback: ((info: Object) => void)): void { + NativeModule._FormComponentAttribute_onRouter(this.peer.ptr, registerCallback(callback)); + } + onUninstallAttribute(callback: Callback): void { + NativeModule._FormComponentAttribute_onUninstall(this.peer.ptr, registerCallback(callback)); + } + onLoadAttribute(callback: (() => void)): void { + NativeModule._FormComponentAttribute_onLoad(this.peer.ptr, registerCallback(callback)); + } applyAttributes(attributes: T): void { super.applyAttributes(attributes) } } -export interface SizeValuesType { - width: number - height: number -} export interface ArkFormComponentAttributes extends ArkCommonMethodAttributes { - size?: SizeValuesType + size?: SizeOptions + moduleName?: string + dimension?: FormDimension + allowUpdate?: boolean + visibility?: Visibility onAcquired?: Callback + onError?: ((info: LITERAL_ErrcodeNumberMsgString) => void) + onRouter?: ((info: Object) => void) + onUninstall?: Callback + onLoad?: (() => void) } diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkGridContainerPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkGridContainerPeer.ts index 1d93eee75..8872cf4d0 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkGridContainerPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkGridContainerPeer.ts @@ -31,6 +31,7 @@ import { TypeChecker } from "#components" import { registerCallback } from "./SerializerBase" import { wrapCallback } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" export class ArkGridContainerPeer extends ArkColumnPeer { diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkImagePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkImagePeer.ts index 6a4dabbd2..e0f02cbd5 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkImagePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkImagePeer.ts @@ -24,12 +24,30 @@ import { ArkUINodeType } from "./ArkUINodeType" import { ComponentBase } from "../ComponentBase" import { NativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { ImageAttribute, ImageInterface } from "./../ArkImageInterfaces" +import { Length, Resource, SizeOptions, ConstraintSizeOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, ResourceStr, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, PX, VP, FP, LPX, Percentage, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ColorFilter } from "./../ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, LITERAL_TopLengthRightLengthBottomLengthLeftLength, LITERAL_AlignAlignment, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image, IMPORT_default_VisualEffect_FROM_api_ohos_graphics_uiEffect, IMPORT_default_Filter_FROM_api_ohos_graphics_uiEffect, LITERAL_TopBorderStyleRightBorderStyleBottomBorderStyleLeftBorderStyle, LITERAL_TopResourceColorRightResourceColorBottomResourceColorLeftResourceColor, LITERAL_TopLeftLengthTopRightLengthBottomLeftLengthBottomRightLength, LITERAL_TopOutlineStyleRightOutlineStyleBottomOutlineStyleLeftOutlineStyle, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, LITERAL_TopDimensionRightDimensionBottomDimensionLeftDimension, LITERAL_TopLeftDimensionTopRightDimensionBottomLeftDimensionBottomRightDimension, LITERAL_SpanNumberOffsetNumber, LITERAL_XsNumberLITERALSpanNumberOffsetNumberSmNumberLITERALSpanNumberOffsetNumberMdNumberLITERALSpanNumberOffsetNumberLgNumberLITERALSpanNumberOffsetNumber, IMPORT_default_UniformDataType_FROM_api_ohos_data_uniformTypeDescriptor, IMPORT_ComponentContent_T_FROM_api_arkui_ComponentContent, LITERAL_AngleNumberstringDirectionGradientDirectionColorsArrayResourceColornumberRepeatingBoolean, LITERAL_CenterLengthLengthStartNumberstringEndNumberstringRotationNumberstringColorsArrayResourceColornumberRepeatingBoolean, LITERAL_CenterLengthLengthRadiusNumberstringColorsArrayResourceColornumberRepeatingBoolean, IMPORT_default_Blender_FROM_api_ohos_graphics_uiEffect, IMPORT_CircleShape_FROM_api_ohos_arkui_shape, IMPORT_EllipseShape_FROM_api_ohos_arkui_shape, IMPORT_PathShape_FROM_api_ohos_arkui_shape, IMPORT_RectShape_FROM_api_ohos_arkui_shape, IMPORT_default_ColorFilter_FROM_api_ohos_graphics_drawing, LITERAL_WidthNumberHeightNumberComponentWidthNumberComponentHeightNumberLoadingStatusNumberContentWidthNumberContentHeightNumberContentOffsetXNumberContentOffsetYNumber, IMPORT_default_ResolutionQuality_FROM_api_ohos_multimedia_image, IMPORT_DrawableDescriptor_FROM_api_ohos_arkui_drawableDescriptor, IMPORT_default_Lattice_FROM_api_ohos_graphics_drawing } from "./../SyntheticDeclarations" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { Optional, SafeAreaType, SafeAreaEdge, Rectangle, TouchTestInfo, TouchResult, CustomBuilder, PixelRoundPolicy, PixelMap, BlurStyle, BackgroundBlurStyleOptions, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, ForegroundBlurStyleOptions, BorderImageOption, OutlineStyle, ClickEvent, Callback, HoverEvent, AccessibilityCallback, AccessibilityHoverEvent, MouseEvent, TouchEvent, KeyEvent, AnimateParam, TransitionOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, sharedTransitionOptions, AlignRuleOption, LocalizedAlignRuleOptions, ChainStyle, ClickEffect, DragEvent, DragItemInfo, UniformDataType, DragPreviewOptions, DragInteractionOptions, PreDragStatus, ComponentContent, OverlayOptions, MotionPathOptions, ShadowOptions, ShadowStyle, BlendMode, BlendApplyType, Blender, CircleShape, EllipseShape, PathShape, RectShape, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, StateStyles, VisibleAreaChangeCallback, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, PointLightStyle } from "./../ArkCommonInterfaces" +import { HitTestMode, Alignment, Color, ImageRepeat, ImageSize, BorderStyle, ColoringStrategy, HoverEffect, Visibility, ItemAlign, Direction, Axis, GradientDirection, ResponseType, FunctionKey, ModifierKey, ObscuredReasons, RenderFit, ImageFit, CopyOptions } from "./../ArkEnumsInterfaces" +import { ResizableOptions, ImageAttribute, ImageRenderMode, DynamicRangeMode, ImageInterpolation, ImageSourceSize, DrawingColorFilter, ImageErrorCallback, ImageError, ResolutionQuality, DrawableDescriptor, ImageContent, ImageInterface, DrawingLattice } from "./../ArkImageInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ConflictedDeclarations" +import { GestureType, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureMask, GestureInfo, BaseGestureEvent, GestureJudgeResult } from "./../ArkGestureInterfaces" +import { CircleAttribute } from "./../ArkCircleInterfaces" +import { EllipseAttribute } from "./../ArkEllipseInterfaces" +import { PathAttribute } from "./../ArkPathInterfaces" +import { RectAttribute } from "./../ArkRectInterfaces" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../ArkAttributeModifierMaterialized" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureRecognizer } from "./../ArkGestureRecognizerMaterialized" +import { ImageAnalyzerConfig, ImageAIOptions } from "./../ArkImageCommonInterfaces" import { GestureName, GestureComponent } from "./../shared/generated-utils" import { TypeChecker } from "#components" import { registerCallback } from "./SerializerBase" import { wrapCallback } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" export class ArkImagePeer extends ArkCommonMethodPeer { @@ -41,12 +59,286 @@ export class ArkImagePeer extends ArkCommonMethodPeer { component?.setPeer(_peer) return _peer } - setImageOptionsAttribute(): void { - NativeModule._ImageInterface_setImageOptions(this.peer.ptr); + setImageOptions0Attribute(src: PixelMap | ResourceStr | DrawableDescriptor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let src_type = RuntimeType.UNDEFINED + src_type = runtimeType(src) + if (((RuntimeType.OBJECT) == (src_type)) && (isPixelMap(src))) { + thisSerializer.writeInt8(0 as int32) + const src_0 = src as PixelMap + thisSerializer.writeCustomObject("PixelMap", src_0) + } + else if (((RuntimeType.OBJECT) == (src_type)) && (isInstanceOf("DrawableDescriptor", src))) { + thisSerializer.writeInt8(2 as int32) + const src_2 = src as DrawableDescriptor + thisSerializer.writeCustomObject("DrawableDescriptor", src_2) + } + else if (((RuntimeType.STRING == src_type)) || ((RuntimeType.OBJECT == src_type))) { + thisSerializer.writeInt8(1 as int32) + const src_1 = src as ResourceStr + let src_1_type = RuntimeType.UNDEFINED + src_1_type = runtimeType(src_1) + if (((RuntimeType.STRING == src_1_type))) { + thisSerializer.writeInt8(0 as int32) + const src_1_0 = src_1 as string + thisSerializer.writeString(src_1_0) + } + else if (((RuntimeType.OBJECT == src_1_type))) { + thisSerializer.writeInt8(1 as int32) + const src_1_1 = src_1 as Resource + thisSerializer.writeResource(src_1_1) + } + } + NativeModule._ImageInterface_setImageOptions0(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + setImageOptions1Attribute(src: PixelMap | ResourceStr | DrawableDescriptor | ImageContent): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let src_type = RuntimeType.UNDEFINED + src_type = runtimeType(src) + if (((RuntimeType.OBJECT) == (src_type)) && (isPixelMap(src))) { + thisSerializer.writeInt8(0 as int32) + const src_0 = src as PixelMap + thisSerializer.writeCustomObject("PixelMap", src_0) + } + else if (((RuntimeType.OBJECT) == (src_type)) && (isInstanceOf("DrawableDescriptor", src))) { + thisSerializer.writeInt8(2 as int32) + const src_2 = src as DrawableDescriptor + thisSerializer.writeCustomObject("DrawableDescriptor", src_2) + } + else if (((RuntimeType.OBJECT) == (src_type)) && (src instanceof ImageContent)) { + thisSerializer.writeInt8(3 as int32) + const src_3 = src as ImageContent + thisSerializer.writeInt32((src_3.value as int32)) + } + else if (((RuntimeType.STRING == src_type)) || ((RuntimeType.OBJECT == src_type))) { + thisSerializer.writeInt8(1 as int32) + const src_1 = src as ResourceStr + let src_1_type = RuntimeType.UNDEFINED + src_1_type = runtimeType(src_1) + if (((RuntimeType.STRING == src_1_type))) { + thisSerializer.writeInt8(0 as int32) + const src_1_0 = src_1 as string + thisSerializer.writeString(src_1_0) + } + else if (((RuntimeType.OBJECT == src_1_type))) { + thisSerializer.writeInt8(1 as int32) + const src_1_1 = src_1 as Resource + thisSerializer.writeResource(src_1_1) + } + } + NativeModule._ImageInterface_setImageOptions1(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + setImageOptions2Attribute(src: PixelMap | ResourceStr | DrawableDescriptor, imageAIOptions: ImageAIOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let src_type = RuntimeType.UNDEFINED + src_type = runtimeType(src) + if (((RuntimeType.OBJECT) == (src_type)) && (isPixelMap(src))) { + thisSerializer.writeInt8(0 as int32) + const src_0 = src as PixelMap + thisSerializer.writeCustomObject("PixelMap", src_0) + } + else if (((RuntimeType.OBJECT) == (src_type)) && (isInstanceOf("DrawableDescriptor", src))) { + thisSerializer.writeInt8(2 as int32) + const src_2 = src as DrawableDescriptor + thisSerializer.writeCustomObject("DrawableDescriptor", src_2) + } + else if (((RuntimeType.STRING == src_type)) || ((RuntimeType.OBJECT == src_type))) { + thisSerializer.writeInt8(1 as int32) + const src_1 = src as ResourceStr + let src_1_type = RuntimeType.UNDEFINED + src_1_type = runtimeType(src_1) + if (((RuntimeType.STRING == src_1_type))) { + thisSerializer.writeInt8(0 as int32) + const src_1_0 = src_1 as string + thisSerializer.writeString(src_1_0) + } + else if (((RuntimeType.OBJECT == src_1_type))) { + thisSerializer.writeInt8(1 as int32) + const src_1_1 = src_1 as Resource + thisSerializer.writeResource(src_1_1) + } + } + thisSerializer.writeImageAIOptions(imageAIOptions) + NativeModule._ImageInterface_setImageOptions2(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + altAttribute(value: string | Resource | PixelMap): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as string + thisSerializer.writeString(value_0) + } + else if (isResource(value)) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as Resource + thisSerializer.writeResource(value_1) + } + else if (((RuntimeType.OBJECT) == (value_type)) && (isPixelMap(value))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as PixelMap + thisSerializer.writeCustomObject("PixelMap", value_2) + } + NativeModule._ImageAttribute_alt(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + matchTextDirectionAttribute(value: boolean): void { + NativeModule._ImageAttribute_matchTextDirection(this.peer.ptr, value ? 1 : 0); + } + fitOriginalSizeAttribute(value: boolean): void { + NativeModule._ImageAttribute_fitOriginalSize(this.peer.ptr, value ? 1 : 0); + } + fillColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._ImageAttribute_fillColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + objectFitAttribute(value: ImageFit): void { + NativeModule._ImageAttribute_objectFit(this.peer.ptr, (value.value as int32)); + } + objectRepeatAttribute(value: ImageRepeat): void { + NativeModule._ImageAttribute_objectRepeat(this.peer.ptr, (value.value as int32)); + } + autoResizeAttribute(value: boolean): void { + NativeModule._ImageAttribute_autoResize(this.peer.ptr, value ? 1 : 0); + } + renderModeAttribute(value: ImageRenderMode): void { + NativeModule._ImageAttribute_renderMode(this.peer.ptr, (value.value as int32)); + } + dynamicRangeModeAttribute(value: DynamicRangeMode): void { + NativeModule._ImageAttribute_dynamicRangeMode(this.peer.ptr, (value.value as int32)); + } + interpolationAttribute(value: ImageInterpolation): void { + NativeModule._ImageAttribute_interpolation(this.peer.ptr, (value.value as int32)); + } + sourceSizeAttribute(value: ImageSourceSize): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeImageSourceSize(value) + NativeModule._ImageAttribute_sourceSize(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + syncLoadAttribute(value: boolean): void { + NativeModule._ImageAttribute_syncLoad(this.peer.ptr, value ? 1 : 0); + } + colorFilterAttribute(value: ColorFilter | DrawingColorFilter): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof ColorFilter)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as ColorFilter + thisSerializer.writeColorFilter(value_0) + } + else if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as DrawingColorFilter + thisSerializer.writeCustomObject("ColorFilter", value_1) + } + NativeModule._ImageAttribute_colorFilter(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + copyOptionAttribute(value: CopyOptions): void { + NativeModule._ImageAttribute_copyOption(this.peer.ptr, (value.value as int32)); + } + draggableAttribute(value: boolean): void { + NativeModule._ImageAttribute_draggable(this.peer.ptr, value ? 1 : 0); + } + pointLightAttribute(value: PointLightStyle): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writePointLightStyle(value) + NativeModule._ImageAttribute_pointLight(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + edgeAntialiasingAttribute(value: number): void { + NativeModule._ImageAttribute_edgeAntialiasing(this.peer.ptr, value); + } + onCompleteAttribute(callback: ((event: LITERAL_WidthNumberHeightNumberComponentWidthNumberComponentHeightNumberLoadingStatusNumberContentWidthNumberContentHeightNumberContentOffsetXNumberContentOffsetYNumber|undefined) => void)): void { + NativeModule._ImageAttribute_onComplete(this.peer.ptr, registerCallback(callback)); + } + onErrorAttribute(callback: ImageErrorCallback): void { + NativeModule._ImageAttribute_onError(this.peer.ptr, registerCallback(callback)); + } + onFinishAttribute(event: (() => void)): void { + NativeModule._ImageAttribute_onFinish(this.peer.ptr, registerCallback(event)); + } + enableAnalyzerAttribute(enable: boolean): void { + NativeModule._ImageAttribute_enableAnalyzer(this.peer.ptr, enable ? 1 : 0); + } + analyzerConfigAttribute(config: ImageAnalyzerConfig): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeImageAnalyzerConfig(config) + NativeModule._ImageAttribute_analyzerConfig(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + resizableAttribute(value: ResizableOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeResizableOptions(value) + NativeModule._ImageAttribute_resizable(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + privacySensitiveAttribute(supported: boolean): void { + NativeModule._ImageAttribute_privacySensitive(this.peer.ptr, supported ? 1 : 0); + } + enhancedImageQualityAttribute(imageQuality: ResolutionQuality): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeCustomObject("ResolutionQuality", imageQuality) + NativeModule._ImageAttribute_enhancedImageQuality(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); } applyAttributes(attributes: T): void { super.applyAttributes(attributes) } } export interface ArkImageAttributes extends ArkCommonMethodAttributes { + alt?: string | Resource | PixelMap + matchTextDirection?: boolean + fitOriginalSize?: boolean + fillColor?: ResourceColor + objectFit?: ImageFit + objectRepeat?: ImageRepeat + autoResize?: boolean + renderMode?: ImageRenderMode + dynamicRangeMode?: DynamicRangeMode + interpolation?: ImageInterpolation + sourceSize?: ImageSourceSize + syncLoad?: boolean + colorFilter?: ColorFilter | DrawingColorFilter + copyOption?: CopyOptions + draggable?: boolean + pointLight?: PointLightStyle + edgeAntialiasing?: number + onComplete?: ((event: LITERAL_WidthNumberHeightNumberComponentWidthNumberComponentHeightNumberLoadingStatusNumberContentWidthNumberContentHeightNumberContentOffsetXNumberContentOffsetYNumber|undefined) => void) + onError?: ImageErrorCallback + onFinish?: (() => void) + enableAnalyzer?: boolean + analyzerConfig?: ImageAnalyzerConfig + resizable?: ResizableOptions + privacySensitive?: boolean + enhancedImageQuality?: ResolutionQuality } diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkListPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkListPeer.ts index 449e335cf..05832e786 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkListPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkListPeer.ts @@ -24,12 +24,20 @@ import { ArkUINodeType } from "./ArkUINodeType" import { ComponentBase } from "../ComponentBase" import { NativeModule } from "#components" import { ArkScrollableCommonMethodPeer, ArkScrollableCommonMethodAttributes } from "./ArkCommonPeer" -import { Optional, ListAttribute, OnScrollVisibleContentChangeCallback, VisibleListContentInfo, ListInterface } from "./../ArkListInterfaces" +import { BarState, Color, EdgeEffect, ScrollSource, Axis } from "./../ArkEnumsInterfaces" +import { EdgeEffectOptions, Optional, FadingEdgeOptions, NestedScrollOptions, ScrollResult, OnScrollCallback, ItemDragInfo } from "./../ArkCommonInterfaces" +import { Resource, LengthConstrain, Length, Dimension, PX, VP, FP, LPX, Percentage, ResourceColor } from "./../ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, LITERAL_MinLengthLengthMaxLengthLength, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, LITERAL_OffsetRemainNumber } from "./../SyntheticDeclarations" +import { ScrollState, ListAttribute, ListItemAlign, ListDividerOptions, ChainAnimationOptions, StickyStyle, ScrollSnapAlign, OnScrollVisibleContentChangeCallback, VisibleListContentInfo, ListOptions, ListInterface, ChainEdgeEffect, ListItemGroupArea } from "./../ArkListInterfaces" +import { OnWillScrollCallback } from "./../ConflictedDeclarations" +import { ChildrenMainSize } from "./../ArkChildrenMainSizeMaterialized" +import { Scroller } from "./../ArkScrollerMaterialized" import { GestureName, GestureComponent } from "./../shared/generated-utils" import { TypeChecker } from "#components" import { registerCallback } from "./SerializerBase" import { wrapCallback } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" export class ArkListPeer extends ArkScrollableCommonMethodPeer { @@ -41,31 +49,234 @@ export class ArkListPeer extends ArkScrollableCommonMethodPeer { component?.setPeer(_peer) return _peer } - setListOptionsAttribute(): void { - NativeModule._ListInterface_setListOptions(this.peer.ptr); + setListOptionsAttribute(options?: ListOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeListOptions(options_value) + } + NativeModule._ListInterface_setListOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); } - someOptionalAttribute(param: boolean | undefined): void { + lanesAttribute(value: number | LengthConstrain, gutter?: Dimension): void { const thisSerializer = SerializerBase.hold(createSerializer) - let param_type = RuntimeType.UNDEFINED - if (param != undefined) { - param_type = RuntimeType.OBJECT + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) } - thisSerializer.writeInt8(param_type as int32) - if ((RuntimeType.UNDEFINED) != (param_type)) { - const param_value = param! - thisSerializer.writeBoolean(param_value) + else if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as LengthConstrain + const value_1_minLength = value_1.minLength + thisSerializer.writeLength(value_1_minLength); + const value_1_maxLength = value_1.maxLength + thisSerializer.writeLength(value_1_maxLength); } - NativeModule._ListAttribute_someOptional(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + let gutter_type = RuntimeType.UNDEFINED + if (gutter != undefined) { + gutter_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(gutter_type as int32) + if ((RuntimeType.UNDEFINED) != (gutter_type)) { + const gutter_value = gutter! + thisSerializer.writeLength(gutter_value); + } + NativeModule._ListAttribute_lanes(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); thisSerializer.release(); } + alignListItemAttribute(value: ListItemAlign): void { + NativeModule._ListAttribute_alignListItem(this.peer.ptr, (value.value as int32)); + } + listDirectionAttribute(value: Axis): void { + NativeModule._ListAttribute_listDirection(this.peer.ptr, (value.value as int32)); + } + scrollBarAttribute(value: BarState): void { + NativeModule._ListAttribute_scrollBar(this.peer.ptr, (value.value as int32)); + } + edgeEffectAttribute(value: EdgeEffect, options?: EdgeEffectOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeEdgeEffectOptions(options_value) + } + NativeModule._ListAttribute_edgeEffect(this.peer.ptr, (value.value as int32), thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + contentStartOffsetAttribute(value: number): void { + NativeModule._ListAttribute_contentStartOffset(this.peer.ptr, value); + } + contentEndOffsetAttribute(value: number): void { + NativeModule._ListAttribute_contentEndOffset(this.peer.ptr, value); + } + dividerAttribute(value: ListDividerOptions | null): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (TypeChecker.isListDividerOptions(value, false, false, false, false)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as ListDividerOptions + thisSerializer.writeListDividerOptions(value_0) + } + else if (value === null) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as null + } + NativeModule._ListAttribute_divider(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + editModeAttribute(value: boolean): void { + NativeModule._ListAttribute_editMode(this.peer.ptr, value ? 1 : 0); + } + multiSelectableAttribute(value: boolean): void { + NativeModule._ListAttribute_multiSelectable(this.peer.ptr, value ? 1 : 0); + } + cachedCountAttribute(value: number): void { + NativeModule._ListAttribute_cachedCount(this.peer.ptr, value); + } + chainAnimationAttribute(value: boolean): void { + NativeModule._ListAttribute_chainAnimation(this.peer.ptr, value ? 1 : 0); + } + chainAnimationOptionsAttribute(value: ChainAnimationOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeChainAnimationOptions(value) + NativeModule._ListAttribute_chainAnimationOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + stickyAttribute(value: StickyStyle): void { + NativeModule._ListAttribute_sticky(this.peer.ptr, (value.value as int32)); + } + scrollSnapAlignAttribute(value: ScrollSnapAlign): void { + NativeModule._ListAttribute_scrollSnapAlign(this.peer.ptr, (value.value as int32)); + } + nestedScrollAttribute(value: NestedScrollOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeNestedScrollOptions(value) + NativeModule._ListAttribute_nestedScroll(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + enableScrollInteractionAttribute(value: boolean): void { + NativeModule._ListAttribute_enableScrollInteraction(this.peer.ptr, value ? 1 : 0); + } + frictionAttribute(value: number | Resource): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as Resource + thisSerializer.writeResource(value_1) + } + NativeModule._ListAttribute_friction(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + childrenMainSizeAttribute(value: ChildrenMainSize): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeMaterialized(value) + NativeModule._ListAttribute_childrenMainSize(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + maintainVisibleContentPositionAttribute(enabled: boolean): void { + NativeModule._ListAttribute_maintainVisibleContentPosition(this.peer.ptr, enabled ? 1 : 0); + } + onScrollAttribute(event: ((scrollOffset: number, scrollState: ScrollState) => void)): void { + NativeModule._ListAttribute_onScroll(this.peer.ptr, registerCallback(event)); + } + onScrollIndexAttribute(event: ((start: number, end: number, center: number) => void)): void { + NativeModule._ListAttribute_onScrollIndex(this.peer.ptr, registerCallback(event)); + } onScrollVisibleContentChangeAttribute(handler: OnScrollVisibleContentChangeCallback): void { NativeModule._ListAttribute_onScrollVisibleContentChange(this.peer.ptr, registerCallback(handler)); } + onReachStartAttribute(event: (() => void)): void { + NativeModule._ListAttribute_onReachStart(this.peer.ptr, registerCallback(event)); + } + onReachEndAttribute(event: (() => void)): void { + NativeModule._ListAttribute_onReachEnd(this.peer.ptr, registerCallback(event)); + } + onScrollStartAttribute(event: (() => void)): void { + NativeModule._ListAttribute_onScrollStart(this.peer.ptr, registerCallback(event)); + } + onScrollStopAttribute(event: (() => void)): void { + NativeModule._ListAttribute_onScrollStop(this.peer.ptr, registerCallback(event)); + } + onItemDeleteAttribute(event: ((index: number) => boolean)): void { + NativeModule._ListAttribute_onItemDelete(this.peer.ptr, registerCallback(event)); + } + onItemMoveAttribute(event: ((from: number, to: number) => boolean)): void { + NativeModule._ListAttribute_onItemMove(this.peer.ptr, registerCallback(event)); + } + onItemDragStartAttribute(event: ((event: ItemDragInfo, itemIndex: number) => (((() => Object))))): void { + NativeModule._ListAttribute_onItemDragStart(this.peer.ptr, registerCallback(event)); + } + onItemDragEnterAttribute(event: ((event: ItemDragInfo) => void)): void { + NativeModule._ListAttribute_onItemDragEnter(this.peer.ptr, registerCallback(event)); + } + onItemDragMoveAttribute(event: ((event: ItemDragInfo, itemIndex: number, insertIndex: number) => void)): void { + NativeModule._ListAttribute_onItemDragMove(this.peer.ptr, registerCallback(event)); + } + onItemDragLeaveAttribute(event: ((event: ItemDragInfo, itemIndex: number) => void)): void { + NativeModule._ListAttribute_onItemDragLeave(this.peer.ptr, registerCallback(event)); + } + onItemDropAttribute(event: ((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => void)): void { + NativeModule._ListAttribute_onItemDrop(this.peer.ptr, registerCallback(event)); + } + onScrollFrameBeginAttribute(event: ((offset: number, state: ScrollState) => LITERAL_OffsetRemainNumber)): void { + NativeModule._ListAttribute_onScrollFrameBegin(this.peer.ptr, registerCallback(event)); + } applyAttributes(attributes: T): void { super.applyAttributes(attributes) } } export interface ArkListAttributes extends ArkScrollableCommonMethodAttributes { - someOptional?: boolean | undefined + alignListItem?: ListItemAlign + listDirection?: Axis + scrollBar?: BarState + contentStartOffset?: number + contentEndOffset?: number + divider?: ListDividerOptions | null + editMode?: boolean + multiSelectable?: boolean + cachedCount?: number + chainAnimation?: boolean + chainAnimationOptions?: ChainAnimationOptions + sticky?: StickyStyle + scrollSnapAlign?: ScrollSnapAlign + nestedScroll?: NestedScrollOptions + enableScrollInteraction?: boolean + friction?: number | Resource + childrenMainSize?: ChildrenMainSize + maintainVisibleContentPosition?: boolean + onScroll?: ((scrollOffset: number, scrollState: ScrollState) => void) + onScrollIndex?: ((start: number, end: number, center: number) => void) onScrollVisibleContentChange?: OnScrollVisibleContentChangeCallback + onReachStart?: (() => void) + onReachEnd?: (() => void) + onScrollStart?: (() => void) + onScrollStop?: (() => void) + onItemDelete?: ((index: number) => boolean) + onItemMove?: ((from: number, to: number) => boolean) + onItemDragStart?: ((event: ItemDragInfo, itemIndex: number) => (((() => Object)))) + onItemDragEnter?: ((event: ItemDragInfo) => void) + onItemDragMove?: ((event: ItemDragInfo, itemIndex: number, insertIndex: number) => void) + onItemDragLeave?: ((event: ItemDragInfo, itemIndex: number) => void) + onItemDrop?: ((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => void) + onScrollFrameBegin?: ((offset: number, state: ScrollState) => LITERAL_OffsetRemainNumber) } diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkNavDestinationPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkNavDestinationPeer.ts index f5f8baa3d..11268deb8 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkNavDestinationPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkNavDestinationPeer.ts @@ -24,19 +24,19 @@ import { ArkUINodeType } from "./ArkUINodeType" import { ComponentBase } from "../ComponentBase" import { NativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CustomBuilder, PixelMap, SymbolGlyphModifier, Callback } from "./../ArkCommonInterfaces" -import { NavDestinationCommonTitle, NavDestinationCustomTitle, NavDestinationAttribute, NavDestinationMode, NavDestinationInterface, RouteMapConfig } from "./../ArkNavDestinationInterfaces" +import { CustomBuilder, PixelMap, SymbolGlyphModifier, Callback, LayoutSafeAreaType, LayoutSafeAreaEdge, Optional } from "./../ArkCommonInterfaces" +import { NavDestinationCommonTitle, NavDestinationCustomTitle, NavDestinationAttribute, NavDestinationMode, NavigationSystemTransitionType, NavDestinationInterface, RouteMapConfig } from "./../ArkNavDestinationInterfaces" +import { Resource, ResourceStr, Length } from "./../ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image, IMPORT_SymbolGlyphModifier_FROM_api_arkui_SymbolGlyphModifier, IMPORT_Callback_NavDestinationContext_FROM_api_ohos_base, IMPORT_default_SystemBarStyle_FROM_api_ohos_window } from "./../SyntheticDeclarations" import { NavigationTitleOptions, NavigationMenuItem, SystemBarStyle } from "./../ArkNavigationInterfaces" -import { ResourceStr, Resource, Length } from "./../ArkUnitsInterfaces" -import { IMPORT_Resource_FROM_resource_resource, IMPORT_default_PixelMap_FROM_resource_image, IMPORT_SymbolGlyphModifier_FROM_resource_symbol, IMPORT_Callback_NavDestinationContext_FROM_api_ohos_base, IMPORT_default_SystemBarStyle_FROM_api_ohos_window } from "./../SyntheticDeclarations" import { NavDestinationContext } from "./../ArkNavDestinationContextMaterialized" -import { LayoutSafeAreaType, LayoutSafeAreaEdge, TitleHeight } from "./../ArkColumnInterfaces" -import { Optional } from "./../ArkListInterfaces" +import { TitleHeight } from "./../ArkEnumsInterfaces" import { GestureName, GestureComponent } from "./../shared/generated-utils" import { TypeChecker } from "#components" import { registerCallback } from "./SerializerBase" import { wrapCallback } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" export class ArkNavDestinationPeer extends ArkCommonMethodPeer { @@ -51,7 +51,7 @@ export class ArkNavDestinationPeer extends ArkCommonMethodPeer { setNavDestinationOptionsAttribute(): void { NativeModule._NavDestinationInterface_setNavDestinationOptions(this.peer.ptr); } - titleAttribute(value: string | CustomBuilder | NavDestinationCommonTitle | NavDestinationCustomTitle, options?: NavigationTitleOptions): void { + titleAttribute(value: string | CustomBuilder | NavDestinationCommonTitle | NavDestinationCustomTitle | Resource, options?: NavigationTitleOptions): void { const thisSerializer = SerializerBase.hold(createSerializer) let value_type = RuntimeType.UNDEFINED value_type = runtimeType(value) @@ -70,6 +70,11 @@ export class ArkNavDestinationPeer extends ArkCommonMethodPeer { const value_3 = value as NavDestinationCustomTitle thisSerializer.writeNavDestinationCustomTitle(value_3) } + else if (isResource(value)) { + thisSerializer.writeInt8(4 as int32) + const value_4 = value as Resource + thisSerializer.writeResource(value_4) + } else if (((RuntimeType.FUNCTION == value_type)) || ((RuntimeType.UNDEFINED == value_type))) { thisSerializer.writeInt8(1 as int32) const value_1 = value as CustomBuilder @@ -96,8 +101,11 @@ export class ArkNavDestinationPeer extends ArkCommonMethodPeer { NativeModule._NavDestinationAttribute_title(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); thisSerializer.release(); } - hideTitleBarAttribute(value: boolean): void { - NativeModule._NavDestinationAttribute_hideTitleBar(this.peer.ptr, value ? 1 : 0); + hideTitleBar0Attribute(value: boolean): void { + NativeModule._NavDestinationAttribute_hideTitleBar0(this.peer.ptr, value ? 1 : 0); + } + hideTitleBar1Attribute(hide: boolean, animated: boolean): void { + NativeModule._NavDestinationAttribute_hideTitleBar1(this.peer.ptr, hide ? 1 : 0, animated ? 1 : 0); } onShownAttribute(callback: (() => void)): void { NativeModule._NavDestinationAttribute_onShown(this.peer.ptr, registerCallback(callback)); @@ -237,6 +245,23 @@ export class ArkNavDestinationPeer extends ArkCommonMethodPeer { NativeModule._NavDestinationAttribute_systemBarStyle(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); thisSerializer.release(); } + recoverableAttribute(recoverable: boolean | undefined): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let recoverable_type = RuntimeType.UNDEFINED + if (recoverable != undefined) { + recoverable_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(recoverable_type as int32) + if ((RuntimeType.UNDEFINED) != (recoverable_type)) { + const recoverable_value = recoverable! + thisSerializer.writeBoolean(recoverable_value) + } + NativeModule._NavDestinationAttribute_recoverable(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + systemTransitionAttribute(type: NavigationSystemTransitionType): void { + NativeModule._NavDestinationAttribute_systemTransition(this.peer.ptr, (type.value as int32)); + } applyAttributes(attributes: T): void { super.applyAttributes(attributes) } @@ -255,4 +280,6 @@ export interface ArkNavDestinationAttributes extends ArkCommonMethodAttributes { onWillShow?: Callback onWillHide?: Callback systemBarStyle?: SystemBarStyle | undefined + recoverable?: boolean | undefined + systemTransition?: NavigationSystemTransitionType } diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkNavigationPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkNavigationPeer.ts index 8c99e2fa0..185db77ee 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkNavigationPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkNavigationPeer.ts @@ -25,13 +25,11 @@ import { ComponentBase } from "../ComponentBase" import { NativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { Length, Resource, Dimension, PX, VP, FP, LPX, Percentage, ResourceStr, ResourceColor, LengthMetrics } from "./../ArkUnitsInterfaces" -import { IMPORT_Resource_FROM_resource_resource, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, IMPORT_default_PixelMap_FROM_resource_image, IMPORT_SymbolGlyphModifier_FROM_resource_symbol, IMPORT_default_SystemBarStyle_FROM_api_ohos_window, IMPORT_LengthMetrics_FROM_api_arkui_Graphics, IMPORT_Callback_PopInfo_FROM_api_ohos_base, LITERAL_NavBar } from "./../SyntheticDeclarations" +import { IMPORT_Resource_FROM_api_global_resource, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image, IMPORT_SymbolGlyphModifier_FROM_api_arkui_SymbolGlyphModifier, IMPORT_default_SystemBarStyle_FROM_api_ohos_window, IMPORT_LengthMetrics_FROM_api_arkui_Graphics, TextModifier, IMPORT_Callback_PopInfo_FROM_api_ohos_base, LITERAL_NavBar, IMPORT_TextModifier_FROM_api_arkui_TextModifier } from "./../SyntheticDeclarations" import { NavigationAttribute, NavBarPosition, NavigationMode, NavigationCommonTitle, NavigationCustomTitle, NavigationTitleOptions, NavigationTitleMode, NavigationMenuItem, ToolbarItem, NavigationToolbarOptions, NavContentInfo, NavigationOperation, NavigationAnimatedTransition, SystemBarStyle, NavigationInterface, BarStyle, PopInfo, NavPathInfo, LaunchMode, NavigationOptions, InterceptionShowCallback, NavBar, InterceptionModeCallback, NavigationInterception, ToolbarItemStatus } from "./../ArkNavigationInterfaces" -import { PixelMap, SymbolGlyphModifier, CustomBuilder, BlurStyle } from "./../ArkCommonInterfaces" -import { LayoutSafeAreaType, LayoutSafeAreaEdge, TitleHeight } from "./../ArkColumnInterfaces" -import { Optional } from "./../ArkListInterfaces" +import { PixelMap, SymbolGlyphModifier, CustomBuilder, LayoutSafeAreaType, LayoutSafeAreaEdge, Optional, BlurStyle } from "./../ArkCommonInterfaces" import { NavPathStack } from "./../ArkNavPathStackMaterialized" -import { Color } from "./../ArkEnumsInterfaces" +import { Color, TitleHeight } from "./../ArkEnumsInterfaces" import { NavDestinationContext } from "./../ArkNavDestinationContextMaterialized" import { NavDestinationMode } from "./../ArkNavDestinationInterfaces" import { NavigationTransitionProxy } from "./../ArkNavigationTransitionProxyMaterialized" @@ -40,6 +38,7 @@ import { TypeChecker } from "#components" import { registerCallback } from "./SerializerBase" import { wrapCallback } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" export class ArkNavigationPeer extends ArkCommonMethodPeer { @@ -61,7 +60,10 @@ export class ArkNavigationPeer extends ArkCommonMethodPeer { thisSerializer.release(); } navBarWidthAttribute(value: Length): void { - NativeModule._NavigationAttribute_navBarWidth(this.peer.ptr, value); + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeLength(value); + NativeModule._NavigationAttribute_navBarWidth(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); } navBarPositionAttribute(value: NavBarPosition): void { NativeModule._NavigationAttribute_navBarPosition(this.peer.ptr, (value.value as int32)); @@ -77,7 +79,10 @@ export class ArkNavigationPeer extends ArkCommonMethodPeer { thisSerializer.release(); } minContentWidthAttribute(value: Dimension): void { - NativeModule._NavigationAttribute_minContentWidth(this.peer.ptr, value); + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeLength(value); + NativeModule._NavigationAttribute_minContentWidth(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); } modeAttribute(value: NavigationMode): void { NativeModule._NavigationAttribute_mode(this.peer.ptr, (value.value as int32)); @@ -171,8 +176,11 @@ export class ArkNavigationPeer extends ArkCommonMethodPeer { subTitleAttribute(value: string): void { NativeModule._NavigationAttribute_subTitle(this.peer.ptr, value); } - hideTitleBarAttribute(value: boolean): void { - NativeModule._NavigationAttribute_hideTitleBar(this.peer.ptr, value ? 1 : 0); + hideTitleBar0Attribute(value: boolean): void { + NativeModule._NavigationAttribute_hideTitleBar0(this.peer.ptr, value ? 1 : 0); + } + hideTitleBar1Attribute(hide: boolean, animated: boolean): void { + NativeModule._NavigationAttribute_hideTitleBar1(this.peer.ptr, hide ? 1 : 0, animated ? 1 : 0); } hideBackButtonAttribute(value: boolean): void { NativeModule._NavigationAttribute_hideBackButton(this.peer.ptr, value ? 1 : 0); @@ -277,8 +285,11 @@ export class ArkNavigationPeer extends ArkCommonMethodPeer { NativeModule._NavigationAttribute_toolbarConfiguration(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); thisSerializer.release(); } - hideToolBarAttribute(value: boolean): void { - NativeModule._NavigationAttribute_hideToolBar(this.peer.ptr, value ? 1 : 0); + hideToolBar0Attribute(value: boolean): void { + NativeModule._NavigationAttribute_hideToolBar0(this.peer.ptr, value ? 1 : 0); + } + hideToolBar1Attribute(hide: boolean, animated: boolean): void { + NativeModule._NavigationAttribute_hideToolBar1(this.peer.ptr, hide ? 1 : 0, animated ? 1 : 0); } onTitleModeChangeAttribute(callback: ((titleMode: NavigationTitleMode) => void)): void { NativeModule._NavigationAttribute_onTitleModeChange(this.peer.ptr, registerCallback(callback)); @@ -342,6 +353,20 @@ export class ArkNavigationPeer extends ArkCommonMethodPeer { NativeModule._NavigationAttribute_systemBarStyle(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); thisSerializer.release(); } + recoverableAttribute(recoverable: boolean | undefined): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let recoverable_type = RuntimeType.UNDEFINED + if (recoverable != undefined) { + recoverable_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(recoverable_type as int32) + if ((RuntimeType.UNDEFINED) != (recoverable_type)) { + const recoverable_value = recoverable! + thisSerializer.writeBoolean(recoverable_value) + } + NativeModule._NavigationAttribute_recoverable(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } applyAttributes(attributes: T): void { super.applyAttributes(attributes) } @@ -367,4 +392,5 @@ export interface ArkNavigationAttributes extends ArkCommonMethodAttributes { navDestination?: ((name: string, param: Object) => void) customNavContentTransition?: ((from: NavContentInfo, to: NavContentInfo, operation: NavigationOperation) => NavigationAnimatedTransition | undefined) systemBarStyle?: SystemBarStyle | undefined + recoverable?: boolean | undefined } diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRectPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRectPeer.ts index 123e5a2d1..21f956f28 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkRectPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRectPeer.ts @@ -31,6 +31,7 @@ import { TypeChecker } from "#components" import { registerCallback } from "./SerializerBase" import { wrapCallback } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" export class ArkRectPeer extends ArkCommonShapeMethodPeer { diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkScrollPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkScrollPeer.ts index ffca56f6e..8fdd39c19 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkScrollPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkScrollPeer.ts @@ -24,15 +24,21 @@ import { ArkUINodeType } from "./ArkUINodeType" import { ComponentBase } from "../ComponentBase" import { NativeModule } from "#components" import { ArkScrollableCommonMethodPeer, ArkScrollableCommonMethodAttributes } from "./ArkCommonPeer" -import { ScrollAttribute, ScrollInterface, ScrollAnimationOptions } from "./../ArkScrollInterfaces" +import { BarState, Color, EdgeEffect, ScrollSource, Edge, Curve } from "./../ArkEnumsInterfaces" +import { EdgeEffectOptions, Optional, FadingEdgeOptions, NestedScrollOptions, ScrollResult, OnScrollCallback } from "./../ArkCommonInterfaces" +import { Resource, VoidCallback, LengthMetrics, Dimension, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, IMPORT_LengthMetrics_FROM_api_arkui_Graphics, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage } from "./../SyntheticDeclarations" +import { ScrollState, ScrollSnapAlign } from "./../ArkListInterfaces" +import { OnWillScrollCallback } from "./../ConflictedDeclarations" +import { ScrollDirection, ScrollAttribute, ScrollOnWillScrollCallback, OffsetResult, ScrollOnScrollCallback, OnScrollEdgeCallback, OnScrollFrameBeginCallback, OnScrollFrameBeginHandlerResult, ScrollSnapOptions, OffsetOptions, ScrollInterface, ScrollAnimationOptions, ScrollOptions, ScrollEdgeOptions, ScrollToIndexOptions } from "./../ArkScrollInterfaces" import { Scroller } from "./../ArkScrollerMaterialized" -import { Curve } from "./../ArkEnumsInterfaces" import { ICurve } from "./../ArkICurveMaterialized" import { GestureName, GestureComponent } from "./../shared/generated-utils" import { TypeChecker } from "#components" import { registerCallback } from "./SerializerBase" import { wrapCallback } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" export class ArkScrollPeer extends ArkScrollableCommonMethodPeer { @@ -58,9 +64,148 @@ export class ArkScrollPeer extends ArkScrollableCommonMethodPeer { NativeModule._ScrollInterface_setScrollOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); thisSerializer.release(); } + scrollableAttribute(value: ScrollDirection): void { + NativeModule._ScrollAttribute_scrollable(this.peer.ptr, (value.value as int32)); + } + onScrollAttribute(event: ((xOffset: number, yOffset: number) => void)): void { + NativeModule._ScrollAttribute_onScroll(this.peer.ptr, registerCallback(event)); + } + onDidScrollAttribute(handler: ScrollOnScrollCallback): void { + NativeModule._ScrollAttribute_onDidScroll(this.peer.ptr, registerCallback(handler)); + } + onScrollEdgeAttribute(event: OnScrollEdgeCallback): void { + NativeModule._ScrollAttribute_onScrollEdge(this.peer.ptr, registerCallback(event)); + } + onScrollStartAttribute(event: VoidCallback): void { + NativeModule._ScrollAttribute_onScrollStart(this.peer.ptr, registerCallback(event)); + } + onScrollEndAttribute(event: (() => void)): void { + NativeModule._ScrollAttribute_onScrollEnd(this.peer.ptr, registerCallback(event)); + } + onScrollStopAttribute(event: VoidCallback): void { + NativeModule._ScrollAttribute_onScrollStop(this.peer.ptr, registerCallback(event)); + } + scrollBarAttribute(barState: BarState): void { + NativeModule._ScrollAttribute_scrollBar(this.peer.ptr, (barState.value as int32)); + } + scrollBarColorAttribute(color: Color | number | string): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let color_type = RuntimeType.UNDEFINED + color_type = runtimeType(color) + if (((color instanceof Color))) { + thisSerializer.writeInt8(0 as int32) + const color_0 = color as Color + thisSerializer.writeInt32((color_0.value as int32)) + } + else if (((RuntimeType.NUMBER == color_type))) { + thisSerializer.writeInt8(1 as int32) + const color_1 = color as number + thisSerializer.writeNumber(color_1) + } + else if (((RuntimeType.STRING == color_type))) { + thisSerializer.writeInt8(2 as int32) + const color_2 = color as string + thisSerializer.writeString(color_2) + } + NativeModule._ScrollAttribute_scrollBarColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + scrollBarWidthAttribute(value: number | string): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as string + thisSerializer.writeString(value_1) + } + NativeModule._ScrollAttribute_scrollBarWidth(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + edgeEffectAttribute(edgeEffect: EdgeEffect, options?: EdgeEffectOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeEdgeEffectOptions(options_value) + } + NativeModule._ScrollAttribute_edgeEffect(this.peer.ptr, (edgeEffect.value as int32), thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + onScrollFrameBeginAttribute(event: OnScrollFrameBeginCallback): void { + NativeModule._ScrollAttribute_onScrollFrameBegin(this.peer.ptr, registerCallback(event)); + } + nestedScrollAttribute(value: NestedScrollOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeNestedScrollOptions(value) + NativeModule._ScrollAttribute_nestedScroll(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + enableScrollInteractionAttribute(value: boolean): void { + NativeModule._ScrollAttribute_enableScrollInteraction(this.peer.ptr, value ? 1 : 0); + } + frictionAttribute(value: number | Resource): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as Resource + thisSerializer.writeResource(value_1) + } + NativeModule._ScrollAttribute_friction(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + scrollSnapAttribute(value: ScrollSnapOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeScrollSnapOptions(value) + NativeModule._ScrollAttribute_scrollSnap(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + enablePagingAttribute(value: boolean): void { + NativeModule._ScrollAttribute_enablePaging(this.peer.ptr, value ? 1 : 0); + } + initialOffsetAttribute(value: OffsetOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeOffsetOptions(value) + NativeModule._ScrollAttribute_initialOffset(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } applyAttributes(attributes: T): void { super.applyAttributes(attributes) } } export interface ArkScrollAttributes extends ArkScrollableCommonMethodAttributes { + scrollable?: ScrollDirection + onScroll?: ((scrollOffset: number, scrollState: ScrollState) => void) + onWillScroll?: Object + onDidScroll?: OnScrollCallback + onScrollEdge?: OnScrollEdgeCallback + onScrollStart?: (() => void) + onScrollEnd?: (() => void) + onScrollStop?: (() => void) + scrollBar?: BarState + scrollBarColor?: Color | number | string + scrollBarWidth?: number | string + onScrollFrameBegin?: OnScrollFrameBeginCallback + nestedScroll?: NestedScrollOptions + enableScrollInteraction?: boolean + friction?: number | Resource + scrollSnap?: ScrollSnapOptions + enablePaging?: boolean + initialOffset?: OffsetOptions } diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkSelectPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkSelectPeer.ts index f0f85ddc8..3c6b48d63 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkSelectPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkSelectPeer.ts @@ -24,16 +24,20 @@ import { ArkUINodeType } from "./ArkUINodeType" import { ComponentBase } from "../ComponentBase" import { NativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { MenuItemConfiguration, SelectAttribute, SelectOption, SelectInterface } from "./../ArkSelectInterfaces" +import { Resource, ResourceStr, Font, ResourceColor, Length, Offset, Dimension, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, LITERAL_DxLengthDyLength, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, IMPORT_SymbolGlyphModifier_FROM_api_arkui_SymbolGlyphModifier } from "./../SyntheticDeclarations" +import { SelectAttribute, ArrowPosition, MenuAlignType, MenuItemConfiguration, SelectOption, SelectInterface } from "./../ArkSelectInterfaces" +import { Color, OptionWidthMode } from "./../ArkEnumsInterfaces" +import { BlurStyle, Optional, CommonConfiguration, SymbolGlyphModifier } from "./../ArkCommonInterfaces" +import { ControlSize } from "./../ArkButtonInterfaces" import { ContentModifier } from "./../ConflictedDeclarations" -import { CommonConfiguration, SymbolGlyphModifier } from "./../ArkCommonInterfaces" -import { ResourceStr, Resource } from "./../ArkUnitsInterfaces" -import { IMPORT_Resource_FROM_resource_resource, IMPORT_SymbolGlyphModifier_FROM_resource_symbol } from "./../SyntheticDeclarations" +import { DividerOptions } from "./../ArkTextPickerInterfaces" import { GestureName, GestureComponent } from "./../shared/generated-utils" import { TypeChecker } from "#components" import { registerCallback } from "./SerializerBase" import { wrapCallback } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" export class ArkSelectPeer extends ArkCommonMethodPeer { @@ -56,16 +60,331 @@ export class ArkSelectPeer extends ArkCommonMethodPeer { NativeModule._SelectInterface_setSelectOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); thisSerializer.release(); } + selectedAttribute(value: number | Resource): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as Resource + thisSerializer.writeResource(value_1) + } + NativeModule._SelectAttribute_selected(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + valueAttribute(value: ResourceStr): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as string + thisSerializer.writeString(value_0) + } + else if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as Resource + thisSerializer.writeResource(value_1) + } + NativeModule._SelectAttribute_value(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + fontAttribute(value: Font): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeFont(value) + NativeModule._SelectAttribute_font(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + fontColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._SelectAttribute_fontColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + selectedOptionBgColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._SelectAttribute_selectedOptionBgColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + selectedOptionFontAttribute(value: Font): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeFont(value) + NativeModule._SelectAttribute_selectedOptionFont(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + selectedOptionFontColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._SelectAttribute_selectedOptionFontColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + optionBgColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._SelectAttribute_optionBgColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + optionFontAttribute(value: Font): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeFont(value) + NativeModule._SelectAttribute_optionFont(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + optionFontColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._SelectAttribute_optionFontColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + onSelectAttribute(callback: ((index: number, value: string) => void)): void { + NativeModule._SelectAttribute_onSelect(this.peer.ptr, registerCallback(callback)); + } + spaceAttribute(value: Length): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeLength(value); + NativeModule._SelectAttribute_space(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + arrowPositionAttribute(value: ArrowPosition): void { + NativeModule._SelectAttribute_arrowPosition(this.peer.ptr, (value.value as int32)); + } + menuAlignAttribute(alignType: MenuAlignType, offset?: Offset): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let offset_type = RuntimeType.UNDEFINED + if (offset != undefined) { + offset_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(offset_type as int32) + if ((RuntimeType.UNDEFINED) != (offset_type)) { + const offset_value = offset! + const offset_value_dx = offset_value.dx + thisSerializer.writeLength(offset_value_dx); + const offset_value_dy = offset_value.dy + thisSerializer.writeLength(offset_value_dy); + } + NativeModule._SelectAttribute_menuAlign(this.peer.ptr, (alignType.value as int32), thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + optionWidthAttribute(value: Dimension | OptionWidthMode): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value)))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Dimension + thisSerializer.writeLength(value_0); + } + else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof OptionWidthMode)) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as OptionWidthMode + thisSerializer.writeInt32((value_1.ordinal as int32)) + } + NativeModule._SelectAttribute_optionWidth(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + optionHeightAttribute(value: Dimension): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeLength(value); + NativeModule._SelectAttribute_optionHeight(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + menuBackgroundColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._SelectAttribute_menuBackgroundColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + menuBackgroundBlurStyleAttribute(value: BlurStyle): void { + NativeModule._SelectAttribute_menuBackgroundBlurStyle(this.peer.ptr, (value.value as int32)); + } + controlSizeAttribute(value: ControlSize): void { + NativeModule._SelectAttribute_controlSize(this.peer.ptr, (value.ordinal as int32)); + } menuItemContentModifierAttribute(modifier: ContentModifier): void { const thisSerializer = SerializerBase.hold(createSerializer) thisSerializer.writeCustomObject("ContentModifier", modifier) NativeModule._SelectAttribute_menuItemContentModifier(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); thisSerializer.release(); } + dividerAttribute(options: DividerOptions | undefined | null): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let options_type = RuntimeType.UNDEFINED + options_type = runtimeType(options) + if (((RuntimeType.OBJECT == options_type)) || ((RuntimeType.UNDEFINED == options_type))) { + thisSerializer.writeInt8(0 as int32) + const options_0 = options as DividerOptions|undefined + let options_0_type = RuntimeType.UNDEFINED + if (options_0 != undefined) { + options_0_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_0_type as int32) + if ((RuntimeType.UNDEFINED) != (options_0_type)) { + const options_0_value = options_0! + thisSerializer.writeDividerOptions(options_0_value) + } + } + else if (options === null) { + thisSerializer.writeInt8(1 as int32) + const options_1 = options as null + } + NativeModule._SelectAttribute_divider(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } applyAttributes(attributes: T): void { super.applyAttributes(attributes) } } export interface ArkSelectAttributes extends ArkCommonMethodAttributes { + selected?: number | Resource + value?: ResourceStr + font?: Font + fontColor?: ResourceColor + selectedOptionBgColor?: ResourceColor + selectedOptionFont?: Font + selectedOptionFontColor?: ResourceColor + optionBgColor?: ResourceColor + optionFont?: Font + optionFontColor?: ResourceColor + onSelect?: ((index: number, value: string) => void) + space?: Length + arrowPosition?: ArrowPosition + optionWidth?: Dimension | OptionWidthMode + optionHeight?: Dimension + menuBackgroundColor?: ResourceColor + menuBackgroundBlurStyle?: BlurStyle + controlSize?: ControlSize menuItemContentModifier?: ContentModifier + divider?: DividerOptions | undefined | null } diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkShapePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkShapePeer.ts index c2ce3c82a..f37c8a9a1 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkShapePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkShapePeer.ts @@ -24,12 +24,17 @@ import { ArkUINodeType } from "./ArkUINodeType" import { ComponentBase } from "../ComponentBase" import { NativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { LITERAL_XNumberstringYNumberstringWidthNumberstringHeightNumberstring, IMPORT_Resource_FROM_api_global_resource, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image } from "./../SyntheticDeclarations" import { ShapeAttribute, ShapeInterface } from "./../ArkShapeInterfaces" +import { ResourceColor, Resource } from "./../ArkUnitsInterfaces" +import { Color, LineCapStyle, LineJoinStyle } from "./../ArkEnumsInterfaces" +import { PixelMap } from "./../ArkCommonInterfaces" import { GestureName, GestureComponent } from "./../shared/generated-utils" import { TypeChecker } from "#components" import { registerCallback } from "./SerializerBase" import { wrapCallback } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" export class ArkShapePeer extends ArkCommonMethodPeer { @@ -41,12 +46,305 @@ export class ArkShapePeer extends ArkCommonMethodPeer { component?.setPeer(_peer) return _peer } - setShapeOptionsAttribute(): void { - NativeModule._ShapeInterface_setShapeOptions(this.peer.ptr); + setShapeOptions0Attribute(value: PixelMap): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeCustomObject("PixelMap", value) + NativeModule._ShapeInterface_setShapeOptions0(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + setShapeOptions1Attribute(): void { + NativeModule._ShapeInterface_setShapeOptions1(this.peer.ptr); + } + viewPortAttribute(value: ViewPortValuesType): void { + const thisSerializer = SerializerBase.hold(createSerializer) + const value_x = value.x + let value_x_type = RuntimeType.UNDEFINED + if (value_x != undefined) { + value_x_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_x_type as int32) + if ((RuntimeType.UNDEFINED) != (value_x_type)) { + const value_x_value = value_x! + let value_x_value_type = RuntimeType.UNDEFINED + value_x_value_type = runtimeType(value_x_value) + if (((RuntimeType.NUMBER == value_x_value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_x_value_0 = value_x_value as number + thisSerializer.writeNumber(value_x_value_0) + } + else if (((RuntimeType.STRING == value_x_value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_x_value_1 = value_x_value as string + thisSerializer.writeString(value_x_value_1) + } + } + const value_y = value.y + let value_y_type = RuntimeType.UNDEFINED + if (value_y != undefined) { + value_y_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_y_type as int32) + if ((RuntimeType.UNDEFINED) != (value_y_type)) { + const value_y_value = value_y! + let value_y_value_type = RuntimeType.UNDEFINED + value_y_value_type = runtimeType(value_y_value) + if (((RuntimeType.NUMBER == value_y_value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_y_value_0 = value_y_value as number + thisSerializer.writeNumber(value_y_value_0) + } + else if (((RuntimeType.STRING == value_y_value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_y_value_1 = value_y_value as string + thisSerializer.writeString(value_y_value_1) + } + } + const value_width = value.width + let value_width_type = RuntimeType.UNDEFINED + if (value_width != undefined) { + value_width_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_width_type as int32) + if ((RuntimeType.UNDEFINED) != (value_width_type)) { + const value_width_value = value_width! + let value_width_value_type = RuntimeType.UNDEFINED + value_width_value_type = runtimeType(value_width_value) + if (((RuntimeType.NUMBER == value_width_value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_width_value_0 = value_width_value as number + thisSerializer.writeNumber(value_width_value_0) + } + else if (((RuntimeType.STRING == value_width_value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_width_value_1 = value_width_value as string + thisSerializer.writeString(value_width_value_1) + } + } + const value_height = value.height + let value_height_type = RuntimeType.UNDEFINED + if (value_height != undefined) { + value_height_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_height_type as int32) + if ((RuntimeType.UNDEFINED) != (value_height_type)) { + const value_height_value = value_height! + let value_height_value_type = RuntimeType.UNDEFINED + value_height_value_type = runtimeType(value_height_value) + if (((RuntimeType.NUMBER == value_height_value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_height_value_0 = value_height_value as number + thisSerializer.writeNumber(value_height_value_0) + } + else if (((RuntimeType.STRING == value_height_value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_height_value_1 = value_height_value as string + thisSerializer.writeString(value_height_value_1) + } + } + NativeModule._ShapeAttribute_viewPort(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + strokeAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._ShapeAttribute_stroke(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + fillAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._ShapeAttribute_fill(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + strokeDashOffsetAttribute(value: number | string): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as string + thisSerializer.writeString(value_1) + } + NativeModule._ShapeAttribute_strokeDashOffset(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + strokeDashArrayAttribute(value: Array): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeInt8(runtimeType(value) as int32) + thisSerializer.writeInt32(value.length as int32) + for (let i = 0; i < value.length; i++) { + const value_element = value[i] + thisSerializer.writeCustomObject("Any", value_element) + } + NativeModule._ShapeAttribute_strokeDashArray(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + strokeLineCapAttribute(value: LineCapStyle): void { + NativeModule._ShapeAttribute_strokeLineCap(this.peer.ptr, (value.value as int32)); + } + strokeLineJoinAttribute(value: LineJoinStyle): void { + NativeModule._ShapeAttribute_strokeLineJoin(this.peer.ptr, (value.value as int32)); + } + strokeMiterLimitAttribute(value: number | string): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as string + thisSerializer.writeString(value_1) + } + NativeModule._ShapeAttribute_strokeMiterLimit(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + strokeOpacityAttribute(value: number | string | Resource): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as string + thisSerializer.writeString(value_1) + } + else if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as Resource + thisSerializer.writeResource(value_2) + } + NativeModule._ShapeAttribute_strokeOpacity(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + fillOpacityAttribute(value: number | string | Resource): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as string + thisSerializer.writeString(value_1) + } + else if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as Resource + thisSerializer.writeResource(value_2) + } + NativeModule._ShapeAttribute_fillOpacity(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + strokeWidthAttribute(value: number | string): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as string + thisSerializer.writeString(value_1) + } + NativeModule._ShapeAttribute_strokeWidth(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + antiAliasAttribute(value: boolean): void { + NativeModule._ShapeAttribute_antiAlias(this.peer.ptr, value ? 1 : 0); + } + meshAttribute(value: Array, column: number, row: number): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeInt8(runtimeType(value) as int32) + thisSerializer.writeInt32(value.length as int32) + for (let i = 0; i < value.length; i++) { + const value_element = value[i] + thisSerializer.writeCustomObject("Any", value_element) + } + NativeModule._ShapeAttribute_mesh(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length(), column, row); + thisSerializer.release(); } applyAttributes(attributes: T): void { super.applyAttributes(attributes) } } +export interface ViewPortValuesType { + x?: number | string + y?: number | string + width?: number | string + height?: number | string +} export interface ArkShapeAttributes extends ArkCommonMethodAttributes { + viewPort?: ViewPortValuesType + stroke?: ResourceColor + fill?: ResourceColor + strokeDashOffset?: number | string + strokeDashArray?: Array + strokeLineCap?: LineCapStyle + strokeLineJoin?: LineJoinStyle + strokeMiterLimit?: number | string + strokeOpacity?: number | string | Resource + fillOpacity?: number | string | Resource + strokeWidth?: number | string + antiAlias?: boolean } diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkSidebarPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkSidebarPeer.ts index 0423f50e4..9cdda5155 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkSidebarPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkSidebarPeer.ts @@ -24,14 +24,17 @@ import { ArkUINodeType } from "./ArkUINodeType" import { ComponentBase } from "../ComponentBase" import { NativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { SideBarContainerAttribute, SideBarContainerInterface } from "./../ArkSidebarInterfaces" -import { Length, Resource } from "./../ArkUnitsInterfaces" -import { IMPORT_Resource_FROM_resource_resource } from "./../SyntheticDeclarations" +import { SideBarContainerAttribute, ButtonStyle, SideBarPosition, SideBarContainerType, SideBarContainerInterface } from "./../ArkSidebarInterfaces" +import { Length, Resource, Dimension, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image, LITERAL_ShownStringPixelMapResourceHiddenStringPixelMapResourceSwitchingStringPixelMapResource } from "./../SyntheticDeclarations" +import { DividerStyle } from "./../ArkTabsInterfaces" +import { PixelMap } from "./../ArkCommonInterfaces" import { GestureName, GestureComponent } from "./../shared/generated-utils" import { TypeChecker } from "#components" import { registerCallback } from "./SerializerBase" import { wrapCallback } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" export class ArkSideBarContainerPeer extends ArkCommonMethodPeer { @@ -43,19 +46,104 @@ export class ArkSideBarContainerPeer extends ArkCommonMethodPeer { component?.setPeer(_peer) return _peer } - setSideBarContainerOptionsAttribute(): void { - NativeModule._SideBarContainerInterface_setSideBarContainerOptions(this.peer.ptr); + setSideBarContainerOptionsAttribute(type?: SideBarContainerType): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let type_type = RuntimeType.UNDEFINED + if (type != undefined) { + type_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(type_type as int32) + if ((RuntimeType.UNDEFINED) != (type_type)) { + const type_value = type! + thisSerializer.writeInt32((type_value.value as int32)) + } + NativeModule._SideBarContainerInterface_setSideBarContainerOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + showSideBarAttribute(value: boolean): void { + NativeModule._SideBarContainerAttribute_showSideBar(this.peer.ptr, value ? 1 : 0); + } + controlButtonAttribute(value: ButtonStyle): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeButtonStyle(value) + NativeModule._SideBarContainerAttribute_controlButton(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + showControlButtonAttribute(value: boolean): void { + NativeModule._SideBarContainerAttribute_showControlButton(this.peer.ptr, value ? 1 : 0); + } + onChangeAttribute(callback: ((value: boolean) => void)): void { + NativeModule._SideBarContainerAttribute_onChange(this.peer.ptr, registerCallback(callback)); + } + sideBarWidth0Attribute(value: number): void { + NativeModule._SideBarContainerAttribute_sideBarWidth0(this.peer.ptr, value); } minSideBarWidth0Attribute(value: number): void { NativeModule._SideBarContainerAttribute_minSideBarWidth0(this.peer.ptr, value); } + maxSideBarWidth0Attribute(value: number): void { + NativeModule._SideBarContainerAttribute_maxSideBarWidth0(this.peer.ptr, value); + } + sideBarWidth1Attribute(value: Length): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeLength(value); + NativeModule._SideBarContainerAttribute_sideBarWidth1(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } minSideBarWidth1Attribute(value: Length): void { - NativeModule._SideBarContainerAttribute_minSideBarWidth1(this.peer.ptr, value); + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeLength(value); + NativeModule._SideBarContainerAttribute_minSideBarWidth1(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + maxSideBarWidth1Attribute(value: Length): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeLength(value); + NativeModule._SideBarContainerAttribute_maxSideBarWidth1(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + autoHideAttribute(value: boolean): void { + NativeModule._SideBarContainerAttribute_autoHide(this.peer.ptr, value ? 1 : 0); + } + sideBarPositionAttribute(value: SideBarPosition): void { + NativeModule._SideBarContainerAttribute_sideBarPosition(this.peer.ptr, (value.value as int32)); + } + dividerAttribute(value: DividerStyle | null): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (TypeChecker.isDividerStyle(value, false, false, false, false)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as DividerStyle + thisSerializer.writeDividerStyle(value_0) + } + else if (value === null) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as null + } + NativeModule._SideBarContainerAttribute_divider(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + minContentWidthAttribute(value: Dimension): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeLength(value); + NativeModule._SideBarContainerAttribute_minContentWidth(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); } applyAttributes(attributes: T): void { super.applyAttributes(attributes) } } export interface ArkSideBarContainerAttributes extends ArkCommonMethodAttributes { + showSideBar?: boolean + controlButton?: ButtonStyle + showControlButton?: boolean + onChange?: ((value: boolean) => void) + sideBarWidth?: number minSideBarWidth?: number + maxSideBarWidth?: number + autoHide?: boolean + sideBarPosition?: SideBarPosition + divider?: DividerStyle | null + minContentWidth?: Dimension } diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkSwiperPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkSwiperPeer.ts index 79fe063cc..ace6c785c 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkSwiperPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkSwiperPeer.ts @@ -24,9 +24,16 @@ import { ArkUINodeType } from "./ArkUINodeType" import { ComponentBase } from "../ComponentBase" import { NativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { SwiperAttribute, SwiperInterface } from "./../ArkSwiperInterfaces" +import { SwiperAttribute, ArrowStyle, SwiperDisplayMode, SwiperAutoFill, IndicatorStyle, SwiperAnimationEvent, SwiperNestedScrollMode, SwiperContentAnimatedTransition, ContentDidScrollCallback, SwiperInterface } from "./../ArkSwiperInterfaces" import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" +import { VP, Length, Resource, ResourceColor } from "./../ArkUnitsInterfaces" +import { TEMPLATE_LITERAL_number_vp, LITERAL_MinSizeVP, IMPORT_Resource_FROM_api_global_resource } from "./../SyntheticDeclarations" +import { EdgeEffect, Curve, Color } from "./../ArkEnumsInterfaces" +import { ICurve } from "./../ArkICurveMaterialized" import { SwiperController } from "./../ArkSwiperControllerMaterialized" +import { SwiperContentTransitionProxy } from "./../ArkSwiperContentTransitionProxyMaterialized" +import { Callback } from "./../ArkCommonInterfaces" import { GestureName, GestureComponent } from "./../shared/generated-utils" import { TypeChecker } from "#components" import { registerCallback } from "./SerializerBase" @@ -59,17 +66,259 @@ export class ArkSwiperPeer extends ArkCommonMethodPeer { indexAttribute(value: number): void { NativeModule._SwiperAttribute_index(this.peer.ptr, value); } - indicatorAttribute(value: DotIndicator): void { + autoPlayAttribute(value: boolean): void { + NativeModule._SwiperAttribute_autoPlay(this.peer.ptr, value ? 1 : 0); + } + intervalAttribute(value: number): void { + NativeModule._SwiperAttribute_interval(this.peer.ptr, value); + } + indicatorAttribute(value: DotIndicator | DigitIndicator | boolean): void { const thisSerializer = SerializerBase.hold(createSerializer) - thisSerializer.writeDotIndicator(value) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof DotIndicator)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as DotIndicator + thisSerializer.writeDotIndicator(value_0) + } + else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof DigitIndicator)) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as DigitIndicator + thisSerializer.writeDigitIndicator(value_1) + } + else if (((RuntimeType.BOOLEAN == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as boolean + thisSerializer.writeBoolean(value_2) + } NativeModule._SwiperAttribute_indicator(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); thisSerializer.release(); } + displayArrowAttribute(value: ArrowStyle | boolean, isHoverShow?: boolean): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as ArrowStyle + thisSerializer.writeArrowStyle(value_0) + } + else if (((RuntimeType.BOOLEAN == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as boolean + thisSerializer.writeBoolean(value_1) + } + let isHoverShow_type = RuntimeType.UNDEFINED + if (isHoverShow != undefined) { + isHoverShow_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(isHoverShow_type as int32) + if ((RuntimeType.UNDEFINED) != (isHoverShow_type)) { + const isHoverShow_value = isHoverShow! + thisSerializer.writeBoolean(isHoverShow_value) + } + NativeModule._SwiperAttribute_displayArrow(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + loopAttribute(value: boolean): void { + NativeModule._SwiperAttribute_loop(this.peer.ptr, value ? 1 : 0); + } + durationAttribute(value: number): void { + NativeModule._SwiperAttribute_duration(this.peer.ptr, value); + } + verticalAttribute(value: boolean): void { + NativeModule._SwiperAttribute_vertical(this.peer.ptr, value ? 1 : 0); + } + itemSpaceAttribute(value: number | string): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as string + thisSerializer.writeString(value_1) + } + NativeModule._SwiperAttribute_itemSpace(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + displayModeAttribute(value: SwiperDisplayMode): void { + NativeModule._SwiperAttribute_displayMode(this.peer.ptr, (value.value as int32)); + } + cachedCountAttribute(value: number): void { + NativeModule._SwiperAttribute_cachedCount(this.peer.ptr, value); + } + displayCountAttribute(value: number | string | SwiperAutoFill, swipeByGroup?: boolean): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as string + thisSerializer.writeString(value_1) + } + else if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as SwiperAutoFill + const value_2_minSize = value_2.minSize + let value_2_minSize_type = RuntimeType.UNDEFINED + value_2_minSize_type = runtimeType(value_2_minSize) + if (((RuntimeType.STRING == value_2_minSize_type))) { + thisSerializer.writeInt8(0 as int32) + const value_2_minSize_0 = value_2_minSize as TEMPLATE_LITERAL_number_vp + thisSerializer.writeString(value_2_minSize_0) + } + else if (((RuntimeType.NUMBER == value_2_minSize_type))) { + thisSerializer.writeInt8(1 as int32) + const value_2_minSize_1 = value_2_minSize as number + thisSerializer.writeNumber(value_2_minSize_1) + } + } + let swipeByGroup_type = RuntimeType.UNDEFINED + if (swipeByGroup != undefined) { + swipeByGroup_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(swipeByGroup_type as int32) + if ((RuntimeType.UNDEFINED) != (swipeByGroup_type)) { + const swipeByGroup_value = swipeByGroup! + thisSerializer.writeBoolean(swipeByGroup_value) + } + NativeModule._SwiperAttribute_displayCount(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + effectModeAttribute(value: EdgeEffect): void { + NativeModule._SwiperAttribute_effectMode(this.peer.ptr, (value.value as int32)); + } + disableSwipeAttribute(value: boolean): void { + NativeModule._SwiperAttribute_disableSwipe(this.peer.ptr, value ? 1 : 0); + } + curveAttribute(value: Curve | string | ICurve): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Curve)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Curve + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as string + thisSerializer.writeString(value_1) + } + else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof ICurve)) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as ICurve + thisSerializer.writeMaterialized(value_2) + } + NativeModule._SwiperAttribute_curve(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + onChangeAttribute(event: ((index: number) => void)): void { + NativeModule._SwiperAttribute_onChange(this.peer.ptr, registerCallback(event)); + } + indicatorStyleAttribute(value?: IndicatorStyle): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + if (value != undefined) { + value_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_type as int32) + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value! + thisSerializer.writeIndicatorStyle(value_value) + } + NativeModule._SwiperAttribute_indicatorStyle(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + prevMarginAttribute(value: Length, ignoreBlank?: boolean): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeLength(value); + let ignoreBlank_type = RuntimeType.UNDEFINED + if (ignoreBlank != undefined) { + ignoreBlank_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(ignoreBlank_type as int32) + if ((RuntimeType.UNDEFINED) != (ignoreBlank_type)) { + const ignoreBlank_value = ignoreBlank! + thisSerializer.writeBoolean(ignoreBlank_value) + } + NativeModule._SwiperAttribute_prevMargin(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + nextMarginAttribute(value: Length, ignoreBlank?: boolean): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeLength(value); + let ignoreBlank_type = RuntimeType.UNDEFINED + if (ignoreBlank != undefined) { + ignoreBlank_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(ignoreBlank_type as int32) + if ((RuntimeType.UNDEFINED) != (ignoreBlank_type)) { + const ignoreBlank_value = ignoreBlank! + thisSerializer.writeBoolean(ignoreBlank_value) + } + NativeModule._SwiperAttribute_nextMargin(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + onAnimationStartAttribute(event: ((index: number, targetIndex: number, extraInfo: SwiperAnimationEvent) => void)): void { + NativeModule._SwiperAttribute_onAnimationStart(this.peer.ptr, registerCallback(event)); + } + onAnimationEndAttribute(event: ((index: number, extraInfo: SwiperAnimationEvent) => void)): void { + NativeModule._SwiperAttribute_onAnimationEnd(this.peer.ptr, registerCallback(event)); + } + onGestureSwipeAttribute(event: ((index: number, extraInfo: SwiperAnimationEvent) => void)): void { + NativeModule._SwiperAttribute_onGestureSwipe(this.peer.ptr, registerCallback(event)); + } + nestedScrollAttribute(value: SwiperNestedScrollMode): void { + NativeModule._SwiperAttribute_nestedScroll(this.peer.ptr, (value.value as int32)); + } + customContentTransitionAttribute(transition: SwiperContentAnimatedTransition): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeSwiperContentAnimatedTransition(transition) + NativeModule._SwiperAttribute_customContentTransition(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + onContentDidScrollAttribute(handler: ContentDidScrollCallback): void { + NativeModule._SwiperAttribute_onContentDidScroll(this.peer.ptr, registerCallback(handler)); + } + indicatorInteractiveAttribute(value: boolean): void { + NativeModule._SwiperAttribute_indicatorInteractive(this.peer.ptr, value ? 1 : 0); + } applyAttributes(attributes: T): void { super.applyAttributes(attributes) } } export interface ArkSwiperAttributes extends ArkCommonMethodAttributes { index?: number - indicator?: DotIndicator + autoPlay?: boolean + interval?: number + indicator?: DotIndicator | DigitIndicator | boolean + loop?: boolean + duration?: number + vertical?: boolean + itemSpace?: number | string + displayMode?: SwiperDisplayMode + cachedCount?: number + effectMode?: EdgeEffect + disableSwipe?: boolean + curve?: Curve | string | ICurve + onChange?: ((index: number) => void) + indicatorStyle?: IndicatorStyle + onAnimationStart?: ((index: number, targetIndex: number, extraInfo: SwiperAnimationEvent) => void) + onAnimationEnd?: ((index: number, extraInfo: SwiperAnimationEvent) => void) + onGestureSwipe?: ((index: number, extraInfo: SwiperAnimationEvent) => void) + nestedScroll?: SwiperNestedScrollMode + customContentTransition?: SwiperContentAnimatedTransition + onContentDidScroll?: ContentDidScrollCallback + indicatorInteractive?: boolean } diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkSymbolglyphPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkSymbolglyphPeer.ts index 0e82c79f8..204774480 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkSymbolglyphPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkSymbolglyphPeer.ts @@ -24,14 +24,16 @@ import { ArkUINodeType } from "./ArkUINodeType" import { ComponentBase } from "../ComponentBase" import { NativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { Resource } from "./../ArkUnitsInterfaces" -import { IMPORT_Resource_FROM_resource_resource } from "./../SyntheticDeclarations" -import { SymbolGlyphAttribute, SymbolGlyphInterface } from "./../ArkSymbolglyphInterfaces" +import { Resource, ResourceColor } from "./../ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource } from "./../SyntheticDeclarations" +import { SymbolGlyphAttribute, SymbolEffectStrategy, SymbolRenderingStrategy, SymbolEffect, SymbolGlyphInterface } from "./../ArkSymbolglyphInterfaces" +import { Color, FontWeight } from "./../ArkEnumsInterfaces" import { GestureName, GestureComponent } from "./../shared/generated-utils" import { TypeChecker } from "#components" import { registerCallback } from "./SerializerBase" import { wrapCallback } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" export class ArkSymbolGlyphPeer extends ArkCommonMethodPeer { @@ -79,10 +81,104 @@ export class ArkSymbolGlyphPeer extends ArkCommonMethodPeer { NativeModule._SymbolGlyphAttribute_fontSize(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); thisSerializer.release(); } + fontColorAttribute(value: Array): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeInt8(runtimeType(value) as int32) + thisSerializer.writeInt32(value.length as int32) + for (let i = 0; i < value.length; i++) { + const value_element = value[i] + let value_element_type = RuntimeType.UNDEFINED + value_element_type = runtimeType(value_element) + if (((RuntimeType.OBJECT) == (value_element_type)) && (value_element instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_element_0 = value_element as Color + thisSerializer.writeInt32((value_element_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_element_type))) { + thisSerializer.writeInt8(1 as int32) + const value_element_1 = value_element as number + thisSerializer.writeNumber(value_element_1) + } + else if (((RuntimeType.STRING == value_element_type))) { + thisSerializer.writeInt8(2 as int32) + const value_element_2 = value_element as string + thisSerializer.writeString(value_element_2) + } + else if (isResource(value_element)) { + thisSerializer.writeInt8(3 as int32) + const value_element_3 = value_element as Resource + thisSerializer.writeResource(value_element_3) + } + } + NativeModule._SymbolGlyphAttribute_fontColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + fontWeightAttribute(value: number | FontWeight | string): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((value instanceof FontWeight))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as FontWeight + thisSerializer.writeInt32((value_1.value as int32)) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + NativeModule._SymbolGlyphAttribute_fontWeight(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + effectStrategyAttribute(value: SymbolEffectStrategy): void { + NativeModule._SymbolGlyphAttribute_effectStrategy(this.peer.ptr, (value.value as int32)); + } + renderingStrategyAttribute(value: SymbolRenderingStrategy): void { + NativeModule._SymbolGlyphAttribute_renderingStrategy(this.peer.ptr, (value.value as int32)); + } + symbolEffect0Attribute(symbolEffect: SymbolEffect, isActive?: boolean): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeSymbolEffect(symbolEffect) + let isActive_type = RuntimeType.UNDEFINED + if (isActive != undefined) { + isActive_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(isActive_type as int32) + if ((RuntimeType.UNDEFINED) != (isActive_type)) { + const isActive_value = isActive! + thisSerializer.writeBoolean(isActive_value) + } + NativeModule._SymbolGlyphAttribute_symbolEffect0(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + symbolEffect1Attribute(symbolEffect: SymbolEffect, triggerValue?: number): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeSymbolEffect(symbolEffect) + let triggerValue_type = RuntimeType.UNDEFINED + if (triggerValue != undefined) { + triggerValue_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(triggerValue_type as int32) + if ((RuntimeType.UNDEFINED) != (triggerValue_type)) { + const triggerValue_value = triggerValue! + thisSerializer.writeNumber(triggerValue_value) + } + NativeModule._SymbolGlyphAttribute_symbolEffect1(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } applyAttributes(attributes: T): void { super.applyAttributes(attributes) } } export interface ArkSymbolGlyphAttributes extends ArkCommonMethodAttributes { fontSize?: number | string | Resource + fontColor?: Array + fontWeight?: number | FontWeight | string + effectStrategy?: SymbolEffectStrategy + renderingStrategy?: SymbolRenderingStrategy } diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkTabContentPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkTabContentPeer.ts index d885a3f52..4ad8c253b 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkTabContentPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkTabContentPeer.ts @@ -24,18 +24,19 @@ import { ArkUINodeType } from "./ArkUINodeType" import { ComponentBase } from "../ComponentBase" import { NativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" +import { Resource, VoidCallback, Length, ResourceColor } from "./../ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, LITERAL_IconStringResourceTextStringResource, IMPORT_SymbolGlyphModifier_FROM_api_arkui_SymbolGlyphModifier } from "./../SyntheticDeclarations" +import { CustomBuilder, SymbolGlyphModifier } from "./../ArkCommonInterfaces" +import { TabContentAttribute, TabContentInterface, BoardStyle, TabBarSymbol, TabBarIconStyle } from "./../ArkTabContentInterfaces" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" -import { TabContentAttribute, TabContentInterface, IndicatorStyle, BoardStyle, TabBarSymbol } from "./../ArkTabContentInterfaces" import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" -import { ResourceColor, Resource, Length } from "./../ArkUnitsInterfaces" import { Color } from "./../ArkEnumsInterfaces" -import { IMPORT_Resource_FROM_resource_resource, IMPORT_SymbolGlyphModifier_FROM_resource_symbol } from "./../SyntheticDeclarations" -import { SymbolGlyphModifier } from "./../ArkCommonInterfaces" import { GestureName, GestureComponent } from "./../shared/generated-utils" import { TypeChecker } from "#components" import { registerCallback } from "./SerializerBase" import { wrapCallback } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" export class ArkTabContentPeer extends ArkCommonMethodPeer { protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { super(nodeType, flags, name); @@ -48,9 +49,80 @@ export class ArkTabContentPeer extends ArkCommonMethodPeer { setTabContentOptionsAttribute(): void { NativeModule._TabContentInterface_setTabContentOptions(this.peer.ptr); } - tabBar0Attribute(value: SubTabBarStyle): void { + tabBar0Attribute(value: string | Resource | CustomBuilder | LITERAL_IconStringResourceTextStringResource): void { const thisSerializer = SerializerBase.hold(createSerializer) - thisSerializer.writeSubTabBarStyle(value) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as string + thisSerializer.writeString(value_0) + } + else if (isResource(value)) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as Resource + thisSerializer.writeResource(value_1) + } + else if (TypeChecker.isLITERAL_IconStringResourceTextStringResource(value, false, false)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as LITERAL_IconStringResourceTextStringResource + const value_3_icon = value_3.icon + let value_3_icon_type = RuntimeType.UNDEFINED + if (value_3_icon != undefined) { + value_3_icon_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_3_icon_type as int32) + if ((RuntimeType.UNDEFINED) != (value_3_icon_type)) { + const value_3_icon_value = value_3_icon! + let value_3_icon_value_type = RuntimeType.UNDEFINED + value_3_icon_value_type = runtimeType(value_3_icon_value) + if (((RuntimeType.STRING == value_3_icon_value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_3_icon_value_0 = value_3_icon_value as string + thisSerializer.writeString(value_3_icon_value_0) + } + else if (((RuntimeType.OBJECT == value_3_icon_value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_3_icon_value_1 = value_3_icon_value as Resource + thisSerializer.writeResource(value_3_icon_value_1) + } + } + const value_3_text = value_3.text + let value_3_text_type = RuntimeType.UNDEFINED + if (value_3_text != undefined) { + value_3_text_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_3_text_type as int32) + if ((RuntimeType.UNDEFINED) != (value_3_text_type)) { + const value_3_text_value = value_3_text! + let value_3_text_value_type = RuntimeType.UNDEFINED + value_3_text_value_type = runtimeType(value_3_text_value) + if (((RuntimeType.STRING == value_3_text_value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_3_text_value_0 = value_3_text_value as string + thisSerializer.writeString(value_3_text_value_0) + } + else if (((RuntimeType.OBJECT == value_3_text_value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_3_text_value_1 = value_3_text_value as Resource + thisSerializer.writeResource(value_3_text_value_1) + } + } + } + else if (((RuntimeType.FUNCTION == value_type)) || ((RuntimeType.UNDEFINED == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as CustomBuilder + let value_2_type = RuntimeType.UNDEFINED + value_2_type = runtimeType(value_2) + if (((RuntimeType.FUNCTION == value_2_type))) { + thisSerializer.writeInt8(0 as int32) + const value_2_0 = value_2 as Object + thisSerializer.writeFunction(value_2_0) + } + else if (((RuntimeType.UNDEFINED == value_2_type))) { + thisSerializer.writeInt8(1 as int32) + } + } NativeModule._TabContentAttribute_tabBar0(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); thisSerializer.release(); } @@ -71,10 +143,18 @@ export class ArkTabContentPeer extends ArkCommonMethodPeer { NativeModule._TabContentAttribute_tabBar1(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); thisSerializer.release(); } + onWillShowAttribute(event: VoidCallback): void { + NativeModule._TabContentAttribute_onWillShow(this.peer.ptr, registerCallback(event)); + } + onWillHideAttribute(event: VoidCallback): void { + NativeModule._TabContentAttribute_onWillHide(this.peer.ptr, registerCallback(event)); + } applyAttributes(attributes: T): void { super.applyAttributes(attributes) } } export interface ArkTabContentAttributes extends ArkCommonMethodAttributes { - tabBar?: SubTabBarStyle + tabBar?: string | Resource | CustomBuilder | LITERAL_IconStringResourceTextStringResource + onWillShow?: VoidCallback + onWillHide?: VoidCallback } diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkTabsPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkTabsPeer.ts index e64eb356a..926103f4b 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkTabsPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkTabsPeer.ts @@ -24,12 +24,19 @@ import { ArkUINodeType } from "./ArkUINodeType" import { ComponentBase } from "../ComponentBase" import { NativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { BarMode, TabsAttribute, TabsInterface } from "./../ArkTabsInterfaces" +import { TabsAttribute, BarPosition, BarMode, ScrollableBarModeOptions, AnimationMode, TabsAnimationEvent, DividerStyle, BarGridColumnOptions, TabContentAnimatedTransition, TabsInterface, LayoutStyle } from "./../ArkTabsInterfaces" +import { Length, Resource, ResourceColor, Dimension, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, LITERAL_BarPositionBarPositionIndexNumberControllerTabsController, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage } from "./../SyntheticDeclarations" +import { Optional, BlurStyle } from "./../ArkCommonInterfaces" +import { EdgeEffect, Color } from "./../ArkEnumsInterfaces" +import { TabsController } from "./../ArkTabsControllerMaterialized" +import { TabContentTransitionProxy } from "./../ArkTabContentTransitionProxyMaterialized" import { GestureName, GestureComponent } from "./../shared/generated-utils" import { TypeChecker } from "#components" import { registerCallback } from "./SerializerBase" import { wrapCallback } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" export class ArkTabsPeer extends ArkCommonMethodPeer { @@ -41,16 +48,228 @@ export class ArkTabsPeer extends ArkCommonMethodPeer { component?.setPeer(_peer) return _peer } - setTabsOptionsAttribute(): void { - NativeModule._TabsInterface_setTabsOptions(this.peer.ptr); + setTabsOptionsAttribute(value?: LITERAL_BarPositionBarPositionIndexNumberControllerTabsController): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + if (value != undefined) { + value_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_type as int32) + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value! + const value_value_barPosition = value_value.barPosition + let value_value_barPosition_type = RuntimeType.UNDEFINED + if (value_value_barPosition != undefined) { + value_value_barPosition_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_value_barPosition_type as int32) + if ((RuntimeType.UNDEFINED) != (value_value_barPosition_type)) { + const value_value_barPosition_value = value_value_barPosition! + thisSerializer.writeInt32((value_value_barPosition_value.value as int32)) + } + const value_value_index = value_value.index + let value_value_index_type = RuntimeType.UNDEFINED + if (value_value_index != undefined) { + value_value_index_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_value_index_type as int32) + if ((RuntimeType.UNDEFINED) != (value_value_index_type)) { + const value_value_index_value = value_value_index! + thisSerializer.writeNumber(value_value_index_value) + } + const value_value_controller = value_value.controller + let value_value_controller_type = RuntimeType.UNDEFINED + if (value_value_controller != undefined) { + value_value_controller_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_value_controller_type as int32) + if ((RuntimeType.UNDEFINED) != (value_value_controller_type)) { + const value_value_controller_value = value_value_controller! + thisSerializer.writeMaterialized(value_value_controller_value) + } + } + NativeModule._TabsInterface_setTabsOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); } - barModeAttribute(value: BarMode): void { - NativeModule._TabsAttribute_barMode(this.peer.ptr, (value.value as int32)); + verticalAttribute(value: boolean): void { + NativeModule._TabsAttribute_vertical(this.peer.ptr, value ? 1 : 0); + } + barPositionAttribute(value: BarPosition): void { + NativeModule._TabsAttribute_barPosition(this.peer.ptr, (value.value as int32)); + } + scrollableAttribute(value: boolean): void { + NativeModule._TabsAttribute_scrollable(this.peer.ptr, value ? 1 : 0); + } + barMode0Attribute(value: BarMode): void { + NativeModule._TabsAttribute_barMode0(this.peer.ptr, (value.value as int32)); + } + barMode1Attribute(value: BarMode, options: ScrollableBarModeOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeScrollableBarModeOptions(options) + NativeModule._TabsAttribute_barMode1(this.peer.ptr, (value.value as int32), thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + barMode2Attribute(value: BarMode, options?: ScrollableBarModeOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeScrollableBarModeOptions(options_value) + } + NativeModule._TabsAttribute_barMode2(this.peer.ptr, (value.value as int32), thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + barWidthAttribute(value: Length): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeLength(value); + NativeModule._TabsAttribute_barWidth(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + barHeightAttribute(value: Length): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeLength(value); + NativeModule._TabsAttribute_barHeight(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + animationDurationAttribute(value: number): void { + NativeModule._TabsAttribute_animationDuration(this.peer.ptr, value); + } + animationModeAttribute(mode: AnimationMode | undefined): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let mode_type = RuntimeType.UNDEFINED + if (mode != undefined) { + mode_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(mode_type as int32) + if ((RuntimeType.UNDEFINED) != (mode_type)) { + const mode_value = mode! + thisSerializer.writeInt32((mode_value.value as int32)) + } + NativeModule._TabsAttribute_animationMode(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + edgeEffectAttribute(edgeEffect: EdgeEffect | undefined): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let edgeEffect_type = RuntimeType.UNDEFINED + if (edgeEffect != undefined) { + edgeEffect_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(edgeEffect_type as int32) + if ((RuntimeType.UNDEFINED) != (edgeEffect_type)) { + const edgeEffect_value = edgeEffect! + thisSerializer.writeInt32((edgeEffect_value.value as int32)) + } + NativeModule._TabsAttribute_edgeEffect(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + onChangeAttribute(event: ((index: number) => void)): void { + NativeModule._TabsAttribute_onChange(this.peer.ptr, registerCallback(event)); + } + onTabBarClickAttribute(event: ((index: number) => void)): void { + NativeModule._TabsAttribute_onTabBarClick(this.peer.ptr, registerCallback(event)); + } + onAnimationStartAttribute(handler: ((index: number, targetIndex: number, event: TabsAnimationEvent) => void)): void { + NativeModule._TabsAttribute_onAnimationStart(this.peer.ptr, registerCallback(handler)); + } + onAnimationEndAttribute(handler: ((index: number, event: TabsAnimationEvent) => void)): void { + NativeModule._TabsAttribute_onAnimationEnd(this.peer.ptr, registerCallback(handler)); + } + onGestureSwipeAttribute(handler: ((index: number, event: TabsAnimationEvent) => void)): void { + NativeModule._TabsAttribute_onGestureSwipe(this.peer.ptr, registerCallback(handler)); + } + fadingEdgeAttribute(value: boolean): void { + NativeModule._TabsAttribute_fadingEdge(this.peer.ptr, value ? 1 : 0); + } + dividerAttribute(value: DividerStyle | null): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (TypeChecker.isDividerStyle(value, false, false, false, false)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as DividerStyle + thisSerializer.writeDividerStyle(value_0) + } + else if (value === null) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as null + } + NativeModule._TabsAttribute_divider(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + barOverlapAttribute(value: boolean): void { + NativeModule._TabsAttribute_barOverlap(this.peer.ptr, value ? 1 : 0); + } + barBackgroundColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._TabsAttribute_barBackgroundColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + barGridAlignAttribute(value: BarGridColumnOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeBarGridColumnOptions(value) + NativeModule._TabsAttribute_barGridAlign(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + customContentTransitionAttribute(delegate: ((from: number, to: number) => TabContentAnimatedTransition | undefined)): void { + NativeModule._TabsAttribute_customContentTransition(this.peer.ptr, registerCallback(delegate)); + } + barBackgroundBlurStyleAttribute(value: BlurStyle): void { + NativeModule._TabsAttribute_barBackgroundBlurStyle(this.peer.ptr, (value.value as int32)); + } + onContentWillChangeAttribute(handler: ((currentIndex: number, comingIndex: number) => boolean)): void { + NativeModule._TabsAttribute_onContentWillChange(this.peer.ptr, registerCallback(handler)); } applyAttributes(attributes: T): void { super.applyAttributes(attributes) } } export interface ArkTabsAttributes extends ArkCommonMethodAttributes { + vertical?: boolean + barPosition?: BarPosition + scrollable?: boolean barMode?: BarMode + barWidth?: Length + barHeight?: Length + animationDuration?: number + animationMode?: AnimationMode | undefined + edgeEffect?: EdgeEffect | undefined + onChange?: ((index: number) => void) + onTabBarClick?: ((index: number) => void) + onAnimationStart?: ((index: number, targetIndex: number, event: TabsAnimationEvent) => void) + onAnimationEnd?: ((index: number, event: TabsAnimationEvent) => void) + onGestureSwipe?: ((index: number, event: TabsAnimationEvent) => void) + fadingEdge?: boolean + divider?: DividerStyle | null + barOverlap?: boolean + barBackgroundColor?: ResourceColor + barGridAlign?: BarGridColumnOptions + customContentTransition?: ((from: number, to: number) => TabContentAnimatedTransition | undefined) + barBackgroundBlurStyle?: BlurStyle + onContentWillChange?: ((currentIndex: number, comingIndex: number) => boolean) } diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkTextInputPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkTextInputPeer.ts index fda87edfd..64fe310f1 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkTextInputPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkTextInputPeer.ts @@ -24,14 +24,23 @@ import { ArkUINodeType } from "./ArkUINodeType" import { ComponentBase } from "../ComponentBase" import { NativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { InputType, TextInputAttribute, ContentType, TextInputOptions, TextInputInterface } from "./../ArkTextInputInterfaces" -import { ResourceStr, Resource } from "./../ArkUnitsInterfaces" -import { IMPORT_Resource_FROM_resource_resource } from "./../SyntheticDeclarations" +import { InputType, TextInputAttribute, EnterKeyType, SubmitEvent, TextInputStyle, PasswordIcon, UnderlineColor, TextInputOptions, TextInputInterface } from "./../ArkTextInputInterfaces" +import { ContentType } from "./../ArkTextAreaInterfaces" +import { ResourceColor, Resource, Dimension, PX, VP, FP, LPX, Percentage, Font, Length, ResourceStr } from "./../ArkUnitsInterfaces" +import { Color, TextOverflow, FontStyle, FontWeight, CopyOptions, TextAlign, TextContentStyle, BarState, WordBreak, LineBreakStrategy, TextHeightAdaptivePolicy } from "./../ArkEnumsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, LITERAL_StyleCancelButtonStyleIconIconOptions } from "./../SyntheticDeclarations" +import { EditableTextOnChangeCallback, PreviewText, CaretStyle, InsertValue, DeleteValue } from "./../ArkTextCommonInterfaces" +import { PasteEvent, KeyboardOptions } from "./../ArkRichEditorInterfaces" +import { CustomBuilder, InputCounterOptions, TextDecorationOptions, Callback } from "./../ArkCommonInterfaces" +import { CancelButtonStyle, IconOptions } from "./../ArkSearchInterfaces" +import { EditMenuOptions } from "./../ArkEditMenuOptionsMaterialized" +import { TextInputController } from "./../ArkTextInputControllerMaterialized" import { GestureName, GestureComponent } from "./../shared/generated-utils" import { TypeChecker } from "#components" import { registerCallback } from "./SerializerBase" import { wrapCallback } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" export class ArkTextInputPeer extends ArkCommonMethodPeer { @@ -63,15 +72,666 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { contentTypeAttribute(value: ContentType): void { NativeModule._TextInputAttribute_contentType(this.peer.ptr, (value.value as int32)); } + placeholderColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._TextInputAttribute_placeholderColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + textOverflowAttribute(value: TextOverflow): void { + NativeModule._TextInputAttribute_textOverflow(this.peer.ptr, (value.value as int32)); + } + textIndentAttribute(value: Dimension): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeLength(value); + NativeModule._TextInputAttribute_textIndent(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + placeholderFontAttribute(value?: Font): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + if (value != undefined) { + value_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_type as int32) + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value! + thisSerializer.writeFont(value_value) + } + NativeModule._TextInputAttribute_placeholderFont(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + enterKeyTypeAttribute(value: EnterKeyType): void { + NativeModule._TextInputAttribute_enterKeyType(this.peer.ptr, (value.value as int32)); + } + caretColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._TextInputAttribute_caretColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } onEditChangedAttribute(callback: ((isEditing: boolean) => void)): void { NativeModule._TextInputAttribute_onEditChanged(this.peer.ptr, registerCallback(callback)); } + onEditChangeAttribute(callback: ((isEditing: boolean) => void)): void { + NativeModule._TextInputAttribute_onEditChange(this.peer.ptr, registerCallback(callback)); + } + onSubmitAttribute(callback: ((enterKey: EnterKeyType, event: SubmitEvent) => void)): void { + NativeModule._TextInputAttribute_onSubmit(this.peer.ptr, registerCallback(callback)); + } + onChangeAttribute(callback: EditableTextOnChangeCallback): void { + NativeModule._TextInputAttribute_onChange(this.peer.ptr, registerCallback(callback)); + } + onTextSelectionChangeAttribute(callback: ((selectionStart: number, selectionEnd: number) => void)): void { + NativeModule._TextInputAttribute_onTextSelectionChange(this.peer.ptr, registerCallback(callback)); + } + onContentScrollAttribute(callback: ((totalOffsetX: number, totalOffsetY: number) => void)): void { + NativeModule._TextInputAttribute_onContentScroll(this.peer.ptr, registerCallback(callback)); + } + maxLengthAttribute(value: number): void { + NativeModule._TextInputAttribute_maxLength(this.peer.ptr, value); + } + fontColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._TextInputAttribute_fontColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + fontSizeAttribute(value: Length): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeLength(value); + NativeModule._TextInputAttribute_fontSize(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + fontStyleAttribute(value: FontStyle): void { + NativeModule._TextInputAttribute_fontStyle(this.peer.ptr, (value.value as int32)); + } + fontWeightAttribute(value: number | FontWeight | string): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((value instanceof FontWeight))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as FontWeight + thisSerializer.writeInt32((value_1.value as int32)) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + NativeModule._TextInputAttribute_fontWeight(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + fontFamilyAttribute(value: ResourceStr): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as string + thisSerializer.writeString(value_0) + } + else if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as Resource + thisSerializer.writeResource(value_1) + } + NativeModule._TextInputAttribute_fontFamily(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + inputFilterAttribute(value: ResourceStr, error?: ((value: string) => void)): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as string + thisSerializer.writeString(value_0) + } + else if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as Resource + thisSerializer.writeResource(value_1) + } + let error_type = RuntimeType.UNDEFINED + if (error != undefined) { + error_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(error_type as int32) + if ((RuntimeType.UNDEFINED) != (error_type)) { + const error_value = error! + thisSerializer.writeFunction(error_value) + } + NativeModule._TextInputAttribute_inputFilter(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + onCopyAttribute(callback: ((value: string) => void)): void { + NativeModule._TextInputAttribute_onCopy(this.peer.ptr, registerCallback(callback)); + } + onCutAttribute(callback: ((value: string) => void)): void { + NativeModule._TextInputAttribute_onCut(this.peer.ptr, registerCallback(callback)); + } + onPasteAttribute(callback: ((value: string, event: PasteEvent) => void)): void { + NativeModule._TextInputAttribute_onPaste(this.peer.ptr, registerCallback(callback)); + } + copyOptionAttribute(value: CopyOptions): void { + NativeModule._TextInputAttribute_copyOption(this.peer.ptr, (value.value as int32)); + } + showPasswordIconAttribute(value: boolean): void { + NativeModule._TextInputAttribute_showPasswordIcon(this.peer.ptr, value ? 1 : 0); + } + textAlignAttribute(value: TextAlign): void { + NativeModule._TextInputAttribute_textAlign(this.peer.ptr, (value.value as int32)); + } + styleAttribute(value: TextInputStyle | TextContentStyle): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof TextInputStyle)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as TextInputStyle + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof TextContentStyle)) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as TextContentStyle + thisSerializer.writeInt32((value_1.value as int32)) + } + NativeModule._TextInputAttribute_style(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + caretStyleAttribute(value: CaretStyle): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeCaretStyle(value) + NativeModule._TextInputAttribute_caretStyle(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + selectedBackgroundColorAttribute(value: ResourceColor): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Color + thisSerializer.writeInt32((value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as number + thisSerializer.writeNumber(value_1) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + else if (isResource(value)) { + thisSerializer.writeInt8(3 as int32) + const value_3 = value as Resource + thisSerializer.writeResource(value_3) + } + NativeModule._TextInputAttribute_selectedBackgroundColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + caretPositionAttribute(value: number): void { + NativeModule._TextInputAttribute_caretPosition(this.peer.ptr, value); + } + enableKeyboardOnFocusAttribute(value: boolean): void { + NativeModule._TextInputAttribute_enableKeyboardOnFocus(this.peer.ptr, value ? 1 : 0); + } + passwordIconAttribute(value: PasswordIcon): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writePasswordIcon(value) + NativeModule._TextInputAttribute_passwordIcon(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + showErrorAttribute(value?: ResourceStr | undefined): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + if (value != undefined) { + value_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_type as int32) + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value! + let value_value_type = RuntimeType.UNDEFINED + value_value_type = runtimeType(value_value) + if (((RuntimeType.UNDEFINED == value_value_type))) { + thisSerializer.writeInt8(1 as int32) + } + else if (((RuntimeType.STRING == value_value_type)) || ((RuntimeType.OBJECT == value_value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_value_0 = value_value as ResourceStr + let value_value_0_type = RuntimeType.UNDEFINED + value_value_0_type = runtimeType(value_value_0) + if (((RuntimeType.STRING == value_value_0_type))) { + thisSerializer.writeInt8(0 as int32) + const value_value_0_0 = value_value_0 as string + thisSerializer.writeString(value_value_0_0) + } + else if (((RuntimeType.OBJECT == value_value_0_type))) { + thisSerializer.writeInt8(1 as int32) + const value_value_0_1 = value_value_0 as Resource + thisSerializer.writeResource(value_value_0_1) + } + } + } + NativeModule._TextInputAttribute_showError(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + showUnitAttribute(value: CustomBuilder): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.FUNCTION == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Object + thisSerializer.writeFunction(value_0) + } + else if (((RuntimeType.UNDEFINED == value_type))) { + thisSerializer.writeInt8(1 as int32) + } + NativeModule._TextInputAttribute_showUnit(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + showUnderlineAttribute(value: boolean): void { + NativeModule._TextInputAttribute_showUnderline(this.peer.ptr, value ? 1 : 0); + } + underlineColorAttribute(value: ResourceColor | UnderlineColor | undefined): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (TypeChecker.isUnderlineColor(value, false, false, false, false)) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as UnderlineColor + thisSerializer.writeUnderlineColor(value_1) + } + else if (((RuntimeType.UNDEFINED == value_type))) { + thisSerializer.writeInt8(2 as int32) + } + else if (((RuntimeType.OBJECT == value_type)) || ((RuntimeType.NUMBER == value_type)) || ((RuntimeType.STRING == value_type)) || ((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as ResourceColor + let value_0_type = RuntimeType.UNDEFINED + value_0_type = runtimeType(value_0) + if (((RuntimeType.OBJECT) == (value_0_type)) && (value_0 instanceof Color)) { + thisSerializer.writeInt8(0 as int32) + const value_0_0 = value_0 as Color + thisSerializer.writeInt32((value_0_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_0_type))) { + thisSerializer.writeInt8(1 as int32) + const value_0_1 = value_0 as number + thisSerializer.writeNumber(value_0_1) + } + else if (((RuntimeType.STRING == value_0_type))) { + thisSerializer.writeInt8(2 as int32) + const value_0_2 = value_0 as string + thisSerializer.writeString(value_0_2) + } + else if (isResource(value_0)) { + thisSerializer.writeInt8(3 as int32) + const value_0_3 = value_0 as Resource + thisSerializer.writeResource(value_0_3) + } + } + NativeModule._TextInputAttribute_underlineColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + selectionMenuHiddenAttribute(value: boolean): void { + NativeModule._TextInputAttribute_selectionMenuHidden(this.peer.ptr, value ? 1 : 0); + } + barStateAttribute(value: BarState): void { + NativeModule._TextInputAttribute_barState(this.peer.ptr, (value.value as int32)); + } + maxLinesAttribute(value: number): void { + NativeModule._TextInputAttribute_maxLines(this.peer.ptr, value); + } + wordBreakAttribute(value: WordBreak): void { + NativeModule._TextInputAttribute_wordBreak(this.peer.ptr, (value.value as int32)); + } + lineBreakStrategyAttribute(strategy: LineBreakStrategy): void { + NativeModule._TextInputAttribute_lineBreakStrategy(this.peer.ptr, (strategy.value as int32)); + } + customKeyboardAttribute(value: CustomBuilder, options?: KeyboardOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.FUNCTION == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as Object + thisSerializer.writeFunction(value_0) + } + else if (((RuntimeType.UNDEFINED == value_type))) { + thisSerializer.writeInt8(1 as int32) + } + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeKeyboardOptions(options_value) + } + NativeModule._TextInputAttribute_customKeyboard(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + showCounterAttribute(value: boolean, options?: InputCounterOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeInputCounterOptions(options_value) + } + NativeModule._TextInputAttribute_showCounter(this.peer.ptr, value ? 1 : 0, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + cancelButtonAttribute(value: CancelButtonValuesType): void { + const thisSerializer = SerializerBase.hold(createSerializer) + const value_style = value.style + let value_style_type = RuntimeType.UNDEFINED + if (value_style != undefined) { + value_style_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_style_type as int32) + if ((RuntimeType.UNDEFINED) != (value_style_type)) { + const value_style_value = value_style! + thisSerializer.writeInt32((value_style_value.value as int32)) + } + const value_icon = value.icon + let value_icon_type = RuntimeType.UNDEFINED + if (value_icon != undefined) { + value_icon_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(value_icon_type as int32) + if ((RuntimeType.UNDEFINED) != (value_icon_type)) { + const value_icon_value = value_icon! + thisSerializer.writeIconOptions(value_icon_value) + } + NativeModule._TextInputAttribute_cancelButton(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + selectAllAttribute(value: boolean): void { + NativeModule._TextInputAttribute_selectAll(this.peer.ptr, value ? 1 : 0); + } + minFontSizeAttribute(value: number | string | Resource): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as string + thisSerializer.writeString(value_1) + } + else if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as Resource + thisSerializer.writeResource(value_2) + } + NativeModule._TextInputAttribute_minFontSize(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + maxFontSizeAttribute(value: number | string | Resource): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as string + thisSerializer.writeString(value_1) + } + else if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as Resource + thisSerializer.writeResource(value_2) + } + NativeModule._TextInputAttribute_maxFontSize(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + heightAdaptivePolicyAttribute(value: TextHeightAdaptivePolicy): void { + NativeModule._TextInputAttribute_heightAdaptivePolicy(this.peer.ptr, (value.value as int32)); + } + enableAutoFillAttribute(value: boolean): void { + NativeModule._TextInputAttribute_enableAutoFill(this.peer.ptr, value ? 1 : 0); + } + decorationAttribute(value: TextDecorationOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeTextDecorationOptions(value) + NativeModule._TextInputAttribute_decoration(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + letterSpacingAttribute(value: number | string | Resource): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as string + thisSerializer.writeString(value_1) + } + else if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as Resource + thisSerializer.writeResource(value_2) + } + NativeModule._TextInputAttribute_letterSpacing(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + lineHeightAttribute(value: number | string | Resource): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as string + thisSerializer.writeString(value_1) + } + else if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as Resource + thisSerializer.writeResource(value_2) + } + NativeModule._TextInputAttribute_lineHeight(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + passwordRulesAttribute(value: string): void { + NativeModule._TextInputAttribute_passwordRules(this.peer.ptr, value); + } + fontFeatureAttribute(value: string): void { + NativeModule._TextInputAttribute_fontFeature(this.peer.ptr, value); + } + showPasswordAttribute(visible: boolean): void { + NativeModule._TextInputAttribute_showPassword(this.peer.ptr, visible ? 1 : 0); + } + onSecurityStateChangeAttribute(callback: Callback): void { + NativeModule._TextInputAttribute_onSecurityStateChange(this.peer.ptr, registerCallback(callback)); + } + onWillInsertAttribute(callback: Callback): void { + NativeModule._TextInputAttribute_onWillInsert(this.peer.ptr, registerCallback(callback)); + } + onDidInsertAttribute(callback: Callback): void { + NativeModule._TextInputAttribute_onDidInsert(this.peer.ptr, registerCallback(callback)); + } + onWillDeleteAttribute(callback: Callback): void { + NativeModule._TextInputAttribute_onWillDelete(this.peer.ptr, registerCallback(callback)); + } + onDidDeleteAttribute(callback: Callback): void { + NativeModule._TextInputAttribute_onDidDelete(this.peer.ptr, registerCallback(callback)); + } + editMenuOptionsAttribute(editMenu: EditMenuOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeMaterialized(editMenu) + NativeModule._TextInputAttribute_editMenuOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + enablePreviewTextAttribute(enable: boolean): void { + NativeModule._TextInputAttribute_enablePreviewText(this.peer.ptr, enable ? 1 : 0); + } + enableHapticFeedbackAttribute(isEnabled: boolean): void { + NativeModule._TextInputAttribute_enableHapticFeedback(this.peer.ptr, isEnabled ? 1 : 0); + } applyAttributes(attributes: T): void { super.applyAttributes(attributes) } } +export interface CancelButtonValuesType { + style?: CancelButtonStyle + icon?: IconOptions +} export interface ArkTextInputAttributes extends ArkCommonMethodAttributes { type?: InputType contentType?: ContentType + placeholderColor?: ResourceColor + textOverflow?: TextOverflow + textIndent?: Dimension + placeholderFont?: Font + enterKeyType?: EnterKeyType + caretColor?: ResourceColor onEditChanged?: ((isEditing: boolean) => void) + onEditChange?: ((isEditing: boolean) => void) + onSubmit?: ((enterKey: EnterKeyType, event: SubmitEvent) => void) + onChange?: EditableTextOnChangeCallback + onTextSelectionChange?: ((selectionStart: number, selectionEnd: number) => void) + onContentScroll?: ((totalOffsetX: number, totalOffsetY: number) => void) + maxLength?: number + fontColor?: ResourceColor + fontSize?: Length + fontStyle?: FontStyle + fontWeight?: number | FontWeight | string + fontFamily?: ResourceStr + onCopy?: ((value: string) => void) + onCut?: ((value: string) => void) + onPaste?: ((value: string, event: PasteEvent) => void) + copyOption?: CopyOptions + showPasswordIcon?: boolean + textAlign?: TextAlign + style?: TextInputStyle | TextContentStyle + caretStyle?: CaretStyle + selectedBackgroundColor?: ResourceColor + caretPosition?: number + enableKeyboardOnFocus?: boolean + passwordIcon?: PasswordIcon + showError?: ResourceStr | undefined + showUnit?: CustomBuilder + showUnderline?: boolean + underlineColor?: ResourceColor | UnderlineColor | undefined + selectionMenuHidden?: boolean + barState?: BarState + maxLines?: number + wordBreak?: WordBreak + lineBreakStrategy?: LineBreakStrategy + cancelButton?: CancelButtonValuesType + selectAll?: boolean + minFontSize?: number | string | Resource + maxFontSize?: number | string | Resource + heightAdaptivePolicy?: TextHeightAdaptivePolicy + enableAutoFill?: boolean + decoration?: TextDecorationOptions + letterSpacing?: number | string | Resource + lineHeight?: number | string | Resource + passwordRules?: string + fontFeature?: string + showPassword?: boolean + onSecurityStateChange?: Callback + onWillInsert?: Callback + onDidInsert?: Callback + onWillDelete?: Callback + onDidDelete?: Callback + editMenuOptions?: EditMenuOptions + enablePreviewText?: boolean + enableHapticFeedback?: boolean } diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkTextPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkTextPeer.ts index 9ef455ed3..9994d8b52 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkTextPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkTextPeer.ts @@ -24,16 +24,35 @@ import { ArkUINodeType } from "./ArkUINodeType" import { ComponentBase } from "../ComponentBase" import { NativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { Font, ResourceColor, Resource } from "./../ArkUnitsInterfaces" -import { TextAttribute, TextOptions, TextInterface } from "./../ArkTextInterfaces" -import { Color } from "./../ArkEnumsInterfaces" -import { IMPORT_Resource_FROM_resource_resource } from "./../SyntheticDeclarations" +import { Length, Resource, SizeOptions, ConstraintSizeOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, ResourceStr, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, PX, VP, FP, LPX, Percentage, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, Font, LengthMetrics } from "./../ArkUnitsInterfaces" +import { IMPORT_Resource_FROM_api_global_resource, LITERAL_TopLengthRightLengthBottomLengthLeftLength, LITERAL_AlignAlignment, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image, IMPORT_default_VisualEffect_FROM_api_ohos_graphics_uiEffect, IMPORT_default_Filter_FROM_api_ohos_graphics_uiEffect, LITERAL_TopBorderStyleRightBorderStyleBottomBorderStyleLeftBorderStyle, LITERAL_TopResourceColorRightResourceColorBottomResourceColorLeftResourceColor, LITERAL_TopLeftLengthTopRightLengthBottomLeftLengthBottomRightLength, LITERAL_TopOutlineStyleRightOutlineStyleBottomOutlineStyleLeftOutlineStyle, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, LITERAL_TopDimensionRightDimensionBottomDimensionLeftDimension, LITERAL_TopLeftDimensionTopRightDimensionBottomLeftDimensionBottomRightDimension, LITERAL_SpanNumberOffsetNumber, LITERAL_XsNumberLITERALSpanNumberOffsetNumberSmNumberLITERALSpanNumberOffsetNumberMdNumberLITERALSpanNumberOffsetNumberLgNumberLITERALSpanNumberOffsetNumber, IMPORT_default_UniformDataType_FROM_api_ohos_data_uniformTypeDescriptor, IMPORT_ComponentContent_T_FROM_api_arkui_ComponentContent, LITERAL_AngleNumberstringDirectionGradientDirectionColorsArrayResourceColornumberRepeatingBoolean, LITERAL_CenterLengthLengthStartNumberstringEndNumberstringRotationNumberstringColorsArrayResourceColornumberRepeatingBoolean, LITERAL_CenterLengthLengthRadiusNumberstringColorsArrayResourceColornumberRepeatingBoolean, IMPORT_default_Blender_FROM_api_ohos_graphics_uiEffect, IMPORT_CircleShape_FROM_api_ohos_arkui_shape, IMPORT_EllipseShape_FROM_api_ohos_arkui_shape, IMPORT_PathShape_FROM_api_ohos_arkui_shape, IMPORT_RectShape_FROM_api_ohos_arkui_shape, IMPORT_LengthMetrics_FROM_api_arkui_Graphics } from "./../SyntheticDeclarations" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { Optional, SafeAreaType, SafeAreaEdge, Rectangle, TouchTestInfo, TouchResult, CustomBuilder, PixelRoundPolicy, PixelMap, BlurStyle, BackgroundBlurStyleOptions, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, ForegroundBlurStyleOptions, BorderImageOption, OutlineStyle, ClickEvent, Callback, HoverEvent, AccessibilityCallback, AccessibilityHoverEvent, MouseEvent, TouchEvent, KeyEvent, AnimateParam, TransitionOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, sharedTransitionOptions, AlignRuleOption, LocalizedAlignRuleOptions, ChainStyle, ClickEffect, DragEvent, DragItemInfo, UniformDataType, DragPreviewOptions, DragInteractionOptions, PreDragStatus, ComponentContent, OverlayOptions, MotionPathOptions, ShadowOptions, ShadowStyle, BlendMode, BlendApplyType, Blender, CircleShape, EllipseShape, PathShape, RectShape, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, StateStyles, VisibleAreaChangeCallback, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback } from "./../ArkCommonInterfaces" +import { HitTestMode, Alignment, Color, ImageRepeat, ImageSize, BorderStyle, ColoringStrategy, HoverEffect, Visibility, ItemAlign, Direction, Axis, GradientDirection, ResponseType, FunctionKey, ModifierKey, ObscuredReasons, RenderFit, FontStyle, FontWeight, TextAlign, TextCase, CopyOptions, TextHeightAdaptivePolicy, WordBreak, LineBreakStrategy, EllipsisMode, TextSelectableMode, TextOverflow } from "./../ArkEnumsInterfaces" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ConflictedDeclarations" +import { GestureType, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureMask, GestureInfo, BaseGestureEvent, GestureJudgeResult } from "./../ArkGestureInterfaces" +import { CircleAttribute } from "./../ArkCircleInterfaces" +import { EllipseAttribute } from "./../ArkEllipseInterfaces" +import { PathAttribute } from "./../ArkPathInterfaces" +import { RectAttribute } from "./../ArkRectInterfaces" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../ArkAttributeModifierMaterialized" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureRecognizer } from "./../ArkGestureRecognizerMaterialized" +import { TextAttribute, TextOverflowOptions, TextSpanType, TextResponseType, TextOptions, TextInterface } from "./../ArkTextInterfaces" +import { FontSettingOptions, TextDataDetectorConfig } from "./../ArkTextCommonInterfaces" +import { DecorationStyleInterface } from "./../ArkStyledStringInterfaces" +import { SelectionMenuOptions } from "./../ArkRichEditorInterfaces" +import { EditMenuOptions } from "./../ArkEditMenuOptionsMaterialized" import { TextController } from "./../ArkTextControllerMaterialized" import { GestureName, GestureComponent } from "./../shared/generated-utils" import { TypeChecker } from "#components" import { registerCallback } from "./SerializerBase" import { wrapCallback } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" export class ArkTextPeer extends ArkCommonMethodPeer { @@ -79,10 +98,25 @@ export class ArkTextPeer extends ArkCommonMethodPeer { NativeModule._TextInterface_setTextOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); thisSerializer.release(); } - fontAttribute(value: Font): void { + font0Attribute(value: Font): void { const thisSerializer = SerializerBase.hold(createSerializer) thisSerializer.writeFont(value) - NativeModule._TextAttribute_font(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + NativeModule._TextAttribute_font0(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + font1Attribute(fontValue: Font, options?: FontSettingOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeFont(fontValue) + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeFontSettingOptions(options_value) + } + NativeModule._TextAttribute_font1(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); thisSerializer.release(); } fontColorAttribute(value: ResourceColor): void { @@ -112,6 +146,371 @@ export class ArkTextPeer extends ArkCommonMethodPeer { NativeModule._TextAttribute_fontColor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); thisSerializer.release(); } + fontSizeAttribute(value: number | string | Resource): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as string + thisSerializer.writeString(value_1) + } + else if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as Resource + thisSerializer.writeResource(value_2) + } + NativeModule._TextAttribute_fontSize(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + minFontSizeAttribute(value: number | string | Resource): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as string + thisSerializer.writeString(value_1) + } + else if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as Resource + thisSerializer.writeResource(value_2) + } + NativeModule._TextAttribute_minFontSize(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + maxFontSizeAttribute(value: number | string | Resource): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as string + thisSerializer.writeString(value_1) + } + else if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as Resource + thisSerializer.writeResource(value_2) + } + NativeModule._TextAttribute_maxFontSize(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + minFontScaleAttribute(scale: number | Resource): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let scale_type = RuntimeType.UNDEFINED + scale_type = runtimeType(scale) + if (((RuntimeType.NUMBER == scale_type))) { + thisSerializer.writeInt8(0 as int32) + const scale_0 = scale as number + thisSerializer.writeNumber(scale_0) + } + else if (((RuntimeType.OBJECT == scale_type))) { + thisSerializer.writeInt8(1 as int32) + const scale_1 = scale as Resource + thisSerializer.writeResource(scale_1) + } + NativeModule._TextAttribute_minFontScale(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + maxFontScaleAttribute(scale: number | Resource): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let scale_type = RuntimeType.UNDEFINED + scale_type = runtimeType(scale) + if (((RuntimeType.NUMBER == scale_type))) { + thisSerializer.writeInt8(0 as int32) + const scale_0 = scale as number + thisSerializer.writeNumber(scale_0) + } + else if (((RuntimeType.OBJECT == scale_type))) { + thisSerializer.writeInt8(1 as int32) + const scale_1 = scale as Resource + thisSerializer.writeResource(scale_1) + } + NativeModule._TextAttribute_maxFontScale(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + fontStyleAttribute(value: FontStyle): void { + NativeModule._TextAttribute_fontStyle(this.peer.ptr, (value.value as int32)); + } + fontWeight0Attribute(value: number | FontWeight | string): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((value instanceof FontWeight))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as FontWeight + thisSerializer.writeInt32((value_1.value as int32)) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as string + thisSerializer.writeString(value_2) + } + NativeModule._TextAttribute_fontWeight0(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + fontWeight1Attribute(weight: number | FontWeight | string, options?: FontSettingOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let weight_type = RuntimeType.UNDEFINED + weight_type = runtimeType(weight) + if (((RuntimeType.NUMBER == weight_type))) { + thisSerializer.writeInt8(0 as int32) + const weight_0 = weight as number + thisSerializer.writeNumber(weight_0) + } + else if (((weight instanceof FontWeight))) { + thisSerializer.writeInt8(1 as int32) + const weight_1 = weight as FontWeight + thisSerializer.writeInt32((weight_1.value as int32)) + } + else if (((RuntimeType.STRING == weight_type))) { + thisSerializer.writeInt8(2 as int32) + const weight_2 = weight as string + thisSerializer.writeString(weight_2) + } + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeFontSettingOptions(options_value) + } + NativeModule._TextAttribute_fontWeight1(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + lineSpacingAttribute(value: LengthMetrics): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeCustomObject("LengthMetrics", value) + NativeModule._TextAttribute_lineSpacing(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + textAlignAttribute(value: TextAlign): void { + NativeModule._TextAttribute_textAlign(this.peer.ptr, (value.value as int32)); + } + lineHeightAttribute(value: number | string | Resource): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as string + thisSerializer.writeString(value_1) + } + else if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(2 as int32) + const value_2 = value as Resource + thisSerializer.writeResource(value_2) + } + NativeModule._TextAttribute_lineHeight(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + textOverflowAttribute(options: TextOverflowOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeTextOverflowOptions(options) + NativeModule._TextAttribute_textOverflow(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + fontFamilyAttribute(value: string | Resource): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as string + thisSerializer.writeString(value_0) + } + else if (((RuntimeType.OBJECT == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as Resource + thisSerializer.writeResource(value_1) + } + NativeModule._TextAttribute_fontFamily(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + maxLinesAttribute(value: number): void { + NativeModule._TextAttribute_maxLines(this.peer.ptr, value); + } + decorationAttribute(value: DecorationStyleInterface): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeDecorationStyleInterface(value) + NativeModule._TextAttribute_decoration(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + letterSpacingAttribute(value: number | string): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as string + thisSerializer.writeString(value_1) + } + NativeModule._TextAttribute_letterSpacing(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + textCaseAttribute(value: TextCase): void { + NativeModule._TextAttribute_textCase(this.peer.ptr, (value.value as int32)); + } + baselineOffsetAttribute(value: number | string): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (((RuntimeType.NUMBER == value_type))) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as number + thisSerializer.writeNumber(value_0) + } + else if (((RuntimeType.STRING == value_type))) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as string + thisSerializer.writeString(value_1) + } + NativeModule._TextAttribute_baselineOffset(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + copyOptionAttribute(value: CopyOptions): void { + NativeModule._TextAttribute_copyOption(this.peer.ptr, (value.value as int32)); + } + draggableAttribute(value: boolean): void { + NativeModule._TextAttribute_draggable(this.peer.ptr, value ? 1 : 0); + } + textShadowAttribute(value: ShadowOptions | Array): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (TypeChecker.isShadowOptions(value, false, false, false, false, false, false)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as ShadowOptions + thisSerializer.writeShadowOptions(value_0) + } + else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Array)) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as Array + thisSerializer.writeInt8(runtimeType(value_1) as int32) + thisSerializer.writeInt32(value_1.length as int32) + for (let i = 0; i < value_1.length; i++) { + const value_1_element = value_1[i] + thisSerializer.writeShadowOptions(value_1_element) + } + } + NativeModule._TextAttribute_textShadow(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + heightAdaptivePolicyAttribute(value: TextHeightAdaptivePolicy): void { + NativeModule._TextAttribute_heightAdaptivePolicy(this.peer.ptr, (value.value as int32)); + } + textIndentAttribute(value: Length): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeLength(value); + NativeModule._TextAttribute_textIndent(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + wordBreakAttribute(value: WordBreak): void { + NativeModule._TextAttribute_wordBreak(this.peer.ptr, (value.value as int32)); + } + lineBreakStrategyAttribute(strategy: LineBreakStrategy): void { + NativeModule._TextAttribute_lineBreakStrategy(this.peer.ptr, (strategy.value as int32)); + } + onCopyAttribute(callback: ((value: string) => void)): void { + NativeModule._TextAttribute_onCopy(this.peer.ptr, registerCallback(callback)); + } + selectionAttribute(selectionStart: number, selectionEnd: number): void { + NativeModule._TextAttribute_selection(this.peer.ptr, selectionStart, selectionEnd); + } + ellipsisModeAttribute(value: EllipsisMode): void { + NativeModule._TextAttribute_ellipsisMode(this.peer.ptr, (value.value as int32)); + } + enableDataDetectorAttribute(enable: boolean): void { + NativeModule._TextAttribute_enableDataDetector(this.peer.ptr, enable ? 1 : 0); + } + dataDetectorConfigAttribute(config: TextDataDetectorConfig): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeTextDataDetectorConfig(config) + NativeModule._TextAttribute_dataDetectorConfig(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + bindSelectionMenuAttribute(spanType: TextSpanType, content: CustomBuilder, responseType: TextResponseType, options?: SelectionMenuOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let content_type = RuntimeType.UNDEFINED + content_type = runtimeType(content) + if (((RuntimeType.FUNCTION == content_type))) { + thisSerializer.writeInt8(0 as int32) + const content_0 = content as Object + thisSerializer.writeFunction(content_0) + } + else if (((RuntimeType.UNDEFINED == content_type))) { + thisSerializer.writeInt8(1 as int32) + } + let options_type = RuntimeType.UNDEFINED + if (options != undefined) { + options_type = RuntimeType.OBJECT + } + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeSelectionMenuOptions(options_value) + } + NativeModule._TextAttribute_bindSelectionMenu(this.peer.ptr, (spanType.value as int32), thisSerializer.asArray(), thisSerializer.length(), (responseType.value as int32)); + thisSerializer.release(); + } + onTextSelectionChangeAttribute(callback: ((selectionStart: number, selectionEnd: number) => void)): void { + NativeModule._TextAttribute_onTextSelectionChange(this.peer.ptr, registerCallback(callback)); + } + fontFeatureAttribute(value: string): void { + NativeModule._TextAttribute_fontFeature(this.peer.ptr, value); + } + privacySensitiveAttribute(supported: boolean): void { + NativeModule._TextAttribute_privacySensitive(this.peer.ptr, supported ? 1 : 0); + } + textSelectableAttribute(mode: TextSelectableMode): void { + NativeModule._TextAttribute_textSelectable(this.peer.ptr, (mode.value as int32)); + } + editMenuOptionsAttribute(editMenu: EditMenuOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeMaterialized(editMenu) + NativeModule._TextAttribute_editMenuOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + halfLeadingAttribute(halfLeading: boolean): void { + NativeModule._TextAttribute_halfLeading(this.peer.ptr, halfLeading ? 1 : 0); + } + enableHapticFeedbackAttribute(isEnabled: boolean): void { + NativeModule._TextAttribute_enableHapticFeedback(this.peer.ptr, isEnabled ? 1 : 0); + } applyAttributes(attributes: T): void { super.applyAttributes(attributes) } @@ -119,4 +518,39 @@ export class ArkTextPeer extends ArkCommonMethodPeer { export interface ArkTextAttributes extends ArkCommonMethodAttributes { font?: Font fontColor?: ResourceColor + fontSize?: number | string | Resource + minFontSize?: number | string | Resource + maxFontSize?: number | string | Resource + minFontScale?: number | Resource + maxFontScale?: number | Resource + fontStyle?: FontStyle + fontWeight?: number | FontWeight | string + lineSpacing?: LengthMetrics + textAlign?: TextAlign + lineHeight?: number | string | Resource + textOverflow?: TextOverflowOptions + fontFamily?: string | Resource + maxLines?: number + decoration?: DecorationStyleInterface + letterSpacing?: number | string + textCase?: TextCase + baselineOffset?: number | string + copyOption?: CopyOptions + draggable?: boolean + textShadow?: ShadowOptions | Array + heightAdaptivePolicy?: TextHeightAdaptivePolicy + textIndent?: Length + wordBreak?: WordBreak + lineBreakStrategy?: LineBreakStrategy + onCopy?: ((value: string) => void) + ellipsisMode?: EllipsisMode + enableDataDetector?: boolean + dataDetectorConfig?: TextDataDetectorConfig + onTextSelectionChange?: ((selectionStart: number, selectionEnd: number) => void) + fontFeature?: string + privacySensitive?: boolean + textSelectable?: TextSelectableMode + editMenuOptions?: EditMenuOptions + halfLeading?: boolean + enableHapticFeedback?: boolean } diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkTextPickerPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkTextPickerPeer.ts index ae93b596b..5ecd3133c 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkTextPickerPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkTextPickerPeer.ts @@ -25,14 +25,16 @@ import { ComponentBase } from "../ComponentBase" import { NativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { TextPickerAttribute, DividerOptions, TextPickerOptions, TextPickerInterface, TextPickerRangeContent, TextCascadePickerRangeContent } from "./../ArkTextPickerInterfaces" +import { PickerTextStyle } from "./../ArkCommonInterfaces" import { Dimension, PX, VP, FP, LPX, Percentage, Resource, ResourceColor } from "./../ArkUnitsInterfaces" -import { TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, IMPORT_Resource_FROM_resource_resource } from "./../SyntheticDeclarations" +import { TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, IMPORT_Resource_FROM_api_global_resource } from "./../SyntheticDeclarations" import { Color } from "./../ArkEnumsInterfaces" import { GestureName, GestureComponent } from "./../shared/generated-utils" import { TypeChecker } from "#components" import { registerCallback } from "./SerializerBase" import { wrapCallback } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" export class ArkTextPickerPeer extends ArkCommonMethodPeer { @@ -78,6 +80,24 @@ export class ArkTextPickerPeer extends ArkCommonMethodPeer { canLoopAttribute(value: boolean): void { NativeModule._TextPickerAttribute_canLoop(this.peer.ptr, value ? 1 : 0); } + disappearTextStyleAttribute(value: PickerTextStyle): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writePickerTextStyle(value) + NativeModule._TextPickerAttribute_disappearTextStyle(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + textStyleAttribute(value: PickerTextStyle): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writePickerTextStyle(value) + NativeModule._TextPickerAttribute_textStyle(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + selectedTextStyleAttribute(value: PickerTextStyle): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writePickerTextStyle(value) + NativeModule._TextPickerAttribute_selectedTextStyle(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } onAcceptAttribute(callback: ((value: string, index: number) => void)): void { NativeModule._TextPickerAttribute_onAccept(this.peer.ptr, registerCallback(callback)); } @@ -126,7 +146,10 @@ export class ArkTextPickerPeer extends ArkCommonMethodPeer { thisSerializer.release(); } gradientHeightAttribute(value: Dimension): void { - NativeModule._TextPickerAttribute_gradientHeight(this.peer.ptr, value); + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeLength(value); + NativeModule._TextPickerAttribute_gradientHeight(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); } applyAttributes(attributes: T): void { super.applyAttributes(attributes) @@ -135,6 +158,9 @@ export class ArkTextPickerPeer extends ArkCommonMethodPeer { export interface ArkTextPickerAttributes extends ArkCommonMethodAttributes { defaultPickerItemHeight?: number | string canLoop?: boolean + disappearTextStyle?: PickerTextStyle + textStyle?: PickerTextStyle + selectedTextStyle?: PickerTextStyle onAccept?: ((value: string, index: number) => void) onCancel?: (() => void) onChange?: ((value: string | string[], index: number | number[]) => void) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkUINodeType.ts b/arkoala-arkts/arkui/src/generated/peers/ArkUINodeType.ts index c671e96ad..f4420bf44 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkUINodeType.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkUINodeType.ts @@ -2,36 +2,116 @@ export enum ArkUINodeType { Root, ComponentRoot, CustomNode, + AbilityComponent, + AlphabetIndexer, + Animator, + Badge, + BaseSpan, Blank, Button, + Calendar, CalendarPicker, Canvas, + Checkbox, + CheckboxGroup, + Circle, Column, + ColumnSplit, Common, CommonMethod, CommonShapeMethod, + Component3D, + ContainerSpan, + Counter, + DataPanel, + DatePicker, + Divider, + EffectComponent, + Ellipse, EmbeddedComponent, + Flex, + FlowItem, + FolderStack, FormComponent, + FormLink, + Gauge, + Grid, + GridCol, GridContainer, + GridItem, + GridRow, + Hyperlink, Image, + ImageAnimator, + ImageSpan, + Line, + LinearIndicator, List, + ListItem, + ListItemGroup, + LoadingProgress, + LocationButton, + Marquee, + MediaCachedImage, + Menu, + MenuItem, + MenuItemGroup, NavDestination, + NavRouter, Navigation, + Navigator, + NodeContainer, + Panel, + PasteButton, + Path, + PatternLock, + PluginComponent, + Polygon, + Polyline, + QRCode, + Radio, + Rating, Rect, + Refresh, + RelativeContainer, + RemoteWindow, + RichEditor, + RichText, + RootScene, + Row, + RowSplit, + SaveButton, + Screen, Scroll, + ScrollBar, ScrollableCommonMethod, + Search, + SecurityComponentMethod, Select, Shape, SideBarContainer, + Slider, + Span, + Stack, + Stepper, + StepperItem, Swiper, SymbolGlyph, + SymbolSpan, TabContent, Tabs, - Test, Text, + TextArea, + TextClock, TextInput, TextPicker, + TextTimer, + TimePicker, + Toggle, UIExtensionComponent, - Vector, + Video, + WaterFlow, Web, + WindowScene, + XComponent, } \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkUiExtensionComponentPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkUiExtensionComponentPeer.ts index 8f8627663..7bd8208e5 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkUiExtensionComponentPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkUiExtensionComponentPeer.ts @@ -25,7 +25,7 @@ import { ComponentBase } from "../ComponentBase" import { NativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { UIExtensionProxy } from "./../ArkUIExtensionProxyMaterialized" -import { IMPORT_Callback_UIExtensionProxy_FROM_api_ohos_base, LITERAL_KeyStringObject, IMPORT_Callback_LITERAL_KeyStringObject_FROM_api_ohos_base, IMPORT_default_FROM_api_ohos_app_ability_Want, LITERAL_CodeNumberWantIMPORTdefaultFROMapiohosappabilityWant, IMPORT_Callback_LITERAL_CodeNumberWantIMPORTdefaultFROMapiohosappabilityWant_FROM_api_ohos_base, IMPORT_Callback_number_FROM_api_ohos_base, IMPORT_ErrorCallback_FROM_api_ohos_base, IMPORT_ComponentContent_FROM_api_arkui_ComponentContent, IMPORT_Callback_key_string_Object_FROM_api_ohos_base, IMPORT_Callback_code_number_want_IMPORT_default_FROM_api_ohos_app_ability_Want_FROM_api_ohos_base } from "./../SyntheticDeclarations" +import { IMPORT_Callback_UIExtensionProxy_FROM_api_ohos_base, LITERAL_KeyStringObject, IMPORT_Callback_LITERAL_KeyStringObject_FROM_api_ohos_base, IMPORT_default_FROM_api_ohos_app_ability_Want, LITERAL_CodeNumberWantIMPORTdefaultFROMapiohosappabilityWant, IMPORT_Callback_LITERAL_CodeNumberWantIMPORTdefaultFROMapiohosappabilityWant_FROM_api_ohos_base, IMPORT_Callback_number_FROM_api_ohos_base, IMPORT_ErrorCallback_FROM_api_ohos_base, IMPORT_ComponentContent_T_FROM_api_arkui_ComponentContent, IMPORT_Callback_key_string_Object_FROM_api_ohos_base, IMPORT_Callback_code_number_want_IMPORT_default_FROM_api_ohos_app_ability_Want_FROM_api_ohos_base } from "./../SyntheticDeclarations" import { UIExtensionComponentAttribute, UIExtensionOptions, UIExtensionComponentInterface, DpiFollowStrategy } from "./../ArkUiExtensionComponentInterfaces" import { TerminationInfo } from "./../ArkEmbeddedComponentInterfaces" import { Callback, ComponentContent } from "./../ArkCommonInterfaces" @@ -34,6 +34,7 @@ import { TypeChecker } from "#components" import { registerCallback } from "./SerializerBase" import { wrapCallback } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" export class ArkUIExtensionComponentPeer extends ArkCommonMethodPeer { diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkWebPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkWebPeer.ts index 24ee1fc58..160af7f2a 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkWebPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkWebPeer.ts @@ -24,15 +24,39 @@ import { ArkUINodeType } from "./ArkUINodeType" import { ComponentBase } from "../ComponentBase" import { NativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { NativeEmbedDataInfo, WebAttribute, OnRenderExitedEvent, OnHttpErrorReceiveEvent, WebInterface, NativeEmbedInfo, RenderExitReason } from "./../ArkWebInterfaces" -import { Callback } from "./../ArkCommonInterfaces" -import { LITERAL_DetailObject } from "./../SyntheticDeclarations" +import { WebAttribute, MixedMode, JavaScriptProxy, CacheMode, WebDarkMode, WebMediaOptions, OverScrollMode, OnPageEndEvent, OnPageBeginEvent, OnProgressChangeEvent, OnTitleReceiveEvent, OnGeolocationShowEvent, OnAlertEvent, OnBeforeUnloadEvent, OnConfirmEvent, OnPromptEvent, OnConsoleEvent, OnErrorReceiveEvent, OnHttpErrorReceiveEvent, OnDownloadStartEvent, OnRefreshAccessedHistoryEvent, OnRenderExitedEvent, OnShowFileSelectorEvent, OnResourceLoadEvent, OnFullScreenEnterCallback, FullScreenEnterEvent, OnScaleChangeEvent, OnHttpAuthRequestEvent, OnInterceptRequestEvent, OnPermissionRequestEvent, OnScreenCaptureRequestEvent, OnContextMenuShowEvent, OnContextMenuHideCallback, OnSearchResultReceiveEvent, OnScrollEvent, OnSslErrorEventReceiveEvent, OnSslErrorEventCallback, SslErrorEvent, OnClientAuthenticationEvent, OnWindowNewEvent, OnTouchIconUrlReceivedEvent, OnFaviconReceivedEvent, OnPageVisibleEvent, OnDataResubmittedEvent, OnAudioStateChangedEvent, OnFirstContentfulPaintEvent, OnFirstMeaningfulPaintCallback, FirstMeaningfulPaint, OnLargestContentfulPaintCallback, LargestContentfulPaint, OnLoadInterceptEvent, OnOverScrollEvent, OnSafeBrowsingCheckResultCallback, ThreatType, OnNavigationEntryCommittedCallback, LoadCommittedDetails, OnIntelligentTrackingPreventionCallback, IntelligentTrackingPreventionDetails, ScriptItem, WebLayoutMode, NestedScrollOptionsExt, NativeEmbedDataInfo, OnNativeEmbedVisibilityChangeCallback, NativeEmbedVisibilityInfo, NativeEmbedTouchInfo, OnOverrideUrlLoadingCallback, NativeMediaPlayerConfig, OnRenderProcessNotRespondingCallback, RenderProcessNotRespondingData, OnRenderProcessRespondingCallback, ExpandedMenuItemOptions, OnViewportFitChangedCallback, ViewportFit, WebKeyboardCallback, WebKeyboardCallbackInfo, WebKeyboardOptions, OnAdsBlockedCallback, AdsBlockedDetails, WebKeyboardAvoidMode, WebOptions, WebInterface, WebviewController, Header, RenderExitReason, WebCaptureMode, ScreenCaptureConfig, SslError, WebNavigationType, NativeEmbedStatus, NativeEmbedInfo, RenderProcessNotRespondingReason, RenderMode } from "./../ArkWebInterfaces" +import { Callback, KeyEvent, NestedScrollOptions, PixelMap, TouchEvent, CustomBuilder } from "./../ArkCommonInterfaces" +import { WebResourceRequest } from "./../ArkWebResourceRequestMaterialized" +import { LITERAL_DataStringWebResourceRequest, LITERAL_HandlerFunctionErrorObject, LITERAL_DetailObject, LITERAL_CallbackFunctionFileSelectorObject, IMPORT_default_WebviewController_FROM_api_ohos_web_webview, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image, IMPORT_Resource_FROM_api_global_resource, LITERAL_PlainTextString } from "./../SyntheticDeclarations" import { WebResourceResponse } from "./../ArkWebResourceResponseMaterialized" +import { CopyOptions, NestedScrollMode } from "./../ArkEnumsInterfaces" +import { EditMenuOptions } from "./../ArkEditMenuOptionsMaterialized" +import { WebController } from "./../ArkWebControllerMaterialized" +import { JsGeolocation } from "./../ArkJsGeolocationMaterialized" +import { JsResult } from "./../ArkJsResultMaterialized" +import { ConsoleMessage } from "./../ArkConsoleMessageMaterialized" +import { WebResourceError } from "./../ArkWebResourceErrorMaterialized" +import { FileSelectorResult } from "./../ArkFileSelectorResultMaterialized" +import { FileSelectorParam } from "./../ArkFileSelectorParamMaterialized" +import { FullScreenExitHandler } from "./../ArkFullScreenExitHandlerMaterialized" +import { HttpAuthHandler } from "./../ArkHttpAuthHandlerMaterialized" +import { PermissionRequest } from "./../ArkPermissionRequestMaterialized" +import { ScreenCaptureHandler } from "./../ArkScreenCaptureHandlerMaterialized" +import { WebContextMenuParam } from "./../ArkWebContextMenuParamMaterialized" +import { WebContextMenuResult } from "./../ArkWebContextMenuResultMaterialized" +import { SslErrorHandler } from "./../ArkSslErrorHandlerMaterialized" +import { ClientAuthenticationHandler } from "./../ArkClientAuthenticationHandlerMaterialized" +import { ControllerHandler } from "./../ArkControllerHandlerMaterialized" +import { DataResubmissionHandler } from "./../ArkDataResubmissionHandlerMaterialized" +import { Position, ResourceStr, Resource } from "./../ArkUnitsInterfaces" +import { EventResult } from "./../ArkEventResultMaterialized" +import { WebKeyboardController } from "./../ArkWebKeyboardControllerMaterialized" import { GestureName, GestureComponent } from "./../shared/generated-utils" import { TypeChecker } from "#components" import { registerCallback } from "./SerializerBase" import { wrapCallback } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" export class ArkWebPeer extends ArkCommonMethodPeer { @@ -44,27 +68,543 @@ export class ArkWebPeer extends ArkCommonMethodPeer { component?.setPeer(_peer) return _peer } - setWebOptionsAttribute(): void { - NativeModule._WebInterface_setWebOptions(this.peer.ptr); + setWebOptionsAttribute(value: WebOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeWebOptions(value) + NativeModule._WebInterface_setWebOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); } - onNativeEmbedLifecycleChangeAttribute(callback: ((event: NativeEmbedDataInfo) => void)): void { - NativeModule._WebAttribute_onNativeEmbedLifecycleChange(this.peer.ptr, registerCallback(callback)); + javaScriptAccessAttribute(javaScriptAccess: boolean): void { + NativeModule._WebAttribute_javaScriptAccess(this.peer.ptr, javaScriptAccess ? 1 : 0); + } + fileAccessAttribute(fileAccess: boolean): void { + NativeModule._WebAttribute_fileAccess(this.peer.ptr, fileAccess ? 1 : 0); + } + onlineImageAccessAttribute(onlineImageAccess: boolean): void { + NativeModule._WebAttribute_onlineImageAccess(this.peer.ptr, onlineImageAccess ? 1 : 0); + } + domStorageAccessAttribute(domStorageAccess: boolean): void { + NativeModule._WebAttribute_domStorageAccess(this.peer.ptr, domStorageAccess ? 1 : 0); + } + imageAccessAttribute(imageAccess: boolean): void { + NativeModule._WebAttribute_imageAccess(this.peer.ptr, imageAccess ? 1 : 0); + } + mixedModeAttribute(mixedMode: MixedMode): void { + NativeModule._WebAttribute_mixedMode(this.peer.ptr, (mixedMode.value as int32)); + } + zoomAccessAttribute(zoomAccess: boolean): void { + NativeModule._WebAttribute_zoomAccess(this.peer.ptr, zoomAccess ? 1 : 0); + } + geolocationAccessAttribute(geolocationAccess: boolean): void { + NativeModule._WebAttribute_geolocationAccess(this.peer.ptr, geolocationAccess ? 1 : 0); + } + javaScriptProxyAttribute(javaScriptProxy: JavaScriptProxy): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeJavaScriptProxy(javaScriptProxy) + NativeModule._WebAttribute_javaScriptProxy(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + passwordAttribute(password: boolean): void { + NativeModule._WebAttribute_password(this.peer.ptr, password ? 1 : 0); + } + cacheModeAttribute(cacheMode: CacheMode): void { + NativeModule._WebAttribute_cacheMode(this.peer.ptr, (cacheMode.value as int32)); + } + darkModeAttribute(mode: WebDarkMode): void { + NativeModule._WebAttribute_darkMode(this.peer.ptr, (mode.value as int32)); + } + forceDarkAccessAttribute(access: boolean): void { + NativeModule._WebAttribute_forceDarkAccess(this.peer.ptr, access ? 1 : 0); + } + mediaOptionsAttribute(options: WebMediaOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeWebMediaOptions(options) + NativeModule._WebAttribute_mediaOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + tableDataAttribute(tableData: boolean): void { + NativeModule._WebAttribute_tableData(this.peer.ptr, tableData ? 1 : 0); + } + wideViewModeAccessAttribute(wideViewModeAccess: boolean): void { + NativeModule._WebAttribute_wideViewModeAccess(this.peer.ptr, wideViewModeAccess ? 1 : 0); + } + overviewModeAccessAttribute(overviewModeAccess: boolean): void { + NativeModule._WebAttribute_overviewModeAccess(this.peer.ptr, overviewModeAccess ? 1 : 0); + } + overScrollModeAttribute(mode: OverScrollMode): void { + NativeModule._WebAttribute_overScrollMode(this.peer.ptr, (mode.value as int32)); + } + textZoomAtioAttribute(textZoomAtio: number): void { + NativeModule._WebAttribute_textZoomAtio(this.peer.ptr, textZoomAtio); + } + textZoomRatioAttribute(textZoomRatio: number): void { + NativeModule._WebAttribute_textZoomRatio(this.peer.ptr, textZoomRatio); + } + databaseAccessAttribute(databaseAccess: boolean): void { + NativeModule._WebAttribute_databaseAccess(this.peer.ptr, databaseAccess ? 1 : 0); + } + initialScaleAttribute(percent: number): void { + NativeModule._WebAttribute_initialScale(this.peer.ptr, percent); + } + userAgentAttribute(userAgent: string): void { + NativeModule._WebAttribute_userAgent(this.peer.ptr, userAgent); + } + metaViewportAttribute(enabled: boolean): void { + NativeModule._WebAttribute_metaViewport(this.peer.ptr, enabled ? 1 : 0); + } + onPageEndAttribute(callback: Callback): void { + NativeModule._WebAttribute_onPageEnd(this.peer.ptr, registerCallback(callback)); + } + onPageBeginAttribute(callback: Callback): void { + NativeModule._WebAttribute_onPageBegin(this.peer.ptr, registerCallback(callback)); + } + onProgressChangeAttribute(callback: Callback): void { + NativeModule._WebAttribute_onProgressChange(this.peer.ptr, registerCallback(callback)); + } + onTitleReceiveAttribute(callback: Callback): void { + NativeModule._WebAttribute_onTitleReceive(this.peer.ptr, registerCallback(callback)); + } + onGeolocationHideAttribute(callback: (() => void)): void { + NativeModule._WebAttribute_onGeolocationHide(this.peer.ptr, registerCallback(callback)); + } + onGeolocationShowAttribute(callback: Callback): void { + NativeModule._WebAttribute_onGeolocationShow(this.peer.ptr, registerCallback(callback)); + } + onRequestSelectedAttribute(callback: (() => void)): void { + NativeModule._WebAttribute_onRequestSelected(this.peer.ptr, registerCallback(callback)); + } + onAlertAttribute(callback: Callback): void { + NativeModule._WebAttribute_onAlert(this.peer.ptr, registerCallback(callback)); + } + onBeforeUnloadAttribute(callback: Callback): void { + NativeModule._WebAttribute_onBeforeUnload(this.peer.ptr, registerCallback(callback)); + } + onConfirmAttribute(callback: Callback): void { + NativeModule._WebAttribute_onConfirm(this.peer.ptr, registerCallback(callback)); + } + onPromptAttribute(callback: Callback): void { + NativeModule._WebAttribute_onPrompt(this.peer.ptr, registerCallback(callback)); + } + onConsoleAttribute(callback: Callback): void { + NativeModule._WebAttribute_onConsole(this.peer.ptr, registerCallback(callback)); + } + onErrorReceiveAttribute(callback: Callback): void { + NativeModule._WebAttribute_onErrorReceive(this.peer.ptr, registerCallback(callback)); + } + onHttpErrorReceiveAttribute(callback: Callback): void { + NativeModule._WebAttribute_onHttpErrorReceive(this.peer.ptr, registerCallback(callback)); + } + onDownloadStartAttribute(callback: Callback): void { + NativeModule._WebAttribute_onDownloadStart(this.peer.ptr, registerCallback(callback)); + } + onRefreshAccessedHistoryAttribute(callback: Callback): void { + NativeModule._WebAttribute_onRefreshAccessedHistory(this.peer.ptr, registerCallback(callback)); + } + onUrlLoadInterceptAttribute(callback: ((event: LITERAL_DataStringWebResourceRequest|undefined) => boolean)): void { + NativeModule._WebAttribute_onUrlLoadIntercept(this.peer.ptr, registerCallback(callback)); + } + onSslErrorReceiveAttribute(callback: ((event: LITERAL_HandlerFunctionErrorObject|undefined) => void)): void { + NativeModule._WebAttribute_onSslErrorReceive(this.peer.ptr, registerCallback(callback)); } onRenderExited0Attribute(callback: Callback): void { NativeModule._WebAttribute_onRenderExited0(this.peer.ptr, registerCallback(callback)); } + onShowFileSelectorAttribute(callback: Callback): void { + NativeModule._WebAttribute_onShowFileSelector(this.peer.ptr, registerCallback(callback)); + } onRenderExited1Attribute(callback: ((event: LITERAL_DetailObject|undefined) => boolean)): void { NativeModule._WebAttribute_onRenderExited1(this.peer.ptr, registerCallback(callback)); } - onHttpErrorReceiveAttribute(callback: Callback): void { - NativeModule._WebAttribute_onHttpErrorReceive(this.peer.ptr, registerCallback(callback)); + onFileSelectorShowAttribute(callback: ((event: LITERAL_CallbackFunctionFileSelectorObject|undefined) => void)): void { + NativeModule._WebAttribute_onFileSelectorShow(this.peer.ptr, registerCallback(callback)); + } + onResourceLoadAttribute(callback: Callback): void { + NativeModule._WebAttribute_onResourceLoad(this.peer.ptr, registerCallback(callback)); + } + onFullScreenExitAttribute(callback: (() => void)): void { + NativeModule._WebAttribute_onFullScreenExit(this.peer.ptr, registerCallback(callback)); + } + onFullScreenEnterAttribute(callback: OnFullScreenEnterCallback): void { + NativeModule._WebAttribute_onFullScreenEnter(this.peer.ptr, registerCallback(callback)); + } + onScaleChangeAttribute(callback: Callback): void { + NativeModule._WebAttribute_onScaleChange(this.peer.ptr, registerCallback(callback)); + } + onHttpAuthRequestAttribute(callback: Callback): void { + NativeModule._WebAttribute_onHttpAuthRequest(this.peer.ptr, registerCallback(callback)); + } + onInterceptRequestAttribute(callback: Callback): void { + NativeModule._WebAttribute_onInterceptRequest(this.peer.ptr, registerCallback(callback)); + } + onPermissionRequestAttribute(callback: Callback): void { + NativeModule._WebAttribute_onPermissionRequest(this.peer.ptr, registerCallback(callback)); + } + onScreenCaptureRequestAttribute(callback: Callback): void { + NativeModule._WebAttribute_onScreenCaptureRequest(this.peer.ptr, registerCallback(callback)); + } + onContextMenuShowAttribute(callback: Callback): void { + NativeModule._WebAttribute_onContextMenuShow(this.peer.ptr, registerCallback(callback)); + } + onContextMenuHideAttribute(callback: OnContextMenuHideCallback): void { + NativeModule._WebAttribute_onContextMenuHide(this.peer.ptr, registerCallback(callback)); + } + mediaPlayGestureAccessAttribute(access: boolean): void { + NativeModule._WebAttribute_mediaPlayGestureAccess(this.peer.ptr, access ? 1 : 0); + } + onSearchResultReceiveAttribute(callback: Callback): void { + NativeModule._WebAttribute_onSearchResultReceive(this.peer.ptr, registerCallback(callback)); + } + onScrollAttribute(callback: Callback): void { + NativeModule._WebAttribute_onScroll(this.peer.ptr, registerCallback(callback)); + } + onSslErrorEventReceiveAttribute(callback: Callback): void { + NativeModule._WebAttribute_onSslErrorEventReceive(this.peer.ptr, registerCallback(callback)); + } + onSslErrorEventAttribute(callback: OnSslErrorEventCallback): void { + NativeModule._WebAttribute_onSslErrorEvent(this.peer.ptr, registerCallback(callback)); + } + onClientAuthenticationRequestAttribute(callback: Callback): void { + NativeModule._WebAttribute_onClientAuthenticationRequest(this.peer.ptr, registerCallback(callback)); + } + onWindowNewAttribute(callback: Callback): void { + NativeModule._WebAttribute_onWindowNew(this.peer.ptr, registerCallback(callback)); + } + onWindowExitAttribute(callback: (() => void)): void { + NativeModule._WebAttribute_onWindowExit(this.peer.ptr, registerCallback(callback)); + } + multiWindowAccessAttribute(multiWindow: boolean): void { + NativeModule._WebAttribute_multiWindowAccess(this.peer.ptr, multiWindow ? 1 : 0); + } + onInterceptKeyEventAttribute(callback: ((event: KeyEvent) => boolean)): void { + NativeModule._WebAttribute_onInterceptKeyEvent(this.peer.ptr, registerCallback(callback)); + } + webStandardFontAttribute(family: string): void { + NativeModule._WebAttribute_webStandardFont(this.peer.ptr, family); + } + webSerifFontAttribute(family: string): void { + NativeModule._WebAttribute_webSerifFont(this.peer.ptr, family); + } + webSansSerifFontAttribute(family: string): void { + NativeModule._WebAttribute_webSansSerifFont(this.peer.ptr, family); + } + webFixedFontAttribute(family: string): void { + NativeModule._WebAttribute_webFixedFont(this.peer.ptr, family); + } + webFantasyFontAttribute(family: string): void { + NativeModule._WebAttribute_webFantasyFont(this.peer.ptr, family); + } + webCursiveFontAttribute(family: string): void { + NativeModule._WebAttribute_webCursiveFont(this.peer.ptr, family); + } + defaultFixedFontSizeAttribute(size: number): void { + NativeModule._WebAttribute_defaultFixedFontSize(this.peer.ptr, size); + } + defaultFontSizeAttribute(size: number): void { + NativeModule._WebAttribute_defaultFontSize(this.peer.ptr, size); + } + minFontSizeAttribute(size: number): void { + NativeModule._WebAttribute_minFontSize(this.peer.ptr, size); + } + minLogicalFontSizeAttribute(size: number): void { + NativeModule._WebAttribute_minLogicalFontSize(this.peer.ptr, size); + } + defaultTextEncodingFormatAttribute(textEncodingFormat: string): void { + NativeModule._WebAttribute_defaultTextEncodingFormat(this.peer.ptr, textEncodingFormat); + } + forceDisplayScrollBarAttribute(enabled: boolean): void { + NativeModule._WebAttribute_forceDisplayScrollBar(this.peer.ptr, enabled ? 1 : 0); + } + blockNetworkAttribute(block: boolean): void { + NativeModule._WebAttribute_blockNetwork(this.peer.ptr, block ? 1 : 0); + } + horizontalScrollBarAccessAttribute(horizontalScrollBar: boolean): void { + NativeModule._WebAttribute_horizontalScrollBarAccess(this.peer.ptr, horizontalScrollBar ? 1 : 0); + } + verticalScrollBarAccessAttribute(verticalScrollBar: boolean): void { + NativeModule._WebAttribute_verticalScrollBarAccess(this.peer.ptr, verticalScrollBar ? 1 : 0); + } + onTouchIconUrlReceivedAttribute(callback: Callback): void { + NativeModule._WebAttribute_onTouchIconUrlReceived(this.peer.ptr, registerCallback(callback)); + } + onFaviconReceivedAttribute(callback: Callback): void { + NativeModule._WebAttribute_onFaviconReceived(this.peer.ptr, registerCallback(callback)); + } + onPageVisibleAttribute(callback: Callback): void { + NativeModule._WebAttribute_onPageVisible(this.peer.ptr, registerCallback(callback)); + } + onDataResubmittedAttribute(callback: Callback): void { + NativeModule._WebAttribute_onDataResubmitted(this.peer.ptr, registerCallback(callback)); + } + pinchSmoothAttribute(isEnabled: boolean): void { + NativeModule._WebAttribute_pinchSmooth(this.peer.ptr, isEnabled ? 1 : 0); + } + allowWindowOpenMethodAttribute(flag: boolean): void { + NativeModule._WebAttribute_allowWindowOpenMethod(this.peer.ptr, flag ? 1 : 0); + } + onAudioStateChangedAttribute(callback: Callback): void { + NativeModule._WebAttribute_onAudioStateChanged(this.peer.ptr, registerCallback(callback)); + } + onFirstContentfulPaintAttribute(callback: Callback): void { + NativeModule._WebAttribute_onFirstContentfulPaint(this.peer.ptr, registerCallback(callback)); + } + onFirstMeaningfulPaintAttribute(callback: OnFirstMeaningfulPaintCallback): void { + NativeModule._WebAttribute_onFirstMeaningfulPaint(this.peer.ptr, registerCallback(callback)); + } + onLargestContentfulPaintAttribute(callback: OnLargestContentfulPaintCallback): void { + NativeModule._WebAttribute_onLargestContentfulPaint(this.peer.ptr, registerCallback(callback)); + } + onLoadInterceptAttribute(callback: Callback): void { + NativeModule._WebAttribute_onLoadIntercept(this.peer.ptr, registerCallback(callback)); + } + onControllerAttachedAttribute(callback: (() => void)): void { + NativeModule._WebAttribute_onControllerAttached(this.peer.ptr, registerCallback(callback)); + } + onOverScrollAttribute(callback: Callback): void { + NativeModule._WebAttribute_onOverScroll(this.peer.ptr, registerCallback(callback)); + } + onSafeBrowsingCheckResultAttribute(callback: OnSafeBrowsingCheckResultCallback): void { + NativeModule._WebAttribute_onSafeBrowsingCheckResult(this.peer.ptr, registerCallback(callback)); + } + onNavigationEntryCommittedAttribute(callback: OnNavigationEntryCommittedCallback): void { + NativeModule._WebAttribute_onNavigationEntryCommitted(this.peer.ptr, registerCallback(callback)); + } + onIntelligentTrackingPreventionResultAttribute(callback: OnIntelligentTrackingPreventionCallback): void { + NativeModule._WebAttribute_onIntelligentTrackingPreventionResult(this.peer.ptr, registerCallback(callback)); + } + javaScriptOnDocumentStartAttribute(scripts: Array): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeInt8(runtimeType(scripts) as int32) + thisSerializer.writeInt32(scripts.length as int32) + for (let i = 0; i < scripts.length; i++) { + const scripts_element = scripts[i] + thisSerializer.writeScriptItem(scripts_element) + } + NativeModule._WebAttribute_javaScriptOnDocumentStart(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + javaScriptOnDocumentEndAttribute(scripts: Array): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeInt8(runtimeType(scripts) as int32) + thisSerializer.writeInt32(scripts.length as int32) + for (let i = 0; i < scripts.length; i++) { + const scripts_element = scripts[i] + thisSerializer.writeScriptItem(scripts_element) + } + NativeModule._WebAttribute_javaScriptOnDocumentEnd(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + layoutModeAttribute(mode: WebLayoutMode): void { + NativeModule._WebAttribute_layoutMode(this.peer.ptr, (mode.value as int32)); + } + nestedScrollAttribute(value: NestedScrollOptions | NestedScrollOptionsExt): void { + const thisSerializer = SerializerBase.hold(createSerializer) + let value_type = RuntimeType.UNDEFINED + value_type = runtimeType(value) + if (TypeChecker.isNestedScrollOptions(value, false, false)) { + thisSerializer.writeInt8(0 as int32) + const value_0 = value as NestedScrollOptions + thisSerializer.writeNestedScrollOptions(value_0) + } + else if (TypeChecker.isNestedScrollOptionsExt(value, false, false, false, false)) { + thisSerializer.writeInt8(1 as int32) + const value_1 = value as NestedScrollOptionsExt + thisSerializer.writeNestedScrollOptionsExt(value_1) + } + NativeModule._WebAttribute_nestedScroll(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + enableNativeEmbedModeAttribute(mode: boolean): void { + NativeModule._WebAttribute_enableNativeEmbedMode(this.peer.ptr, mode ? 1 : 0); + } + registerNativeEmbedRuleAttribute(tag: string, type: string): void { + NativeModule._WebAttribute_registerNativeEmbedRule(this.peer.ptr, tag, type); + } + onNativeEmbedLifecycleChangeAttribute(callback: ((event: NativeEmbedDataInfo) => void)): void { + NativeModule._WebAttribute_onNativeEmbedLifecycleChange(this.peer.ptr, registerCallback(callback)); + } + onNativeEmbedVisibilityChangeAttribute(callback: OnNativeEmbedVisibilityChangeCallback): void { + NativeModule._WebAttribute_onNativeEmbedVisibilityChange(this.peer.ptr, registerCallback(callback)); + } + onNativeEmbedGestureEventAttribute(callback: ((event: NativeEmbedTouchInfo) => void)): void { + NativeModule._WebAttribute_onNativeEmbedGestureEvent(this.peer.ptr, registerCallback(callback)); + } + copyOptionsAttribute(value: CopyOptions): void { + NativeModule._WebAttribute_copyOptions(this.peer.ptr, (value.value as int32)); + } + onOverrideUrlLoadingAttribute(callback: OnOverrideUrlLoadingCallback): void { + NativeModule._WebAttribute_onOverrideUrlLoading(this.peer.ptr, registerCallback(callback)); + } + textAutosizingAttribute(textAutosizing: boolean): void { + NativeModule._WebAttribute_textAutosizing(this.peer.ptr, textAutosizing ? 1 : 0); + } + enableNativeMediaPlayerAttribute(config: NativeMediaPlayerConfig): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeNativeMediaPlayerConfig(config) + NativeModule._WebAttribute_enableNativeMediaPlayer(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + enableSmoothDragResizeAttribute(mode: boolean): void { + NativeModule._WebAttribute_enableSmoothDragResize(this.peer.ptr, mode ? 1 : 0); + } + onRenderProcessNotRespondingAttribute(callback: OnRenderProcessNotRespondingCallback): void { + NativeModule._WebAttribute_onRenderProcessNotResponding(this.peer.ptr, registerCallback(callback)); + } + onRenderProcessRespondingAttribute(callback: OnRenderProcessRespondingCallback): void { + NativeModule._WebAttribute_onRenderProcessResponding(this.peer.ptr, registerCallback(callback)); + } + selectionMenuOptionsAttribute(expandedMenuOptions: Array): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeInt8(runtimeType(expandedMenuOptions) as int32) + thisSerializer.writeInt32(expandedMenuOptions.length as int32) + for (let i = 0; i < expandedMenuOptions.length; i++) { + const expandedMenuOptions_element = expandedMenuOptions[i] + thisSerializer.writeExpandedMenuItemOptions(expandedMenuOptions_element) + } + NativeModule._WebAttribute_selectionMenuOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + onViewportFitChangedAttribute(callback: OnViewportFitChangedCallback): void { + NativeModule._WebAttribute_onViewportFitChanged(this.peer.ptr, registerCallback(callback)); + } + onInterceptKeyboardAttachAttribute(callback: WebKeyboardCallback): void { + NativeModule._WebAttribute_onInterceptKeyboardAttach(this.peer.ptr, registerCallback(callback)); + } + onAdsBlockedAttribute(callback: OnAdsBlockedCallback): void { + NativeModule._WebAttribute_onAdsBlocked(this.peer.ptr, registerCallback(callback)); + } + keyboardAvoidModeAttribute(mode: WebKeyboardAvoidMode): void { + NativeModule._WebAttribute_keyboardAvoidMode(this.peer.ptr, (mode.value as int32)); + } + editMenuOptionsAttribute(editMenu: EditMenuOptions): void { + const thisSerializer = SerializerBase.hold(createSerializer) + thisSerializer.writeMaterialized(editMenu) + NativeModule._WebAttribute_editMenuOptions(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); + thisSerializer.release(); + } + enableHapticFeedbackAttribute(enabled: boolean): void { + NativeModule._WebAttribute_enableHapticFeedback(this.peer.ptr, enabled ? 1 : 0); } applyAttributes(attributes: T): void { super.applyAttributes(attributes) } } export interface ArkWebAttributes extends ArkCommonMethodAttributes { - onNativeEmbedLifecycleChange?: ((event: NativeEmbedDataInfo) => void) - onRenderExited?: Callback + javaScriptAccess?: boolean + fileAccess?: boolean + onlineImageAccess?: boolean + domStorageAccess?: boolean + imageAccess?: boolean + mixedMode?: MixedMode + zoomAccess?: boolean + geolocationAccess?: boolean + javaScriptProxy?: JavaScriptProxy + password?: boolean + cacheMode?: CacheMode + darkMode?: WebDarkMode + forceDarkAccess?: boolean + mediaOptions?: WebMediaOptions + tableData?: boolean + wideViewModeAccess?: boolean + overviewModeAccess?: boolean + overScrollMode?: OverScrollMode + textZoomAtio?: number + textZoomRatio?: number + databaseAccess?: boolean + initialScale?: number + userAgent?: string + metaViewport?: boolean + onPageEnd?: Callback + onPageBegin?: Callback + onProgressChange?: Callback + onTitleReceive?: Callback + onGeolocationHide?: (() => void) + onGeolocationShow?: Callback + onRequestSelected?: (() => void) + onAlert?: Callback + onBeforeUnload?: Callback + onConfirm?: Callback + onPrompt?: Callback + onConsole?: Callback + onErrorReceive?: Callback onHttpErrorReceive?: Callback + onDownloadStart?: Callback + onRefreshAccessedHistory?: Callback + onUrlLoadIntercept?: ((event: LITERAL_DataStringWebResourceRequest|undefined) => boolean) + onSslErrorReceive?: ((event: LITERAL_HandlerFunctionErrorObject|undefined) => void) + onRenderExited?: Callback + onShowFileSelector?: Callback + onFileSelectorShow?: ((event: LITERAL_CallbackFunctionFileSelectorObject|undefined) => void) + onResourceLoad?: Callback + onFullScreenExit?: (() => void) + onFullScreenEnter?: OnFullScreenEnterCallback + onScaleChange?: Callback + onHttpAuthRequest?: Callback + onInterceptRequest?: Callback + onPermissionRequest?: Callback + onScreenCaptureRequest?: Callback + onContextMenuShow?: Callback + onContextMenuHide?: OnContextMenuHideCallback + mediaPlayGestureAccess?: boolean + onSearchResultReceive?: Callback + onScroll?: Callback + onSslErrorEventReceive?: Callback + onSslErrorEvent?: OnSslErrorEventCallback + onClientAuthenticationRequest?: Callback + onWindowNew?: Callback + onWindowExit?: (() => void) + multiWindowAccess?: boolean + onInterceptKeyEvent?: ((event: KeyEvent) => boolean) + webStandardFont?: string + webSerifFont?: string + webSansSerifFont?: string + webFixedFont?: string + webFantasyFont?: string + webCursiveFont?: string + defaultFixedFontSize?: number + defaultFontSize?: number + minFontSize?: number + minLogicalFontSize?: number + defaultTextEncodingFormat?: string + forceDisplayScrollBar?: boolean + blockNetwork?: boolean + horizontalScrollBarAccess?: boolean + verticalScrollBarAccess?: boolean + onTouchIconUrlReceived?: Callback + onFaviconReceived?: Callback + onPageVisible?: Callback + onDataResubmitted?: Callback + pinchSmooth?: boolean + allowWindowOpenMethod?: boolean + onAudioStateChanged?: Callback + onFirstContentfulPaint?: Callback + onFirstMeaningfulPaint?: OnFirstMeaningfulPaintCallback + onLargestContentfulPaint?: OnLargestContentfulPaintCallback + onLoadIntercept?: Callback + onControllerAttached?: (() => void) + onOverScroll?: Callback + onSafeBrowsingCheckResult?: OnSafeBrowsingCheckResultCallback + onNavigationEntryCommitted?: OnNavigationEntryCommittedCallback + onIntelligentTrackingPreventionResult?: OnIntelligentTrackingPreventionCallback + javaScriptOnDocumentStart?: Array + javaScriptOnDocumentEnd?: Array + layoutMode?: WebLayoutMode + nestedScroll?: NestedScrollOptions | NestedScrollOptionsExt + enableNativeEmbedMode?: boolean + onNativeEmbedLifecycleChange?: ((event: NativeEmbedDataInfo) => void) + onNativeEmbedVisibilityChange?: OnNativeEmbedVisibilityChangeCallback + onNativeEmbedGestureEvent?: ((event: NativeEmbedTouchInfo) => void) + copyOptions?: CopyOptions + onOverrideUrlLoading?: OnOverrideUrlLoadingCallback + textAutosizing?: boolean + enableNativeMediaPlayer?: NativeMediaPlayerConfig + enableSmoothDragResize?: boolean + onRenderProcessNotResponding?: OnRenderProcessNotRespondingCallback + onRenderProcessResponding?: OnRenderProcessRespondingCallback + selectionMenuOptions?: Array + onViewportFitChanged?: OnViewportFitChangedCallback + onInterceptKeyboardAttach?: WebKeyboardCallback + onAdsBlocked?: OnAdsBlockedCallback + keyboardAvoidMode?: WebKeyboardAvoidMode + editMenuOptions?: EditMenuOptions + enableHapticFeedback?: boolean } diff --git a/arkoala-arkts/arkui/src/generated/peers/Serializer.ts b/arkoala-arkts/arkui/src/generated/peers/Serializer.ts index 22a6479ed..663c870b0 100644 --- a/arkoala-arkts/arkui/src/generated/peers/Serializer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/Serializer.ts @@ -16,62 +16,186 @@ import { SerializerBase, Tags, RuntimeType, runtimeType, isPixelMap, isResource, isInstanceOf } from "./SerializerBase" import { int32 } from "@koalaui/common" -import { ResourceColor, Resource, ResourceStr, Font, Offset, Length, AltOffset, LengthMetricsUnit, Dimension, PX, VP, FP, LPX, Percentage, LengthMetrics, LocalizedPadding } from "./../ArkUnitsInterfaces" -import { Color, TextOverflow, TextHeightAdaptivePolicy, ColoringStrategy, EmbeddedType, Curve, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" -import { IMPORT_Resource_FROM_resource_resource, IMPORT_LengthMetricsUnit_FROM_api_arkui_Graphics, IMPORT_UIContext_FROM_api_ohos_arkui_UIContext, IMPORT_LengthMetrics_FROM_api_arkui_Graphics, IMPORT_ImageModifier_FROM_api_arkui_ImageModifier, IMPORT_default_PixelMap_FROM_resource_image, IMPORT_SymbolGlyphModifier_FROM_resource_symbol, IMPORT_ComponentContent_FROM_api_arkui_ComponentContent, IMPORT_Callback_TerminationInfo_FROM_api_ohos_base, IMPORT_ErrorCallback_FROM_api_ohos_base, IMPORT_default_FROM_api_ohos_app_ability_Want, IMPORT_Callback_NavDestinationContext_FROM_api_ohos_base, IMPORT_default_SystemBarStyle_FROM_api_ohos_window, IMPORT_Callback_PopInfo_FROM_api_ohos_base, IMPORT_Callback_UIExtensionProxy_FROM_api_ohos_base, IMPORT_Callback_key_string_Object_FROM_api_ohos_base, IMPORT_Callback_code_number_want_IMPORT_default_FROM_api_ohos_app_ability_Want_FROM_api_ohos_base, IMPORT_Callback_number_FROM_api_ohos_base, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, LITERAL_TopLengthRightLengthBottomLengthLeftLength, LITERAL_NavBar, LITERAL_Auto, LITERAL_TopResourceColorRightResourceColorBottomResourceColorLeftResourceColor, LITERAL_TopBorderStyleRightBorderStyleBottomBorderStyleLeftBorderStyle } from "./../SyntheticDeclarations" +import { nativeModule } from "#components" +import { AbilityComponentAttribute } from "./../ArkAbilityComponentInterfaces" +import { IMPORT_default_FROM_api_ohos_app_ability_Want, IMPORT_Resource_FROM_api_global_resource, IMPORT_LengthMetricsUnit_FROM_api_arkui_Graphics, IMPORT_default_Canvas_FROM_api_ohos_graphics_drawing, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image, IMPORT_default_VisualEffect_FROM_api_ohos_graphics_uiEffect, IMPORT_default_Filter_FROM_api_ohos_graphics_uiEffect, IMPORT_default_UniformDataType_FROM_api_ohos_data_uniformTypeDescriptor, IMPORT_ComponentContent_T_FROM_api_arkui_ComponentContent, IMPORT_default_Blender_FROM_api_ohos_graphics_uiEffect, IMPORT_CircleShape_FROM_api_ohos_arkui_shape, IMPORT_EllipseShape_FROM_api_ohos_arkui_shape, IMPORT_PathShape_FROM_api_ohos_arkui_shape, IMPORT_RectShape_FROM_api_ohos_arkui_shape, IMPORT_DrawContext_FROM_api_arkui_Graphics, IMPORT_IntentionCode_FROM_api_ohos_multimodalInput_intentionCode, IMPORT_default_UnifiedData_FROM_api_ohos_data_unifiedDataChannel, IMPORT_default_Summary_FROM_api_ohos_data_unifiedDataChannel, IMPORT_ImageModifier_FROM_api_arkui_ImageModifier, IMPORT_SymbolGlyphModifier_FROM_api_arkui_SymbolGlyphModifier, IMPORT_UIContext_FROM_api_ohos_arkui_UIContext, IMPORT_LengthMetrics_FROM_api_arkui_Graphics, IMPORT_Scene_FROM_api_ohos_graphics_scene, IMPORT_Callback_TerminationInfo_FROM_api_ohos_base, IMPORT_ErrorCallback_FROM_api_ohos_base, IMPORT_ColorMetrics_FROM_api_arkui_Graphics, IMPORT_default_WindowStatusType_FROM_api_ohos_window, IMPORT_default_ColorFilter_FROM_api_ohos_graphics_drawing, IMPORT_default_ResolutionQuality_FROM_api_ohos_multimedia_image, IMPORT_DrawableDescriptor_FROM_api_ohos_arkui_drawableDescriptor, IMPORT_default_Lattice_FROM_api_ohos_graphics_drawing, IMPORT_Callback_NavDestinationContext_FROM_api_ohos_base, IMPORT_default_SystemBarStyle_FROM_api_ohos_window, IMPORT_TextModifier_FROM_api_arkui_TextModifier, IMPORT_Callback_PopInfo_FROM_api_ohos_base, IMPORT_NodeController_FROM_api_ohos_arkui_node, IMPORT_Callback_number_FROM_api_ohos_base, IMPORT_default_DateTimeOptions_FROM_api_ohos_intl, IMPORT_default_Affinity_FROM_api_ohos_graphics_text, IMPORT_default_LineMetrics_FROM_api_ohos_graphics_text, IMPORT_default_RectWidthStyle_FROM_api_ohos_graphics_text, IMPORT_default_RectHeightStyle_FROM_api_ohos_graphics_text, IMPORT_default_TextBox_FROM_api_ohos_graphics_text, IMPORT_default_WebviewController_FROM_api_ohos_web_webview, IMPORT_Callback_UIExtensionProxy_FROM_api_ohos_base, IMPORT_Callback_key_string_Object_FROM_api_ohos_base, IMPORT_Callback_code_number_want_IMPORT_default_FROM_api_ohos_app_ability_Want_FROM_api_ohos_base, TEMPLATE_LITERAL_number_PX, TEMPLATE_LITERAL_number_vp, TEMPLATE_LITERAL_number_FP, TEMPLATE_LITERAL_number_LPX, TEMPLATE_LITERAL_number_Percentage, LITERAL_TopLengthRightLengthBottomLengthLeftLength, LITERAL_TopLeftLengthTopRightLengthBottomLeftLengthBottomRightLength, LITERAL_AlignAlignment, LITERAL_TopBorderStyleRightBorderStyleBottomBorderStyleLeftBorderStyle, LITERAL_TopResourceColorRightResourceColorBottomResourceColorLeftResourceColor, LITERAL_TopOutlineStyleRightOutlineStyleBottomOutlineStyleLeftOutlineStyle, LITERAL_TopDimensionRightDimensionBottomDimensionLeftDimension, LITERAL_TopLeftDimensionTopRightDimensionBottomLeftDimensionBottomRightDimension, LITERAL_SpanNumberOffsetNumber, LITERAL_XsNumberLITERALSpanNumberOffsetNumberSmNumberLITERALSpanNumberOffsetNumberMdNumberLITERALSpanNumberOffsetNumberLgNumberLITERALSpanNumberOffsetNumber, LITERAL_AngleNumberstringDirectionGradientDirectionColorsArrayResourceColornumberRepeatingBoolean, LITERAL_CenterLengthLengthStartNumberstringEndNumberstringRotationNumberstringColorsArrayResourceColornumberRepeatingBoolean, LITERAL_CenterLengthLengthRadiusNumberstringColorsArrayResourceColornumberRepeatingBoolean, LITERAL_IsVisibleBoolean, LITERAL_ColorResourceColor, LITERAL_ValueStringActionVoid, LITERAL_FingersNumberAngleNumber, LITERAL_FingersNumberDirectionSwipeDirectionSpeedNumber, LITERAL_FingersNumberDistanceNumber, LITERAL_FingersNumberDirectionPanDirectionDistanceNumber, LITERAL_FingersNumberRepeatBooleanDurationNumber, LITERAL_NavBar, LITERAL_ShownStringPixelMapResourceHiddenStringPixelMapResourceSwitchingStringPixelMapResource, LITERAL_PlainTextString, TextModifier, LITERAL_Auto, LITERAL_AnchorStringAlignHorizontalAlign, LITERAL_AnchorStringAlignVerticalAlign } from "./../SyntheticDeclarations" +import { WordBreak, Color, AnimationStatus, Curve, FillMode, PlayMode, FontWeight, FontStyle, TextOverflow, TextHeightAdaptivePolicy, Axis, CheckBoxShape, HorizontalAlign, FlexAlign, HitTestMode, Alignment, ImageRepeat, ImageSize, BorderStyle, ColoringStrategy, HoverEffect, Visibility, ItemAlign, Direction, GradientDirection, ResponseType, FunctionKey, ModifierKey, ObscuredReasons, RenderFit, LineCapStyle, LineJoinStyle, BarState, EdgeEffect, ScrollSource, PixelRoundCalcPolicy, AccessibilityHoverType, MouseButton, MouseAction, TouchType, KeyType, KeySource, TransitionType, SharedTransitionEffectType, VerticalAlign, ClickEffectLevel, Placement, ArrowPointPosition, IlluminatedType, NestedScrollMode, TextDecorationType, TextDecorationStyle, EmbeddedType, FlexDirection, FlexWrap, FoldStatus, AppRotation, ImageFit, CopyOptions, ImageSpanAlignment, MarqueeUpdateStrategy, TitleHeight, TextAlign, LineBreakStrategy, Edge, OptionWidthMode, TextCase, EllipsisMode, TextSelectableMode, TextContentStyle, XComponentType } from "./../ArkEnumsInterfaces" +import { AlphabetIndexerAttribute, IndexerAlign, OnAlphabetIndexerSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerPopupSelectCallback, AlphabetIndexerOptions } from "./../ArkAlphabetIndexerInterfaces" +import { ResourceColor, Resource, Font, Length, Position, ResourceStr, Offset, LengthMetricsUnit, MarkStyle, Dimension, PX, VP, FP, LPX, Percentage, SizeOptions, ConstraintSizeOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, Bias, LengthMetrics, VoidCallback, ColorMetrics, ColorFilter, LengthConstrain, DividerStyleOptions } from "./../ArkUnitsInterfaces" +import { BlurStyle, CommonConfiguration, PickerTextStyle, Callback, CustomBuilder, PointLightStyle, Optional, SafeAreaType, SafeAreaEdge, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, PixelMap, BackgroundBlurStyleOptions, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, ForegroundBlurStyleOptions, BorderImageOption, OutlineStyle, ClickEvent, HoverEvent, AccessibilityCallback, AccessibilityHoverEvent, MouseEvent, TouchEvent, KeyEvent, AnimateParam, TransitionOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, sharedTransitionOptions, AlignRuleOption, LocalizedAlignRuleOptions, ChainStyle, ClickEffect, DragEvent, DragItemInfo, UniformDataType, DragPreviewOptions, DragInteractionOptions, PreDragStatus, ComponentContent, OverlayOptions, MotionPathOptions, ShadowOptions, ShadowStyle, BlendMode, BlendApplyType, Blender, CircleShape, EllipseShape, PathShape, RectShape, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, StateStyles, VisibleAreaChangeCallback, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, CommonAttribute, EdgeEffectOptions, FadingEdgeOptions, NestedScrollOptions, ScrollResult, OnScrollCallback, RectResult, TouchTestStrategy, BlurStyleOptions, ThemeColorMode, AdaptiveColor, BlurStyleActivePolicy, BlurType, RepeatMode, BaseEvent, EventTarget, SourceType, SourceTool, TouchObject, HistoricalPoint, IntentionCode, FinishCallbackType, ExpectedFrameRateRange, FractionStop, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, DragBehavior, UnifiedData, Summary, DragResult, DragPreviewMode, ImageModifier, OverlayOffset, ShadowType, TransitionHierarchyStrategy, PopupMessageOptions, DismissPopupAction, DismissReason, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, AnimationRange, BindOptions, DismissContentCoverAction, SheetSize, SheetType, SheetTitleOptions, SheetDismiss, DismissSheetAction, SpringBackAction, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, LightSource, MenuPolicy, MultiShadowOptions, ItemDragInfo, LayoutSafeAreaType, LayoutSafeAreaEdge, TextDecorationOptions, InputCounterOptions, CommonShapeMethod, CommonMethod, SelectionOptions, UIGestureEvent } from "./../ArkCommonInterfaces" +import { AnimatorAttribute, SpringMotion, FrictionMotion, ScrollMotion, SpringProp } from "./../ArkAnimatorInterfaces" +import { BadgeParamWithNumber, BadgeAttribute, BadgeParamWithString, BadgeParam, BadgePosition, BadgeStyle } from "./../ArkBadgeInterfaces" import { BlankAttribute } from "./../ArkBlankInterfaces" -import { ButtonType, ButtonAttribute, LabelStyle } from "./../ArkButtonInterfaces" -import { CalendarAlign, CalendarPickerAttribute } from "./../ArkCalendarPickerInterfaces" +import { ButtonType, ButtonAttribute, ButtonStyleMode, ControlSize, ButtonRole, ButtonConfiguration, LabelStyle, ButtonOptions, ButtonTriggerClickCallback } from "./../ArkButtonInterfaces" +import { ContentModifier, TransitionEffect, OnWillScrollCallback, LinearGradient, GestureControl_GestureType } from "./../ConflictedDeclarations" +import { CalendarAttribute, CurrentDayStyle, NonCurrentDayStyle, TodayStyle, WeekStyle, WorkStateStyle, CalendarSelectedDate, CalendarRequestedData, MonthData, CalendarDay } from "./../ArkCalendarInterfaces" +import { CalendarController } from "./../ArkCalendarControllerMaterialized" +import { CalendarAlign, CalendarPickerAttribute, CalendarOptions } from "./../ArkCalendarPickerInterfaces" import { CanvasAttribute, ImageData, RenderingContextSettings } from "./../ArkCanvasInterfaces" import { CanvasRenderingContext2D } from "./../ArkCanvasRenderingContext2DMaterialized" import { DrawingRenderingContext } from "./../ArkDrawingRenderingContextMaterialized" -import { HorizontalAlign, ColumnAttribute, LayoutSafeAreaType, LayoutSafeAreaEdge, TitleHeight } from "./../ArkColumnInterfaces" -import { StateStyles, BlurOptions, Padding, CustomBuilder, SheetOptions, BlurStyle, BackgroundBlurStyleOptions, DragPreviewOptions, DragInteractionOptions, GradientDirection, BorderOptions, TouchTestInfo, AttributeModifier, GestureRecognizerJudgeBeginCallback, ClickEvent, Callback, CommonAttribute, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetDismiss, DismissSheetAction, SpringBackAction, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderStyle, EdgeStyles, ShadowOptions, ShadowStyle, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, DismissReason, ShadowType, BlurStyleOptions, ThemeColorMode, AdaptiveColor, BlurStyleActivePolicy, DragPreviewMode, ImageModifier, RectResult, BaseEvent, SourceTool, PixelMap, SymbolGlyphModifier, CommonConfiguration, ComponentContent, UIGestureEvent } from "./../ArkCommonInterfaces" -import { Optional, ListAttribute, OnScrollVisibleContentChangeCallback, VisibleListContentInfo } from "./../ArkListInterfaces" +import { ImageAIOptions, ImageAnalyzerConfig, ImageAnalyzerType } from "./../ArkImageCommonInterfaces" +import { CheckboxAttribute, OnCheckboxChangeCallback, CheckBoxConfiguration, CheckboxOptions } from "./../ArkCheckboxInterfaces" +import { CheckboxGroupAttribute, OnCheckboxGroupChangeCallback, CheckboxGroupResult, CheckboxGroupOptions, SelectStatus } from "./../ArkCheckboxgroupInterfaces" +import { CircleOptions, CircleAttribute } from "./../ArkCircleInterfaces" +import { ColumnAttribute, ColumnOptions } from "./../ArkColumnInterfaces" +import { ColumnSplitAttribute, ColumnSplitDividerStyle } from "./../ArkColumnSplitInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { ResizableOptions, ImageAttribute, ImageRenderMode, DynamicRangeMode, ImageInterpolation, ImageSourceSize, DrawingColorFilter, ImageErrorCallback, ImageError, ResolutionQuality, DrawableDescriptor, ImageContent, DrawingLattice } from "./../ArkImageInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { GestureType, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureMask, GestureInfo, BaseGestureEvent, GestureJudgeResult, GestureHandler, GesturePriority, GestureInterface, TapGestureParameters, GestureEvent, FingerInfo, PanDirection, SwipeDirection, GestureMode } from "./../ArkGestureInterfaces" +import { EllipseAttribute } from "./../ArkEllipseInterfaces" +import { PathAttribute } from "./../ArkPathInterfaces" +import { RectAttribute } from "./../ArkRectInterfaces" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../ArkAttributeModifierMaterialized" import { GestureModifier } from "./../ArkGestureModifierMaterialized" -import { BaseGestureEvent, GestureJudgeResult, GestureHandler, GesturePriority, GestureMask, GestureInterface, FingerInfo } from "./../ArkGestureInterfaces" import { GestureRecognizer } from "./../ArkGestureRecognizerMaterialized" -import { ContentModifier } from "./../ConflictedDeclarations" +import { ScrollState, ListAttribute, ListItemAlign, ListDividerOptions, ChainAnimationOptions, StickyStyle, ScrollSnapAlign, OnScrollVisibleContentChangeCallback, VisibleListContentInfo, ListOptions, ChainEdgeEffect, ListItemGroupArea } from "./../ArkListInterfaces" +import { ICurve } from "./../ArkICurveMaterialized" +import { Component3DAttribute, SceneOptions, Scene, ModelType } from "./../ArkComponent3dInterfaces" +import { TextBackgroundStyle, SpanAttribute } from "./../ArkSpanInterfaces" +import { ContainerSpanAttribute } from "./../ArkContainerSpanInterfaces" +import { CounterAttribute } from "./../ArkCounterInterfaces" +import { DataPanelAttribute, DataPanelShadowOptions, DataPanelConfiguration, DataPanelOptions, DataPanelType } from "./../ArkDataPanelInterfaces" +import { DatePickerAttribute, DatePickerResult, DatePickerOptions } from "./../ArkDatePickerInterfaces" +import { DividerAttribute } from "./../ArkDividerInterfaces" +import { EffectComponentAttribute } from "./../ArkEffectComponentInterfaces" import { EmbeddedComponentAttribute, TerminationInfo } from "./../ArkEmbeddedComponentInterfaces" -import { FormComponentAttribute, FormCallbackInfo } from "./../ArkFormComponentInterfaces" +import { FlexAttribute, FlexOptions, FlexSpaceOptions } from "./../ArkFlexInterfaces" +import { FlowItemAttribute } from "./../ArkFlowItemInterfaces" +import { FolderStackAttribute, OnFoldStatusChangeCallback, OnFoldStatusChangeInfo, OnHoverStatusChangeCallback, HoverEventParam, FolderStackOptions, WindowStatusType } from "./../ArkFolderStackInterfaces" +import { FormComponentAttribute, FormDimension, FormCallbackInfo, FormInfo, FormRenderingMode, FormShape } from "./../ArkFormComponentInterfaces" +import { FormLinkOptions, FormLinkAttribute } from "./../ArkFormLinkInterfaces" +import { GaugeAttribute, GaugeShadowOptions, GaugeIndicatorOptions, GaugeConfiguration, GaugeOptions } from "./../ArkGaugeInterfaces" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { GridAttribute, ComputedBarAttribute, GridDirection, GridItemAlignment, GridLayoutOptions } from "./../ArkGridInterfaces" +import { Scroller } from "./../ArkScrollerMaterialized" +import { GridItemAttribute, GridItemOptions, GridItemStyle } from "./../ArkGridItemInterfaces" +import { GridColColumnOption, GridColAttribute, GridColOptions } from "./../ArkGridColInterfaces" import { GridContainerOptions, GridContainerAttribute, SizeType } from "./../ArkGridContainerInterfaces" -import { ImageAttribute } from "./../ArkImageInterfaces" -import { NavDestinationCommonTitle, NavDestinationCustomTitle, NavDestinationAttribute, NavDestinationMode } from "./../ArkNavDestinationInterfaces" +import { GridRowAttribute, GridRowOptions, GutterOption, GridRowColumnOption, BreakPoints, GridRowDirection, GridRowSizeOption, BreakpointsReference } from "./../ArkGridRowInterfaces" +import { HyperlinkAttribute } from "./../ArkHyperlinkInterfaces" +import { ImageFrameInfo, ImageAnimatorAttribute } from "./../ArkImageAnimatorInterfaces" +import { ImageAnalyzerController } from "./../ArkImageAnalyzerControllerMaterialized" +import { ImageSpanAttribute, ImageCompleteCallback, ImageLoadResult } from "./../ArkImageSpanInterfaces" +import { LineAttribute } from "./../ArkLineInterfaces" +import { ChildrenMainSize } from "./../ArkChildrenMainSizeMaterialized" +import { Sticky, ListItemAttribute, EditMode, SwipeActionOptions, ListItemOptions, SwipeActionItem, SwipeEdgeEffect, SwipeActionState, ListItemStyle } from "./../ArkListItemInterfaces" +import { ListItemGroupAttribute, ListItemGroupOptions, ListItemGroupStyle } from "./../ArkListItemGroupInterfaces" +import { LoadingProgressAttribute, LoadingProgressConfiguration } from "./../ArkLoadingProgressInterfaces" +import { LocationButtonOnClickResult, LocationButtonAttribute, LocationButtonOptions, LocationIconStyle, LocationDescription } from "./../ArkLocationButtonInterfaces" +import { MarqueeAttribute, MarqueeOptions } from "./../ArkMarqueeInterfaces" +import { ASTCResource, MediaCachedImageAttribute } from "./../ArkMediaCachedImageInterfaces" +import { MenuAttribute, SubMenuExpandingMode } from "./../ArkMenuInterfaces" +import { MenuItemAttribute, MenuItemOptions } from "./../ArkMenuItemInterfaces" +import { MenuItemGroupOptions, MenuItemGroupAttribute } from "./../ArkMenuItemGroupInterfaces" +import { NavDestinationCommonTitle, NavDestinationCustomTitle, NavDestinationAttribute, NavDestinationMode, NavigationSystemTransitionType } from "./../ArkNavDestinationInterfaces" import { NavigationTitleOptions, NavigationMenuItem, SystemBarStyle, NavigationAttribute, NavBarPosition, NavigationMode, NavigationCommonTitle, NavigationCustomTitle, NavigationTitleMode, ToolbarItem, NavigationToolbarOptions, NavContentInfo, NavigationOperation, NavigationAnimatedTransition, BarStyle, NavPathInfo, LaunchMode, InterceptionShowCallback, NavBar, InterceptionModeCallback, ToolbarItemStatus, NavigationInterception, NavigationOptions, PopInfo } from "./../ArkNavigationInterfaces" +import { NavRouterAttribute, NavRouteMode, RouteInfo } from "./../ArkNavRouterInterfaces" import { NavPathStack } from "./../ArkNavPathStackMaterialized" import { NavDestinationContext } from "./../ArkNavDestinationContextMaterialized" import { NavigationTransitionProxy } from "./../ArkNavigationTransitionProxyMaterialized" -import { RectAttribute } from "./../ArkRectInterfaces" -import { Scroller } from "./../ArkScrollerMaterialized" -import { ScrollAttribute, ScrollAnimationOptions } from "./../ArkScrollInterfaces" -import { ICurve } from "./../ArkICurveMaterialized" -import { MenuItemConfiguration, SelectAttribute, SelectOption } from "./../ArkSelectInterfaces" +import { NavigatorAttribute, NavigationType } from "./../ArkNavigatorInterfaces" +import { NodeContainerAttribute } from "./../ArkNodeContainerInterfaces" +import { PanelMode, PanelAttribute, PanelType, PanelHeight } from "./../ArkPanelInterfaces" +import { PasteButtonOnClickResult, PasteButtonAttribute, PasteButtonOptions, PasteIconStyle, PasteDescription } from "./../ArkPasteButtonInterfaces" +import { PatternLockAttribute, CircleStyleOptions } from "./../ArkPatternLockInterfaces" +import { PatternLockController } from "./../ArkPatternLockControllerMaterialized" +import { PluginComponentAttribute, PluginComponentTemplate } from "./../ArkPluginComponentInterfaces" +import { PolygonAttribute } from "./../ArkPolygonInterfaces" +import { PolylineAttribute } from "./../ArkPolylineInterfaces" +import { QRCodeAttribute } from "./../ArkQrcodeInterfaces" +import { RadioAttribute, RadioStyle, RadioConfiguration, RadioOptions, RadioIndicatorType } from "./../ArkRadioInterfaces" +import { RatingAttribute, StarStyleOptions, RatingConfiguration, RatingOptions } from "./../ArkRatingInterfaces" +import { RefreshStatus, RefreshAttribute, RefreshOptions } from "./../ArkRefreshInterfaces" +import { GuideLineStyle, RelativeContainerAttribute, BarrierStyle, LocalizedBarrierStyle, GuideLinePosition, BarrierDirection, LocalizedBarrierDirection } from "./../ArkRelativeContainerInterfaces" +import { RichEditorAttribute, RichEditorSelection, RichEditorRange, RichEditorInsertValue, RichEditorTextSpanResult, RichEditorDeleteValue, RichEditorSpanType, RichEditorResponseType, SelectionMenuOptions, KeyboardOptions, PasteEventCallback, PasteEvent, PlaceholderStyle, SubmitCallback, RichEditorChangeValue, CutEvent, CopyEvent, RichEditorOptions, RichEditorStyledStringOptions, RichEditorImageSpanResult, RichEditorSpanPosition, RichEditorTextStyleResult, RichEditorSymbolSpanStyle, RichEditorParagraphStyle, LeadingMarginPlaceholder, RichEditorImageSpanStyleResult, RichEditorLayoutStyle, RichEditorDeleteDirection, MenuOnAppearCallback, RichEditorTextStyle, RichEditorGesture, RichEditorImageSpanStyle, RichEditorSpanStyleOptions, RichEditorUpdateSymbolSpanStyleOptions, RichEditorUpdateImageSpanStyleOptions, RichEditorUpdateTextSpanStyleOptions, RichEditorParagraphStyleOptions, RichEditorSymbolSpanOptions, RichEditorBuilderSpanOptions, RichEditorImageSpanOptions, RichEditorTextSpanOptions } from "./../ArkRichEditorInterfaces" +import { TextRange, TextDataDetectorConfig, OnDidChangeCallback, DecorationStyleResult, MenuType, CaretStyle, EditableTextOnChangeCallback, PreviewText, InsertValue, DeleteValue, FontSettingOptions, TextDataDetectorType, TextMenuItemId, Affinity, StyledStringChangeValue, TextDeleteDirection, StyledStringChangedListener, TextMenuItem } from "./../ArkTextCommonInterfaces" +import { EnterKeyType, SubmitEvent, InputType, TextInputAttribute, TextInputStyle, PasswordIcon, UnderlineColor, TextInputOptions } from "./../ArkTextInputInterfaces" +import { EditMenuOptions } from "./../ArkEditMenuOptionsMaterialized" +import { SymbolEffectStrategy, SymbolRenderingStrategy, SymbolGlyphAttribute, SymbolEffect } from "./../ArkSymbolglyphInterfaces" +import { RichEditorController } from "./../ArkRichEditorControllerMaterialized" +import { DecorationStyleInterface, ImageAttachmentInterface, ImageAttachmentLayoutStyle, StyledStringKey, StyledStringValue, DecorationStyle, BaselineOffsetStyle, LetterSpacingStyle, TextShadowStyle, GestureStyle, ImageAttachment, ParagraphStyle, LineHeightStyle, UrlStyle, UserDataSpan, BackgroundColorStyle, GestureStyleInterface, ParagraphStyleInterface, SpanStyle, CustomSpanDrawInfo, CustomSpanMeasureInfo, StyleOptions } from "./../ArkStyledStringInterfaces" +import { RichEditorStyledStringController } from "./../ArkRichEditorStyledStringControllerMaterialized" +import { RichTextAttribute } from "./../ArkRichTextInterfaces" +import { RootSceneSession, RootSceneAttribute } from "./../ArkRootSceneInterfaces" +import { RowAttribute, RowOptions } from "./../ArkRowInterfaces" +import { RowSplitAttribute } from "./../ArkRowSplitInterfaces" +import { SaveButtonOnClickResult, SaveButtonAttribute, SaveButtonOptions, SaveIconStyle, SaveDescription } from "./../ArkSaveButtonInterfaces" +import { ScreenAttribute } from "./../ArkScreenInterfaces" +import { ScrollDirection, ScrollAttribute, ScrollOnWillScrollCallback, OffsetResult, ScrollOnScrollCallback, OnScrollEdgeCallback, OnScrollFrameBeginCallback, OnScrollFrameBeginHandlerResult, ScrollSnapOptions, OffsetOptions, ScrollAnimationOptions, ScrollToIndexOptions, ScrollEdgeOptions, ScrollOptions } from "./../ArkScrollInterfaces" +import { ScrollBarAttribute, ScrollBarOptions, ScrollBarDirection } from "./../ArkScrollBarInterfaces" +import { SearchButtonOptions, SearchAttribute, IconOptions, CancelButtonOptions, CancelButtonSymbolOptions, SearchType, CancelButtonStyle } from "./../ArkSearchInterfaces" +import { SearchController } from "./../ArkSearchControllerMaterialized" +import { SecurityComponentLayoutDirection } from "./../ArkSecurityComponentInterfaces" +import { SelectAttribute, ArrowPosition, MenuAlignType, MenuItemConfiguration, SelectOption } from "./../ArkSelectInterfaces" +import { DividerOptions, TextPickerAttribute, TextPickerOptions, TextPickerRangeContent, TextCascadePickerRangeContent } from "./../ArkTextPickerInterfaces" import { ShapeAttribute } from "./../ArkShapeInterfaces" -import { SideBarContainerAttribute } from "./../ArkSidebarInterfaces" -import { SwiperAttribute } from "./../ArkSwiperInterfaces" +import { SliderAttribute, SliderChangeMode, SliderBlockStyle, SliderInteraction, SliderConfiguration, SlideRange, SliderOptions, SliderBlockType, SliderTriggerChangeCallback, SliderStyle } from "./../ArkSliderInterfaces" +import { StackAttribute, StackOptions } from "./../ArkStackInterfaces" +import { StepperAttribute } from "./../ArkStepperInterfaces" +import { StepperItemAttribute, ItemState } from "./../ArkStepperItemInterfaces" +import { SwiperAttribute, ArrowStyle, SwiperDisplayMode, SwiperAutoFill, IndicatorStyle, SwiperAnimationEvent, SwiperNestedScrollMode, SwiperContentAnimatedTransition, ContentDidScrollCallback } from "./../ArkSwiperInterfaces" import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SwiperController } from "./../ArkSwiperControllerMaterialized" -import { SymbolGlyphAttribute } from "./../ArkSymbolglyphInterfaces" +import { SwiperContentTransitionProxy } from "./../ArkSwiperContentTransitionProxyMaterialized" +import { SymbolSpanAttribute } from "./../ArkSymbolSpanInterfaces" +import { TabsAttribute, BarPosition, BarMode, ScrollableBarModeOptions, AnimationMode, TabsAnimationEvent, DividerStyle, BarGridColumnOptions, TabContentAnimatedTransition, LayoutStyle } from "./../ArkTabsInterfaces" +import { TabsController } from "./../ArkTabsControllerMaterialized" +import { TabContentTransitionProxy } from "./../ArkTabContentTransitionProxyMaterialized" +import { TabContentAttribute, TabBarSymbol, TabBarIconStyle, BoardStyle, LayoutMode, SelectedMode } from "./../ArkTabContentInterfaces" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" -import { TabContentAttribute, TabBarSymbol, BoardStyle, IndicatorStyle, SelectedMode } from "./../ArkTabContentInterfaces" import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" -import { BarMode, TabsAttribute } from "./../ArkTabsInterfaces" -import { TestAttribute, EnumDTS, BooleanInterfaceDTS, NumberInterfaceDTS, StringInterfaceDTS, UnionInterfaceDTS, UnionOptionalInterfaceDTS, TupleInterfaceDTS, OptionInterfaceDTS, ArrayRefNumberInterfaceDTS, ClassDTS, ClassWithConstructorDTS, ClassWithConstructorAndFieldsDTS } from "./../ArkTestInterfaces" -import { ClassWithConstructorAndMethodsDTS } from "./../ArkClassWithConstructorAndMethodsDTSMaterialized" -import { ClassWithConstructorAndStaticMethodsDTS } from "./../ArkClassWithConstructorAndStaticMethodsDTSMaterialized" -import { ClassWithConstructorAndFieldsAndMethodsDTS } from "./../ArkClassWithConstructorAndFieldsAndMethodsDTSMaterialized" -import { ClassWithConstructorAndNonOptionalParamsDTS } from "./../ArkClassWithConstructorAndNonOptionalParamsDTSMaterialized" -import { ClassWithConstructorAndSomeOptionalParamsDTS } from "./../ArkClassWithConstructorAndSomeOptionalParamsDTSMaterialized" -import { ClassWithConstructorAndAllOptionalParamsDTS } from "./../ArkClassWithConstructorAndAllOptionalParamsDTSMaterialized" -import { ClassWithConstructorAndWithoutParamsDTS } from "./../ArkClassWithConstructorAndWithoutParamsDTSMaterialized" -import { TextAttribute, TextOptions } from "./../ArkTextInterfaces" +import { TextAttribute, TextOverflowOptions, TextSpanType, TextResponseType, TextOptions } from "./../ArkTextInterfaces" import { TextController } from "./../ArkTextControllerMaterialized" -import { InputType, TextInputAttribute, ContentType, TextInputOptions } from "./../ArkTextInputInterfaces" -import { TextPickerAttribute, DividerOptions, TextPickerOptions, TextPickerRangeContent, TextCascadePickerRangeContent } from "./../ArkTextPickerInterfaces" -import { UIExtensionComponentAttribute, UIExtensionOptions, DpiFollowStrategy } from "./../ArkUiExtensionComponentInterfaces" -import { Vector1, VectorAttribute, Vector2 } from "./../ArkVectorInterfaces" -import { NativeEmbedDataInfo, WebAttribute, OnRenderExitedEvent, OnHttpErrorReceiveEvent, NativeEmbedInfo, RenderExitReason } from "./../ArkWebInterfaces" +import { TextAreaAttribute, TextAreaType, ContentType, TextAreaOptions } from "./../ArkTextAreaInterfaces" +import { TextAreaController } from "./../ArkTextAreaControllerMaterialized" +import { TextClockAttribute, TextClockConfiguration, TextClockOptions } from "./../ArkTextClockInterfaces" +import { DateTimeOptions, TimePickerAttribute, TimePickerResult, TimePickerOptions, TimePickerFormat } from "./../ArkTimePickerInterfaces" +import { TextClockController } from "./../ArkTextClockControllerMaterialized" +import { StyledString } from "./../ArkStyledStringMaterialized" +import { TextInputController } from "./../ArkTextInputControllerMaterialized" +import { TextTimerAttribute, TextTimerConfiguration, TextTimerOptions } from "./../ArkTextTimerInterfaces" +import { TextTimerController } from "./../ArkTextTimerControllerMaterialized" +import { ToggleAttribute, ToggleConfiguration, SwitchStyle, ToggleOptions, ToggleType } from "./../ArkToggleInterfaces" +import { VideoAttribute, VideoOptions, PlaybackSpeed } from "./../ArkVideoInterfaces" +import { VideoController } from "./../ArkVideoControllerMaterialized" +import { WebAttribute, MixedMode, JavaScriptProxy, CacheMode, WebDarkMode, WebMediaOptions, OverScrollMode, OnPageEndEvent, OnPageBeginEvent, OnProgressChangeEvent, OnTitleReceiveEvent, OnGeolocationShowEvent, OnAlertEvent, OnBeforeUnloadEvent, OnConfirmEvent, OnPromptEvent, OnConsoleEvent, OnErrorReceiveEvent, OnHttpErrorReceiveEvent, OnDownloadStartEvent, OnRefreshAccessedHistoryEvent, OnRenderExitedEvent, OnShowFileSelectorEvent, OnResourceLoadEvent, OnFullScreenEnterCallback, FullScreenEnterEvent, OnScaleChangeEvent, OnHttpAuthRequestEvent, OnInterceptRequestEvent, OnPermissionRequestEvent, OnScreenCaptureRequestEvent, OnContextMenuShowEvent, OnContextMenuHideCallback, OnSearchResultReceiveEvent, OnScrollEvent, OnSslErrorEventReceiveEvent, OnSslErrorEventCallback, SslErrorEvent, OnClientAuthenticationEvent, OnWindowNewEvent, OnTouchIconUrlReceivedEvent, OnFaviconReceivedEvent, OnPageVisibleEvent, OnDataResubmittedEvent, OnAudioStateChangedEvent, OnFirstContentfulPaintEvent, OnFirstMeaningfulPaintCallback, FirstMeaningfulPaint, OnLargestContentfulPaintCallback, LargestContentfulPaint, OnLoadInterceptEvent, OnOverScrollEvent, OnSafeBrowsingCheckResultCallback, ThreatType, OnNavigationEntryCommittedCallback, LoadCommittedDetails, OnIntelligentTrackingPreventionCallback, IntelligentTrackingPreventionDetails, ScriptItem, WebLayoutMode, NestedScrollOptionsExt, NativeEmbedDataInfo, OnNativeEmbedVisibilityChangeCallback, NativeEmbedVisibilityInfo, NativeEmbedTouchInfo, OnOverrideUrlLoadingCallback, NativeMediaPlayerConfig, OnRenderProcessNotRespondingCallback, RenderProcessNotRespondingData, OnRenderProcessRespondingCallback, ExpandedMenuItemOptions, OnViewportFitChangedCallback, ViewportFit, WebKeyboardCallback, WebKeyboardCallbackInfo, WebKeyboardOptions, OnAdsBlockedCallback, AdsBlockedDetails, WebKeyboardAvoidMode, WebOptions, WebviewController, RenderExitReason, WebCaptureMode, SslError, WebNavigationType, NativeEmbedStatus, NativeEmbedInfo, RenderProcessNotRespondingReason, RenderMode, ScreenCaptureConfig, Header } from "./../ArkWebInterfaces" +import { WebResourceRequest } from "./../ArkWebResourceRequestMaterialized" import { WebResourceResponse } from "./../ArkWebResourceResponseMaterialized" +import { WebController } from "./../ArkWebControllerMaterialized" +import { JsGeolocation } from "./../ArkJsGeolocationMaterialized" +import { JsResult } from "./../ArkJsResultMaterialized" +import { ConsoleMessage } from "./../ArkConsoleMessageMaterialized" +import { WebResourceError } from "./../ArkWebResourceErrorMaterialized" +import { FileSelectorResult } from "./../ArkFileSelectorResultMaterialized" +import { FileSelectorParam } from "./../ArkFileSelectorParamMaterialized" +import { FullScreenExitHandler } from "./../ArkFullScreenExitHandlerMaterialized" +import { HttpAuthHandler } from "./../ArkHttpAuthHandlerMaterialized" +import { PermissionRequest } from "./../ArkPermissionRequestMaterialized" +import { ScreenCaptureHandler } from "./../ArkScreenCaptureHandlerMaterialized" +import { WebContextMenuParam } from "./../ArkWebContextMenuParamMaterialized" +import { WebContextMenuResult } from "./../ArkWebContextMenuResultMaterialized" +import { SslErrorHandler } from "./../ArkSslErrorHandlerMaterialized" +import { ClientAuthenticationHandler } from "./../ArkClientAuthenticationHandlerMaterialized" +import { ControllerHandler } from "./../ArkControllerHandlerMaterialized" +import { DataResubmissionHandler } from "./../ArkDataResubmissionHandlerMaterialized" +import { EventResult } from "./../ArkEventResultMaterialized" +import { WebKeyboardController } from "./../ArkWebKeyboardControllerMaterialized" +import { WindowSceneAttribute } from "./../ArkWindowSceneInterfaces" +import { XComponentAttribute, XComponentOptions, SurfaceRotationOptions, SurfaceRect } from "./../ArkXcomponentInterfaces" +import { XComponentController } from "./../ArkXComponentControllerMaterialized" +import { SideBarContainerAttribute, ButtonStyle, SideBarPosition, SideBarContainerType } from "./../ArkSidebarInterfaces" +import { WindowAnimationTarget, RemoteWindowAttribute, RRect } from "./../ArkRemoteWindowInterfaces" +import { WaterFlowAttribute, WaterFlowOptions, WaterFlowLayoutMode, GetItemMainSizeByIndex, SectionOptions } from "./../ArkWaterFlowInterfaces" +import { WaterFlowSections } from "./../ArkWaterFlowSectionsMaterialized" +import { UIExtensionComponentAttribute, UIExtensionOptions, DpiFollowStrategy } from "./../ArkUiExtensionComponentInterfaces" +import { TextStyle } from "./../ArkAlertDialogInterfaces" +import { CustomSpan } from "./../ArkCustomSpanMaterialized" +import { LinearIndicatorStyle, LinearIndicatorAttribute, OnLinearIndicatorChangeCallback, LinearIndicatorStartOptions } from "./../ArkLinearindicatorInterfaces" +import { LinearIndicatorController } from "./../ArkLinearIndicatorControllerMaterialized" import { TypeChecker } from "#components" import { KInt } from "@koalaui/interop" import { Indicator } from "./../ArkIndicatorBuilder" @@ -106,123 +230,378 @@ export class Serializer extends SerializerBase { } } } - writeTabBarSymbol(value: TabBarSymbol): void { + writePosition(value: Position): void { let valueSerializer = this - const value_normal = value.normal - valueSerializer.writeCustomObject("SymbolGlyphModifier", value_normal) - const value_selected = value.selected - let value_selected_type = RuntimeType.UNDEFINED - if (value_selected != undefined) { - value_selected_type = RuntimeType.OBJECT + const value_x = value.x + let value_x_type = RuntimeType.UNDEFINED + if (value_x != undefined) { + value_x_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_selected_type as int32) - if ((RuntimeType.UNDEFINED) != (value_selected_type)) { - const value_selected_value = value_selected! - valueSerializer.writeCustomObject("SymbolGlyphModifier", value_selected_value) + valueSerializer.writeInt8(value_x_type as int32) + if ((RuntimeType.UNDEFINED) != (value_x_type)) { + const value_x_value = value_x! + valueSerializer.writeLength(value_x_value); + } + const value_y = value.y + let value_y_type = RuntimeType.UNDEFINED + if (value_y != undefined) { + value_y_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_y_type as int32) + if ((RuntimeType.UNDEFINED) != (value_y_type)) { + const value_y_value = value_y! + valueSerializer.writeLength(value_y_value); } } - writeLocalizedPadding(value: LocalizedPadding): void { + writeArea(value: Area): void { let valueSerializer = this - const value_top = value.top - let value_top_type = RuntimeType.UNDEFINED - if (value_top != undefined) { - value_top_type = RuntimeType.OBJECT + const value_width = value.width + valueSerializer.writeLength(value_width); + const value_height = value.height + valueSerializer.writeLength(value_height); + const value_position = value.position + valueSerializer.writePosition(value_position) + const value_globalPosition = value.globalPosition + valueSerializer.writePosition(value_globalPosition) + } + writeLeadingMarginPlaceholder(value: LeadingMarginPlaceholder): void { + let valueSerializer = this + const value_pixelMap = value.pixelMap + valueSerializer.writeCustomObject("PixelMap", value_pixelMap) + const value_size = value.size + valueSerializer.writeInt8(runtimeType(value_size) as int32) + const value_size_0 = value_size[0] + valueSerializer.writeLength(value_size_0); + const value_size_1 = value_size[1] + valueSerializer.writeLength(value_size_1); + } + writeShadowOptions(value: ShadowOptions): void { + let valueSerializer = this + const value_radius = value.radius + let value_radius_type = RuntimeType.UNDEFINED + value_radius_type = runtimeType(value_radius) + if (((RuntimeType.NUMBER == value_radius_type))) { + valueSerializer.writeInt8(0 as int32) + const value_radius_0 = value_radius as number + valueSerializer.writeNumber(value_radius_0) } - valueSerializer.writeInt8(value_top_type as int32) - if ((RuntimeType.UNDEFINED) != (value_top_type)) { - const value_top_value = value_top! - valueSerializer.writeCustomObject("LengthMetrics", value_top_value) + else if (((RuntimeType.OBJECT == value_radius_type))) { + valueSerializer.writeInt8(1 as int32) + const value_radius_1 = value_radius as Resource + valueSerializer.writeResource(value_radius_1) } - const value_end = value.end - let value_end_type = RuntimeType.UNDEFINED - if (value_end != undefined) { - value_end_type = RuntimeType.OBJECT + const value_type = value.type + let value_type_type = RuntimeType.UNDEFINED + if (value_type != undefined) { + value_type_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_end_type as int32) - if ((RuntimeType.UNDEFINED) != (value_end_type)) { - const value_end_value = value_end! - valueSerializer.writeCustomObject("LengthMetrics", value_end_value) + valueSerializer.writeInt8(value_type_type as int32) + if ((RuntimeType.UNDEFINED) != (value_type_type)) { + const value_type_value = value_type! + valueSerializer.writeInt32((value_type_value.value as int32)) } - const value_bottom = value.bottom - let value_bottom_type = RuntimeType.UNDEFINED - if (value_bottom != undefined) { - value_bottom_type = RuntimeType.OBJECT + const value_color = value.color + let value_color_type = RuntimeType.UNDEFINED + if (value_color != undefined) { + value_color_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_bottom_type as int32) - if ((RuntimeType.UNDEFINED) != (value_bottom_type)) { - const value_bottom_value = value_bottom! - valueSerializer.writeCustomObject("LengthMetrics", value_bottom_value) + valueSerializer.writeInt8(value_color_type as int32) + if ((RuntimeType.UNDEFINED) != (value_color_type)) { + const value_color_value = value_color! + let value_color_value_type = RuntimeType.UNDEFINED + value_color_value_type = runtimeType(value_color_value) + if (((RuntimeType.OBJECT) == (value_color_value_type)) && (value_color_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_color_value_0 = value_color_value as Color + valueSerializer.writeInt32((value_color_value_0.value as int32)) + } + else if (((RuntimeType.STRING == value_color_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_color_value_1 = value_color_value as string + valueSerializer.writeString(value_color_value_1) + } + else if (isResource(value_color_value)) { + valueSerializer.writeInt8(2 as int32) + const value_color_value_2 = value_color_value as Resource + valueSerializer.writeResource(value_color_value_2) + } + else if (((RuntimeType.OBJECT) == (value_color_value_type)) && (value_color_value instanceof ColoringStrategy)) { + valueSerializer.writeInt8(3 as int32) + const value_color_value_3 = value_color_value as ColoringStrategy + valueSerializer.writeInt32((value_color_value_3.ordinal as int32)) + } } - const value_start = value.start - let value_start_type = RuntimeType.UNDEFINED - if (value_start != undefined) { - value_start_type = RuntimeType.OBJECT + const value_offsetX = value.offsetX + let value_offsetX_type = RuntimeType.UNDEFINED + if (value_offsetX != undefined) { + value_offsetX_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_start_type as int32) - if ((RuntimeType.UNDEFINED) != (value_start_type)) { - const value_start_value = value_start! - valueSerializer.writeCustomObject("LengthMetrics", value_start_value) + valueSerializer.writeInt8(value_offsetX_type as int32) + if ((RuntimeType.UNDEFINED) != (value_offsetX_type)) { + const value_offsetX_value = value_offsetX! + let value_offsetX_value_type = RuntimeType.UNDEFINED + value_offsetX_value_type = runtimeType(value_offsetX_value) + if (((RuntimeType.NUMBER == value_offsetX_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_offsetX_value_0 = value_offsetX_value as number + valueSerializer.writeNumber(value_offsetX_value_0) + } + else if (((RuntimeType.OBJECT == value_offsetX_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_offsetX_value_1 = value_offsetX_value as Resource + valueSerializer.writeResource(value_offsetX_value_1) + } + } + const value_offsetY = value.offsetY + let value_offsetY_type = RuntimeType.UNDEFINED + if (value_offsetY != undefined) { + value_offsetY_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_offsetY_type as int32) + if ((RuntimeType.UNDEFINED) != (value_offsetY_type)) { + const value_offsetY_value = value_offsetY! + let value_offsetY_value_type = RuntimeType.UNDEFINED + value_offsetY_value_type = runtimeType(value_offsetY_value) + if (((RuntimeType.NUMBER == value_offsetY_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_offsetY_value_0 = value_offsetY_value as number + valueSerializer.writeNumber(value_offsetY_value_0) + } + else if (((RuntimeType.OBJECT == value_offsetY_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_offsetY_value_1 = value_offsetY_value as Resource + valueSerializer.writeResource(value_offsetY_value_1) + } + } + const value_fill = value.fill + let value_fill_type = RuntimeType.UNDEFINED + if (value_fill != undefined) { + value_fill_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_fill_type as int32) + if ((RuntimeType.UNDEFINED) != (value_fill_type)) { + const value_fill_value = value_fill! + valueSerializer.writeBoolean(value_fill_value) } } - writeFont(value: Font): void { + writeGridRowSizeOption(value: GridRowSizeOption): void { let valueSerializer = this - const value_size = value.size - let value_size_type = RuntimeType.UNDEFINED - if (value_size != undefined) { - value_size_type = RuntimeType.OBJECT - } - valueSerializer.writeInt8(value_size_type as int32) - if ((RuntimeType.UNDEFINED) != (value_size_type)) { - const value_size_value = value_size! - valueSerializer.writeLength(value_size_value); + const value_xs = value.xs + let value_xs_type = RuntimeType.UNDEFINED + if (value_xs != undefined) { + value_xs_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_xs_type as int32) + if ((RuntimeType.UNDEFINED) != (value_xs_type)) { + const value_xs_value = value_xs! + valueSerializer.writeLength(value_xs_value); + } + const value_sm = value.sm + let value_sm_type = RuntimeType.UNDEFINED + if (value_sm != undefined) { + value_sm_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_sm_type as int32) + if ((RuntimeType.UNDEFINED) != (value_sm_type)) { + const value_sm_value = value_sm! + valueSerializer.writeLength(value_sm_value); + } + const value_md = value.md + let value_md_type = RuntimeType.UNDEFINED + if (value_md != undefined) { + value_md_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_md_type as int32) + if ((RuntimeType.UNDEFINED) != (value_md_type)) { + const value_md_value = value_md! + valueSerializer.writeLength(value_md_value); + } + const value_lg = value.lg + let value_lg_type = RuntimeType.UNDEFINED + if (value_lg != undefined) { + value_lg_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_lg_type as int32) + if ((RuntimeType.UNDEFINED) != (value_lg_type)) { + const value_lg_value = value_lg! + valueSerializer.writeLength(value_lg_value); + } + const value_xl = value.xl + let value_xl_type = RuntimeType.UNDEFINED + if (value_xl != undefined) { + value_xl_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_xl_type as int32) + if ((RuntimeType.UNDEFINED) != (value_xl_type)) { + const value_xl_value = value_xl! + valueSerializer.writeLength(value_xl_value); + } + const value_xxl = value.xxl + let value_xxl_type = RuntimeType.UNDEFINED + if (value_xxl != undefined) { + value_xxl_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_xxl_type as int32) + if ((RuntimeType.UNDEFINED) != (value_xxl_type)) { + const value_xxl_value = value_xxl! + valueSerializer.writeLength(value_xxl_value); } - const value_weight = value.weight - let value_weight_type = RuntimeType.UNDEFINED - if (value_weight != undefined) { - value_weight_type = RuntimeType.OBJECT + } + writeEventTarget(value: EventTarget): void { + let valueSerializer = this + const value_area = value.area + valueSerializer.writeArea(value_area) + } + writeRichEditorLayoutStyle(value: RichEditorLayoutStyle): void { + let valueSerializer = this + const value_margin = value.margin + let value_margin_type = RuntimeType.UNDEFINED + if (value_margin != undefined) { + value_margin_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_weight_type as int32) - if ((RuntimeType.UNDEFINED) != (value_weight_type)) { - const value_weight_value = value_weight! - let value_weight_value_type = RuntimeType.UNDEFINED - value_weight_value_type = runtimeType(value_weight_value) - if (((value_weight_value instanceof FontWeight))) { + valueSerializer.writeInt8(value_margin_type as int32) + if ((RuntimeType.UNDEFINED) != (value_margin_type)) { + const value_margin_value = value_margin! + let value_margin_value_type = RuntimeType.UNDEFINED + value_margin_value_type = runtimeType(value_margin_value) + if (((RuntimeType.NUMBER) == (value_margin_value_type)) || ((RuntimeType.STRING) == (value_margin_value_type)) || (((RuntimeType.OBJECT) == (value_margin_value_type)) && (isResource(value_margin_value)))) { valueSerializer.writeInt8(0 as int32) - const value_weight_value_0 = value_weight_value as FontWeight - valueSerializer.writeInt32((value_weight_value_0.value as int32)) + const value_margin_value_0 = value_margin_value as Dimension + valueSerializer.writeLength(value_margin_value_0); } - else if (((RuntimeType.NUMBER == value_weight_value_type))) { + else if (TypeChecker.isPadding(value_margin_value, false, false, false, false)) { valueSerializer.writeInt8(1 as int32) - const value_weight_value_1 = value_weight_value as number - valueSerializer.writeNumber(value_weight_value_1) - } - else if (((RuntimeType.STRING == value_weight_value_type))) { - valueSerializer.writeInt8(2 as int32) - const value_weight_value_2 = value_weight_value as string - valueSerializer.writeString(value_weight_value_2) + const value_margin_value_1 = value_margin_value as Margin + const value_margin_value_1_top = value_margin_value_1.top + let value_margin_value_1_top_type = RuntimeType.UNDEFINED + if (value_margin_value_1_top != undefined) { + value_margin_value_1_top_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_margin_value_1_top_type as int32) + if ((RuntimeType.UNDEFINED) != (value_margin_value_1_top_type)) { + const value_margin_value_1_top_value = value_margin_value_1_top! + valueSerializer.writeLength(value_margin_value_1_top_value); + } + const value_margin_value_1_right = value_margin_value_1.right + let value_margin_value_1_right_type = RuntimeType.UNDEFINED + if (value_margin_value_1_right != undefined) { + value_margin_value_1_right_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_margin_value_1_right_type as int32) + if ((RuntimeType.UNDEFINED) != (value_margin_value_1_right_type)) { + const value_margin_value_1_right_value = value_margin_value_1_right! + valueSerializer.writeLength(value_margin_value_1_right_value); + } + const value_margin_value_1_bottom = value_margin_value_1.bottom + let value_margin_value_1_bottom_type = RuntimeType.UNDEFINED + if (value_margin_value_1_bottom != undefined) { + value_margin_value_1_bottom_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_margin_value_1_bottom_type as int32) + if ((RuntimeType.UNDEFINED) != (value_margin_value_1_bottom_type)) { + const value_margin_value_1_bottom_value = value_margin_value_1_bottom! + valueSerializer.writeLength(value_margin_value_1_bottom_value); + } + const value_margin_value_1_left = value_margin_value_1.left + let value_margin_value_1_left_type = RuntimeType.UNDEFINED + if (value_margin_value_1_left != undefined) { + value_margin_value_1_left_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_margin_value_1_left_type as int32) + if ((RuntimeType.UNDEFINED) != (value_margin_value_1_left_type)) { + const value_margin_value_1_left_value = value_margin_value_1_left! + valueSerializer.writeLength(value_margin_value_1_left_value); + } } } - const value_family = value.family - let value_family_type = RuntimeType.UNDEFINED - if (value_family != undefined) { - value_family_type = RuntimeType.OBJECT + const value_borderRadius = value.borderRadius + let value_borderRadius_type = RuntimeType.UNDEFINED + if (value_borderRadius != undefined) { + value_borderRadius_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_family_type as int32) - if ((RuntimeType.UNDEFINED) != (value_family_type)) { - const value_family_value = value_family! - let value_family_value_type = RuntimeType.UNDEFINED - value_family_value_type = runtimeType(value_family_value) - if (((RuntimeType.STRING == value_family_value_type))) { + valueSerializer.writeInt8(value_borderRadius_type as int32) + if ((RuntimeType.UNDEFINED) != (value_borderRadius_type)) { + const value_borderRadius_value = value_borderRadius! + let value_borderRadius_value_type = RuntimeType.UNDEFINED + value_borderRadius_value_type = runtimeType(value_borderRadius_value) + if (((RuntimeType.NUMBER) == (value_borderRadius_value_type)) || ((RuntimeType.STRING) == (value_borderRadius_value_type)) || (((RuntimeType.OBJECT) == (value_borderRadius_value_type)) && (isResource(value_borderRadius_value)))) { valueSerializer.writeInt8(0 as int32) - const value_family_value_0 = value_family_value as string - valueSerializer.writeString(value_family_value_0) + const value_borderRadius_value_0 = value_borderRadius_value as Dimension + valueSerializer.writeLength(value_borderRadius_value_0); } - else if (((RuntimeType.OBJECT == value_family_value_type))) { + else if (TypeChecker.isBorderRadiuses(value_borderRadius_value, false, false, false, false)) { valueSerializer.writeInt8(1 as int32) - const value_family_value_1 = value_family_value as Resource - valueSerializer.writeResource(value_family_value_1) + const value_borderRadius_value_1 = value_borderRadius_value as BorderRadiuses + const value_borderRadius_value_1_topLeft = value_borderRadius_value_1.topLeft + let value_borderRadius_value_1_topLeft_type = RuntimeType.UNDEFINED + if (value_borderRadius_value_1_topLeft != undefined) { + value_borderRadius_value_1_topLeft_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_borderRadius_value_1_topLeft_type as int32) + if ((RuntimeType.UNDEFINED) != (value_borderRadius_value_1_topLeft_type)) { + const value_borderRadius_value_1_topLeft_value = value_borderRadius_value_1_topLeft! + valueSerializer.writeLength(value_borderRadius_value_1_topLeft_value); + } + const value_borderRadius_value_1_topRight = value_borderRadius_value_1.topRight + let value_borderRadius_value_1_topRight_type = RuntimeType.UNDEFINED + if (value_borderRadius_value_1_topRight != undefined) { + value_borderRadius_value_1_topRight_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_borderRadius_value_1_topRight_type as int32) + if ((RuntimeType.UNDEFINED) != (value_borderRadius_value_1_topRight_type)) { + const value_borderRadius_value_1_topRight_value = value_borderRadius_value_1_topRight! + valueSerializer.writeLength(value_borderRadius_value_1_topRight_value); + } + const value_borderRadius_value_1_bottomLeft = value_borderRadius_value_1.bottomLeft + let value_borderRadius_value_1_bottomLeft_type = RuntimeType.UNDEFINED + if (value_borderRadius_value_1_bottomLeft != undefined) { + value_borderRadius_value_1_bottomLeft_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_borderRadius_value_1_bottomLeft_type as int32) + if ((RuntimeType.UNDEFINED) != (value_borderRadius_value_1_bottomLeft_type)) { + const value_borderRadius_value_1_bottomLeft_value = value_borderRadius_value_1_bottomLeft! + valueSerializer.writeLength(value_borderRadius_value_1_bottomLeft_value); + } + const value_borderRadius_value_1_bottomRight = value_borderRadius_value_1.bottomRight + let value_borderRadius_value_1_bottomRight_type = RuntimeType.UNDEFINED + if (value_borderRadius_value_1_bottomRight != undefined) { + value_borderRadius_value_1_bottomRight_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_borderRadius_value_1_bottomRight_type as int32) + if ((RuntimeType.UNDEFINED) != (value_borderRadius_value_1_bottomRight_type)) { + const value_borderRadius_value_1_bottomRight_value = value_borderRadius_value_1_bottomRight! + valueSerializer.writeLength(value_borderRadius_value_1_bottomRight_value); + } } } + } + writeDecorationStyleResult(value: DecorationStyleResult): void { + let valueSerializer = this + const value_type = value.type + valueSerializer.writeInt32((value_type.value as int32)) + const value_color = value.color + let value_color_type = RuntimeType.UNDEFINED + value_color_type = runtimeType(value_color) + if (((RuntimeType.OBJECT) == (value_color_type)) && (value_color instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_color_0 = value_color as Color + valueSerializer.writeInt32((value_color_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_color_type))) { + valueSerializer.writeInt8(1 as int32) + const value_color_1 = value_color as number + valueSerializer.writeNumber(value_color_1) + } + else if (((RuntimeType.STRING == value_color_type))) { + valueSerializer.writeInt8(2 as int32) + const value_color_2 = value_color as string + valueSerializer.writeString(value_color_2) + } + else if (isResource(value_color)) { + valueSerializer.writeInt8(3 as int32) + const value_color_3 = value_color as Resource + valueSerializer.writeResource(value_color_3) + } const value_style = value.style let value_style_type = RuntimeType.UNDEFINED if (value_style != undefined) { @@ -234,172 +613,333 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt32((value_style_value.value as int32)) } } - writeScrollAnimationOptions(value: ScrollAnimationOptions): void { + writeTextBackgroundStyle(value: TextBackgroundStyle): void { let valueSerializer = this - const value_duration = value.duration - let value_duration_type = RuntimeType.UNDEFINED - if (value_duration != undefined) { - value_duration_type = RuntimeType.OBJECT - } - valueSerializer.writeInt8(value_duration_type as int32) - if ((RuntimeType.UNDEFINED) != (value_duration_type)) { - const value_duration_value = value_duration! - valueSerializer.writeNumber(value_duration_value) - } - const value_curve = value.curve - let value_curve_type = RuntimeType.UNDEFINED - if (value_curve != undefined) { - value_curve_type = RuntimeType.OBJECT + const value_color = value.color + let value_color_type = RuntimeType.UNDEFINED + if (value_color != undefined) { + value_color_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_curve_type as int32) - if ((RuntimeType.UNDEFINED) != (value_curve_type)) { - const value_curve_value = value_curve! - let value_curve_value_type = RuntimeType.UNDEFINED - value_curve_value_type = runtimeType(value_curve_value) - if (((RuntimeType.OBJECT) == (value_curve_value_type)) && (value_curve_value instanceof Curve)) { + valueSerializer.writeInt8(value_color_type as int32) + if ((RuntimeType.UNDEFINED) != (value_color_type)) { + const value_color_value = value_color! + let value_color_value_type = RuntimeType.UNDEFINED + value_color_value_type = runtimeType(value_color_value) + if (((RuntimeType.OBJECT) == (value_color_value_type)) && (value_color_value instanceof Color)) { valueSerializer.writeInt8(0 as int32) - const value_curve_value_0 = value_curve_value as Curve - valueSerializer.writeInt32((value_curve_value_0.value as int32)) + const value_color_value_0 = value_color_value as Color + valueSerializer.writeInt32((value_color_value_0.value as int32)) } - else if (((RuntimeType.OBJECT) == (value_curve_value_type)) && (value_curve_value instanceof ICurve)) { + else if (((RuntimeType.NUMBER == value_color_value_type))) { valueSerializer.writeInt8(1 as int32) - const value_curve_value_1 = value_curve_value as ICurve - valueSerializer.writeMaterialized(value_curve_value_1) + const value_color_value_1 = value_color_value as number + valueSerializer.writeNumber(value_color_value_1) + } + else if (((RuntimeType.STRING == value_color_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_color_value_2 = value_color_value as string + valueSerializer.writeString(value_color_value_2) + } + else if (isResource(value_color_value)) { + valueSerializer.writeInt8(3 as int32) + const value_color_value_3 = value_color_value as Resource + valueSerializer.writeResource(value_color_value_3) } } - const value_canOverScroll = value.canOverScroll - let value_canOverScroll_type = RuntimeType.UNDEFINED - if (value_canOverScroll != undefined) { - value_canOverScroll_type = RuntimeType.OBJECT - } - valueSerializer.writeInt8(value_canOverScroll_type as int32) - if ((RuntimeType.UNDEFINED) != (value_canOverScroll_type)) { - const value_canOverScroll_value = value_canOverScroll! - valueSerializer.writeBoolean(value_canOverScroll_value) + const value_radius = value.radius + let value_radius_type = RuntimeType.UNDEFINED + if (value_radius != undefined) { + value_radius_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_radius_type as int32) + if ((RuntimeType.UNDEFINED) != (value_radius_type)) { + const value_radius_value = value_radius! + let value_radius_value_type = RuntimeType.UNDEFINED + value_radius_value_type = runtimeType(value_radius_value) + if (((RuntimeType.NUMBER) == (value_radius_value_type)) || ((RuntimeType.STRING) == (value_radius_value_type)) || (((RuntimeType.OBJECT) == (value_radius_value_type)) && (isResource(value_radius_value)))) { + valueSerializer.writeInt8(0 as int32) + const value_radius_value_0 = value_radius_value as Dimension + valueSerializer.writeLength(value_radius_value_0); + } + else if (TypeChecker.isBorderRadiuses(value_radius_value, false, false, false, false)) { + valueSerializer.writeInt8(1 as int32) + const value_radius_value_1 = value_radius_value as BorderRadiuses + const value_radius_value_1_topLeft = value_radius_value_1.topLeft + let value_radius_value_1_topLeft_type = RuntimeType.UNDEFINED + if (value_radius_value_1_topLeft != undefined) { + value_radius_value_1_topLeft_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_radius_value_1_topLeft_type as int32) + if ((RuntimeType.UNDEFINED) != (value_radius_value_1_topLeft_type)) { + const value_radius_value_1_topLeft_value = value_radius_value_1_topLeft! + valueSerializer.writeLength(value_radius_value_1_topLeft_value); + } + const value_radius_value_1_topRight = value_radius_value_1.topRight + let value_radius_value_1_topRight_type = RuntimeType.UNDEFINED + if (value_radius_value_1_topRight != undefined) { + value_radius_value_1_topRight_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_radius_value_1_topRight_type as int32) + if ((RuntimeType.UNDEFINED) != (value_radius_value_1_topRight_type)) { + const value_radius_value_1_topRight_value = value_radius_value_1_topRight! + valueSerializer.writeLength(value_radius_value_1_topRight_value); + } + const value_radius_value_1_bottomLeft = value_radius_value_1.bottomLeft + let value_radius_value_1_bottomLeft_type = RuntimeType.UNDEFINED + if (value_radius_value_1_bottomLeft != undefined) { + value_radius_value_1_bottomLeft_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_radius_value_1_bottomLeft_type as int32) + if ((RuntimeType.UNDEFINED) != (value_radius_value_1_bottomLeft_type)) { + const value_radius_value_1_bottomLeft_value = value_radius_value_1_bottomLeft! + valueSerializer.writeLength(value_radius_value_1_bottomLeft_value); + } + const value_radius_value_1_bottomRight = value_radius_value_1.bottomRight + let value_radius_value_1_bottomRight_type = RuntimeType.UNDEFINED + if (value_radius_value_1_bottomRight != undefined) { + value_radius_value_1_bottomRight_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_radius_value_1_bottomRight_type as int32) + if ((RuntimeType.UNDEFINED) != (value_radius_value_1_bottomRight_type)) { + const value_radius_value_1_bottomRight_value = value_radius_value_1_bottomRight! + valueSerializer.writeLength(value_radius_value_1_bottomRight_value); + } + } } } - writeLabelStyle(value: LabelStyle): void { + writeImageAttachmentLayoutStyle(value: ImageAttachmentLayoutStyle): void { let valueSerializer = this - const value_overflow = value.overflow - let value_overflow_type = RuntimeType.UNDEFINED - if (value_overflow != undefined) { - value_overflow_type = RuntimeType.OBJECT - } - valueSerializer.writeInt8(value_overflow_type as int32) - if ((RuntimeType.UNDEFINED) != (value_overflow_type)) { - const value_overflow_value = value_overflow! - valueSerializer.writeInt32((value_overflow_value.value as int32)) - } - const value_maxLines = value.maxLines - let value_maxLines_type = RuntimeType.UNDEFINED - if (value_maxLines != undefined) { - value_maxLines_type = RuntimeType.OBJECT - } - valueSerializer.writeInt8(value_maxLines_type as int32) - if ((RuntimeType.UNDEFINED) != (value_maxLines_type)) { - const value_maxLines_value = value_maxLines! - valueSerializer.writeNumber(value_maxLines_value) + const value_margin = value.margin + let value_margin_type = RuntimeType.UNDEFINED + if (value_margin != undefined) { + value_margin_type = RuntimeType.OBJECT } - const value_minFontSize = value.minFontSize - let value_minFontSize_type = RuntimeType.UNDEFINED - if (value_minFontSize != undefined) { - value_minFontSize_type = RuntimeType.OBJECT + valueSerializer.writeInt8(value_margin_type as int32) + if ((RuntimeType.UNDEFINED) != (value_margin_type)) { + const value_margin_value = value_margin! + let value_margin_value_type = RuntimeType.UNDEFINED + value_margin_value_type = runtimeType(value_margin_value) + if (((RuntimeType.OBJECT == value_margin_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_margin_value_0 = value_margin_value as LengthMetrics + valueSerializer.writeCustomObject("LengthMetrics", value_margin_value_0) + } + else if (TypeChecker.isPadding(value_margin_value, false, false, false, false)) { + valueSerializer.writeInt8(1 as int32) + const value_margin_value_1 = value_margin_value as Margin + const value_margin_value_1_top = value_margin_value_1.top + let value_margin_value_1_top_type = RuntimeType.UNDEFINED + if (value_margin_value_1_top != undefined) { + value_margin_value_1_top_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_margin_value_1_top_type as int32) + if ((RuntimeType.UNDEFINED) != (value_margin_value_1_top_type)) { + const value_margin_value_1_top_value = value_margin_value_1_top! + valueSerializer.writeLength(value_margin_value_1_top_value); + } + const value_margin_value_1_right = value_margin_value_1.right + let value_margin_value_1_right_type = RuntimeType.UNDEFINED + if (value_margin_value_1_right != undefined) { + value_margin_value_1_right_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_margin_value_1_right_type as int32) + if ((RuntimeType.UNDEFINED) != (value_margin_value_1_right_type)) { + const value_margin_value_1_right_value = value_margin_value_1_right! + valueSerializer.writeLength(value_margin_value_1_right_value); + } + const value_margin_value_1_bottom = value_margin_value_1.bottom + let value_margin_value_1_bottom_type = RuntimeType.UNDEFINED + if (value_margin_value_1_bottom != undefined) { + value_margin_value_1_bottom_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_margin_value_1_bottom_type as int32) + if ((RuntimeType.UNDEFINED) != (value_margin_value_1_bottom_type)) { + const value_margin_value_1_bottom_value = value_margin_value_1_bottom! + valueSerializer.writeLength(value_margin_value_1_bottom_value); + } + const value_margin_value_1_left = value_margin_value_1.left + let value_margin_value_1_left_type = RuntimeType.UNDEFINED + if (value_margin_value_1_left != undefined) { + value_margin_value_1_left_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_margin_value_1_left_type as int32) + if ((RuntimeType.UNDEFINED) != (value_margin_value_1_left_type)) { + const value_margin_value_1_left_value = value_margin_value_1_left! + valueSerializer.writeLength(value_margin_value_1_left_value); + } + } } - valueSerializer.writeInt8(value_minFontSize_type as int32) - if ((RuntimeType.UNDEFINED) != (value_minFontSize_type)) { - const value_minFontSize_value = value_minFontSize! - let value_minFontSize_value_type = RuntimeType.UNDEFINED - value_minFontSize_value_type = runtimeType(value_minFontSize_value) - if (((RuntimeType.NUMBER == value_minFontSize_value_type))) { + const value_padding = value.padding + let value_padding_type = RuntimeType.UNDEFINED + if (value_padding != undefined) { + value_padding_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_padding_type as int32) + if ((RuntimeType.UNDEFINED) != (value_padding_type)) { + const value_padding_value = value_padding! + let value_padding_value_type = RuntimeType.UNDEFINED + value_padding_value_type = runtimeType(value_padding_value) + if (((RuntimeType.OBJECT == value_padding_value_type))) { valueSerializer.writeInt8(0 as int32) - const value_minFontSize_value_0 = value_minFontSize_value as number - valueSerializer.writeNumber(value_minFontSize_value_0) + const value_padding_value_0 = value_padding_value as LengthMetrics + valueSerializer.writeCustomObject("LengthMetrics", value_padding_value_0) } - else if (((RuntimeType.STRING == value_minFontSize_value_type)) || ((RuntimeType.OBJECT == value_minFontSize_value_type))) { + else if (TypeChecker.isPadding(value_padding_value, false, false, false, false)) { valueSerializer.writeInt8(1 as int32) - const value_minFontSize_value_1 = value_minFontSize_value as ResourceStr - let value_minFontSize_value_1_type = RuntimeType.UNDEFINED - value_minFontSize_value_1_type = runtimeType(value_minFontSize_value_1) - if (((RuntimeType.STRING == value_minFontSize_value_1_type))) { - valueSerializer.writeInt8(0 as int32) - const value_minFontSize_value_1_0 = value_minFontSize_value_1 as string - valueSerializer.writeString(value_minFontSize_value_1_0) + const value_padding_value_1 = value_padding_value as Padding + const value_padding_value_1_top = value_padding_value_1.top + let value_padding_value_1_top_type = RuntimeType.UNDEFINED + if (value_padding_value_1_top != undefined) { + value_padding_value_1_top_type = RuntimeType.OBJECT } - else if (((RuntimeType.OBJECT == value_minFontSize_value_1_type))) { - valueSerializer.writeInt8(1 as int32) - const value_minFontSize_value_1_1 = value_minFontSize_value_1 as Resource - valueSerializer.writeResource(value_minFontSize_value_1_1) + valueSerializer.writeInt8(value_padding_value_1_top_type as int32) + if ((RuntimeType.UNDEFINED) != (value_padding_value_1_top_type)) { + const value_padding_value_1_top_value = value_padding_value_1_top! + valueSerializer.writeLength(value_padding_value_1_top_value); + } + const value_padding_value_1_right = value_padding_value_1.right + let value_padding_value_1_right_type = RuntimeType.UNDEFINED + if (value_padding_value_1_right != undefined) { + value_padding_value_1_right_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_padding_value_1_right_type as int32) + if ((RuntimeType.UNDEFINED) != (value_padding_value_1_right_type)) { + const value_padding_value_1_right_value = value_padding_value_1_right! + valueSerializer.writeLength(value_padding_value_1_right_value); + } + const value_padding_value_1_bottom = value_padding_value_1.bottom + let value_padding_value_1_bottom_type = RuntimeType.UNDEFINED + if (value_padding_value_1_bottom != undefined) { + value_padding_value_1_bottom_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_padding_value_1_bottom_type as int32) + if ((RuntimeType.UNDEFINED) != (value_padding_value_1_bottom_type)) { + const value_padding_value_1_bottom_value = value_padding_value_1_bottom! + valueSerializer.writeLength(value_padding_value_1_bottom_value); + } + const value_padding_value_1_left = value_padding_value_1.left + let value_padding_value_1_left_type = RuntimeType.UNDEFINED + if (value_padding_value_1_left != undefined) { + value_padding_value_1_left_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_padding_value_1_left_type as int32) + if ((RuntimeType.UNDEFINED) != (value_padding_value_1_left_type)) { + const value_padding_value_1_left_value = value_padding_value_1_left! + valueSerializer.writeLength(value_padding_value_1_left_value); } } } - const value_maxFontSize = value.maxFontSize - let value_maxFontSize_type = RuntimeType.UNDEFINED - if (value_maxFontSize != undefined) { - value_maxFontSize_type = RuntimeType.OBJECT + const value_borderRadius = value.borderRadius + let value_borderRadius_type = RuntimeType.UNDEFINED + if (value_borderRadius != undefined) { + value_borderRadius_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_maxFontSize_type as int32) - if ((RuntimeType.UNDEFINED) != (value_maxFontSize_type)) { - const value_maxFontSize_value = value_maxFontSize! - let value_maxFontSize_value_type = RuntimeType.UNDEFINED - value_maxFontSize_value_type = runtimeType(value_maxFontSize_value) - if (((RuntimeType.NUMBER == value_maxFontSize_value_type))) { + valueSerializer.writeInt8(value_borderRadius_type as int32) + if ((RuntimeType.UNDEFINED) != (value_borderRadius_type)) { + const value_borderRadius_value = value_borderRadius! + let value_borderRadius_value_type = RuntimeType.UNDEFINED + value_borderRadius_value_type = runtimeType(value_borderRadius_value) + if (((RuntimeType.OBJECT == value_borderRadius_value_type))) { valueSerializer.writeInt8(0 as int32) - const value_maxFontSize_value_0 = value_maxFontSize_value as number - valueSerializer.writeNumber(value_maxFontSize_value_0) + const value_borderRadius_value_0 = value_borderRadius_value as LengthMetrics + valueSerializer.writeCustomObject("LengthMetrics", value_borderRadius_value_0) } - else if (((RuntimeType.STRING == value_maxFontSize_value_type)) || ((RuntimeType.OBJECT == value_maxFontSize_value_type))) { + else if (TypeChecker.isBorderRadiuses(value_borderRadius_value, false, false, false, false)) { valueSerializer.writeInt8(1 as int32) - const value_maxFontSize_value_1 = value_maxFontSize_value as ResourceStr - let value_maxFontSize_value_1_type = RuntimeType.UNDEFINED - value_maxFontSize_value_1_type = runtimeType(value_maxFontSize_value_1) - if (((RuntimeType.STRING == value_maxFontSize_value_1_type))) { - valueSerializer.writeInt8(0 as int32) - const value_maxFontSize_value_1_0 = value_maxFontSize_value_1 as string - valueSerializer.writeString(value_maxFontSize_value_1_0) + const value_borderRadius_value_1 = value_borderRadius_value as BorderRadiuses + const value_borderRadius_value_1_topLeft = value_borderRadius_value_1.topLeft + let value_borderRadius_value_1_topLeft_type = RuntimeType.UNDEFINED + if (value_borderRadius_value_1_topLeft != undefined) { + value_borderRadius_value_1_topLeft_type = RuntimeType.OBJECT } - else if (((RuntimeType.OBJECT == value_maxFontSize_value_1_type))) { - valueSerializer.writeInt8(1 as int32) - const value_maxFontSize_value_1_1 = value_maxFontSize_value_1 as Resource - valueSerializer.writeResource(value_maxFontSize_value_1_1) + valueSerializer.writeInt8(value_borderRadius_value_1_topLeft_type as int32) + if ((RuntimeType.UNDEFINED) != (value_borderRadius_value_1_topLeft_type)) { + const value_borderRadius_value_1_topLeft_value = value_borderRadius_value_1_topLeft! + valueSerializer.writeLength(value_borderRadius_value_1_topLeft_value); + } + const value_borderRadius_value_1_topRight = value_borderRadius_value_1.topRight + let value_borderRadius_value_1_topRight_type = RuntimeType.UNDEFINED + if (value_borderRadius_value_1_topRight != undefined) { + value_borderRadius_value_1_topRight_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_borderRadius_value_1_topRight_type as int32) + if ((RuntimeType.UNDEFINED) != (value_borderRadius_value_1_topRight_type)) { + const value_borderRadius_value_1_topRight_value = value_borderRadius_value_1_topRight! + valueSerializer.writeLength(value_borderRadius_value_1_topRight_value); + } + const value_borderRadius_value_1_bottomLeft = value_borderRadius_value_1.bottomLeft + let value_borderRadius_value_1_bottomLeft_type = RuntimeType.UNDEFINED + if (value_borderRadius_value_1_bottomLeft != undefined) { + value_borderRadius_value_1_bottomLeft_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_borderRadius_value_1_bottomLeft_type as int32) + if ((RuntimeType.UNDEFINED) != (value_borderRadius_value_1_bottomLeft_type)) { + const value_borderRadius_value_1_bottomLeft_value = value_borderRadius_value_1_bottomLeft! + valueSerializer.writeLength(value_borderRadius_value_1_bottomLeft_value); + } + const value_borderRadius_value_1_bottomRight = value_borderRadius_value_1.bottomRight + let value_borderRadius_value_1_bottomRight_type = RuntimeType.UNDEFINED + if (value_borderRadius_value_1_bottomRight != undefined) { + value_borderRadius_value_1_bottomRight_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_borderRadius_value_1_bottomRight_type as int32) + if ((RuntimeType.UNDEFINED) != (value_borderRadius_value_1_bottomRight_type)) { + const value_borderRadius_value_1_bottomRight_value = value_borderRadius_value_1_bottomRight! + valueSerializer.writeLength(value_borderRadius_value_1_bottomRight_value); } } } - const value_heightAdaptivePolicy = value.heightAdaptivePolicy - let value_heightAdaptivePolicy_type = RuntimeType.UNDEFINED - if (value_heightAdaptivePolicy != undefined) { - value_heightAdaptivePolicy_type = RuntimeType.OBJECT + } + writeSizeOptions(value: SizeOptions): void { + let valueSerializer = this + const value_width = value.width + let value_width_type = RuntimeType.UNDEFINED + if (value_width != undefined) { + value_width_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_heightAdaptivePolicy_type as int32) - if ((RuntimeType.UNDEFINED) != (value_heightAdaptivePolicy_type)) { - const value_heightAdaptivePolicy_value = value_heightAdaptivePolicy! - valueSerializer.writeInt32((value_heightAdaptivePolicy_value.value as int32)) + valueSerializer.writeInt8(value_width_type as int32) + if ((RuntimeType.UNDEFINED) != (value_width_type)) { + const value_width_value = value_width! + valueSerializer.writeLength(value_width_value); } - const value_font = value.font - let value_font_type = RuntimeType.UNDEFINED - if (value_font != undefined) { - value_font_type = RuntimeType.OBJECT + const value_height = value.height + let value_height_type = RuntimeType.UNDEFINED + if (value_height != undefined) { + value_height_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_font_type as int32) - if ((RuntimeType.UNDEFINED) != (value_font_type)) { - const value_font_value = value_font! - valueSerializer.writeFont(value_font_value) + valueSerializer.writeInt8(value_height_type as int32) + if ((RuntimeType.UNDEFINED) != (value_height_type)) { + const value_height_value = value_height! + valueSerializer.writeLength(value_height_value); } } - writeBoardStyle(value: BoardStyle): void { + writeRichEditorRange(value: RichEditorRange): void { let valueSerializer = this - const value_borderRadius = value.borderRadius - let value_borderRadius_type = RuntimeType.UNDEFINED - if (value_borderRadius != undefined) { - value_borderRadius_type = RuntimeType.OBJECT + const value_start = value.start + let value_start_type = RuntimeType.UNDEFINED + if (value_start != undefined) { + value_start_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_borderRadius_type as int32) - if ((RuntimeType.UNDEFINED) != (value_borderRadius_type)) { - const value_borderRadius_value = value_borderRadius! - valueSerializer.writeLength(value_borderRadius_value); + valueSerializer.writeInt8(value_start_type as int32) + if ((RuntimeType.UNDEFINED) != (value_start_type)) { + const value_start_value = value_start! + valueSerializer.writeNumber(value_start_value) + } + const value_end = value.end + let value_end_type = RuntimeType.UNDEFINED + if (value_end != undefined) { + value_end_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_end_type as int32) + if ((RuntimeType.UNDEFINED) != (value_end_type)) { + const value_end_value = value_end! + valueSerializer.writeNumber(value_end_value) } } - writeIndicatorStyle(value: IndicatorStyle): void { + writeDecorationStyleInterface(value: DecorationStyleInterface): void { let valueSerializer = this + const value_type = value.type + valueSerializer.writeInt32((value_type.value as int32)) const value_color = value.color let value_color_type = RuntimeType.UNDEFINED if (value_color != undefined) { @@ -431,126 +971,33 @@ export class Serializer extends SerializerBase { valueSerializer.writeResource(value_color_value_3) } } + const value_style = value.style + let value_style_type = RuntimeType.UNDEFINED + if (value_style != undefined) { + value_style_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_style_type as int32) + if ((RuntimeType.UNDEFINED) != (value_style_type)) { + const value_style_value = value_style! + valueSerializer.writeInt32((value_style_value.value as int32)) + } } - writeBlurOptions(value: BlurOptions): void { + writeTabBarSymbol(value: TabBarSymbol): void { let valueSerializer = this - const value_grayscale = value.grayscale - valueSerializer.writeInt8(runtimeType(value_grayscale) as int32) - const value_grayscale_0 = value_grayscale[0] - valueSerializer.writeNumber(value_grayscale_0) - const value_grayscale_1 = value_grayscale[1] - valueSerializer.writeNumber(value_grayscale_1) - } - writeShadowOptions(value: ShadowOptions): void { - let valueSerializer = this - const value_radius = value.radius - let value_radius_type = RuntimeType.UNDEFINED - value_radius_type = runtimeType(value_radius) - if (((RuntimeType.NUMBER == value_radius_type))) { - valueSerializer.writeInt8(0 as int32) - const value_radius_0 = value_radius as number - valueSerializer.writeNumber(value_radius_0) - } - else if (((RuntimeType.OBJECT == value_radius_type))) { - valueSerializer.writeInt8(1 as int32) - const value_radius_1 = value_radius as Resource - valueSerializer.writeResource(value_radius_1) - } - const value_type = value.type - let value_type_type = RuntimeType.UNDEFINED - if (value_type != undefined) { - value_type_type = RuntimeType.OBJECT - } - valueSerializer.writeInt8(value_type_type as int32) - if ((RuntimeType.UNDEFINED) != (value_type_type)) { - const value_type_value = value_type! - valueSerializer.writeInt32((value_type_value.value as int32)) - } - const value_color = value.color - let value_color_type = RuntimeType.UNDEFINED - if (value_color != undefined) { - value_color_type = RuntimeType.OBJECT - } - valueSerializer.writeInt8(value_color_type as int32) - if ((RuntimeType.UNDEFINED) != (value_color_type)) { - const value_color_value = value_color! - let value_color_value_type = RuntimeType.UNDEFINED - value_color_value_type = runtimeType(value_color_value) - if (((RuntimeType.OBJECT) == (value_color_value_type)) && (value_color_value instanceof Color)) { - valueSerializer.writeInt8(0 as int32) - const value_color_value_0 = value_color_value as Color - valueSerializer.writeInt32((value_color_value_0.value as int32)) - } - else if (((RuntimeType.STRING == value_color_value_type))) { - valueSerializer.writeInt8(1 as int32) - const value_color_value_1 = value_color_value as string - valueSerializer.writeString(value_color_value_1) - } - else if (isResource(value_color_value)) { - valueSerializer.writeInt8(2 as int32) - const value_color_value_2 = value_color_value as Resource - valueSerializer.writeResource(value_color_value_2) - } - else if (((RuntimeType.OBJECT) == (value_color_value_type)) && (value_color_value instanceof ColoringStrategy)) { - valueSerializer.writeInt8(3 as int32) - const value_color_value_3 = value_color_value as ColoringStrategy - valueSerializer.writeInt32((value_color_value_3.ordinal as int32)) - } - } - const value_offsetX = value.offsetX - let value_offsetX_type = RuntimeType.UNDEFINED - if (value_offsetX != undefined) { - value_offsetX_type = RuntimeType.OBJECT - } - valueSerializer.writeInt8(value_offsetX_type as int32) - if ((RuntimeType.UNDEFINED) != (value_offsetX_type)) { - const value_offsetX_value = value_offsetX! - let value_offsetX_value_type = RuntimeType.UNDEFINED - value_offsetX_value_type = runtimeType(value_offsetX_value) - if (((RuntimeType.NUMBER == value_offsetX_value_type))) { - valueSerializer.writeInt8(0 as int32) - const value_offsetX_value_0 = value_offsetX_value as number - valueSerializer.writeNumber(value_offsetX_value_0) - } - else if (((RuntimeType.OBJECT == value_offsetX_value_type))) { - valueSerializer.writeInt8(1 as int32) - const value_offsetX_value_1 = value_offsetX_value as Resource - valueSerializer.writeResource(value_offsetX_value_1) - } - } - const value_offsetY = value.offsetY - let value_offsetY_type = RuntimeType.UNDEFINED - if (value_offsetY != undefined) { - value_offsetY_type = RuntimeType.OBJECT - } - valueSerializer.writeInt8(value_offsetY_type as int32) - if ((RuntimeType.UNDEFINED) != (value_offsetY_type)) { - const value_offsetY_value = value_offsetY! - let value_offsetY_value_type = RuntimeType.UNDEFINED - value_offsetY_value_type = runtimeType(value_offsetY_value) - if (((RuntimeType.NUMBER == value_offsetY_value_type))) { - valueSerializer.writeInt8(0 as int32) - const value_offsetY_value_0 = value_offsetY_value as number - valueSerializer.writeNumber(value_offsetY_value_0) - } - else if (((RuntimeType.OBJECT == value_offsetY_value_type))) { - valueSerializer.writeInt8(1 as int32) - const value_offsetY_value_1 = value_offsetY_value as Resource - valueSerializer.writeResource(value_offsetY_value_1) - } - } - const value_fill = value.fill - let value_fill_type = RuntimeType.UNDEFINED - if (value_fill != undefined) { - value_fill_type = RuntimeType.OBJECT + const value_normal = value.normal + valueSerializer.writeCustomObject("SymbolGlyphModifier", value_normal) + const value_selected = value.selected + let value_selected_type = RuntimeType.UNDEFINED + if (value_selected != undefined) { + value_selected_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_fill_type as int32) - if ((RuntimeType.UNDEFINED) != (value_fill_type)) { - const value_fill_value = value_fill! - valueSerializer.writeBoolean(value_fill_value) + valueSerializer.writeInt8(value_selected_type as int32) + if ((RuntimeType.UNDEFINED) != (value_selected_type)) { + const value_selected_value = value_selected! + valueSerializer.writeCustomObject("SymbolGlyphModifier", value_selected_value) } } - writeLocalizedEdgeColors(value: LocalizedEdgeColors): void { + writeLocalizedPadding(value: LocalizedPadding): void { let valueSerializer = this const value_top = value.top let value_top_type = RuntimeType.UNDEFINED @@ -560,28 +1007,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_top_type as int32) if ((RuntimeType.UNDEFINED) != (value_top_type)) { const value_top_value = value_top! - let value_top_value_type = RuntimeType.UNDEFINED - value_top_value_type = runtimeType(value_top_value) - if (((RuntimeType.OBJECT) == (value_top_value_type)) && (value_top_value instanceof Color)) { - valueSerializer.writeInt8(0 as int32) - const value_top_value_0 = value_top_value as Color - valueSerializer.writeInt32((value_top_value_0.value as int32)) - } - else if (((RuntimeType.NUMBER == value_top_value_type))) { - valueSerializer.writeInt8(1 as int32) - const value_top_value_1 = value_top_value as number - valueSerializer.writeNumber(value_top_value_1) - } - else if (((RuntimeType.STRING == value_top_value_type))) { - valueSerializer.writeInt8(2 as int32) - const value_top_value_2 = value_top_value as string - valueSerializer.writeString(value_top_value_2) - } - else if (isResource(value_top_value)) { - valueSerializer.writeInt8(3 as int32) - const value_top_value_3 = value_top_value as Resource - valueSerializer.writeResource(value_top_value_3) - } + valueSerializer.writeCustomObject("LengthMetrics", value_top_value) } const value_end = value.end let value_end_type = RuntimeType.UNDEFINED @@ -591,28 +1017,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_end_type as int32) if ((RuntimeType.UNDEFINED) != (value_end_type)) { const value_end_value = value_end! - let value_end_value_type = RuntimeType.UNDEFINED - value_end_value_type = runtimeType(value_end_value) - if (((RuntimeType.OBJECT) == (value_end_value_type)) && (value_end_value instanceof Color)) { - valueSerializer.writeInt8(0 as int32) - const value_end_value_0 = value_end_value as Color - valueSerializer.writeInt32((value_end_value_0.value as int32)) - } - else if (((RuntimeType.NUMBER == value_end_value_type))) { - valueSerializer.writeInt8(1 as int32) - const value_end_value_1 = value_end_value as number - valueSerializer.writeNumber(value_end_value_1) - } - else if (((RuntimeType.STRING == value_end_value_type))) { - valueSerializer.writeInt8(2 as int32) - const value_end_value_2 = value_end_value as string - valueSerializer.writeString(value_end_value_2) - } - else if (isResource(value_end_value)) { - valueSerializer.writeInt8(3 as int32) - const value_end_value_3 = value_end_value as Resource - valueSerializer.writeResource(value_end_value_3) - } + valueSerializer.writeCustomObject("LengthMetrics", value_end_value) } const value_bottom = value.bottom let value_bottom_type = RuntimeType.UNDEFINED @@ -622,28 +1027,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_bottom_type as int32) if ((RuntimeType.UNDEFINED) != (value_bottom_type)) { const value_bottom_value = value_bottom! - let value_bottom_value_type = RuntimeType.UNDEFINED - value_bottom_value_type = runtimeType(value_bottom_value) - if (((RuntimeType.OBJECT) == (value_bottom_value_type)) && (value_bottom_value instanceof Color)) { - valueSerializer.writeInt8(0 as int32) - const value_bottom_value_0 = value_bottom_value as Color - valueSerializer.writeInt32((value_bottom_value_0.value as int32)) - } - else if (((RuntimeType.NUMBER == value_bottom_value_type))) { - valueSerializer.writeInt8(1 as int32) - const value_bottom_value_1 = value_bottom_value as number - valueSerializer.writeNumber(value_bottom_value_1) - } - else if (((RuntimeType.STRING == value_bottom_value_type))) { - valueSerializer.writeInt8(2 as int32) - const value_bottom_value_2 = value_bottom_value as string - valueSerializer.writeString(value_bottom_value_2) - } - else if (isResource(value_bottom_value)) { - valueSerializer.writeInt8(3 as int32) - const value_bottom_value_3 = value_bottom_value as Resource - valueSerializer.writeResource(value_bottom_value_3) - } + valueSerializer.writeCustomObject("LengthMetrics", value_bottom_value) } const value_start = value.start let value_start_type = RuntimeType.UNDEFINED @@ -653,156 +1037,611 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_start_type as int32) if ((RuntimeType.UNDEFINED) != (value_start_type)) { const value_start_value = value_start! - let value_start_value_type = RuntimeType.UNDEFINED - value_start_value_type = runtimeType(value_start_value) - if (((RuntimeType.OBJECT) == (value_start_value_type)) && (value_start_value instanceof Color)) { + valueSerializer.writeCustomObject("LengthMetrics", value_start_value) + } + } + writeFont(value: Font): void { + let valueSerializer = this + const value_size = value.size + let value_size_type = RuntimeType.UNDEFINED + if (value_size != undefined) { + value_size_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_size_type as int32) + if ((RuntimeType.UNDEFINED) != (value_size_type)) { + const value_size_value = value_size! + valueSerializer.writeLength(value_size_value); + } + const value_weight = value.weight + let value_weight_type = RuntimeType.UNDEFINED + if (value_weight != undefined) { + value_weight_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_weight_type as int32) + if ((RuntimeType.UNDEFINED) != (value_weight_type)) { + const value_weight_value = value_weight! + let value_weight_value_type = RuntimeType.UNDEFINED + value_weight_value_type = runtimeType(value_weight_value) + if (((value_weight_value instanceof FontWeight))) { valueSerializer.writeInt8(0 as int32) - const value_start_value_0 = value_start_value as Color - valueSerializer.writeInt32((value_start_value_0.value as int32)) + const value_weight_value_0 = value_weight_value as FontWeight + valueSerializer.writeInt32((value_weight_value_0.value as int32)) } - else if (((RuntimeType.NUMBER == value_start_value_type))) { + else if (((RuntimeType.NUMBER == value_weight_value_type))) { valueSerializer.writeInt8(1 as int32) - const value_start_value_1 = value_start_value as number - valueSerializer.writeNumber(value_start_value_1) + const value_weight_value_1 = value_weight_value as number + valueSerializer.writeNumber(value_weight_value_1) } - else if (((RuntimeType.STRING == value_start_value_type))) { + else if (((RuntimeType.STRING == value_weight_value_type))) { valueSerializer.writeInt8(2 as int32) - const value_start_value_2 = value_start_value as string - valueSerializer.writeString(value_start_value_2) - } - else if (isResource(value_start_value)) { - valueSerializer.writeInt8(3 as int32) - const value_start_value_3 = value_start_value as Resource - valueSerializer.writeResource(value_start_value_3) + const value_weight_value_2 = value_weight_value as string + valueSerializer.writeString(value_weight_value_2) } } - } - writeLocalizedEdgeWidths(value: LocalizedEdgeWidths): void { - let valueSerializer = this - const value_top = value.top - let value_top_type = RuntimeType.UNDEFINED - if (value_top != undefined) { - value_top_type = RuntimeType.OBJECT + const value_family = value.family + let value_family_type = RuntimeType.UNDEFINED + if (value_family != undefined) { + value_family_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_top_type as int32) - if ((RuntimeType.UNDEFINED) != (value_top_type)) { - const value_top_value = value_top! - valueSerializer.writeCustomObject("LengthMetrics", value_top_value) - } - const value_end = value.end - let value_end_type = RuntimeType.UNDEFINED - if (value_end != undefined) { - value_end_type = RuntimeType.OBJECT + valueSerializer.writeInt8(value_family_type as int32) + if ((RuntimeType.UNDEFINED) != (value_family_type)) { + const value_family_value = value_family! + let value_family_value_type = RuntimeType.UNDEFINED + value_family_value_type = runtimeType(value_family_value) + if (((RuntimeType.STRING == value_family_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_family_value_0 = value_family_value as string + valueSerializer.writeString(value_family_value_0) + } + else if (((RuntimeType.OBJECT == value_family_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_family_value_1 = value_family_value as Resource + valueSerializer.writeResource(value_family_value_1) + } } - valueSerializer.writeInt8(value_end_type as int32) - if ((RuntimeType.UNDEFINED) != (value_end_type)) { - const value_end_value = value_end! - valueSerializer.writeCustomObject("LengthMetrics", value_end_value) + const value_style = value.style + let value_style_type = RuntimeType.UNDEFINED + if (value_style != undefined) { + value_style_type = RuntimeType.OBJECT } - const value_bottom = value.bottom - let value_bottom_type = RuntimeType.UNDEFINED - if (value_bottom != undefined) { - value_bottom_type = RuntimeType.OBJECT + valueSerializer.writeInt8(value_style_type as int32) + if ((RuntimeType.UNDEFINED) != (value_style_type)) { + const value_style_value = value_style! + valueSerializer.writeInt32((value_style_value.value as int32)) } - valueSerializer.writeInt8(value_bottom_type as int32) - if ((RuntimeType.UNDEFINED) != (value_bottom_type)) { - const value_bottom_value = value_bottom! - valueSerializer.writeCustomObject("LengthMetrics", value_bottom_value) + } + writeLocalizedBorderRadiuses(value: LocalizedBorderRadiuses): void { + let valueSerializer = this + const value_topStart = value.topStart + let value_topStart_type = RuntimeType.UNDEFINED + if (value_topStart != undefined) { + value_topStart_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_topStart_type as int32) + if ((RuntimeType.UNDEFINED) != (value_topStart_type)) { + const value_topStart_value = value_topStart! + valueSerializer.writeCustomObject("LengthMetrics", value_topStart_value) + } + const value_topEnd = value.topEnd + let value_topEnd_type = RuntimeType.UNDEFINED + if (value_topEnd != undefined) { + value_topEnd_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_topEnd_type as int32) + if ((RuntimeType.UNDEFINED) != (value_topEnd_type)) { + const value_topEnd_value = value_topEnd! + valueSerializer.writeCustomObject("LengthMetrics", value_topEnd_value) + } + const value_bottomStart = value.bottomStart + let value_bottomStart_type = RuntimeType.UNDEFINED + if (value_bottomStart != undefined) { + value_bottomStart_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_bottomStart_type as int32) + if ((RuntimeType.UNDEFINED) != (value_bottomStart_type)) { + const value_bottomStart_value = value_bottomStart! + valueSerializer.writeCustomObject("LengthMetrics", value_bottomStart_value) + } + const value_bottomEnd = value.bottomEnd + let value_bottomEnd_type = RuntimeType.UNDEFINED + if (value_bottomEnd != undefined) { + value_bottomEnd_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_bottomEnd_type as int32) + if ((RuntimeType.UNDEFINED) != (value_bottomEnd_type)) { + const value_bottomEnd_value = value_bottomEnd! + valueSerializer.writeCustomObject("LengthMetrics", value_bottomEnd_value) } - const value_start = value.start - let value_start_type = RuntimeType.UNDEFINED - if (value_start != undefined) { - value_start_type = RuntimeType.OBJECT + } + writeBaseEvent(value: BaseEvent): void { + let valueSerializer = this + const value_target = value.target + valueSerializer.writeEventTarget(value_target) + const value_timestamp = value.timestamp + valueSerializer.writeNumber(value_timestamp) + const value_source = value.source + valueSerializer.writeInt32((value_source.value as int32)) + const value_axisHorizontal = value.axisHorizontal + let value_axisHorizontal_type = RuntimeType.UNDEFINED + if (value_axisHorizontal != undefined) { + value_axisHorizontal_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_axisHorizontal_type as int32) + if ((RuntimeType.UNDEFINED) != (value_axisHorizontal_type)) { + const value_axisHorizontal_value = value_axisHorizontal! + valueSerializer.writeNumber(value_axisHorizontal_value) + } + const value_axisVertical = value.axisVertical + let value_axisVertical_type = RuntimeType.UNDEFINED + if (value_axisVertical != undefined) { + value_axisVertical_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_axisVertical_type as int32) + if ((RuntimeType.UNDEFINED) != (value_axisVertical_type)) { + const value_axisVertical_value = value_axisVertical! + valueSerializer.writeNumber(value_axisVertical_value) + } + const value_pressure = value.pressure + valueSerializer.writeNumber(value_pressure) + const value_tiltX = value.tiltX + valueSerializer.writeNumber(value_tiltX) + const value_tiltY = value.tiltY + valueSerializer.writeNumber(value_tiltY) + const value_sourceTool = value.sourceTool + valueSerializer.writeInt32((value_sourceTool.value as int32)) + const value_deviceId = value.deviceId + let value_deviceId_type = RuntimeType.UNDEFINED + if (value_deviceId != undefined) { + value_deviceId_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_deviceId_type as int32) + if ((RuntimeType.UNDEFINED) != (value_deviceId_type)) { + const value_deviceId_value = value_deviceId! + valueSerializer.writeNumber(value_deviceId_value) } - valueSerializer.writeInt8(value_start_type as int32) - if ((RuntimeType.UNDEFINED) != (value_start_type)) { - const value_start_value = value_start! - valueSerializer.writeCustomObject("LengthMetrics", value_start_value) + } + writeRichEditorImageSpanStyleResult(value: RichEditorImageSpanStyleResult): void { + let valueSerializer = this + const value_size = value.size + valueSerializer.writeInt8(runtimeType(value_size) as int32) + const value_size_0 = value_size[0] + valueSerializer.writeNumber(value_size_0) + const value_size_1 = value_size[1] + valueSerializer.writeNumber(value_size_1) + const value_verticalAlign = value.verticalAlign + valueSerializer.writeInt32((value_verticalAlign.value as int32)) + const value_objectFit = value.objectFit + valueSerializer.writeInt32((value_objectFit.value as int32)) + const value_layoutStyle = value.layoutStyle + let value_layoutStyle_type = RuntimeType.UNDEFINED + if (value_layoutStyle != undefined) { + value_layoutStyle_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_layoutStyle_type as int32) + if ((RuntimeType.UNDEFINED) != (value_layoutStyle_type)) { + const value_layoutStyle_value = value_layoutStyle! + valueSerializer.writeRichEditorLayoutStyle(value_layoutStyle_value) } } - writeSheetTitleOptions(value: SheetTitleOptions): void { + writeRichEditorSpanPosition(value: RichEditorSpanPosition): void { let valueSerializer = this - const value_title = value.title - let value_title_type = RuntimeType.UNDEFINED - value_title_type = runtimeType(value_title) - if (((RuntimeType.STRING == value_title_type))) { - valueSerializer.writeInt8(0 as int32) - const value_title_0 = value_title as string - valueSerializer.writeString(value_title_0) + const value_spanIndex = value.spanIndex + valueSerializer.writeNumber(value_spanIndex) + const value_spanRange = value.spanRange + valueSerializer.writeInt8(runtimeType(value_spanRange) as int32) + const value_spanRange_0 = value_spanRange[0] + valueSerializer.writeNumber(value_spanRange_0) + const value_spanRange_1 = value_spanRange[1] + valueSerializer.writeNumber(value_spanRange_1) + } + writeRichEditorParagraphStyle(value: RichEditorParagraphStyle): void { + let valueSerializer = this + const value_textAlign = value.textAlign + let value_textAlign_type = RuntimeType.UNDEFINED + if (value_textAlign != undefined) { + value_textAlign_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_textAlign_type as int32) + if ((RuntimeType.UNDEFINED) != (value_textAlign_type)) { + const value_textAlign_value = value_textAlign! + valueSerializer.writeInt32((value_textAlign_value.value as int32)) + } + const value_leadingMargin = value.leadingMargin + let value_leadingMargin_type = RuntimeType.UNDEFINED + if (value_leadingMargin != undefined) { + value_leadingMargin_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_leadingMargin_type as int32) + if ((RuntimeType.UNDEFINED) != (value_leadingMargin_type)) { + const value_leadingMargin_value = value_leadingMargin! + let value_leadingMargin_value_type = RuntimeType.UNDEFINED + value_leadingMargin_value_type = runtimeType(value_leadingMargin_value) + if (((RuntimeType.NUMBER) == (value_leadingMargin_value_type)) || ((RuntimeType.STRING) == (value_leadingMargin_value_type)) || (((RuntimeType.OBJECT) == (value_leadingMargin_value_type)) && (isResource(value_leadingMargin_value)))) { + valueSerializer.writeInt8(0 as int32) + const value_leadingMargin_value_0 = value_leadingMargin_value as Dimension + valueSerializer.writeLength(value_leadingMargin_value_0); + } + else if (TypeChecker.isLeadingMarginPlaceholder(value_leadingMargin_value, false, false)) { + valueSerializer.writeInt8(1 as int32) + const value_leadingMargin_value_1 = value_leadingMargin_value as LeadingMarginPlaceholder + valueSerializer.writeLeadingMarginPlaceholder(value_leadingMargin_value_1) + } } - else if (((RuntimeType.OBJECT == value_title_type))) { - valueSerializer.writeInt8(1 as int32) - const value_title_1 = value_title as Resource - valueSerializer.writeResource(value_title_1) + const value_wordBreak = value.wordBreak + let value_wordBreak_type = RuntimeType.UNDEFINED + if (value_wordBreak != undefined) { + value_wordBreak_type = RuntimeType.OBJECT } - const value_subtitle = value.subtitle - let value_subtitle_type = RuntimeType.UNDEFINED - if (value_subtitle != undefined) { - value_subtitle_type = RuntimeType.OBJECT + valueSerializer.writeInt8(value_wordBreak_type as int32) + if ((RuntimeType.UNDEFINED) != (value_wordBreak_type)) { + const value_wordBreak_value = value_wordBreak! + valueSerializer.writeInt32((value_wordBreak_value.value as int32)) } - valueSerializer.writeInt8(value_subtitle_type as int32) - if ((RuntimeType.UNDEFINED) != (value_subtitle_type)) { - const value_subtitle_value = value_subtitle! - let value_subtitle_value_type = RuntimeType.UNDEFINED - value_subtitle_value_type = runtimeType(value_subtitle_value) - if (((RuntimeType.STRING == value_subtitle_value_type))) { + const value_lineBreakStrategy = value.lineBreakStrategy + let value_lineBreakStrategy_type = RuntimeType.UNDEFINED + if (value_lineBreakStrategy != undefined) { + value_lineBreakStrategy_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_lineBreakStrategy_type as int32) + if ((RuntimeType.UNDEFINED) != (value_lineBreakStrategy_type)) { + const value_lineBreakStrategy_value = value_lineBreakStrategy! + valueSerializer.writeInt32((value_lineBreakStrategy_value.value as int32)) + } + } + writeRichEditorSymbolSpanStyle(value: RichEditorSymbolSpanStyle): void { + let valueSerializer = this + const value_fontSize = value.fontSize + let value_fontSize_type = RuntimeType.UNDEFINED + if (value_fontSize != undefined) { + value_fontSize_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_fontSize_type as int32) + if ((RuntimeType.UNDEFINED) != (value_fontSize_type)) { + const value_fontSize_value = value_fontSize! + let value_fontSize_value_type = RuntimeType.UNDEFINED + value_fontSize_value_type = runtimeType(value_fontSize_value) + if (((RuntimeType.NUMBER == value_fontSize_value_type))) { valueSerializer.writeInt8(0 as int32) - const value_subtitle_value_0 = value_subtitle_value as string - valueSerializer.writeString(value_subtitle_value_0) + const value_fontSize_value_0 = value_fontSize_value as number + valueSerializer.writeNumber(value_fontSize_value_0) } - else if (((RuntimeType.OBJECT == value_subtitle_value_type))) { + else if (((RuntimeType.STRING == value_fontSize_value_type))) { valueSerializer.writeInt8(1 as int32) - const value_subtitle_value_1 = value_subtitle_value as Resource - valueSerializer.writeResource(value_subtitle_value_1) + const value_fontSize_value_1 = value_fontSize_value as string + valueSerializer.writeString(value_fontSize_value_1) + } + else if (((RuntimeType.OBJECT == value_fontSize_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_fontSize_value_2 = value_fontSize_value as Resource + valueSerializer.writeResource(value_fontSize_value_2) } } + const value_fontColor = value.fontColor + let value_fontColor_type = RuntimeType.UNDEFINED + if (value_fontColor != undefined) { + value_fontColor_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_fontColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_fontColor_type)) { + const value_fontColor_value = value_fontColor! + valueSerializer.writeInt8(runtimeType(value_fontColor_value) as int32) + valueSerializer.writeInt32(value_fontColor_value.length as int32) + for (let i = 0; i < value_fontColor_value.length; i++) { + const value_fontColor_value_element = value_fontColor_value[i] + let value_fontColor_value_element_type = RuntimeType.UNDEFINED + value_fontColor_value_element_type = runtimeType(value_fontColor_value_element) + if (((RuntimeType.OBJECT) == (value_fontColor_value_element_type)) && (value_fontColor_value_element instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_fontColor_value_element_0 = value_fontColor_value_element as Color + valueSerializer.writeInt32((value_fontColor_value_element_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_fontColor_value_element_type))) { + valueSerializer.writeInt8(1 as int32) + const value_fontColor_value_element_1 = value_fontColor_value_element as number + valueSerializer.writeNumber(value_fontColor_value_element_1) + } + else if (((RuntimeType.STRING == value_fontColor_value_element_type))) { + valueSerializer.writeInt8(2 as int32) + const value_fontColor_value_element_2 = value_fontColor_value_element as string + valueSerializer.writeString(value_fontColor_value_element_2) + } + else if (isResource(value_fontColor_value_element)) { + valueSerializer.writeInt8(3 as int32) + const value_fontColor_value_element_3 = value_fontColor_value_element as Resource + valueSerializer.writeResource(value_fontColor_value_element_3) + } + } + } + const value_fontWeight = value.fontWeight + let value_fontWeight_type = RuntimeType.UNDEFINED + if (value_fontWeight != undefined) { + value_fontWeight_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_fontWeight_type as int32) + if ((RuntimeType.UNDEFINED) != (value_fontWeight_type)) { + const value_fontWeight_value = value_fontWeight! + let value_fontWeight_value_type = RuntimeType.UNDEFINED + value_fontWeight_value_type = runtimeType(value_fontWeight_value) + if (((RuntimeType.NUMBER == value_fontWeight_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_fontWeight_value_0 = value_fontWeight_value as number + valueSerializer.writeNumber(value_fontWeight_value_0) + } + else if (((value_fontWeight_value instanceof FontWeight))) { + valueSerializer.writeInt8(1 as int32) + const value_fontWeight_value_1 = value_fontWeight_value as FontWeight + valueSerializer.writeInt32((value_fontWeight_value_1.value as int32)) + } + else if (((RuntimeType.STRING == value_fontWeight_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_fontWeight_value_2 = value_fontWeight_value as string + valueSerializer.writeString(value_fontWeight_value_2) + } + } + const value_effectStrategy = value.effectStrategy + let value_effectStrategy_type = RuntimeType.UNDEFINED + if (value_effectStrategy != undefined) { + value_effectStrategy_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_effectStrategy_type as int32) + if ((RuntimeType.UNDEFINED) != (value_effectStrategy_type)) { + const value_effectStrategy_value = value_effectStrategy! + valueSerializer.writeInt32((value_effectStrategy_value.value as int32)) + } + const value_renderingStrategy = value.renderingStrategy + let value_renderingStrategy_type = RuntimeType.UNDEFINED + if (value_renderingStrategy != undefined) { + value_renderingStrategy_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_renderingStrategy_type as int32) + if ((RuntimeType.UNDEFINED) != (value_renderingStrategy_type)) { + const value_renderingStrategy_value = value_renderingStrategy! + valueSerializer.writeInt32((value_renderingStrategy_value.value as int32)) + } } - writeNativeEmbedInfo(value: NativeEmbedInfo): void { + writeRichEditorTextStyleResult(value: RichEditorTextStyleResult): void { let valueSerializer = this - const value_params = value.params - let value_params_type = RuntimeType.UNDEFINED - if (value_params != undefined) { - value_params_type = RuntimeType.OBJECT + const value_fontColor = value.fontColor + let value_fontColor_type = RuntimeType.UNDEFINED + value_fontColor_type = runtimeType(value_fontColor) + if (((RuntimeType.OBJECT) == (value_fontColor_type)) && (value_fontColor instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_fontColor_0 = value_fontColor as Color + valueSerializer.writeInt32((value_fontColor_0.value as int32)) } - valueSerializer.writeInt8(value_params_type as int32) - if ((RuntimeType.UNDEFINED) != (value_params_type)) { - const value_params_value = value_params! - valueSerializer.writeInt8(runtimeType(value_params_value) as int32) - valueSerializer.writeInt32(value_params_value.size as int32) - // TODO: map serialization not implemented + else if (((RuntimeType.NUMBER == value_fontColor_type))) { + valueSerializer.writeInt8(1 as int32) + const value_fontColor_1 = value_fontColor as number + valueSerializer.writeNumber(value_fontColor_1) + } + else if (((RuntimeType.STRING == value_fontColor_type))) { + valueSerializer.writeInt8(2 as int32) + const value_fontColor_2 = value_fontColor as string + valueSerializer.writeString(value_fontColor_2) + } + else if (isResource(value_fontColor)) { + valueSerializer.writeInt8(3 as int32) + const value_fontColor_3 = value_fontColor as Resource + valueSerializer.writeResource(value_fontColor_3) + } + const value_fontSize = value.fontSize + valueSerializer.writeNumber(value_fontSize) + const value_fontStyle = value.fontStyle + valueSerializer.writeInt32((value_fontStyle.value as int32)) + const value_fontWeight = value.fontWeight + valueSerializer.writeNumber(value_fontWeight) + const value_fontFamily = value.fontFamily + valueSerializer.writeString(value_fontFamily) + const value_decoration = value.decoration + valueSerializer.writeDecorationStyleResult(value_decoration) + const value_textShadow = value.textShadow + let value_textShadow_type = RuntimeType.UNDEFINED + if (value_textShadow != undefined) { + value_textShadow_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_textShadow_type as int32) + if ((RuntimeType.UNDEFINED) != (value_textShadow_type)) { + const value_textShadow_value = value_textShadow! + valueSerializer.writeInt8(runtimeType(value_textShadow_value) as int32) + valueSerializer.writeInt32(value_textShadow_value.length as int32) + for (let i = 0; i < value_textShadow_value.length; i++) { + const value_textShadow_value_element = value_textShadow_value[i] + valueSerializer.writeShadowOptions(value_textShadow_value_element) + } + } + const value_letterSpacing = value.letterSpacing + let value_letterSpacing_type = RuntimeType.UNDEFINED + if (value_letterSpacing != undefined) { + value_letterSpacing_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_letterSpacing_type as int32) + if ((RuntimeType.UNDEFINED) != (value_letterSpacing_type)) { + const value_letterSpacing_value = value_letterSpacing! + valueSerializer.writeNumber(value_letterSpacing_value) + } + const value_lineHeight = value.lineHeight + let value_lineHeight_type = RuntimeType.UNDEFINED + if (value_lineHeight != undefined) { + value_lineHeight_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_lineHeight_type as int32) + if ((RuntimeType.UNDEFINED) != (value_lineHeight_type)) { + const value_lineHeight_value = value_lineHeight! + valueSerializer.writeNumber(value_lineHeight_value) + } + const value_fontFeature = value.fontFeature + let value_fontFeature_type = RuntimeType.UNDEFINED + if (value_fontFeature != undefined) { + value_fontFeature_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_fontFeature_type as int32) + if ((RuntimeType.UNDEFINED) != (value_fontFeature_type)) { + const value_fontFeature_value = value_fontFeature! + valueSerializer.writeString(value_fontFeature_value) } } - writeObject(value: Object): void { + writeBackgroundColorStyle(value: BackgroundColorStyle): void { + let valueSerializer = this + const value_textBackgroundStyle = value.textBackgroundStyle + valueSerializer.writeTextBackgroundStyle(value_textBackgroundStyle) } - writeBaseEvent(value: BaseEvent): void { + writeUserDataSpan(value: UserDataSpan): void { } - writeRectResult(value: RectResult): void { + writeUrlStyle(value: UrlStyle): void { let valueSerializer = this - const value_x = value.x - valueSerializer.writeNumber(value_x) - const value_y = value.y - valueSerializer.writeNumber(value_y) - const value_width = value.width - valueSerializer.writeNumber(value_width) - const value_height = value.height - valueSerializer.writeNumber(value_height) + const value_url = value.url + valueSerializer.writeString(value_url) } - writeArrayBuffer(value: ArrayBuffer): void { + writeLineHeightStyle(value: LineHeightStyle): void { + let valueSerializer = this + const value_lineHeight = value.lineHeight + valueSerializer.writeNumber(value_lineHeight) } - writeUint8ClampedArray(value: Uint8ClampedArray): void { + writeParagraphStyle(value: ParagraphStyle): void { + let valueSerializer = this + const value_textAlign = value.textAlign + let value_textAlign_type = RuntimeType.UNDEFINED + if (value_textAlign != undefined) { + value_textAlign_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_textAlign_type as int32) + if ((RuntimeType.UNDEFINED) != (value_textAlign_type)) { + const value_textAlign_value = value_textAlign! + valueSerializer.writeInt32((value_textAlign_value.value as int32)) + } + const value_textIndent = value.textIndent + let value_textIndent_type = RuntimeType.UNDEFINED + if (value_textIndent != undefined) { + value_textIndent_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_textIndent_type as int32) + if ((RuntimeType.UNDEFINED) != (value_textIndent_type)) { + const value_textIndent_value = value_textIndent! + valueSerializer.writeNumber(value_textIndent_value) + } + const value_maxLines = value.maxLines + let value_maxLines_type = RuntimeType.UNDEFINED + if (value_maxLines != undefined) { + value_maxLines_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_maxLines_type as int32) + if ((RuntimeType.UNDEFINED) != (value_maxLines_type)) { + const value_maxLines_value = value_maxLines! + valueSerializer.writeNumber(value_maxLines_value) + } + const value_overflow = value.overflow + let value_overflow_type = RuntimeType.UNDEFINED + if (value_overflow != undefined) { + value_overflow_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_overflow_type as int32) + if ((RuntimeType.UNDEFINED) != (value_overflow_type)) { + const value_overflow_value = value_overflow! + valueSerializer.writeInt32((value_overflow_value.value as int32)) + } + const value_wordBreak = value.wordBreak + let value_wordBreak_type = RuntimeType.UNDEFINED + if (value_wordBreak != undefined) { + value_wordBreak_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_wordBreak_type as int32) + if ((RuntimeType.UNDEFINED) != (value_wordBreak_type)) { + const value_wordBreak_value = value_wordBreak! + valueSerializer.writeInt32((value_wordBreak_value.value as int32)) + } + const value_leadingMargin = value.leadingMargin + let value_leadingMargin_type = RuntimeType.UNDEFINED + if (value_leadingMargin != undefined) { + value_leadingMargin_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_leadingMargin_type as int32) + if ((RuntimeType.UNDEFINED) != (value_leadingMargin_type)) { + const value_leadingMargin_value = value_leadingMargin! + let value_leadingMargin_value_type = RuntimeType.UNDEFINED + value_leadingMargin_value_type = runtimeType(value_leadingMargin_value) + if (((RuntimeType.NUMBER == value_leadingMargin_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_leadingMargin_value_0 = value_leadingMargin_value as number + valueSerializer.writeNumber(value_leadingMargin_value_0) + } + else if (((RuntimeType.OBJECT == value_leadingMargin_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_leadingMargin_value_1 = value_leadingMargin_value as LeadingMarginPlaceholder + valueSerializer.writeLeadingMarginPlaceholder(value_leadingMargin_value_1) + } + } } - writeDividerOptions(value: DividerOptions): void { + writeImageAttachment(value: ImageAttachment): void { let valueSerializer = this - const value_strokeWidth = value.strokeWidth - let value_strokeWidth_type = RuntimeType.UNDEFINED - if (value_strokeWidth != undefined) { - value_strokeWidth_type = RuntimeType.OBJECT + const value_value = value.value + valueSerializer.writeCustomObject("PixelMap", value_value) + const value_size = value.size + let value_size_type = RuntimeType.UNDEFINED + if (value_size != undefined) { + value_size_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_strokeWidth_type as int32) - if ((RuntimeType.UNDEFINED) != (value_strokeWidth_type)) { - const value_strokeWidth_value = value_strokeWidth! - valueSerializer.writeLength(value_strokeWidth_value); + valueSerializer.writeInt8(value_size_type as int32) + if ((RuntimeType.UNDEFINED) != (value_size_type)) { + const value_size_value = value_size! + valueSerializer.writeSizeOptions(value_size_value) + } + const value_verticalAlign = value.verticalAlign + let value_verticalAlign_type = RuntimeType.UNDEFINED + if (value_verticalAlign != undefined) { + value_verticalAlign_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_verticalAlign_type as int32) + if ((RuntimeType.UNDEFINED) != (value_verticalAlign_type)) { + const value_verticalAlign_value = value_verticalAlign! + valueSerializer.writeInt32((value_verticalAlign_value.value as int32)) + } + const value_objectFit = value.objectFit + let value_objectFit_type = RuntimeType.UNDEFINED + if (value_objectFit != undefined) { + value_objectFit_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_objectFit_type as int32) + if ((RuntimeType.UNDEFINED) != (value_objectFit_type)) { + const value_objectFit_value = value_objectFit! + valueSerializer.writeInt32((value_objectFit_value.value as int32)) + } + const value_layoutStyle = value.layoutStyle + let value_layoutStyle_type = RuntimeType.UNDEFINED + if (value_layoutStyle != undefined) { + value_layoutStyle_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_layoutStyle_type as int32) + if ((RuntimeType.UNDEFINED) != (value_layoutStyle_type)) { + const value_layoutStyle_value = value_layoutStyle! + valueSerializer.writeImageAttachmentLayoutStyle(value_layoutStyle_value) } + } + writeGestureStyle(value: GestureStyle): void { + } + writeTextShadowStyle(value: TextShadowStyle): void { + let valueSerializer = this + const value_textShadow = value.textShadow + valueSerializer.writeInt8(runtimeType(value_textShadow) as int32) + valueSerializer.writeInt32(value_textShadow.length as int32) + for (let i = 0; i < value_textShadow.length; i++) { + const value_textShadow_element = value_textShadow[i] + valueSerializer.writeShadowOptions(value_textShadow_element) + } + } + writeLetterSpacingStyle(value: LetterSpacingStyle): void { + let valueSerializer = this + const value_letterSpacing = value.letterSpacing + valueSerializer.writeNumber(value_letterSpacing) + } + writeBaselineOffsetStyle(value: BaselineOffsetStyle): void { + let valueSerializer = this + const value_baselineOffset = value.baselineOffset + valueSerializer.writeNumber(value_baselineOffset) + } + writeDecorationStyle(value: DecorationStyle): void { + let valueSerializer = this + const value_type = value.type + valueSerializer.writeInt32((value_type.value as int32)) const value_color = value.color let value_color_type = RuntimeType.UNDEFINED if (value_color != undefined) { @@ -834,1243 +1673,13577 @@ export class Serializer extends SerializerBase { valueSerializer.writeResource(value_color_value_3) } } - const value_startMargin = value.startMargin - let value_startMargin_type = RuntimeType.UNDEFINED - if (value_startMargin != undefined) { - value_startMargin_type = RuntimeType.OBJECT - } - valueSerializer.writeInt8(value_startMargin_type as int32) - if ((RuntimeType.UNDEFINED) != (value_startMargin_type)) { - const value_startMargin_value = value_startMargin! - valueSerializer.writeLength(value_startMargin_value); - } - const value_endMargin = value.endMargin - let value_endMargin_type = RuntimeType.UNDEFINED - if (value_endMargin != undefined) { - value_endMargin_type = RuntimeType.OBJECT + const value_style = value.style + let value_style_type = RuntimeType.UNDEFINED + if (value_style != undefined) { + value_style_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_endMargin_type as int32) - if ((RuntimeType.UNDEFINED) != (value_endMargin_type)) { - const value_endMargin_value = value_endMargin! - valueSerializer.writeLength(value_endMargin_value); + valueSerializer.writeInt8(value_style_type as int32) + if ((RuntimeType.UNDEFINED) != (value_style_type)) { + const value_style_value = value_style! + valueSerializer.writeInt32((value_style_value.value as int32)) } } - writeBooleanInterfaceDTS(value: BooleanInterfaceDTS): void { + writeTextStyle(value: TextStyle): void { let valueSerializer = this - const value_valBool = value.valBool - valueSerializer.writeBoolean(value_valBool) + const value_wordBreak = value.wordBreak + let value_wordBreak_type = RuntimeType.UNDEFINED + if (value_wordBreak != undefined) { + value_wordBreak_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_wordBreak_type as int32) + if ((RuntimeType.UNDEFINED) != (value_wordBreak_type)) { + const value_wordBreak_value = value_wordBreak! + valueSerializer.writeInt32((value_wordBreak_value.value as int32)) + } } - writeBottomTabBarStyle(value: BottomTabBarStyle): void { + writeRichEditorSpanStyleOptions(value: RichEditorSpanStyleOptions): void { let valueSerializer = this - const value__id = value._id - let value__id_type = RuntimeType.UNDEFINED - if (value__id != undefined) { - value__id_type = RuntimeType.OBJECT + const value_start = value.start + let value_start_type = RuntimeType.UNDEFINED + if (value_start != undefined) { + value_start_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value__id_type as int32) - if ((RuntimeType.UNDEFINED) != (value__id_type)) { - const value__id_value = value__id! - valueSerializer.writeString(value__id_value) + valueSerializer.writeInt8(value_start_type as int32) + if ((RuntimeType.UNDEFINED) != (value_start_type)) { + const value_start_value = value_start! + valueSerializer.writeNumber(value_start_value) } - const value__labelStyle = value._labelStyle - let value__labelStyle_type = RuntimeType.UNDEFINED - if (value__labelStyle != undefined) { - value__labelStyle_type = RuntimeType.OBJECT + const value_end = value.end + let value_end_type = RuntimeType.UNDEFINED + if (value_end != undefined) { + value_end_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value__labelStyle_type as int32) - if ((RuntimeType.UNDEFINED) != (value__labelStyle_type)) { - const value__labelStyle_value = value__labelStyle! - valueSerializer.writeLabelStyle(value__labelStyle_value) + valueSerializer.writeInt8(value_end_type as int32) + if ((RuntimeType.UNDEFINED) != (value_end_type)) { + const value_end_value = value_end! + valueSerializer.writeNumber(value_end_value) } - const value__padding = value._padding - let value__padding_type = RuntimeType.UNDEFINED - if (value__padding != undefined) { - value__padding_type = RuntimeType.OBJECT + } + writeRichEditorImageSpanStyle(value: RichEditorImageSpanStyle): void { + let valueSerializer = this + const value_size = value.size + let value_size_type = RuntimeType.UNDEFINED + if (value_size != undefined) { + value_size_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value__padding_type as int32) - if ((RuntimeType.UNDEFINED) != (value__padding_type)) { - const value__padding_value = value__padding! - let value__padding_value_type = RuntimeType.UNDEFINED - value__padding_value_type = runtimeType(value__padding_value) - if (TypeChecker.isPadding(value__padding_value, true, false, true, false)) { + valueSerializer.writeInt8(value_size_type as int32) + if ((RuntimeType.UNDEFINED) != (value_size_type)) { + const value_size_value = value_size! + valueSerializer.writeInt8(runtimeType(value_size_value) as int32) + const value_size_value_0 = value_size_value[0] + valueSerializer.writeLength(value_size_value_0); + const value_size_value_1 = value_size_value[1] + valueSerializer.writeLength(value_size_value_1); + } + const value_verticalAlign = value.verticalAlign + let value_verticalAlign_type = RuntimeType.UNDEFINED + if (value_verticalAlign != undefined) { + value_verticalAlign_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_verticalAlign_type as int32) + if ((RuntimeType.UNDEFINED) != (value_verticalAlign_type)) { + const value_verticalAlign_value = value_verticalAlign! + valueSerializer.writeInt32((value_verticalAlign_value.value as int32)) + } + const value_objectFit = value.objectFit + let value_objectFit_type = RuntimeType.UNDEFINED + if (value_objectFit != undefined) { + value_objectFit_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_objectFit_type as int32) + if ((RuntimeType.UNDEFINED) != (value_objectFit_type)) { + const value_objectFit_value = value_objectFit! + valueSerializer.writeInt32((value_objectFit_value.value as int32)) + } + const value_layoutStyle = value.layoutStyle + let value_layoutStyle_type = RuntimeType.UNDEFINED + if (value_layoutStyle != undefined) { + value_layoutStyle_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_layoutStyle_type as int32) + if ((RuntimeType.UNDEFINED) != (value_layoutStyle_type)) { + const value_layoutStyle_value = value_layoutStyle! + valueSerializer.writeRichEditorLayoutStyle(value_layoutStyle_value) + } + } + writeRichEditorTextStyle(value: RichEditorTextStyle): void { + let valueSerializer = this + const value_fontColor = value.fontColor + let value_fontColor_type = RuntimeType.UNDEFINED + if (value_fontColor != undefined) { + value_fontColor_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_fontColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_fontColor_type)) { + const value_fontColor_value = value_fontColor! + let value_fontColor_value_type = RuntimeType.UNDEFINED + value_fontColor_value_type = runtimeType(value_fontColor_value) + if (((RuntimeType.OBJECT) == (value_fontColor_value_type)) && (value_fontColor_value instanceof Color)) { valueSerializer.writeInt8(0 as int32) - const value__padding_value_0 = value__padding_value as Padding - const value__padding_value_0_top = value__padding_value_0.top - let value__padding_value_0_top_type = RuntimeType.UNDEFINED - if (value__padding_value_0_top != undefined) { - value__padding_value_0_top_type = RuntimeType.OBJECT - } - valueSerializer.writeInt8(value__padding_value_0_top_type as int32) - if ((RuntimeType.UNDEFINED) != (value__padding_value_0_top_type)) { - const value__padding_value_0_top_value = value__padding_value_0_top! - valueSerializer.writeLength(value__padding_value_0_top_value); - } - const value__padding_value_0_right = value__padding_value_0.right - let value__padding_value_0_right_type = RuntimeType.UNDEFINED - if (value__padding_value_0_right != undefined) { - value__padding_value_0_right_type = RuntimeType.OBJECT - } - valueSerializer.writeInt8(value__padding_value_0_right_type as int32) - if ((RuntimeType.UNDEFINED) != (value__padding_value_0_right_type)) { - const value__padding_value_0_right_value = value__padding_value_0_right! - valueSerializer.writeLength(value__padding_value_0_right_value); - } - const value__padding_value_0_bottom = value__padding_value_0.bottom - let value__padding_value_0_bottom_type = RuntimeType.UNDEFINED - if (value__padding_value_0_bottom != undefined) { - value__padding_value_0_bottom_type = RuntimeType.OBJECT - } - valueSerializer.writeInt8(value__padding_value_0_bottom_type as int32) - if ((RuntimeType.UNDEFINED) != (value__padding_value_0_bottom_type)) { - const value__padding_value_0_bottom_value = value__padding_value_0_bottom! - valueSerializer.writeLength(value__padding_value_0_bottom_value); - } - const value__padding_value_0_left = value__padding_value_0.left - let value__padding_value_0_left_type = RuntimeType.UNDEFINED - if (value__padding_value_0_left != undefined) { - value__padding_value_0_left_type = RuntimeType.OBJECT - } - valueSerializer.writeInt8(value__padding_value_0_left_type as int32) - if ((RuntimeType.UNDEFINED) != (value__padding_value_0_left_type)) { - const value__padding_value_0_left_value = value__padding_value_0_left! - valueSerializer.writeLength(value__padding_value_0_left_value); - } + const value_fontColor_value_0 = value_fontColor_value as Color + valueSerializer.writeInt32((value_fontColor_value_0.value as int32)) } - else if (((RuntimeType.NUMBER) == (value__padding_value_type)) || ((RuntimeType.STRING) == (value__padding_value_type)) || (((RuntimeType.OBJECT) == (value__padding_value_type)) && (isResource(value__padding_value)))) { + else if (((RuntimeType.NUMBER == value_fontColor_value_type))) { valueSerializer.writeInt8(1 as int32) - const value__padding_value_1 = value__padding_value as Dimension - valueSerializer.writeLength(value__padding_value_1); + const value_fontColor_value_1 = value_fontColor_value as number + valueSerializer.writeNumber(value_fontColor_value_1) } - else if (TypeChecker.isLocalizedPadding(value__padding_value, true, false, true, false)) { + else if (((RuntimeType.STRING == value_fontColor_value_type))) { valueSerializer.writeInt8(2 as int32) - const value__padding_value_2 = value__padding_value as LocalizedPadding - valueSerializer.writeLocalizedPadding(value__padding_value_2) + const value_fontColor_value_2 = value_fontColor_value as string + valueSerializer.writeString(value_fontColor_value_2) + } + else if (isResource(value_fontColor_value)) { + valueSerializer.writeInt8(3 as int32) + const value_fontColor_value_3 = value_fontColor_value as Resource + valueSerializer.writeResource(value_fontColor_value_3) } } - const value__icon = value._icon - let value__icon_type = RuntimeType.UNDEFINED - if (value__icon != undefined) { - value__icon_type = RuntimeType.OBJECT + const value_fontSize = value.fontSize + let value_fontSize_type = RuntimeType.UNDEFINED + if (value_fontSize != undefined) { + value_fontSize_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_fontSize_type as int32) + if ((RuntimeType.UNDEFINED) != (value_fontSize_type)) { + const value_fontSize_value = value_fontSize! + let value_fontSize_value_type = RuntimeType.UNDEFINED + value_fontSize_value_type = runtimeType(value_fontSize_value) + if (((RuntimeType.NUMBER) == (value_fontSize_value_type)) || ((RuntimeType.STRING) == (value_fontSize_value_type)) || (((RuntimeType.OBJECT) == (value_fontSize_value_type)) && (isResource(value_fontSize_value)))) { + valueSerializer.writeInt8(0 as int32) + const value_fontSize_value_0 = value_fontSize_value as Length + valueSerializer.writeLength(value_fontSize_value_0); + } + else if (((RuntimeType.NUMBER == value_fontSize_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_fontSize_value_1 = value_fontSize_value as number + valueSerializer.writeNumber(value_fontSize_value_1) + } } - valueSerializer.writeInt8(value__icon_type as int32) - if ((RuntimeType.UNDEFINED) != (value__icon_type)) { - const value__icon_value = value__icon! - let value__icon_value_type = RuntimeType.UNDEFINED - value__icon_value_type = runtimeType(value__icon_value) - if (((RuntimeType.OBJECT) == (value__icon_value_type)) && (value__icon_value instanceof TabBarSymbol)) { + const value_fontStyle = value.fontStyle + let value_fontStyle_type = RuntimeType.UNDEFINED + if (value_fontStyle != undefined) { + value_fontStyle_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_fontStyle_type as int32) + if ((RuntimeType.UNDEFINED) != (value_fontStyle_type)) { + const value_fontStyle_value = value_fontStyle! + valueSerializer.writeInt32((value_fontStyle_value.value as int32)) + } + const value_fontWeight = value.fontWeight + let value_fontWeight_type = RuntimeType.UNDEFINED + if (value_fontWeight != undefined) { + value_fontWeight_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_fontWeight_type as int32) + if ((RuntimeType.UNDEFINED) != (value_fontWeight_type)) { + const value_fontWeight_value = value_fontWeight! + let value_fontWeight_value_type = RuntimeType.UNDEFINED + value_fontWeight_value_type = runtimeType(value_fontWeight_value) + if (((RuntimeType.NUMBER == value_fontWeight_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_fontWeight_value_0 = value_fontWeight_value as number + valueSerializer.writeNumber(value_fontWeight_value_0) + } + else if (((value_fontWeight_value instanceof FontWeight))) { valueSerializer.writeInt8(1 as int32) - const value__icon_value_1 = value__icon_value as TabBarSymbol - valueSerializer.writeTabBarSymbol(value__icon_value_1) + const value_fontWeight_value_1 = value_fontWeight_value as FontWeight + valueSerializer.writeInt32((value_fontWeight_value_1.value as int32)) } - else if (((RuntimeType.STRING == value__icon_value_type)) || ((RuntimeType.OBJECT == value__icon_value_type))) { + else if (((RuntimeType.STRING == value_fontWeight_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_fontWeight_value_2 = value_fontWeight_value as string + valueSerializer.writeString(value_fontWeight_value_2) + } + } + const value_fontFamily = value.fontFamily + let value_fontFamily_type = RuntimeType.UNDEFINED + if (value_fontFamily != undefined) { + value_fontFamily_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_fontFamily_type as int32) + if ((RuntimeType.UNDEFINED) != (value_fontFamily_type)) { + const value_fontFamily_value = value_fontFamily! + let value_fontFamily_value_type = RuntimeType.UNDEFINED + value_fontFamily_value_type = runtimeType(value_fontFamily_value) + if (((RuntimeType.STRING == value_fontFamily_value_type))) { valueSerializer.writeInt8(0 as int32) - const value__icon_value_0 = value__icon_value as ResourceStr - let value__icon_value_0_type = RuntimeType.UNDEFINED - value__icon_value_0_type = runtimeType(value__icon_value_0) - if (((RuntimeType.STRING == value__icon_value_0_type))) { - valueSerializer.writeInt8(0 as int32) - const value__icon_value_0_0 = value__icon_value_0 as string - valueSerializer.writeString(value__icon_value_0_0) - } - else if (((RuntimeType.OBJECT == value__icon_value_0_type))) { - valueSerializer.writeInt8(1 as int32) - const value__icon_value_0_1 = value__icon_value_0 as Resource - valueSerializer.writeResource(value__icon_value_0_1) + const value_fontFamily_value_0 = value_fontFamily_value as string + valueSerializer.writeString(value_fontFamily_value_0) + } + else if (((RuntimeType.OBJECT == value_fontFamily_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_fontFamily_value_1 = value_fontFamily_value as Resource + valueSerializer.writeResource(value_fontFamily_value_1) + } + } + const value_decoration = value.decoration + let value_decoration_type = RuntimeType.UNDEFINED + if (value_decoration != undefined) { + value_decoration_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_decoration_type as int32) + if ((RuntimeType.UNDEFINED) != (value_decoration_type)) { + const value_decoration_value = value_decoration! + valueSerializer.writeDecorationStyleInterface(value_decoration_value) + } + const value_textShadow = value.textShadow + let value_textShadow_type = RuntimeType.UNDEFINED + if (value_textShadow != undefined) { + value_textShadow_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_textShadow_type as int32) + if ((RuntimeType.UNDEFINED) != (value_textShadow_type)) { + const value_textShadow_value = value_textShadow! + let value_textShadow_value_type = RuntimeType.UNDEFINED + value_textShadow_value_type = runtimeType(value_textShadow_value) + if (TypeChecker.isShadowOptions(value_textShadow_value, false, false, false, false, false, false)) { + valueSerializer.writeInt8(0 as int32) + const value_textShadow_value_0 = value_textShadow_value as ShadowOptions + valueSerializer.writeShadowOptions(value_textShadow_value_0) + } + else if (((RuntimeType.OBJECT) == (value_textShadow_value_type)) && (value_textShadow_value instanceof Array)) { + valueSerializer.writeInt8(1 as int32) + const value_textShadow_value_1 = value_textShadow_value as Array + valueSerializer.writeInt8(runtimeType(value_textShadow_value_1) as int32) + valueSerializer.writeInt32(value_textShadow_value_1.length as int32) + for (let i = 0; i < value_textShadow_value_1.length; i++) { + const value_textShadow_value_1_element = value_textShadow_value_1[i] + valueSerializer.writeShadowOptions(value_textShadow_value_1_element) } } } - const value__text = value._text - let value__text_type = RuntimeType.UNDEFINED - if (value__text != undefined) { - value__text_type = RuntimeType.OBJECT + const value_letterSpacing = value.letterSpacing + let value_letterSpacing_type = RuntimeType.UNDEFINED + if (value_letterSpacing != undefined) { + value_letterSpacing_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_letterSpacing_type as int32) + if ((RuntimeType.UNDEFINED) != (value_letterSpacing_type)) { + const value_letterSpacing_value = value_letterSpacing! + let value_letterSpacing_value_type = RuntimeType.UNDEFINED + value_letterSpacing_value_type = runtimeType(value_letterSpacing_value) + if (((RuntimeType.NUMBER == value_letterSpacing_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_letterSpacing_value_0 = value_letterSpacing_value as number + valueSerializer.writeNumber(value_letterSpacing_value_0) + } + else if (((RuntimeType.STRING == value_letterSpacing_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_letterSpacing_value_1 = value_letterSpacing_value as string + valueSerializer.writeString(value_letterSpacing_value_1) + } } - valueSerializer.writeInt8(value__text_type as int32) - if ((RuntimeType.UNDEFINED) != (value__text_type)) { - const value__text_value = value__text! - let value__text_value_type = RuntimeType.UNDEFINED - value__text_value_type = runtimeType(value__text_value) - if (((RuntimeType.STRING == value__text_value_type))) { + const value_lineHeight = value.lineHeight + let value_lineHeight_type = RuntimeType.UNDEFINED + if (value_lineHeight != undefined) { + value_lineHeight_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_lineHeight_type as int32) + if ((RuntimeType.UNDEFINED) != (value_lineHeight_type)) { + const value_lineHeight_value = value_lineHeight! + let value_lineHeight_value_type = RuntimeType.UNDEFINED + value_lineHeight_value_type = runtimeType(value_lineHeight_value) + if (((RuntimeType.NUMBER == value_lineHeight_value_type))) { valueSerializer.writeInt8(0 as int32) - const value__text_value_0 = value__text_value as string - valueSerializer.writeString(value__text_value_0) + const value_lineHeight_value_0 = value_lineHeight_value as number + valueSerializer.writeNumber(value_lineHeight_value_0) } - else if (((RuntimeType.OBJECT == value__text_value_type))) { + else if (((RuntimeType.STRING == value_lineHeight_value_type))) { valueSerializer.writeInt8(1 as int32) - const value__text_value_1 = value__text_value as Resource - valueSerializer.writeResource(value__text_value_1) + const value_lineHeight_value_1 = value_lineHeight_value as string + valueSerializer.writeString(value_lineHeight_value_1) + } + else if (((RuntimeType.OBJECT == value_lineHeight_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_lineHeight_value_2 = value_lineHeight_value as Resource + valueSerializer.writeResource(value_lineHeight_value_2) } } + const value_fontFeature = value.fontFeature + let value_fontFeature_type = RuntimeType.UNDEFINED + if (value_fontFeature != undefined) { + value_fontFeature_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_fontFeature_type as int32) + if ((RuntimeType.UNDEFINED) != (value_fontFeature_type)) { + const value_fontFeature_value = value_fontFeature! + valueSerializer.writeString(value_fontFeature_value) + } } - writeSubTabBarStyle(value: SubTabBarStyle): void { + writeScrollAnimationOptions(value: ScrollAnimationOptions): void { let valueSerializer = this - const value__indicator = value._indicator - let value__indicator_type = RuntimeType.UNDEFINED - if (value__indicator != undefined) { - value__indicator_type = RuntimeType.OBJECT + const value_duration = value.duration + let value_duration_type = RuntimeType.UNDEFINED + if (value_duration != undefined) { + value_duration_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value__indicator_type as int32) - if ((RuntimeType.UNDEFINED) != (value__indicator_type)) { - const value__indicator_value = value__indicator! - valueSerializer.writeIndicatorStyle(value__indicator_value) + valueSerializer.writeInt8(value_duration_type as int32) + if ((RuntimeType.UNDEFINED) != (value_duration_type)) { + const value_duration_value = value_duration! + valueSerializer.writeNumber(value_duration_value) } - const value__selectedMode = value._selectedMode - let value__selectedMode_type = RuntimeType.UNDEFINED - if (value__selectedMode != undefined) { - value__selectedMode_type = RuntimeType.OBJECT + const value_curve = value.curve + let value_curve_type = RuntimeType.UNDEFINED + if (value_curve != undefined) { + value_curve_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value__selectedMode_type as int32) - if ((RuntimeType.UNDEFINED) != (value__selectedMode_type)) { - const value__selectedMode_value = value__selectedMode! - valueSerializer.writeInt32((value__selectedMode_value.value as int32)) + valueSerializer.writeInt8(value_curve_type as int32) + if ((RuntimeType.UNDEFINED) != (value_curve_type)) { + const value_curve_value = value_curve! + let value_curve_value_type = RuntimeType.UNDEFINED + value_curve_value_type = runtimeType(value_curve_value) + if (((RuntimeType.OBJECT) == (value_curve_value_type)) && (value_curve_value instanceof Curve)) { + valueSerializer.writeInt8(0 as int32) + const value_curve_value_0 = value_curve_value as Curve + valueSerializer.writeInt32((value_curve_value_0.value as int32)) + } + else if (((RuntimeType.OBJECT) == (value_curve_value_type)) && (value_curve_value instanceof ICurve)) { + valueSerializer.writeInt8(1 as int32) + const value_curve_value_1 = value_curve_value as ICurve + valueSerializer.writeMaterialized(value_curve_value_1) + } } - const value__board = value._board - let value__board_type = RuntimeType.UNDEFINED - if (value__board != undefined) { - value__board_type = RuntimeType.OBJECT + const value_canOverScroll = value.canOverScroll + let value_canOverScroll_type = RuntimeType.UNDEFINED + if (value_canOverScroll != undefined) { + value_canOverScroll_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value__board_type as int32) - if ((RuntimeType.UNDEFINED) != (value__board_type)) { - const value__board_value = value__board! - valueSerializer.writeBoardStyle(value__board_value) + valueSerializer.writeInt8(value_canOverScroll_type as int32) + if ((RuntimeType.UNDEFINED) != (value_canOverScroll_type)) { + const value_canOverScroll_value = value_canOverScroll! + valueSerializer.writeBoolean(value_canOverScroll_value) } - const value__labelStyle = value._labelStyle - let value__labelStyle_type = RuntimeType.UNDEFINED - if (value__labelStyle != undefined) { - value__labelStyle_type = RuntimeType.OBJECT + } + writeTabBarIconStyle(value: TabBarIconStyle): void { + let valueSerializer = this + const value_selectedColor = value.selectedColor + let value_selectedColor_type = RuntimeType.UNDEFINED + if (value_selectedColor != undefined) { + value_selectedColor_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_selectedColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_selectedColor_type)) { + const value_selectedColor_value = value_selectedColor! + let value_selectedColor_value_type = RuntimeType.UNDEFINED + value_selectedColor_value_type = runtimeType(value_selectedColor_value) + if (((RuntimeType.OBJECT) == (value_selectedColor_value_type)) && (value_selectedColor_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_selectedColor_value_0 = value_selectedColor_value as Color + valueSerializer.writeInt32((value_selectedColor_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_selectedColor_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_selectedColor_value_1 = value_selectedColor_value as number + valueSerializer.writeNumber(value_selectedColor_value_1) + } + else if (((RuntimeType.STRING == value_selectedColor_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_selectedColor_value_2 = value_selectedColor_value as string + valueSerializer.writeString(value_selectedColor_value_2) + } + else if (isResource(value_selectedColor_value)) { + valueSerializer.writeInt8(3 as int32) + const value_selectedColor_value_3 = value_selectedColor_value as Resource + valueSerializer.writeResource(value_selectedColor_value_3) + } } - valueSerializer.writeInt8(value__labelStyle_type as int32) - if ((RuntimeType.UNDEFINED) != (value__labelStyle_type)) { - const value__labelStyle_value = value__labelStyle! - valueSerializer.writeLabelStyle(value__labelStyle_value) + const value_unselectedColor = value.unselectedColor + let value_unselectedColor_type = RuntimeType.UNDEFINED + if (value_unselectedColor != undefined) { + value_unselectedColor_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_unselectedColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_unselectedColor_type)) { + const value_unselectedColor_value = value_unselectedColor! + let value_unselectedColor_value_type = RuntimeType.UNDEFINED + value_unselectedColor_value_type = runtimeType(value_unselectedColor_value) + if (((RuntimeType.OBJECT) == (value_unselectedColor_value_type)) && (value_unselectedColor_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_unselectedColor_value_0 = value_unselectedColor_value as Color + valueSerializer.writeInt32((value_unselectedColor_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_unselectedColor_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_unselectedColor_value_1 = value_unselectedColor_value as number + valueSerializer.writeNumber(value_unselectedColor_value_1) + } + else if (((RuntimeType.STRING == value_unselectedColor_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_unselectedColor_value_2 = value_unselectedColor_value as string + valueSerializer.writeString(value_unselectedColor_value_2) + } + else if (isResource(value_unselectedColor_value)) { + valueSerializer.writeInt8(3 as int32) + const value_unselectedColor_value_3 = value_unselectedColor_value as Resource + valueSerializer.writeResource(value_unselectedColor_value_3) + } } - const value__padding = value._padding - let value__padding_type = RuntimeType.UNDEFINED - if (value__padding != undefined) { - value__padding_type = RuntimeType.OBJECT + } + writeLabelStyle(value: LabelStyle): void { + let valueSerializer = this + const value_overflow = value.overflow + let value_overflow_type = RuntimeType.UNDEFINED + if (value_overflow != undefined) { + value_overflow_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value__padding_type as int32) - if ((RuntimeType.UNDEFINED) != (value__padding_type)) { - const value__padding_value = value__padding! - let value__padding_value_type = RuntimeType.UNDEFINED - value__padding_value_type = runtimeType(value__padding_value) - if (TypeChecker.isPadding(value__padding_value, false, false, false, false)) { - valueSerializer.writeInt8(0 as int32) - const value__padding_value_0 = value__padding_value as Padding - const value__padding_value_0_top = value__padding_value_0.top - let value__padding_value_0_top_type = RuntimeType.UNDEFINED - if (value__padding_value_0_top != undefined) { - value__padding_value_0_top_type = RuntimeType.OBJECT - } - valueSerializer.writeInt8(value__padding_value_0_top_type as int32) - if ((RuntimeType.UNDEFINED) != (value__padding_value_0_top_type)) { - const value__padding_value_0_top_value = value__padding_value_0_top! - valueSerializer.writeLength(value__padding_value_0_top_value); - } - const value__padding_value_0_right = value__padding_value_0.right - let value__padding_value_0_right_type = RuntimeType.UNDEFINED - if (value__padding_value_0_right != undefined) { - value__padding_value_0_right_type = RuntimeType.OBJECT - } - valueSerializer.writeInt8(value__padding_value_0_right_type as int32) - if ((RuntimeType.UNDEFINED) != (value__padding_value_0_right_type)) { - const value__padding_value_0_right_value = value__padding_value_0_right! - valueSerializer.writeLength(value__padding_value_0_right_value); - } - const value__padding_value_0_bottom = value__padding_value_0.bottom - let value__padding_value_0_bottom_type = RuntimeType.UNDEFINED - if (value__padding_value_0_bottom != undefined) { - value__padding_value_0_bottom_type = RuntimeType.OBJECT - } - valueSerializer.writeInt8(value__padding_value_0_bottom_type as int32) - if ((RuntimeType.UNDEFINED) != (value__padding_value_0_bottom_type)) { - const value__padding_value_0_bottom_value = value__padding_value_0_bottom! - valueSerializer.writeLength(value__padding_value_0_bottom_value); - } - const value__padding_value_0_left = value__padding_value_0.left - let value__padding_value_0_left_type = RuntimeType.UNDEFINED - if (value__padding_value_0_left != undefined) { - value__padding_value_0_left_type = RuntimeType.OBJECT - } - valueSerializer.writeInt8(value__padding_value_0_left_type as int32) - if ((RuntimeType.UNDEFINED) != (value__padding_value_0_left_type)) { - const value__padding_value_0_left_value = value__padding_value_0_left! - valueSerializer.writeLength(value__padding_value_0_left_value); - } + valueSerializer.writeInt8(value_overflow_type as int32) + if ((RuntimeType.UNDEFINED) != (value_overflow_type)) { + const value_overflow_value = value_overflow! + valueSerializer.writeInt32((value_overflow_value.value as int32)) + } + const value_maxLines = value.maxLines + let value_maxLines_type = RuntimeType.UNDEFINED + if (value_maxLines != undefined) { + value_maxLines_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_maxLines_type as int32) + if ((RuntimeType.UNDEFINED) != (value_maxLines_type)) { + const value_maxLines_value = value_maxLines! + valueSerializer.writeNumber(value_maxLines_value) + } + const value_minFontSize = value.minFontSize + let value_minFontSize_type = RuntimeType.UNDEFINED + if (value_minFontSize != undefined) { + value_minFontSize_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_minFontSize_type as int32) + if ((RuntimeType.UNDEFINED) != (value_minFontSize_type)) { + const value_minFontSize_value = value_minFontSize! + let value_minFontSize_value_type = RuntimeType.UNDEFINED + value_minFontSize_value_type = runtimeType(value_minFontSize_value) + if (((RuntimeType.NUMBER == value_minFontSize_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_minFontSize_value_0 = value_minFontSize_value as number + valueSerializer.writeNumber(value_minFontSize_value_0) } - else if (((RuntimeType.NUMBER) == (value__padding_value_type)) || ((RuntimeType.STRING) == (value__padding_value_type)) || (((RuntimeType.OBJECT) == (value__padding_value_type)) && (isResource(value__padding_value)))) { + else if (((RuntimeType.STRING == value_minFontSize_value_type)) || ((RuntimeType.OBJECT == value_minFontSize_value_type))) { valueSerializer.writeInt8(1 as int32) - const value__padding_value_1 = value__padding_value as Dimension - valueSerializer.writeLength(value__padding_value_1); + const value_minFontSize_value_1 = value_minFontSize_value as ResourceStr + let value_minFontSize_value_1_type = RuntimeType.UNDEFINED + value_minFontSize_value_1_type = runtimeType(value_minFontSize_value_1) + if (((RuntimeType.STRING == value_minFontSize_value_1_type))) { + valueSerializer.writeInt8(0 as int32) + const value_minFontSize_value_1_0 = value_minFontSize_value_1 as string + valueSerializer.writeString(value_minFontSize_value_1_0) + } + else if (((RuntimeType.OBJECT == value_minFontSize_value_1_type))) { + valueSerializer.writeInt8(1 as int32) + const value_minFontSize_value_1_1 = value_minFontSize_value_1 as Resource + valueSerializer.writeResource(value_minFontSize_value_1_1) + } } } - const value__id = value._id - let value__id_type = RuntimeType.UNDEFINED - if (value__id != undefined) { - value__id_type = RuntimeType.OBJECT - } - valueSerializer.writeInt8(value__id_type as int32) - if ((RuntimeType.UNDEFINED) != (value__id_type)) { - const value__id_value = value__id! - valueSerializer.writeString(value__id_value) - } - const value__content = value._content - let value__content_type = RuntimeType.UNDEFINED - if (value__content != undefined) { - value__content_type = RuntimeType.OBJECT + const value_maxFontSize = value.maxFontSize + let value_maxFontSize_type = RuntimeType.UNDEFINED + if (value_maxFontSize != undefined) { + value_maxFontSize_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value__content_type as int32) - if ((RuntimeType.UNDEFINED) != (value__content_type)) { - const value__content_value = value__content! - let value__content_value_type = RuntimeType.UNDEFINED - value__content_value_type = runtimeType(value__content_value) - if (((RuntimeType.STRING == value__content_value_type))) { + valueSerializer.writeInt8(value_maxFontSize_type as int32) + if ((RuntimeType.UNDEFINED) != (value_maxFontSize_type)) { + const value_maxFontSize_value = value_maxFontSize! + let value_maxFontSize_value_type = RuntimeType.UNDEFINED + value_maxFontSize_value_type = runtimeType(value_maxFontSize_value) + if (((RuntimeType.NUMBER == value_maxFontSize_value_type))) { valueSerializer.writeInt8(0 as int32) - const value__content_value_0 = value__content_value as string - valueSerializer.writeString(value__content_value_0) + const value_maxFontSize_value_0 = value_maxFontSize_value as number + valueSerializer.writeNumber(value_maxFontSize_value_0) } - else if (((RuntimeType.OBJECT == value__content_value_type))) { + else if (((RuntimeType.STRING == value_maxFontSize_value_type)) || ((RuntimeType.OBJECT == value_maxFontSize_value_type))) { valueSerializer.writeInt8(1 as int32) - const value__content_value_1 = value__content_value as Resource - valueSerializer.writeResource(value__content_value_1) + const value_maxFontSize_value_1 = value_maxFontSize_value as ResourceStr + let value_maxFontSize_value_1_type = RuntimeType.UNDEFINED + value_maxFontSize_value_1_type = runtimeType(value_maxFontSize_value_1) + if (((RuntimeType.STRING == value_maxFontSize_value_1_type))) { + valueSerializer.writeInt8(0 as int32) + const value_maxFontSize_value_1_0 = value_maxFontSize_value_1 as string + valueSerializer.writeString(value_maxFontSize_value_1_0) + } + else if (((RuntimeType.OBJECT == value_maxFontSize_value_1_type))) { + valueSerializer.writeInt8(1 as int32) + const value_maxFontSize_value_1_1 = value_maxFontSize_value_1 as Resource + valueSerializer.writeResource(value_maxFontSize_value_1_1) + } } } - } - writeNavigationCustomTitle(value: NavigationCustomTitle): void { - let valueSerializer = this - const value_builder = value.builder - let value_builder_type = RuntimeType.UNDEFINED - value_builder_type = runtimeType(value_builder) - if (((RuntimeType.FUNCTION == value_builder_type))) { - valueSerializer.writeInt8(0 as int32) - const value_builder_0 = value_builder as Object - valueSerializer.writeFunction(value_builder_0) + const value_heightAdaptivePolicy = value.heightAdaptivePolicy + let value_heightAdaptivePolicy_type = RuntimeType.UNDEFINED + if (value_heightAdaptivePolicy != undefined) { + value_heightAdaptivePolicy_type = RuntimeType.OBJECT } - else if (((RuntimeType.UNDEFINED == value_builder_type))) { - valueSerializer.writeInt8(1 as int32) + valueSerializer.writeInt8(value_heightAdaptivePolicy_type as int32) + if ((RuntimeType.UNDEFINED) != (value_heightAdaptivePolicy_type)) { + const value_heightAdaptivePolicy_value = value_heightAdaptivePolicy! + valueSerializer.writeInt32((value_heightAdaptivePolicy_value.value as int32)) } - const value_height = value.height - let value_height_type = RuntimeType.UNDEFINED - value_height_type = runtimeType(value_height) - if (((RuntimeType.OBJECT) == (value_height_type)) && (value_height instanceof TitleHeight)) { - valueSerializer.writeInt8(0 as int32) - const value_height_0 = value_height as TitleHeight - valueSerializer.writeInt32((value_height_0.value as int32)) + const value_font = value.font + let value_font_type = RuntimeType.UNDEFINED + if (value_font != undefined) { + value_font_type = RuntimeType.OBJECT } - else if (((RuntimeType.NUMBER) == (value_height_type)) || ((RuntimeType.STRING) == (value_height_type)) || (((RuntimeType.OBJECT) == (value_height_type)) && (isResource(value_height)))) { - valueSerializer.writeInt8(1 as int32) - const value_height_1 = value_height as Length - valueSerializer.writeLength(value_height_1); + valueSerializer.writeInt8(value_font_type as int32) + if ((RuntimeType.UNDEFINED) != (value_font_type)) { + const value_font_value = value_font! + valueSerializer.writeFont(value_font_value) } } - writeNavigationCommonTitle(value: NavigationCommonTitle): void { - let valueSerializer = this - const value_main = value.main - valueSerializer.writeString(value_main) - const value_sub = value.sub - valueSerializer.writeString(value_sub) - } - writeNavDestinationCustomTitle(value: NavDestinationCustomTitle): void { + writeBoardStyle(value: BoardStyle): void { let valueSerializer = this - const value_builder = value.builder - let value_builder_type = RuntimeType.UNDEFINED - value_builder_type = runtimeType(value_builder) - if (((RuntimeType.FUNCTION == value_builder_type))) { - valueSerializer.writeInt8(0 as int32) - const value_builder_0 = value_builder as Object - valueSerializer.writeFunction(value_builder_0) - } - else if (((RuntimeType.UNDEFINED == value_builder_type))) { - valueSerializer.writeInt8(1 as int32) - } - const value_height = value.height - let value_height_type = RuntimeType.UNDEFINED - value_height_type = runtimeType(value_height) - if (((RuntimeType.OBJECT) == (value_height_type)) && (value_height instanceof TitleHeight)) { - valueSerializer.writeInt8(0 as int32) - const value_height_0 = value_height as TitleHeight - valueSerializer.writeInt32((value_height_0.value as int32)) + const value_borderRadius = value.borderRadius + let value_borderRadius_type = RuntimeType.UNDEFINED + if (value_borderRadius != undefined) { + value_borderRadius_type = RuntimeType.OBJECT } - else if (((RuntimeType.NUMBER) == (value_height_type)) || ((RuntimeType.STRING) == (value_height_type)) || (((RuntimeType.OBJECT) == (value_height_type)) && (isResource(value_height)))) { - valueSerializer.writeInt8(1 as int32) - const value_height_1 = value_height as Length - valueSerializer.writeLength(value_height_1); + valueSerializer.writeInt8(value_borderRadius_type as int32) + if ((RuntimeType.UNDEFINED) != (value_borderRadius_type)) { + const value_borderRadius_value = value_borderRadius! + valueSerializer.writeLength(value_borderRadius_value); } } - writeNavDestinationCommonTitle(value: NavDestinationCommonTitle): void { - let valueSerializer = this - const value_main = value.main - valueSerializer.writeString(value_main) - const value_sub = value.sub - valueSerializer.writeString(value_sub) - } - writeBlurStyleOptions(value: BlurStyleOptions): void { + writeIndicatorStyle(value: IndicatorStyle): void { let valueSerializer = this - const value_colorMode = value.colorMode - let value_colorMode_type = RuntimeType.UNDEFINED - if (value_colorMode != undefined) { - value_colorMode_type = RuntimeType.OBJECT - } - valueSerializer.writeInt8(value_colorMode_type as int32) - if ((RuntimeType.UNDEFINED) != (value_colorMode_type)) { - const value_colorMode_value = value_colorMode! - valueSerializer.writeInt32((value_colorMode_value.value as int32)) + const value_left = value.left + let value_left_type = RuntimeType.UNDEFINED + if (value_left != undefined) { + value_left_type = RuntimeType.OBJECT } - const value_adaptiveColor = value.adaptiveColor - let value_adaptiveColor_type = RuntimeType.UNDEFINED - if (value_adaptiveColor != undefined) { - value_adaptiveColor_type = RuntimeType.OBJECT + valueSerializer.writeInt8(value_left_type as int32) + if ((RuntimeType.UNDEFINED) != (value_left_type)) { + const value_left_value = value_left! + valueSerializer.writeLength(value_left_value); } - valueSerializer.writeInt8(value_adaptiveColor_type as int32) - if ((RuntimeType.UNDEFINED) != (value_adaptiveColor_type)) { - const value_adaptiveColor_value = value_adaptiveColor! - valueSerializer.writeInt32((value_adaptiveColor_value.value as int32)) + const value_top = value.top + let value_top_type = RuntimeType.UNDEFINED + if (value_top != undefined) { + value_top_type = RuntimeType.OBJECT } - const value_scale = value.scale - let value_scale_type = RuntimeType.UNDEFINED - if (value_scale != undefined) { - value_scale_type = RuntimeType.OBJECT + valueSerializer.writeInt8(value_top_type as int32) + if ((RuntimeType.UNDEFINED) != (value_top_type)) { + const value_top_value = value_top! + valueSerializer.writeLength(value_top_value); } - valueSerializer.writeInt8(value_scale_type as int32) - if ((RuntimeType.UNDEFINED) != (value_scale_type)) { - const value_scale_value = value_scale! - valueSerializer.writeNumber(value_scale_value) + const value_right = value.right + let value_right_type = RuntimeType.UNDEFINED + if (value_right != undefined) { + value_right_type = RuntimeType.OBJECT } - const value_blurOptions = value.blurOptions - let value_blurOptions_type = RuntimeType.UNDEFINED - if (value_blurOptions != undefined) { - value_blurOptions_type = RuntimeType.OBJECT + valueSerializer.writeInt8(value_right_type as int32) + if ((RuntimeType.UNDEFINED) != (value_right_type)) { + const value_right_value = value_right! + valueSerializer.writeLength(value_right_value); } - valueSerializer.writeInt8(value_blurOptions_type as int32) - if ((RuntimeType.UNDEFINED) != (value_blurOptions_type)) { - const value_blurOptions_value = value_blurOptions! - valueSerializer.writeBlurOptions(value_blurOptions_value) + const value_bottom = value.bottom + let value_bottom_type = RuntimeType.UNDEFINED + if (value_bottom != undefined) { + value_bottom_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_bottom_type as int32) + if ((RuntimeType.UNDEFINED) != (value_bottom_type)) { + const value_bottom_value = value_bottom! + valueSerializer.writeLength(value_bottom_value); + } + const value_size = value.size + let value_size_type = RuntimeType.UNDEFINED + if (value_size != undefined) { + value_size_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_size_type as int32) + if ((RuntimeType.UNDEFINED) != (value_size_type)) { + const value_size_value = value_size! + valueSerializer.writeLength(value_size_value); + } + const value_mask = value.mask + let value_mask_type = RuntimeType.UNDEFINED + if (value_mask != undefined) { + value_mask_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_mask_type as int32) + if ((RuntimeType.UNDEFINED) != (value_mask_type)) { + const value_mask_value = value_mask! + valueSerializer.writeBoolean(value_mask_value) + } + const value_color = value.color + let value_color_type = RuntimeType.UNDEFINED + if (value_color != undefined) { + value_color_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_color_type as int32) + if ((RuntimeType.UNDEFINED) != (value_color_type)) { + const value_color_value = value_color! + let value_color_value_type = RuntimeType.UNDEFINED + value_color_value_type = runtimeType(value_color_value) + if (((RuntimeType.OBJECT) == (value_color_value_type)) && (value_color_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_color_value_0 = value_color_value as Color + valueSerializer.writeInt32((value_color_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_color_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_color_value_1 = value_color_value as number + valueSerializer.writeNumber(value_color_value_1) + } + else if (((RuntimeType.STRING == value_color_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_color_value_2 = value_color_value as string + valueSerializer.writeString(value_color_value_2) + } + else if (isResource(value_color_value)) { + valueSerializer.writeInt8(3 as int32) + const value_color_value_3 = value_color_value as Resource + valueSerializer.writeResource(value_color_value_3) + } + } + const value_selectedColor = value.selectedColor + let value_selectedColor_type = RuntimeType.UNDEFINED + if (value_selectedColor != undefined) { + value_selectedColor_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_selectedColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_selectedColor_type)) { + const value_selectedColor_value = value_selectedColor! + let value_selectedColor_value_type = RuntimeType.UNDEFINED + value_selectedColor_value_type = runtimeType(value_selectedColor_value) + if (((RuntimeType.OBJECT) == (value_selectedColor_value_type)) && (value_selectedColor_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_selectedColor_value_0 = value_selectedColor_value as Color + valueSerializer.writeInt32((value_selectedColor_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_selectedColor_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_selectedColor_value_1 = value_selectedColor_value as number + valueSerializer.writeNumber(value_selectedColor_value_1) + } + else if (((RuntimeType.STRING == value_selectedColor_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_selectedColor_value_2 = value_selectedColor_value as string + valueSerializer.writeString(value_selectedColor_value_2) + } + else if (isResource(value_selectedColor_value)) { + valueSerializer.writeInt8(3 as int32) + const value_selectedColor_value_3 = value_selectedColor_value as Resource + valueSerializer.writeResource(value_selectedColor_value_3) + } } } - writeBindOptions(value: BindOptions): void { + writeRectAttribute(value: RectAttribute): void { + } + writePathAttribute(value: PathAttribute): void { + } + writeEllipseAttribute(value: EllipseAttribute): void { + } + writeCircleAttribute(value: CircleAttribute): void { + } + writeDividerOptions(value: DividerOptions): void { let valueSerializer = this - const value_backgroundColor = value.backgroundColor - let value_backgroundColor_type = RuntimeType.UNDEFINED - if (value_backgroundColor != undefined) { - value_backgroundColor_type = RuntimeType.OBJECT + const value_strokeWidth = value.strokeWidth + let value_strokeWidth_type = RuntimeType.UNDEFINED + if (value_strokeWidth != undefined) { + value_strokeWidth_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_backgroundColor_type as int32) - if ((RuntimeType.UNDEFINED) != (value_backgroundColor_type)) { - const value_backgroundColor_value = value_backgroundColor! - let value_backgroundColor_value_type = RuntimeType.UNDEFINED - value_backgroundColor_value_type = runtimeType(value_backgroundColor_value) - if (((RuntimeType.OBJECT) == (value_backgroundColor_value_type)) && (value_backgroundColor_value instanceof Color)) { + valueSerializer.writeInt8(value_strokeWidth_type as int32) + if ((RuntimeType.UNDEFINED) != (value_strokeWidth_type)) { + const value_strokeWidth_value = value_strokeWidth! + valueSerializer.writeLength(value_strokeWidth_value); + } + const value_color = value.color + let value_color_type = RuntimeType.UNDEFINED + if (value_color != undefined) { + value_color_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_color_type as int32) + if ((RuntimeType.UNDEFINED) != (value_color_type)) { + const value_color_value = value_color! + let value_color_value_type = RuntimeType.UNDEFINED + value_color_value_type = runtimeType(value_color_value) + if (((RuntimeType.OBJECT) == (value_color_value_type)) && (value_color_value instanceof Color)) { valueSerializer.writeInt8(0 as int32) - const value_backgroundColor_value_0 = value_backgroundColor_value as Color - valueSerializer.writeInt32((value_backgroundColor_value_0.value as int32)) + const value_color_value_0 = value_color_value as Color + valueSerializer.writeInt32((value_color_value_0.value as int32)) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (((RuntimeType.NUMBER == value_color_value_type))) { valueSerializer.writeInt8(1 as int32) - const value_backgroundColor_value_1 = value_backgroundColor_value as number - valueSerializer.writeNumber(value_backgroundColor_value_1) + const value_color_value_1 = value_color_value as number + valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (((RuntimeType.STRING == value_color_value_type))) { valueSerializer.writeInt8(2 as int32) - const value_backgroundColor_value_2 = value_backgroundColor_value as string - valueSerializer.writeString(value_backgroundColor_value_2) + const value_color_value_2 = value_color_value as string + valueSerializer.writeString(value_color_value_2) } - else if (isResource(value_backgroundColor_value)) { + else if (isResource(value_color_value)) { valueSerializer.writeInt8(3 as int32) - const value_backgroundColor_value_3 = value_backgroundColor_value as Resource - valueSerializer.writeResource(value_backgroundColor_value_3) + const value_color_value_3 = value_color_value as Resource + valueSerializer.writeResource(value_color_value_3) } } - const value_onAppear = value.onAppear - let value_onAppear_type = RuntimeType.UNDEFINED - if (value_onAppear != undefined) { - value_onAppear_type = RuntimeType.OBJECT + const value_startMargin = value.startMargin + let value_startMargin_type = RuntimeType.UNDEFINED + if (value_startMargin != undefined) { + value_startMargin_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_onAppear_type as int32) - if ((RuntimeType.UNDEFINED) != (value_onAppear_type)) { - const value_onAppear_value = value_onAppear! - valueSerializer.writeFunction(value_onAppear_value) + valueSerializer.writeInt8(value_startMargin_type as int32) + if ((RuntimeType.UNDEFINED) != (value_startMargin_type)) { + const value_startMargin_value = value_startMargin! + valueSerializer.writeLength(value_startMargin_value); } - const value_onDisappear = value.onDisappear - let value_onDisappear_type = RuntimeType.UNDEFINED - if (value_onDisappear != undefined) { - value_onDisappear_type = RuntimeType.OBJECT + const value_endMargin = value.endMargin + let value_endMargin_type = RuntimeType.UNDEFINED + if (value_endMargin != undefined) { + value_endMargin_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_onDisappear_type as int32) - if ((RuntimeType.UNDEFINED) != (value_onDisappear_type)) { - const value_onDisappear_value = value_onDisappear! - valueSerializer.writeFunction(value_onDisappear_value) + valueSerializer.writeInt8(value_endMargin_type as int32) + if ((RuntimeType.UNDEFINED) != (value_endMargin_type)) { + const value_endMargin_value = value_endMargin! + valueSerializer.writeLength(value_endMargin_value); } - const value_onWillAppear = value.onWillAppear - let value_onWillAppear_type = RuntimeType.UNDEFINED - if (value_onWillAppear != undefined) { - value_onWillAppear_type = RuntimeType.OBJECT + } + writeIconOptions(value: IconOptions): void { + let valueSerializer = this + const value_size = value.size + let value_size_type = RuntimeType.UNDEFINED + if (value_size != undefined) { + value_size_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_onWillAppear_type as int32) - if ((RuntimeType.UNDEFINED) != (value_onWillAppear_type)) { - const value_onWillAppear_value = value_onWillAppear! - valueSerializer.writeFunction(value_onWillAppear_value) + valueSerializer.writeInt8(value_size_type as int32) + if ((RuntimeType.UNDEFINED) != (value_size_type)) { + const value_size_value = value_size! + valueSerializer.writeLength(value_size_value); } - const value_onWillDisappear = value.onWillDisappear - let value_onWillDisappear_type = RuntimeType.UNDEFINED - if (value_onWillDisappear != undefined) { - value_onWillDisappear_type = RuntimeType.OBJECT + const value_color = value.color + let value_color_type = RuntimeType.UNDEFINED + if (value_color != undefined) { + value_color_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_onWillDisappear_type as int32) - if ((RuntimeType.UNDEFINED) != (value_onWillDisappear_type)) { - const value_onWillDisappear_value = value_onWillDisappear! - valueSerializer.writeFunction(value_onWillDisappear_value) + valueSerializer.writeInt8(value_color_type as int32) + if ((RuntimeType.UNDEFINED) != (value_color_type)) { + const value_color_value = value_color! + let value_color_value_type = RuntimeType.UNDEFINED + value_color_value_type = runtimeType(value_color_value) + if (((RuntimeType.OBJECT) == (value_color_value_type)) && (value_color_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_color_value_0 = value_color_value as Color + valueSerializer.writeInt32((value_color_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_color_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_color_value_1 = value_color_value as number + valueSerializer.writeNumber(value_color_value_1) + } + else if (((RuntimeType.STRING == value_color_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_color_value_2 = value_color_value as string + valueSerializer.writeString(value_color_value_2) + } + else if (isResource(value_color_value)) { + valueSerializer.writeInt8(3 as int32) + const value_color_value_3 = value_color_value as Resource + valueSerializer.writeResource(value_color_value_3) + } + } + const value_src = value.src + let value_src_type = RuntimeType.UNDEFINED + if (value_src != undefined) { + value_src_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_src_type as int32) + if ((RuntimeType.UNDEFINED) != (value_src_type)) { + const value_src_value = value_src! + let value_src_value_type = RuntimeType.UNDEFINED + value_src_value_type = runtimeType(value_src_value) + if (((RuntimeType.STRING == value_src_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_src_value_0 = value_src_value as string + valueSerializer.writeString(value_src_value_0) + } + else if (((RuntimeType.OBJECT == value_src_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_src_value_1 = value_src_value as Resource + valueSerializer.writeResource(value_src_value_1) + } } } - writeOnHttpErrorReceiveEvent(value: OnHttpErrorReceiveEvent): void { + writeSwipeActionItem(value: SwipeActionItem): void { let valueSerializer = this - const value_response = value.response - valueSerializer.writeMaterialized(value_response) + const value_builder = value.builder + let value_builder_type = RuntimeType.UNDEFINED + if (value_builder != undefined) { + value_builder_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_builder_type as int32) + if ((RuntimeType.UNDEFINED) != (value_builder_type)) { + const value_builder_value = value_builder! + let value_builder_value_type = RuntimeType.UNDEFINED + value_builder_value_type = runtimeType(value_builder_value) + if (((RuntimeType.FUNCTION == value_builder_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_builder_value_0 = value_builder_value as Object + valueSerializer.writeFunction(value_builder_value_0) + } + else if (((RuntimeType.UNDEFINED == value_builder_value_type))) { + valueSerializer.writeInt8(1 as int32) + } + } + const value_actionAreaDistance = value.actionAreaDistance + let value_actionAreaDistance_type = RuntimeType.UNDEFINED + if (value_actionAreaDistance != undefined) { + value_actionAreaDistance_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_actionAreaDistance_type as int32) + if ((RuntimeType.UNDEFINED) != (value_actionAreaDistance_type)) { + const value_actionAreaDistance_value = value_actionAreaDistance! + valueSerializer.writeLength(value_actionAreaDistance_value); + } + const value_onAction = value.onAction + let value_onAction_type = RuntimeType.UNDEFINED + if (value_onAction != undefined) { + value_onAction_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_onAction_type as int32) + if ((RuntimeType.UNDEFINED) != (value_onAction_type)) { + const value_onAction_value = value_onAction! + valueSerializer.writeFunction(value_onAction_value) + } + const value_onEnterActionArea = value.onEnterActionArea + let value_onEnterActionArea_type = RuntimeType.UNDEFINED + if (value_onEnterActionArea != undefined) { + value_onEnterActionArea_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_onEnterActionArea_type as int32) + if ((RuntimeType.UNDEFINED) != (value_onEnterActionArea_type)) { + const value_onEnterActionArea_value = value_onEnterActionArea! + valueSerializer.writeFunction(value_onEnterActionArea_value) + } + const value_onExitActionArea = value.onExitActionArea + let value_onExitActionArea_type = RuntimeType.UNDEFINED + if (value_onExitActionArea != undefined) { + value_onExitActionArea_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_onExitActionArea_type as int32) + if ((RuntimeType.UNDEFINED) != (value_onExitActionArea_type)) { + const value_onExitActionArea_value = value_onExitActionArea! + valueSerializer.writeFunction(value_onExitActionArea_value) + } + const value_onStateChange = value.onStateChange + let value_onStateChange_type = RuntimeType.UNDEFINED + if (value_onStateChange != undefined) { + value_onStateChange_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_onStateChange_type as int32) + if ((RuntimeType.UNDEFINED) != (value_onStateChange_type)) { + const value_onStateChange_value = value_onStateChange! + valueSerializer.writeFunction(value_onStateChange_value) + } } - writeOnRenderExitedEvent(value: OnRenderExitedEvent): void { + writeGridRowColumnOption(value: GridRowColumnOption): void { let valueSerializer = this - const value_renderExitReason = value.renderExitReason - valueSerializer.writeInt32((value_renderExitReason.value as int32)) + const value_xs = value.xs + let value_xs_type = RuntimeType.UNDEFINED + if (value_xs != undefined) { + value_xs_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_xs_type as int32) + if ((RuntimeType.UNDEFINED) != (value_xs_type)) { + const value_xs_value = value_xs! + valueSerializer.writeNumber(value_xs_value) + } + const value_sm = value.sm + let value_sm_type = RuntimeType.UNDEFINED + if (value_sm != undefined) { + value_sm_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_sm_type as int32) + if ((RuntimeType.UNDEFINED) != (value_sm_type)) { + const value_sm_value = value_sm! + valueSerializer.writeNumber(value_sm_value) + } + const value_md = value.md + let value_md_type = RuntimeType.UNDEFINED + if (value_md != undefined) { + value_md_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_md_type as int32) + if ((RuntimeType.UNDEFINED) != (value_md_type)) { + const value_md_value = value_md! + valueSerializer.writeNumber(value_md_value) + } + const value_lg = value.lg + let value_lg_type = RuntimeType.UNDEFINED + if (value_lg != undefined) { + value_lg_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_lg_type as int32) + if ((RuntimeType.UNDEFINED) != (value_lg_type)) { + const value_lg_value = value_lg! + valueSerializer.writeNumber(value_lg_value) + } + const value_xl = value.xl + let value_xl_type = RuntimeType.UNDEFINED + if (value_xl != undefined) { + value_xl_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_xl_type as int32) + if ((RuntimeType.UNDEFINED) != (value_xl_type)) { + const value_xl_value = value_xl! + valueSerializer.writeNumber(value_xl_value) + } + const value_xxl = value.xxl + let value_xxl_type = RuntimeType.UNDEFINED + if (value_xxl != undefined) { + value_xxl_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_xxl_type as int32) + if ((RuntimeType.UNDEFINED) != (value_xxl_type)) { + const value_xxl_value = value_xxl! + valueSerializer.writeNumber(value_xxl_value) + } } - writeNativeEmbedDataInfo(value: NativeEmbedDataInfo): void { + writeGutterOption(value: GutterOption): void { let valueSerializer = this - const value_info = value.info - let value_info_type = RuntimeType.UNDEFINED - if (value_info != undefined) { - value_info_type = RuntimeType.OBJECT + const value_x = value.x + let value_x_type = RuntimeType.UNDEFINED + if (value_x != undefined) { + value_x_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_x_type as int32) + if ((RuntimeType.UNDEFINED) != (value_x_type)) { + const value_x_value = value_x! + let value_x_value_type = RuntimeType.UNDEFINED + value_x_value_type = runtimeType(value_x_value) + if (((RuntimeType.NUMBER) == (value_x_value_type)) || ((RuntimeType.STRING) == (value_x_value_type)) || (((RuntimeType.OBJECT) == (value_x_value_type)) && (isResource(value_x_value)))) { + valueSerializer.writeInt8(0 as int32) + const value_x_value_0 = value_x_value as Length + valueSerializer.writeLength(value_x_value_0); + } + else if (TypeChecker.isGridRowSizeOption(value_x_value, false, false, false, false, false, false)) { + valueSerializer.writeInt8(1 as int32) + const value_x_value_1 = value_x_value as GridRowSizeOption + valueSerializer.writeGridRowSizeOption(value_x_value_1) + } } - valueSerializer.writeInt8(value_info_type as int32) - if ((RuntimeType.UNDEFINED) != (value_info_type)) { - const value_info_value = value_info! - valueSerializer.writeNativeEmbedInfo(value_info_value) + const value_y = value.y + let value_y_type = RuntimeType.UNDEFINED + if (value_y != undefined) { + value_y_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_y_type as int32) + if ((RuntimeType.UNDEFINED) != (value_y_type)) { + const value_y_value = value_y! + let value_y_value_type = RuntimeType.UNDEFINED + value_y_value_type = runtimeType(value_y_value) + if (((RuntimeType.NUMBER) == (value_y_value_type)) || ((RuntimeType.STRING) == (value_y_value_type)) || (((RuntimeType.OBJECT) == (value_y_value_type)) && (isResource(value_y_value)))) { + valueSerializer.writeInt8(0 as int32) + const value_y_value_0 = value_y_value as Length + valueSerializer.writeLength(value_y_value_0); + } + else if (TypeChecker.isGridRowSizeOption(value_y_value, false, false, false, false, false, false)) { + valueSerializer.writeInt8(1 as int32) + const value_y_value_1 = value_y_value as GridRowSizeOption + valueSerializer.writeGridRowSizeOption(value_y_value_1) + } } } - writeTerminationInfo(value: TerminationInfo): void { + writeGridColColumnOption(value: GridColColumnOption): void { let valueSerializer = this - const value_code = value.code - valueSerializer.writeNumber(value_code) - const value_want = value.want - let value_want_type = RuntimeType.UNDEFINED - if (value_want != undefined) { - value_want_type = RuntimeType.OBJECT - } - valueSerializer.writeInt8(value_want_type as int32) - if ((RuntimeType.UNDEFINED) != (value_want_type)) { - const value_want_value = value_want! - valueSerializer.writeCustomObject("default", value_want_value) + const value_xs = value.xs + let value_xs_type = RuntimeType.UNDEFINED + if (value_xs != undefined) { + value_xs_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_xs_type as int32) + if ((RuntimeType.UNDEFINED) != (value_xs_type)) { + const value_xs_value = value_xs! + valueSerializer.writeNumber(value_xs_value) + } + const value_sm = value.sm + let value_sm_type = RuntimeType.UNDEFINED + if (value_sm != undefined) { + value_sm_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_sm_type as int32) + if ((RuntimeType.UNDEFINED) != (value_sm_type)) { + const value_sm_value = value_sm! + valueSerializer.writeNumber(value_sm_value) + } + const value_md = value.md + let value_md_type = RuntimeType.UNDEFINED + if (value_md != undefined) { + value_md_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_md_type as int32) + if ((RuntimeType.UNDEFINED) != (value_md_type)) { + const value_md_value = value_md! + valueSerializer.writeNumber(value_md_value) + } + const value_lg = value.lg + let value_lg_type = RuntimeType.UNDEFINED + if (value_lg != undefined) { + value_lg_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_lg_type as int32) + if ((RuntimeType.UNDEFINED) != (value_lg_type)) { + const value_lg_value = value_lg! + valueSerializer.writeNumber(value_lg_value) + } + const value_xl = value.xl + let value_xl_type = RuntimeType.UNDEFINED + if (value_xl != undefined) { + value_xl_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_xl_type as int32) + if ((RuntimeType.UNDEFINED) != (value_xl_type)) { + const value_xl_value = value_xl! + valueSerializer.writeNumber(value_xl_value) + } + const value_xxl = value.xxl + let value_xxl_type = RuntimeType.UNDEFINED + if (value_xxl != undefined) { + value_xxl_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_xxl_type as int32) + if ((RuntimeType.UNDEFINED) != (value_xxl_type)) { + const value_xxl_value = value_xxl! + valueSerializer.writeNumber(value_xxl_value) } } - writeNavContentInfo(value: NavContentInfo): void { + writeBadgeStyle(value: BadgeStyle): void { let valueSerializer = this - const value_name = value.name - let value_name_type = RuntimeType.UNDEFINED - if (value_name != undefined) { - value_name_type = RuntimeType.OBJECT - } - valueSerializer.writeInt8(value_name_type as int32) - if ((RuntimeType.UNDEFINED) != (value_name_type)) { - const value_name_value = value_name! - valueSerializer.writeString(value_name_value) - } - const value_index = value.index - valueSerializer.writeNumber(value_index) - const value_mode = value.mode - let value_mode_type = RuntimeType.UNDEFINED - if (value_mode != undefined) { - value_mode_type = RuntimeType.OBJECT + const value_color = value.color + let value_color_type = RuntimeType.UNDEFINED + if (value_color != undefined) { + value_color_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_mode_type as int32) - if ((RuntimeType.UNDEFINED) != (value_mode_type)) { - const value_mode_value = value_mode! - valueSerializer.writeInt32((value_mode_value.value as int32)) + valueSerializer.writeInt8(value_color_type as int32) + if ((RuntimeType.UNDEFINED) != (value_color_type)) { + const value_color_value = value_color! + let value_color_value_type = RuntimeType.UNDEFINED + value_color_value_type = runtimeType(value_color_value) + if (((RuntimeType.OBJECT) == (value_color_value_type)) && (value_color_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_color_value_0 = value_color_value as Color + valueSerializer.writeInt32((value_color_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_color_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_color_value_1 = value_color_value as number + valueSerializer.writeNumber(value_color_value_1) + } + else if (((RuntimeType.STRING == value_color_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_color_value_2 = value_color_value as string + valueSerializer.writeString(value_color_value_2) + } + else if (isResource(value_color_value)) { + valueSerializer.writeInt8(3 as int32) + const value_color_value_3 = value_color_value as Resource + valueSerializer.writeResource(value_color_value_3) + } } - const value_param = value.param - let value_param_type = RuntimeType.UNDEFINED - if (value_param != undefined) { - value_param_type = RuntimeType.OBJECT + const value_fontSize = value.fontSize + let value_fontSize_type = RuntimeType.UNDEFINED + if (value_fontSize != undefined) { + value_fontSize_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_fontSize_type as int32) + if ((RuntimeType.UNDEFINED) != (value_fontSize_type)) { + const value_fontSize_value = value_fontSize! + let value_fontSize_value_type = RuntimeType.UNDEFINED + value_fontSize_value_type = runtimeType(value_fontSize_value) + if (((RuntimeType.NUMBER == value_fontSize_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_fontSize_value_0 = value_fontSize_value as number + valueSerializer.writeNumber(value_fontSize_value_0) + } + else if (((RuntimeType.STRING == value_fontSize_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_fontSize_value_1 = value_fontSize_value as string + valueSerializer.writeString(value_fontSize_value_1) + } } - valueSerializer.writeInt8(value_param_type as int32) - if ((RuntimeType.UNDEFINED) != (value_param_type)) { - const value_param_value = value_param! - valueSerializer.writeObject(value_param_value) + const value_badgeSize = value.badgeSize + let value_badgeSize_type = RuntimeType.UNDEFINED + if (value_badgeSize != undefined) { + value_badgeSize_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_badgeSize_type as int32) + if ((RuntimeType.UNDEFINED) != (value_badgeSize_type)) { + const value_badgeSize_value = value_badgeSize! + let value_badgeSize_value_type = RuntimeType.UNDEFINED + value_badgeSize_value_type = runtimeType(value_badgeSize_value) + if (((RuntimeType.NUMBER == value_badgeSize_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_badgeSize_value_0 = value_badgeSize_value as number + valueSerializer.writeNumber(value_badgeSize_value_0) + } + else if (((RuntimeType.STRING == value_badgeSize_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_badgeSize_value_1 = value_badgeSize_value as string + valueSerializer.writeString(value_badgeSize_value_1) + } } - const value_navDestinationId = value.navDestinationId - let value_navDestinationId_type = RuntimeType.UNDEFINED - if (value_navDestinationId != undefined) { - value_navDestinationId_type = RuntimeType.OBJECT + const value_badgeColor = value.badgeColor + let value_badgeColor_type = RuntimeType.UNDEFINED + if (value_badgeColor != undefined) { + value_badgeColor_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_badgeColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_badgeColor_type)) { + const value_badgeColor_value = value_badgeColor! + let value_badgeColor_value_type = RuntimeType.UNDEFINED + value_badgeColor_value_type = runtimeType(value_badgeColor_value) + if (((RuntimeType.OBJECT) == (value_badgeColor_value_type)) && (value_badgeColor_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_badgeColor_value_0 = value_badgeColor_value as Color + valueSerializer.writeInt32((value_badgeColor_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_badgeColor_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_badgeColor_value_1 = value_badgeColor_value as number + valueSerializer.writeNumber(value_badgeColor_value_1) + } + else if (((RuntimeType.STRING == value_badgeColor_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_badgeColor_value_2 = value_badgeColor_value as string + valueSerializer.writeString(value_badgeColor_value_2) + } + else if (isResource(value_badgeColor_value)) { + valueSerializer.writeInt8(3 as int32) + const value_badgeColor_value_3 = value_badgeColor_value as Resource + valueSerializer.writeResource(value_badgeColor_value_3) + } } - valueSerializer.writeInt8(value_navDestinationId_type as int32) - if ((RuntimeType.UNDEFINED) != (value_navDestinationId_type)) { - const value_navDestinationId_value = value_navDestinationId! - valueSerializer.writeString(value_navDestinationId_value) + const value_borderColor = value.borderColor + let value_borderColor_type = RuntimeType.UNDEFINED + if (value_borderColor != undefined) { + value_borderColor_type = RuntimeType.OBJECT } - } - writeVisibleListContentInfo(value: VisibleListContentInfo): void { - let valueSerializer = this - const value_index = value.index - valueSerializer.writeNumber(value_index) - const value_itemIndexInGroup = value.itemIndexInGroup - let value_itemIndexInGroup_type = RuntimeType.UNDEFINED - if (value_itemIndexInGroup != undefined) { - value_itemIndexInGroup_type = RuntimeType.OBJECT + valueSerializer.writeInt8(value_borderColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_borderColor_type)) { + const value_borderColor_value = value_borderColor! + let value_borderColor_value_type = RuntimeType.UNDEFINED + value_borderColor_value_type = runtimeType(value_borderColor_value) + if (((RuntimeType.OBJECT) == (value_borderColor_value_type)) && (value_borderColor_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_borderColor_value_0 = value_borderColor_value as Color + valueSerializer.writeInt32((value_borderColor_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_borderColor_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_borderColor_value_1 = value_borderColor_value as number + valueSerializer.writeNumber(value_borderColor_value_1) + } + else if (((RuntimeType.STRING == value_borderColor_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_borderColor_value_2 = value_borderColor_value as string + valueSerializer.writeString(value_borderColor_value_2) + } + else if (isResource(value_borderColor_value)) { + valueSerializer.writeInt8(3 as int32) + const value_borderColor_value_3 = value_borderColor_value as Resource + valueSerializer.writeResource(value_borderColor_value_3) + } } - valueSerializer.writeInt8(value_itemIndexInGroup_type as int32) - if ((RuntimeType.UNDEFINED) != (value_itemIndexInGroup_type)) { - const value_itemIndexInGroup_value = value_itemIndexInGroup! - valueSerializer.writeNumber(value_itemIndexInGroup_value) + const value_borderWidth = value.borderWidth + let value_borderWidth_type = RuntimeType.UNDEFINED + if (value_borderWidth != undefined) { + value_borderWidth_type = RuntimeType.OBJECT } - } - writeFormCallbackInfo(value: FormCallbackInfo): void { - let valueSerializer = this - const value_id = value.id - valueSerializer.writeNumber(value_id) - const value_idString = value.idString - valueSerializer.writeString(value_idString) - } - writeClickEvent(value: ClickEvent): void { - let valueSerializer = this - const value_displayX = value.displayX - valueSerializer.writeNumber(value_displayX) - const value_displayY = value.displayY - valueSerializer.writeNumber(value_displayY) - } - writeFingerInfo(value: FingerInfo): void { - let valueSerializer = this - const value_id = value.id - valueSerializer.writeNumber(value_id) - const value_globalX = value.globalX - valueSerializer.writeNumber(value_globalX) - const value_globalY = value.globalY - valueSerializer.writeNumber(value_globalY) - const value_localX = value.localX - valueSerializer.writeNumber(value_localX) - const value_localY = value.localY - valueSerializer.writeNumber(value_localY) - const value_displayX = value.displayX - valueSerializer.writeNumber(value_displayX) - const value_displayY = value.displayY - valueSerializer.writeNumber(value_displayY) - } - writeBaseGestureEvent(value: BaseGestureEvent): void { - let valueSerializer = this - const value_fingerList = value.fingerList - valueSerializer.writeInt8(runtimeType(value_fingerList) as int32) - valueSerializer.writeInt32(value_fingerList.length as int32) - for (let i = 0; i < value_fingerList.length; i++) { - const value_fingerList_element = value_fingerList[i] - valueSerializer.writeFingerInfo(value_fingerList_element) + valueSerializer.writeInt8(value_borderWidth_type as int32) + if ((RuntimeType.UNDEFINED) != (value_borderWidth_type)) { + const value_borderWidth_value = value_borderWidth! + valueSerializer.writeLength(value_borderWidth_value); + } + const value_fontWeight = value.fontWeight + let value_fontWeight_type = RuntimeType.UNDEFINED + if (value_fontWeight != undefined) { + value_fontWeight_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_fontWeight_type as int32) + if ((RuntimeType.UNDEFINED) != (value_fontWeight_type)) { + const value_fontWeight_value = value_fontWeight! + let value_fontWeight_value_type = RuntimeType.UNDEFINED + value_fontWeight_value_type = runtimeType(value_fontWeight_value) + if (((RuntimeType.NUMBER == value_fontWeight_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_fontWeight_value_0 = value_fontWeight_value as number + valueSerializer.writeNumber(value_fontWeight_value_0) + } + else if (((value_fontWeight_value instanceof FontWeight))) { + valueSerializer.writeInt8(1 as int32) + const value_fontWeight_value_1 = value_fontWeight_value as FontWeight + valueSerializer.writeInt32((value_fontWeight_value_1.value as int32)) + } + else if (((RuntimeType.STRING == value_fontWeight_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_fontWeight_value_2 = value_fontWeight_value as string + valueSerializer.writeString(value_fontWeight_value_2) + } } } - writeTouchTestInfo(value: TouchTestInfo): void { - let valueSerializer = this - const value_windowX = value.windowX - valueSerializer.writeNumber(value_windowX) - const value_windowY = value.windowY - valueSerializer.writeNumber(value_windowY) - const value_parentX = value.parentX - valueSerializer.writeNumber(value_parentX) - const value_parentY = value.parentY - valueSerializer.writeNumber(value_parentY) - const value_x = value.x - valueSerializer.writeNumber(value_x) - const value_y = value.y - valueSerializer.writeNumber(value_y) - const value_rect = value.rect - valueSerializer.writeRectResult(value_rect) - const value_id = value.id - valueSerializer.writeString(value_id) - } - writeNavigationInterception(value: NavigationInterception): void { + writeLocalizedEdgeColors(value: LocalizedEdgeColors): void { let valueSerializer = this - const value_willShow = value.willShow - let value_willShow_type = RuntimeType.UNDEFINED - if (value_willShow != undefined) { - value_willShow_type = RuntimeType.OBJECT - } - valueSerializer.writeInt8(value_willShow_type as int32) - if ((RuntimeType.UNDEFINED) != (value_willShow_type)) { - const value_willShow_value = value_willShow! - valueSerializer.writeFunction(value_willShow_value) - } - const value_didShow = value.didShow - let value_didShow_type = RuntimeType.UNDEFINED - if (value_didShow != undefined) { - value_didShow_type = RuntimeType.OBJECT - } - valueSerializer.writeInt8(value_didShow_type as int32) - if ((RuntimeType.UNDEFINED) != (value_didShow_type)) { - const value_didShow_value = value_didShow! - valueSerializer.writeFunction(value_didShow_value) + const value_top = value.top + let value_top_type = RuntimeType.UNDEFINED + if (value_top != undefined) { + value_top_type = RuntimeType.OBJECT } - const value_modeChange = value.modeChange - let value_modeChange_type = RuntimeType.UNDEFINED - if (value_modeChange != undefined) { - value_modeChange_type = RuntimeType.OBJECT + valueSerializer.writeInt8(value_top_type as int32) + if ((RuntimeType.UNDEFINED) != (value_top_type)) { + const value_top_value = value_top! + let value_top_value_type = RuntimeType.UNDEFINED + value_top_value_type = runtimeType(value_top_value) + if (((RuntimeType.OBJECT) == (value_top_value_type)) && (value_top_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_top_value_0 = value_top_value as Color + valueSerializer.writeInt32((value_top_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_top_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_top_value_1 = value_top_value as number + valueSerializer.writeNumber(value_top_value_1) + } + else if (((RuntimeType.STRING == value_top_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_top_value_2 = value_top_value as string + valueSerializer.writeString(value_top_value_2) + } + else if (isResource(value_top_value)) { + valueSerializer.writeInt8(3 as int32) + const value_top_value_3 = value_top_value as Resource + valueSerializer.writeResource(value_top_value_3) + } } - valueSerializer.writeInt8(value_modeChange_type as int32) - if ((RuntimeType.UNDEFINED) != (value_modeChange_type)) { - const value_modeChange_value = value_modeChange! - valueSerializer.writeFunction(value_modeChange_value) + const value_end = value.end + let value_end_type = RuntimeType.UNDEFINED + if (value_end != undefined) { + value_end_type = RuntimeType.OBJECT } - } - writeNavigationOptions(value: NavigationOptions): void { - let valueSerializer = this - const value_launchMode = value.launchMode - let value_launchMode_type = RuntimeType.UNDEFINED - if (value_launchMode != undefined) { - value_launchMode_type = RuntimeType.OBJECT - } - valueSerializer.writeInt8(value_launchMode_type as int32) - if ((RuntimeType.UNDEFINED) != (value_launchMode_type)) { - const value_launchMode_value = value_launchMode! - valueSerializer.writeInt32((value_launchMode_value.value as int32)) - } - const value_animated = value.animated - let value_animated_type = RuntimeType.UNDEFINED - if (value_animated != undefined) { - value_animated_type = RuntimeType.OBJECT - } - valueSerializer.writeInt8(value_animated_type as int32) - if ((RuntimeType.UNDEFINED) != (value_animated_type)) { - const value_animated_value = value_animated! - valueSerializer.writeBoolean(value_animated_value) + valueSerializer.writeInt8(value_end_type as int32) + if ((RuntimeType.UNDEFINED) != (value_end_type)) { + const value_end_value = value_end! + let value_end_value_type = RuntimeType.UNDEFINED + value_end_value_type = runtimeType(value_end_value) + if (((RuntimeType.OBJECT) == (value_end_value_type)) && (value_end_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_end_value_0 = value_end_value as Color + valueSerializer.writeInt32((value_end_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_end_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_end_value_1 = value_end_value as number + valueSerializer.writeNumber(value_end_value_1) + } + else if (((RuntimeType.STRING == value_end_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_end_value_2 = value_end_value as string + valueSerializer.writeString(value_end_value_2) + } + else if (isResource(value_end_value)) { + valueSerializer.writeInt8(3 as int32) + const value_end_value_3 = value_end_value as Resource + valueSerializer.writeResource(value_end_value_3) + } } - } - writeNavPathInfo(value: NavPathInfo): void { - let valueSerializer = this - const value_name = value.name - valueSerializer.writeString(value_name) - const value_param = value.param - let value_param_type = RuntimeType.UNDEFINED - if (value_param != undefined) { - value_param_type = RuntimeType.OBJECT + const value_bottom = value.bottom + let value_bottom_type = RuntimeType.UNDEFINED + if (value_bottom != undefined) { + value_bottom_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_param_type as int32) - if ((RuntimeType.UNDEFINED) != (value_param_type)) { - const value_param_value = value_param! - valueSerializer.writeCustomObject("Any", value_param_value) + valueSerializer.writeInt8(value_bottom_type as int32) + if ((RuntimeType.UNDEFINED) != (value_bottom_type)) { + const value_bottom_value = value_bottom! + let value_bottom_value_type = RuntimeType.UNDEFINED + value_bottom_value_type = runtimeType(value_bottom_value) + if (((RuntimeType.OBJECT) == (value_bottom_value_type)) && (value_bottom_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_bottom_value_0 = value_bottom_value as Color + valueSerializer.writeInt32((value_bottom_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_bottom_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_bottom_value_1 = value_bottom_value as number + valueSerializer.writeNumber(value_bottom_value_1) + } + else if (((RuntimeType.STRING == value_bottom_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_bottom_value_2 = value_bottom_value as string + valueSerializer.writeString(value_bottom_value_2) + } + else if (isResource(value_bottom_value)) { + valueSerializer.writeInt8(3 as int32) + const value_bottom_value_3 = value_bottom_value as Resource + valueSerializer.writeResource(value_bottom_value_3) + } } - const value_onPop = value.onPop - let value_onPop_type = RuntimeType.UNDEFINED - if (value_onPop != undefined) { - value_onPop_type = RuntimeType.OBJECT + const value_start = value.start + let value_start_type = RuntimeType.UNDEFINED + if (value_start != undefined) { + value_start_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_onPop_type as int32) - if ((RuntimeType.UNDEFINED) != (value_onPop_type)) { - const value_onPop_value = value_onPop! - valueSerializer.writeFunction(value_onPop_value) + valueSerializer.writeInt8(value_start_type as int32) + if ((RuntimeType.UNDEFINED) != (value_start_type)) { + const value_start_value = value_start! + let value_start_value_type = RuntimeType.UNDEFINED + value_start_value_type = runtimeType(value_start_value) + if (((RuntimeType.OBJECT) == (value_start_value_type)) && (value_start_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_start_value_0 = value_start_value as Color + valueSerializer.writeInt32((value_start_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_start_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_start_value_1 = value_start_value as number + valueSerializer.writeNumber(value_start_value_1) + } + else if (((RuntimeType.STRING == value_start_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_start_value_2 = value_start_value as string + valueSerializer.writeString(value_start_value_2) + } + else if (isResource(value_start_value)) { + valueSerializer.writeInt8(3 as int32) + const value_start_value_3 = value_start_value as Resource + valueSerializer.writeResource(value_start_value_3) + } } } - writeImageData(value: ImageData): void { - let valueSerializer = this - const value_data = value.data - valueSerializer.writeUint8ClampedArray(value_data) - const value_height = value.height - valueSerializer.writeNumber(value_height) - const value_width = value.width - valueSerializer.writeNumber(value_width) - } - writeRenderingContextSettings(value: RenderingContextSettings): void { + writeLocalizedEdgeWidths(value: LocalizedEdgeWidths): void { let valueSerializer = this - const value_antialias = value.antialias - let value_antialias_type = RuntimeType.UNDEFINED - if (value_antialias != undefined) { - value_antialias_type = RuntimeType.OBJECT + const value_top = value.top + let value_top_type = RuntimeType.UNDEFINED + if (value_top != undefined) { + value_top_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_antialias_type as int32) - if ((RuntimeType.UNDEFINED) != (value_antialias_type)) { - const value_antialias_value = value_antialias! - valueSerializer.writeBoolean(value_antialias_value) + valueSerializer.writeInt8(value_top_type as int32) + if ((RuntimeType.UNDEFINED) != (value_top_type)) { + const value_top_value = value_top! + valueSerializer.writeCustomObject("LengthMetrics", value_top_value) } - } - writeUIGestureEvent(value: UIGestureEvent): void { - } - writeUIExtensionOptions(value: UIExtensionOptions): void { - let valueSerializer = this - const value_isTransferringCaller = value.isTransferringCaller - let value_isTransferringCaller_type = RuntimeType.UNDEFINED - if (value_isTransferringCaller != undefined) { - value_isTransferringCaller_type = RuntimeType.OBJECT + const value_end = value.end + let value_end_type = RuntimeType.UNDEFINED + if (value_end != undefined) { + value_end_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_isTransferringCaller_type as int32) - if ((RuntimeType.UNDEFINED) != (value_isTransferringCaller_type)) { - const value_isTransferringCaller_value = value_isTransferringCaller! - valueSerializer.writeBoolean(value_isTransferringCaller_value) + valueSerializer.writeInt8(value_end_type as int32) + if ((RuntimeType.UNDEFINED) != (value_end_type)) { + const value_end_value = value_end! + valueSerializer.writeCustomObject("LengthMetrics", value_end_value) } - const value_placeholder = value.placeholder - let value_placeholder_type = RuntimeType.UNDEFINED - if (value_placeholder != undefined) { - value_placeholder_type = RuntimeType.OBJECT + const value_bottom = value.bottom + let value_bottom_type = RuntimeType.UNDEFINED + if (value_bottom != undefined) { + value_bottom_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_placeholder_type as int32) - if ((RuntimeType.UNDEFINED) != (value_placeholder_type)) { - const value_placeholder_value = value_placeholder! - valueSerializer.writeCustomObject("ComponentContent", value_placeholder_value) + valueSerializer.writeInt8(value_bottom_type as int32) + if ((RuntimeType.UNDEFINED) != (value_bottom_type)) { + const value_bottom_value = value_bottom! + valueSerializer.writeCustomObject("LengthMetrics", value_bottom_value) } - const value_dpiFollowStrategy = value.dpiFollowStrategy - let value_dpiFollowStrategy_type = RuntimeType.UNDEFINED - if (value_dpiFollowStrategy != undefined) { - value_dpiFollowStrategy_type = RuntimeType.OBJECT + const value_start = value.start + let value_start_type = RuntimeType.UNDEFINED + if (value_start != undefined) { + value_start_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_dpiFollowStrategy_type as int32) - if ((RuntimeType.UNDEFINED) != (value_dpiFollowStrategy_type)) { - const value_dpiFollowStrategy_value = value_dpiFollowStrategy! - valueSerializer.writeInt32((value_dpiFollowStrategy_value.value as int32)) + valueSerializer.writeInt8(value_start_type as int32) + if ((RuntimeType.UNDEFINED) != (value_start_type)) { + const value_start_value = value_start! + valueSerializer.writeCustomObject("LengthMetrics", value_start_value) } } - writeTextCascadePickerRangeContent(value: TextCascadePickerRangeContent): void { + writeSheetTitleOptions(value: SheetTitleOptions): void { let valueSerializer = this - const value_text = value.text - let value_text_type = RuntimeType.UNDEFINED - value_text_type = runtimeType(value_text) - if (((RuntimeType.STRING == value_text_type))) { + const value_title = value.title + let value_title_type = RuntimeType.UNDEFINED + value_title_type = runtimeType(value_title) + if (((RuntimeType.STRING == value_title_type))) { valueSerializer.writeInt8(0 as int32) - const value_text_0 = value_text as string - valueSerializer.writeString(value_text_0) + const value_title_0 = value_title as string + valueSerializer.writeString(value_title_0) } - else if (((RuntimeType.OBJECT == value_text_type))) { + else if (((RuntimeType.OBJECT == value_title_type))) { valueSerializer.writeInt8(1 as int32) - const value_text_1 = value_text as Resource - valueSerializer.writeResource(value_text_1) + const value_title_1 = value_title as Resource + valueSerializer.writeResource(value_title_1) } - const value_children = value.children - let value_children_type = RuntimeType.UNDEFINED - if (value_children != undefined) { - value_children_type = RuntimeType.OBJECT + const value_subtitle = value.subtitle + let value_subtitle_type = RuntimeType.UNDEFINED + if (value_subtitle != undefined) { + value_subtitle_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_children_type as int32) - if ((RuntimeType.UNDEFINED) != (value_children_type)) { - const value_children_value = value_children! - valueSerializer.writeInt8(runtimeType(value_children_value) as int32) - valueSerializer.writeInt32(value_children_value.length as int32) - for (let i = 0; i < value_children_value.length; i++) { - const value_children_value_element = value_children_value[i] - valueSerializer.writeTextCascadePickerRangeContent(value_children_value_element) + valueSerializer.writeInt8(value_subtitle_type as int32) + if ((RuntimeType.UNDEFINED) != (value_subtitle_type)) { + const value_subtitle_value = value_subtitle! + let value_subtitle_value_type = RuntimeType.UNDEFINED + value_subtitle_value_type = runtimeType(value_subtitle_value) + if (((RuntimeType.STRING == value_subtitle_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_subtitle_value_0 = value_subtitle_value as string + valueSerializer.writeString(value_subtitle_value_0) + } + else if (((RuntimeType.OBJECT == value_subtitle_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_subtitle_value_1 = value_subtitle_value as Resource + valueSerializer.writeResource(value_subtitle_value_1) } } } - writeTextPickerRangeContent(value: TextPickerRangeContent): void { + writeContextMenuAnimationOptions(value: ContextMenuAnimationOptions): void { let valueSerializer = this - const value_icon = value.icon - let value_icon_type = RuntimeType.UNDEFINED - value_icon_type = runtimeType(value_icon) - if (((RuntimeType.STRING == value_icon_type))) { - valueSerializer.writeInt8(0 as int32) - const value_icon_0 = value_icon as string - valueSerializer.writeString(value_icon_0) + const value_scale = value.scale + let value_scale_type = RuntimeType.UNDEFINED + if (value_scale != undefined) { + value_scale_type = RuntimeType.OBJECT } - else if (((RuntimeType.OBJECT == value_icon_type))) { - valueSerializer.writeInt8(1 as int32) - const value_icon_1 = value_icon as Resource - valueSerializer.writeResource(value_icon_1) + valueSerializer.writeInt8(value_scale_type as int32) + if ((RuntimeType.UNDEFINED) != (value_scale_type)) { + const value_scale_value = value_scale! + valueSerializer.writeCustomObject("AnimationRange", value_scale_value) } - const value_text = value.text - let value_text_type = RuntimeType.UNDEFINED - if (value_text != undefined) { - value_text_type = RuntimeType.OBJECT + const value_transition = value.transition + let value_transition_type = RuntimeType.UNDEFINED + if (value_transition != undefined) { + value_transition_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_text_type as int32) - if ((RuntimeType.UNDEFINED) != (value_text_type)) { - const value_text_value = value_text! - let value_text_value_type = RuntimeType.UNDEFINED - value_text_value_type = runtimeType(value_text_value) - if (((RuntimeType.STRING == value_text_value_type))) { + valueSerializer.writeInt8(value_transition_type as int32) + if ((RuntimeType.UNDEFINED) != (value_transition_type)) { + const value_transition_value = value_transition! + valueSerializer.writeCustomObject("TransitionEffect", value_transition_value) + } + const value_hoverScale = value.hoverScale + let value_hoverScale_type = RuntimeType.UNDEFINED + if (value_hoverScale != undefined) { + value_hoverScale_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_hoverScale_type as int32) + if ((RuntimeType.UNDEFINED) != (value_hoverScale_type)) { + const value_hoverScale_value = value_hoverScale! + valueSerializer.writeCustomObject("AnimationRange", value_hoverScale_value) + } + } + writePopupMessageOptions(value: PopupMessageOptions): void { + let valueSerializer = this + const value_textColor = value.textColor + let value_textColor_type = RuntimeType.UNDEFINED + if (value_textColor != undefined) { + value_textColor_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_textColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_textColor_type)) { + const value_textColor_value = value_textColor! + let value_textColor_value_type = RuntimeType.UNDEFINED + value_textColor_value_type = runtimeType(value_textColor_value) + if (((RuntimeType.OBJECT) == (value_textColor_value_type)) && (value_textColor_value instanceof Color)) { valueSerializer.writeInt8(0 as int32) - const value_text_value_0 = value_text_value as string - valueSerializer.writeString(value_text_value_0) + const value_textColor_value_0 = value_textColor_value as Color + valueSerializer.writeInt32((value_textColor_value_0.value as int32)) } - else if (((RuntimeType.OBJECT == value_text_value_type))) { + else if (((RuntimeType.NUMBER == value_textColor_value_type))) { valueSerializer.writeInt8(1 as int32) - const value_text_value_1 = value_text_value as Resource - valueSerializer.writeResource(value_text_value_1) + const value_textColor_value_1 = value_textColor_value as number + valueSerializer.writeNumber(value_textColor_value_1) } + else if (((RuntimeType.STRING == value_textColor_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_textColor_value_2 = value_textColor_value as string + valueSerializer.writeString(value_textColor_value_2) + } + else if (isResource(value_textColor_value)) { + valueSerializer.writeInt8(3 as int32) + const value_textColor_value_3 = value_textColor_value as Resource + valueSerializer.writeResource(value_textColor_value_3) + } + } + const value_font = value.font + let value_font_type = RuntimeType.UNDEFINED + if (value_font != undefined) { + value_font_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_font_type as int32) + if ((RuntimeType.UNDEFINED) != (value_font_type)) { + const value_font_value = value_font! + valueSerializer.writeFont(value_font_value) } } - writeTextPickerOptions(value: TextPickerOptions): void { + writeRotateOptions(value: RotateOptions): void { let valueSerializer = this - const value_range = value.range - let value_range_type = RuntimeType.UNDEFINED - value_range_type = runtimeType(value_range) - if (TypeChecker.isstringBracketsArray(value_range)) { - valueSerializer.writeInt8(0 as int32) - const value_range_0 = value_range as string[] - valueSerializer.writeInt8(runtimeType(value_range_0) as int32) - valueSerializer.writeInt32(value_range_0.length as int32) - for (let i = 0; i < value_range_0.length; i++) { - const value_range_0_element = value_range_0[i] - valueSerializer.writeString(value_range_0_element) + const value_x = value.x + let value_x_type = RuntimeType.UNDEFINED + if (value_x != undefined) { + value_x_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_x_type as int32) + if ((RuntimeType.UNDEFINED) != (value_x_type)) { + const value_x_value = value_x! + valueSerializer.writeNumber(value_x_value) + } + const value_y = value.y + let value_y_type = RuntimeType.UNDEFINED + if (value_y != undefined) { + value_y_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_y_type as int32) + if ((RuntimeType.UNDEFINED) != (value_y_type)) { + const value_y_value = value_y! + valueSerializer.writeNumber(value_y_value) + } + const value_z = value.z + let value_z_type = RuntimeType.UNDEFINED + if (value_z != undefined) { + value_z_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_z_type as int32) + if ((RuntimeType.UNDEFINED) != (value_z_type)) { + const value_z_value = value_z! + valueSerializer.writeNumber(value_z_value) + } + const value_centerX = value.centerX + let value_centerX_type = RuntimeType.UNDEFINED + if (value_centerX != undefined) { + value_centerX_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_centerX_type as int32) + if ((RuntimeType.UNDEFINED) != (value_centerX_type)) { + const value_centerX_value = value_centerX! + let value_centerX_value_type = RuntimeType.UNDEFINED + value_centerX_value_type = runtimeType(value_centerX_value) + if (((RuntimeType.NUMBER == value_centerX_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_centerX_value_0 = value_centerX_value as number + valueSerializer.writeNumber(value_centerX_value_0) + } + else if (((RuntimeType.STRING == value_centerX_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_centerX_value_1 = value_centerX_value as string + valueSerializer.writeString(value_centerX_value_1) } } - else if (TypeChecker.isstringBracketsArrayBracketsArray(value_range)) { + const value_centerY = value.centerY + let value_centerY_type = RuntimeType.UNDEFINED + if (value_centerY != undefined) { + value_centerY_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_centerY_type as int32) + if ((RuntimeType.UNDEFINED) != (value_centerY_type)) { + const value_centerY_value = value_centerY! + let value_centerY_value_type = RuntimeType.UNDEFINED + value_centerY_value_type = runtimeType(value_centerY_value) + if (((RuntimeType.NUMBER == value_centerY_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_centerY_value_0 = value_centerY_value as number + valueSerializer.writeNumber(value_centerY_value_0) + } + else if (((RuntimeType.STRING == value_centerY_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_centerY_value_1 = value_centerY_value as string + valueSerializer.writeString(value_centerY_value_1) + } + } + const value_centerZ = value.centerZ + let value_centerZ_type = RuntimeType.UNDEFINED + if (value_centerZ != undefined) { + value_centerZ_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_centerZ_type as int32) + if ((RuntimeType.UNDEFINED) != (value_centerZ_type)) { + const value_centerZ_value = value_centerZ! + valueSerializer.writeNumber(value_centerZ_value) + } + const value_perspective = value.perspective + let value_perspective_type = RuntimeType.UNDEFINED + if (value_perspective != undefined) { + value_perspective_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_perspective_type as int32) + if ((RuntimeType.UNDEFINED) != (value_perspective_type)) { + const value_perspective_value = value_perspective! + valueSerializer.writeNumber(value_perspective_value) + } + const value_angle = value.angle + let value_angle_type = RuntimeType.UNDEFINED + value_angle_type = runtimeType(value_angle) + if (((RuntimeType.NUMBER == value_angle_type))) { + valueSerializer.writeInt8(0 as int32) + const value_angle_0 = value_angle as number + valueSerializer.writeNumber(value_angle_0) + } + else if (((RuntimeType.STRING == value_angle_type))) { valueSerializer.writeInt8(1 as int32) - const value_range_1 = value_range as string[][] - valueSerializer.writeInt8(runtimeType(value_range_1) as int32) - valueSerializer.writeInt32(value_range_1.length as int32) - for (let i = 0; i < value_range_1.length; i++) { - const value_range_1_element = value_range_1[i] - valueSerializer.writeInt8(runtimeType(value_range_1_element) as int32) - valueSerializer.writeInt32(value_range_1_element.length as int32) - for (let i = 0; i < value_range_1_element.length; i++) { - const value_range_1_element_element = value_range_1_element[i] - valueSerializer.writeString(value_range_1_element_element) - } + const value_angle_1 = value_angle as string + valueSerializer.writeString(value_angle_1) + } + } + writeScaleOptions(value: ScaleOptions): void { + let valueSerializer = this + const value_x = value.x + let value_x_type = RuntimeType.UNDEFINED + if (value_x != undefined) { + value_x_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_x_type as int32) + if ((RuntimeType.UNDEFINED) != (value_x_type)) { + const value_x_value = value_x! + valueSerializer.writeNumber(value_x_value) + } + const value_y = value.y + let value_y_type = RuntimeType.UNDEFINED + if (value_y != undefined) { + value_y_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_y_type as int32) + if ((RuntimeType.UNDEFINED) != (value_y_type)) { + const value_y_value = value_y! + valueSerializer.writeNumber(value_y_value) + } + const value_z = value.z + let value_z_type = RuntimeType.UNDEFINED + if (value_z != undefined) { + value_z_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_z_type as int32) + if ((RuntimeType.UNDEFINED) != (value_z_type)) { + const value_z_value = value_z! + valueSerializer.writeNumber(value_z_value) + } + const value_centerX = value.centerX + let value_centerX_type = RuntimeType.UNDEFINED + if (value_centerX != undefined) { + value_centerX_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_centerX_type as int32) + if ((RuntimeType.UNDEFINED) != (value_centerX_type)) { + const value_centerX_value = value_centerX! + let value_centerX_value_type = RuntimeType.UNDEFINED + value_centerX_value_type = runtimeType(value_centerX_value) + if (((RuntimeType.NUMBER == value_centerX_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_centerX_value_0 = value_centerX_value as number + valueSerializer.writeNumber(value_centerX_value_0) + } + else if (((RuntimeType.STRING == value_centerX_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_centerX_value_1 = value_centerX_value as string + valueSerializer.writeString(value_centerX_value_1) } } - else if (isResource(value_range)) { - valueSerializer.writeInt8(2 as int32) - const value_range_2 = value_range as Resource - valueSerializer.writeResource(value_range_2) + const value_centerY = value.centerY + let value_centerY_type = RuntimeType.UNDEFINED + if (value_centerY != undefined) { + value_centerY_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_centerY_type as int32) + if ((RuntimeType.UNDEFINED) != (value_centerY_type)) { + const value_centerY_value = value_centerY! + let value_centerY_value_type = RuntimeType.UNDEFINED + value_centerY_value_type = runtimeType(value_centerY_value) + if (((RuntimeType.NUMBER == value_centerY_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_centerY_value_0 = value_centerY_value as number + valueSerializer.writeNumber(value_centerY_value_0) + } + else if (((RuntimeType.STRING == value_centerY_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_centerY_value_1 = value_centerY_value as string + valueSerializer.writeString(value_centerY_value_1) + } } - else if (TypeChecker.isTextPickerRangeContentBracketsArray(value_range)) { - valueSerializer.writeInt8(3 as int32) - const value_range_3 = value_range as TextPickerRangeContent[] - valueSerializer.writeInt8(runtimeType(value_range_3) as int32) - valueSerializer.writeInt32(value_range_3.length as int32) - for (let i = 0; i < value_range_3.length; i++) { - const value_range_3_element = value_range_3[i] - valueSerializer.writeTextPickerRangeContent(value_range_3_element) + } + writeTranslateOptions(value: TranslateOptions): void { + let valueSerializer = this + const value_x = value.x + let value_x_type = RuntimeType.UNDEFINED + if (value_x != undefined) { + value_x_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_x_type as int32) + if ((RuntimeType.UNDEFINED) != (value_x_type)) { + const value_x_value = value_x! + let value_x_value_type = RuntimeType.UNDEFINED + value_x_value_type = runtimeType(value_x_value) + if (((RuntimeType.NUMBER == value_x_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_x_value_0 = value_x_value as number + valueSerializer.writeNumber(value_x_value_0) + } + else if (((RuntimeType.STRING == value_x_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_x_value_1 = value_x_value as string + valueSerializer.writeString(value_x_value_1) + } + } + const value_y = value.y + let value_y_type = RuntimeType.UNDEFINED + if (value_y != undefined) { + value_y_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_y_type as int32) + if ((RuntimeType.UNDEFINED) != (value_y_type)) { + const value_y_value = value_y! + let value_y_value_type = RuntimeType.UNDEFINED + value_y_value_type = runtimeType(value_y_value) + if (((RuntimeType.NUMBER == value_y_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_y_value_0 = value_y_value as number + valueSerializer.writeNumber(value_y_value_0) + } + else if (((RuntimeType.STRING == value_y_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_y_value_1 = value_y_value as string + valueSerializer.writeString(value_y_value_1) + } + } + const value_z = value.z + let value_z_type = RuntimeType.UNDEFINED + if (value_z != undefined) { + value_z_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_z_type as int32) + if ((RuntimeType.UNDEFINED) != (value_z_type)) { + const value_z_value = value_z! + let value_z_value_type = RuntimeType.UNDEFINED + value_z_value_type = runtimeType(value_z_value) + if (((RuntimeType.NUMBER == value_z_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_z_value_0 = value_z_value as number + valueSerializer.writeNumber(value_z_value_0) + } + else if (((RuntimeType.STRING == value_z_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_z_value_1 = value_z_value as string + valueSerializer.writeString(value_z_value_1) + } + } + } + writeBlurOptions(value: BlurOptions): void { + let valueSerializer = this + const value_grayscale = value.grayscale + valueSerializer.writeInt8(runtimeType(value_grayscale) as int32) + const value_grayscale_0 = value_grayscale[0] + valueSerializer.writeNumber(value_grayscale_0) + const value_grayscale_1 = value_grayscale[1] + valueSerializer.writeNumber(value_grayscale_1) + } + writeTouchEvent(value: TouchEvent): void { + let valueSerializer = this + const value_target = value.target + valueSerializer.writeEventTarget(value_target) + const value_timestamp = value.timestamp + valueSerializer.writeNumber(value_timestamp) + const value_source = value.source + valueSerializer.writeInt32((value_source.value as int32)) + const value_axisHorizontal = value.axisHorizontal + let value_axisHorizontal_type = RuntimeType.UNDEFINED + if (value_axisHorizontal != undefined) { + value_axisHorizontal_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_axisHorizontal_type as int32) + if ((RuntimeType.UNDEFINED) != (value_axisHorizontal_type)) { + const value_axisHorizontal_value = value_axisHorizontal! + valueSerializer.writeNumber(value_axisHorizontal_value) + } + const value_axisVertical = value.axisVertical + let value_axisVertical_type = RuntimeType.UNDEFINED + if (value_axisVertical != undefined) { + value_axisVertical_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_axisVertical_type as int32) + if ((RuntimeType.UNDEFINED) != (value_axisVertical_type)) { + const value_axisVertical_value = value_axisVertical! + valueSerializer.writeNumber(value_axisVertical_value) + } + const value_pressure = value.pressure + valueSerializer.writeNumber(value_pressure) + const value_tiltX = value.tiltX + valueSerializer.writeNumber(value_tiltX) + const value_tiltY = value.tiltY + valueSerializer.writeNumber(value_tiltY) + const value_sourceTool = value.sourceTool + valueSerializer.writeInt32((value_sourceTool.value as int32)) + const value_deviceId = value.deviceId + let value_deviceId_type = RuntimeType.UNDEFINED + if (value_deviceId != undefined) { + value_deviceId_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_deviceId_type as int32) + if ((RuntimeType.UNDEFINED) != (value_deviceId_type)) { + const value_deviceId_value = value_deviceId! + valueSerializer.writeNumber(value_deviceId_value) + } + const value_type = value.type + valueSerializer.writeInt32((value_type.value as int32)) + const value_touches = value.touches + valueSerializer.writeInt8(runtimeType(value_touches) as int32) + valueSerializer.writeInt32(value_touches.length as int32) + for (let i = 0; i < value_touches.length; i++) { + const value_touches_element = value_touches[i] + valueSerializer.writeTouchObject(value_touches_element) + } + const value_changedTouches = value.changedTouches + valueSerializer.writeInt8(runtimeType(value_changedTouches) as int32) + valueSerializer.writeInt32(value_changedTouches.length as int32) + for (let i = 0; i < value_changedTouches.length; i++) { + const value_changedTouches_element = value_changedTouches[i] + valueSerializer.writeTouchObject(value_changedTouches_element) + } + const value_stopPropagation = value.stopPropagation + valueSerializer.writeFunction(value_stopPropagation) + const value_preventDefault = value.preventDefault + valueSerializer.writeFunction(value_preventDefault) + } + writeNativeEmbedInfo(value: NativeEmbedInfo): void { + let valueSerializer = this + const value_id = value.id + let value_id_type = RuntimeType.UNDEFINED + if (value_id != undefined) { + value_id_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_id_type as int32) + if ((RuntimeType.UNDEFINED) != (value_id_type)) { + const value_id_value = value_id! + valueSerializer.writeString(value_id_value) + } + const value_type = value.type + let value_type_type = RuntimeType.UNDEFINED + if (value_type != undefined) { + value_type_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_type_type as int32) + if ((RuntimeType.UNDEFINED) != (value_type_type)) { + const value_type_value = value_type! + valueSerializer.writeString(value_type_value) + } + const value_src = value.src + let value_src_type = RuntimeType.UNDEFINED + if (value_src != undefined) { + value_src_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_src_type as int32) + if ((RuntimeType.UNDEFINED) != (value_src_type)) { + const value_src_value = value_src! + valueSerializer.writeString(value_src_value) + } + const value_position = value.position + let value_position_type = RuntimeType.UNDEFINED + if (value_position != undefined) { + value_position_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_position_type as int32) + if ((RuntimeType.UNDEFINED) != (value_position_type)) { + const value_position_value = value_position! + valueSerializer.writePosition(value_position_value) + } + const value_width = value.width + let value_width_type = RuntimeType.UNDEFINED + if (value_width != undefined) { + value_width_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_width_type as int32) + if ((RuntimeType.UNDEFINED) != (value_width_type)) { + const value_width_value = value_width! + valueSerializer.writeNumber(value_width_value) + } + const value_height = value.height + let value_height_type = RuntimeType.UNDEFINED + if (value_height != undefined) { + value_height_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_height_type as int32) + if ((RuntimeType.UNDEFINED) != (value_height_type)) { + const value_height_value = value_height! + valueSerializer.writeNumber(value_height_value) + } + const value_url = value.url + let value_url_type = RuntimeType.UNDEFINED + if (value_url != undefined) { + value_url_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_url_type as int32) + if ((RuntimeType.UNDEFINED) != (value_url_type)) { + const value_url_value = value_url! + valueSerializer.writeString(value_url_value) + } + const value_tag = value.tag + let value_tag_type = RuntimeType.UNDEFINED + if (value_tag != undefined) { + value_tag_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_tag_type as int32) + if ((RuntimeType.UNDEFINED) != (value_tag_type)) { + const value_tag_value = value_tag! + valueSerializer.writeString(value_tag_value) + } + const value_params = value.params + let value_params_type = RuntimeType.UNDEFINED + if (value_params != undefined) { + value_params_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_params_type as int32) + if ((RuntimeType.UNDEFINED) != (value_params_type)) { + const value_params_value = value_params! + valueSerializer.writeInt8(runtimeType(value_params_value) as int32) + valueSerializer.writeInt32(value_params_value.size as int32) + // TODO: map serialization not implemented + } + } + writeTextRange(value: TextRange): void { + let valueSerializer = this + const value_start = value.start + let value_start_type = RuntimeType.UNDEFINED + if (value_start != undefined) { + value_start_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_start_type as int32) + if ((RuntimeType.UNDEFINED) != (value_start_type)) { + const value_start_value = value_start! + valueSerializer.writeNumber(value_start_value) + } + const value_end = value.end + let value_end_type = RuntimeType.UNDEFINED + if (value_end != undefined) { + value_end_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_end_type as int32) + if ((RuntimeType.UNDEFINED) != (value_end_type)) { + const value_end_value = value_end! + valueSerializer.writeNumber(value_end_value) + } + } + writeRichEditorImageSpanResult(value: RichEditorImageSpanResult): void { + let valueSerializer = this + const value_spanPosition = value.spanPosition + valueSerializer.writeRichEditorSpanPosition(value_spanPosition) + const value_valuePixelMap = value.valuePixelMap + let value_valuePixelMap_type = RuntimeType.UNDEFINED + if (value_valuePixelMap != undefined) { + value_valuePixelMap_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_valuePixelMap_type as int32) + if ((RuntimeType.UNDEFINED) != (value_valuePixelMap_type)) { + const value_valuePixelMap_value = value_valuePixelMap! + valueSerializer.writeCustomObject("PixelMap", value_valuePixelMap_value) + } + const value_valueResourceStr = value.valueResourceStr + let value_valueResourceStr_type = RuntimeType.UNDEFINED + if (value_valueResourceStr != undefined) { + value_valueResourceStr_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_valueResourceStr_type as int32) + if ((RuntimeType.UNDEFINED) != (value_valueResourceStr_type)) { + const value_valueResourceStr_value = value_valueResourceStr! + let value_valueResourceStr_value_type = RuntimeType.UNDEFINED + value_valueResourceStr_value_type = runtimeType(value_valueResourceStr_value) + if (((RuntimeType.STRING == value_valueResourceStr_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_valueResourceStr_value_0 = value_valueResourceStr_value as string + valueSerializer.writeString(value_valueResourceStr_value_0) + } + else if (((RuntimeType.OBJECT == value_valueResourceStr_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_valueResourceStr_value_1 = value_valueResourceStr_value as Resource + valueSerializer.writeResource(value_valueResourceStr_value_1) + } + } + const value_imageStyle = value.imageStyle + valueSerializer.writeRichEditorImageSpanStyleResult(value_imageStyle) + const value_offsetInSpan = value.offsetInSpan + valueSerializer.writeInt8(runtimeType(value_offsetInSpan) as int32) + const value_offsetInSpan_0 = value_offsetInSpan[0] + valueSerializer.writeNumber(value_offsetInSpan_0) + const value_offsetInSpan_1 = value_offsetInSpan[1] + valueSerializer.writeNumber(value_offsetInSpan_1) + } + writeRichEditorTextSpanResult(value: RichEditorTextSpanResult): void { + let valueSerializer = this + const value_spanPosition = value.spanPosition + valueSerializer.writeRichEditorSpanPosition(value_spanPosition) + const value_value = value.value + valueSerializer.writeString(value_value) + const value_textStyle = value.textStyle + valueSerializer.writeRichEditorTextStyleResult(value_textStyle) + const value_offsetInSpan = value.offsetInSpan + valueSerializer.writeInt8(runtimeType(value_offsetInSpan) as int32) + const value_offsetInSpan_0 = value_offsetInSpan[0] + valueSerializer.writeNumber(value_offsetInSpan_0) + const value_offsetInSpan_1 = value_offsetInSpan[1] + valueSerializer.writeNumber(value_offsetInSpan_1) + const value_symbolSpanStyle = value.symbolSpanStyle + let value_symbolSpanStyle_type = RuntimeType.UNDEFINED + if (value_symbolSpanStyle != undefined) { + value_symbolSpanStyle_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_symbolSpanStyle_type as int32) + if ((RuntimeType.UNDEFINED) != (value_symbolSpanStyle_type)) { + const value_symbolSpanStyle_value = value_symbolSpanStyle! + valueSerializer.writeRichEditorSymbolSpanStyle(value_symbolSpanStyle_value) + } + const value_valueResource = value.valueResource + let value_valueResource_type = RuntimeType.UNDEFINED + if (value_valueResource != undefined) { + value_valueResource_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_valueResource_type as int32) + if ((RuntimeType.UNDEFINED) != (value_valueResource_type)) { + const value_valueResource_value = value_valueResource! + valueSerializer.writeResource(value_valueResource_value) + } + const value_paragraphStyle = value.paragraphStyle + let value_paragraphStyle_type = RuntimeType.UNDEFINED + if (value_paragraphStyle != undefined) { + value_paragraphStyle_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_paragraphStyle_type as int32) + if ((RuntimeType.UNDEFINED) != (value_paragraphStyle_type)) { + const value_paragraphStyle_value = value_paragraphStyle! + valueSerializer.writeRichEditorParagraphStyle(value_paragraphStyle_value) + } + const value_previewText = value.previewText + let value_previewText_type = RuntimeType.UNDEFINED + if (value_previewText != undefined) { + value_previewText_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_previewText_type as int32) + if ((RuntimeType.UNDEFINED) != (value_previewText_type)) { + const value_previewText_value = value_previewText! + valueSerializer.writeString(value_previewText_value) + } + } + writeObject(value: Object): void { + } + writeRectResult(value: RectResult): void { + let valueSerializer = this + const value_x = value.x + valueSerializer.writeNumber(value_x) + const value_y = value.y + valueSerializer.writeNumber(value_y) + const value_width = value.width + valueSerializer.writeNumber(value_width) + const value_height = value.height + valueSerializer.writeNumber(value_height) + } + writeArrayBuffer(value: ArrayBuffer): void { + } + writeRichEditorUpdateSymbolSpanStyleOptions(value: RichEditorUpdateSymbolSpanStyleOptions): void { + let valueSerializer = this + const value_start = value.start + let value_start_type = RuntimeType.UNDEFINED + if (value_start != undefined) { + value_start_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_start_type as int32) + if ((RuntimeType.UNDEFINED) != (value_start_type)) { + const value_start_value = value_start! + valueSerializer.writeNumber(value_start_value) + } + const value_end = value.end + let value_end_type = RuntimeType.UNDEFINED + if (value_end != undefined) { + value_end_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_end_type as int32) + if ((RuntimeType.UNDEFINED) != (value_end_type)) { + const value_end_value = value_end! + valueSerializer.writeNumber(value_end_value) + } + const value_symbolStyle = value.symbolStyle + valueSerializer.writeRichEditorSymbolSpanStyle(value_symbolStyle) + } + writeRichEditorUpdateImageSpanStyleOptions(value: RichEditorUpdateImageSpanStyleOptions): void { + let valueSerializer = this + const value_start = value.start + let value_start_type = RuntimeType.UNDEFINED + if (value_start != undefined) { + value_start_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_start_type as int32) + if ((RuntimeType.UNDEFINED) != (value_start_type)) { + const value_start_value = value_start! + valueSerializer.writeNumber(value_start_value) + } + const value_end = value.end + let value_end_type = RuntimeType.UNDEFINED + if (value_end != undefined) { + value_end_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_end_type as int32) + if ((RuntimeType.UNDEFINED) != (value_end_type)) { + const value_end_value = value_end! + valueSerializer.writeNumber(value_end_value) + } + const value_imageStyle = value.imageStyle + valueSerializer.writeRichEditorImageSpanStyle(value_imageStyle) + } + writeRichEditorUpdateTextSpanStyleOptions(value: RichEditorUpdateTextSpanStyleOptions): void { + let valueSerializer = this + const value_start = value.start + let value_start_type = RuntimeType.UNDEFINED + if (value_start != undefined) { + value_start_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_start_type as int32) + if ((RuntimeType.UNDEFINED) != (value_start_type)) { + const value_start_value = value_start! + valueSerializer.writeNumber(value_start_value) + } + const value_end = value.end + let value_end_type = RuntimeType.UNDEFINED + if (value_end != undefined) { + value_end_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_end_type as int32) + if ((RuntimeType.UNDEFINED) != (value_end_type)) { + const value_end_value = value_end! + valueSerializer.writeNumber(value_end_value) + } + const value_textStyle = value.textStyle + valueSerializer.writeRichEditorTextStyle(value_textStyle) + } + writeRichEditorGesture(value: RichEditorGesture): void { + let valueSerializer = this + const value_onClick = value.onClick + let value_onClick_type = RuntimeType.UNDEFINED + if (value_onClick != undefined) { + value_onClick_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_onClick_type as int32) + if ((RuntimeType.UNDEFINED) != (value_onClick_type)) { + const value_onClick_value = value_onClick! + valueSerializer.writeFunction(value_onClick_value) + } + const value_onLongPress = value.onLongPress + let value_onLongPress_type = RuntimeType.UNDEFINED + if (value_onLongPress != undefined) { + value_onLongPress_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_onLongPress_type as int32) + if ((RuntimeType.UNDEFINED) != (value_onLongPress_type)) { + const value_onLongPress_value = value_onLongPress! + valueSerializer.writeFunction(value_onLongPress_value) + } + } + writeTextMenuItemId(value: TextMenuItemId): void { + } + writeUint8ClampedArray(value: Uint8ClampedArray): void { + } + writeLinearIndicatorStyle(value: LinearIndicatorStyle): void { + let valueSerializer = this + const value_space = value.space + let value_space_type = RuntimeType.UNDEFINED + if (value_space != undefined) { + value_space_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_space_type as int32) + if ((RuntimeType.UNDEFINED) != (value_space_type)) { + const value_space_value = value_space! + valueSerializer.writeCustomObject("LengthMetrics", value_space_value) + } + const value_strokeWidth = value.strokeWidth + let value_strokeWidth_type = RuntimeType.UNDEFINED + if (value_strokeWidth != undefined) { + value_strokeWidth_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_strokeWidth_type as int32) + if ((RuntimeType.UNDEFINED) != (value_strokeWidth_type)) { + const value_strokeWidth_value = value_strokeWidth! + valueSerializer.writeCustomObject("LengthMetrics", value_strokeWidth_value) + } + const value_strokeRadius = value.strokeRadius + let value_strokeRadius_type = RuntimeType.UNDEFINED + if (value_strokeRadius != undefined) { + value_strokeRadius_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_strokeRadius_type as int32) + if ((RuntimeType.UNDEFINED) != (value_strokeRadius_type)) { + const value_strokeRadius_value = value_strokeRadius! + valueSerializer.writeCustomObject("LengthMetrics", value_strokeRadius_value) + } + const value_trackBackgroundColor = value.trackBackgroundColor + let value_trackBackgroundColor_type = RuntimeType.UNDEFINED + if (value_trackBackgroundColor != undefined) { + value_trackBackgroundColor_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_trackBackgroundColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_trackBackgroundColor_type)) { + const value_trackBackgroundColor_value = value_trackBackgroundColor! + valueSerializer.writeCustomObject("ColorMetrics", value_trackBackgroundColor_value) + } + const value_trackColor = value.trackColor + let value_trackColor_type = RuntimeType.UNDEFINED + if (value_trackColor != undefined) { + value_trackColor_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_trackColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_trackColor_type)) { + const value_trackColor_value = value_trackColor! + valueSerializer.writeCustomObject("ColorMetrics", value_trackColor_value) + } + } + writeRRect(value: RRect): void { + let valueSerializer = this + const value_left = value.left + valueSerializer.writeNumber(value_left) + const value_top = value.top + valueSerializer.writeNumber(value_top) + const value_width = value.width + valueSerializer.writeNumber(value_width) + const value_height = value.height + valueSerializer.writeNumber(value_height) + const value_radius = value.radius + valueSerializer.writeNumber(value_radius) + } + writeDividerStyle(value: DividerStyle): void { + let valueSerializer = this + const value_strokeWidth = value.strokeWidth + valueSerializer.writeLength(value_strokeWidth); + const value_color = value.color + let value_color_type = RuntimeType.UNDEFINED + if (value_color != undefined) { + value_color_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_color_type as int32) + if ((RuntimeType.UNDEFINED) != (value_color_type)) { + const value_color_value = value_color! + let value_color_value_type = RuntimeType.UNDEFINED + value_color_value_type = runtimeType(value_color_value) + if (((RuntimeType.OBJECT) == (value_color_value_type)) && (value_color_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_color_value_0 = value_color_value as Color + valueSerializer.writeInt32((value_color_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_color_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_color_value_1 = value_color_value as number + valueSerializer.writeNumber(value_color_value_1) + } + else if (((RuntimeType.STRING == value_color_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_color_value_2 = value_color_value as string + valueSerializer.writeString(value_color_value_2) + } + else if (isResource(value_color_value)) { + valueSerializer.writeInt8(3 as int32) + const value_color_value_3 = value_color_value as Resource + valueSerializer.writeResource(value_color_value_3) + } + } + const value_startMargin = value.startMargin + let value_startMargin_type = RuntimeType.UNDEFINED + if (value_startMargin != undefined) { + value_startMargin_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_startMargin_type as int32) + if ((RuntimeType.UNDEFINED) != (value_startMargin_type)) { + const value_startMargin_value = value_startMargin! + valueSerializer.writeLength(value_startMargin_value); + } + const value_endMargin = value.endMargin + let value_endMargin_type = RuntimeType.UNDEFINED + if (value_endMargin != undefined) { + value_endMargin_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_endMargin_type as int32) + if ((RuntimeType.UNDEFINED) != (value_endMargin_type)) { + const value_endMargin_value = value_endMargin! + valueSerializer.writeLength(value_endMargin_value); + } + } + writeImageAIOptions(value: ImageAIOptions): void { + let valueSerializer = this + const value_types = value.types + let value_types_type = RuntimeType.UNDEFINED + if (value_types != undefined) { + value_types_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_types_type as int32) + if ((RuntimeType.UNDEFINED) != (value_types_type)) { + const value_types_value = value_types! + valueSerializer.writeInt8(runtimeType(value_types_value) as int32) + valueSerializer.writeInt32(value_types_value.length as int32) + for (let i = 0; i < value_types_value.length; i++) { + const value_types_value_element = value_types_value[i] + valueSerializer.writeInt32((value_types_value_element.value as int32)) + } + } + const value_aiController = value.aiController + let value_aiController_type = RuntimeType.UNDEFINED + if (value_aiController != undefined) { + value_aiController_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_aiController_type as int32) + if ((RuntimeType.UNDEFINED) != (value_aiController_type)) { + const value_aiController_value = value_aiController! + valueSerializer.writeMaterialized(value_aiController_value) + } + } + writeNestedScrollOptionsExt(value: NestedScrollOptionsExt): void { + let valueSerializer = this + const value_scrollUp = value.scrollUp + let value_scrollUp_type = RuntimeType.UNDEFINED + if (value_scrollUp != undefined) { + value_scrollUp_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_scrollUp_type as int32) + if ((RuntimeType.UNDEFINED) != (value_scrollUp_type)) { + const value_scrollUp_value = value_scrollUp! + valueSerializer.writeInt32((value_scrollUp_value.value as int32)) + } + const value_scrollDown = value.scrollDown + let value_scrollDown_type = RuntimeType.UNDEFINED + if (value_scrollDown != undefined) { + value_scrollDown_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_scrollDown_type as int32) + if ((RuntimeType.UNDEFINED) != (value_scrollDown_type)) { + const value_scrollDown_value = value_scrollDown! + valueSerializer.writeInt32((value_scrollDown_value.value as int32)) + } + const value_scrollRight = value.scrollRight + let value_scrollRight_type = RuntimeType.UNDEFINED + if (value_scrollRight != undefined) { + value_scrollRight_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_scrollRight_type as int32) + if ((RuntimeType.UNDEFINED) != (value_scrollRight_type)) { + const value_scrollRight_value = value_scrollRight! + valueSerializer.writeInt32((value_scrollRight_value.value as int32)) + } + const value_scrollLeft = value.scrollLeft + let value_scrollLeft_type = RuntimeType.UNDEFINED + if (value_scrollLeft != undefined) { + value_scrollLeft_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_scrollLeft_type as int32) + if ((RuntimeType.UNDEFINED) != (value_scrollLeft_type)) { + const value_scrollLeft_value = value_scrollLeft! + valueSerializer.writeInt32((value_scrollLeft_value.value as int32)) + } + } + writeNestedScrollOptions(value: NestedScrollOptions): void { + let valueSerializer = this + const value_scrollForward = value.scrollForward + valueSerializer.writeInt32((value_scrollForward.value as int32)) + const value_scrollBackward = value.scrollBackward + valueSerializer.writeInt32((value_scrollBackward.value as int32)) + } + writeUnderlineColor(value: UnderlineColor): void { + let valueSerializer = this + const value_typing = value.typing + let value_typing_type = RuntimeType.UNDEFINED + if (value_typing != undefined) { + value_typing_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_typing_type as int32) + if ((RuntimeType.UNDEFINED) != (value_typing_type)) { + const value_typing_value = value_typing! + let value_typing_value_type = RuntimeType.UNDEFINED + value_typing_value_type = runtimeType(value_typing_value) + if (((RuntimeType.UNDEFINED == value_typing_value_type))) { + valueSerializer.writeInt8(1 as int32) + } + else if (((RuntimeType.OBJECT == value_typing_value_type)) || ((RuntimeType.NUMBER == value_typing_value_type)) || ((RuntimeType.STRING == value_typing_value_type)) || ((RuntimeType.OBJECT == value_typing_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_typing_value_0 = value_typing_value as ResourceColor + let value_typing_value_0_type = RuntimeType.UNDEFINED + value_typing_value_0_type = runtimeType(value_typing_value_0) + if (((RuntimeType.OBJECT) == (value_typing_value_0_type)) && (value_typing_value_0 instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_typing_value_0_0 = value_typing_value_0 as Color + valueSerializer.writeInt32((value_typing_value_0_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_typing_value_0_type))) { + valueSerializer.writeInt8(1 as int32) + const value_typing_value_0_1 = value_typing_value_0 as number + valueSerializer.writeNumber(value_typing_value_0_1) + } + else if (((RuntimeType.STRING == value_typing_value_0_type))) { + valueSerializer.writeInt8(2 as int32) + const value_typing_value_0_2 = value_typing_value_0 as string + valueSerializer.writeString(value_typing_value_0_2) + } + else if (isResource(value_typing_value_0)) { + valueSerializer.writeInt8(3 as int32) + const value_typing_value_0_3 = value_typing_value_0 as Resource + valueSerializer.writeResource(value_typing_value_0_3) + } + } + } + const value_normal = value.normal + let value_normal_type = RuntimeType.UNDEFINED + if (value_normal != undefined) { + value_normal_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_normal_type as int32) + if ((RuntimeType.UNDEFINED) != (value_normal_type)) { + const value_normal_value = value_normal! + let value_normal_value_type = RuntimeType.UNDEFINED + value_normal_value_type = runtimeType(value_normal_value) + if (((RuntimeType.UNDEFINED == value_normal_value_type))) { + valueSerializer.writeInt8(1 as int32) + } + else if (((RuntimeType.OBJECT == value_normal_value_type)) || ((RuntimeType.NUMBER == value_normal_value_type)) || ((RuntimeType.STRING == value_normal_value_type)) || ((RuntimeType.OBJECT == value_normal_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_normal_value_0 = value_normal_value as ResourceColor + let value_normal_value_0_type = RuntimeType.UNDEFINED + value_normal_value_0_type = runtimeType(value_normal_value_0) + if (((RuntimeType.OBJECT) == (value_normal_value_0_type)) && (value_normal_value_0 instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_normal_value_0_0 = value_normal_value_0 as Color + valueSerializer.writeInt32((value_normal_value_0_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_normal_value_0_type))) { + valueSerializer.writeInt8(1 as int32) + const value_normal_value_0_1 = value_normal_value_0 as number + valueSerializer.writeNumber(value_normal_value_0_1) + } + else if (((RuntimeType.STRING == value_normal_value_0_type))) { + valueSerializer.writeInt8(2 as int32) + const value_normal_value_0_2 = value_normal_value_0 as string + valueSerializer.writeString(value_normal_value_0_2) + } + else if (isResource(value_normal_value_0)) { + valueSerializer.writeInt8(3 as int32) + const value_normal_value_0_3 = value_normal_value_0 as Resource + valueSerializer.writeResource(value_normal_value_0_3) + } + } + } + const value_error = value.error + let value_error_type = RuntimeType.UNDEFINED + if (value_error != undefined) { + value_error_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_error_type as int32) + if ((RuntimeType.UNDEFINED) != (value_error_type)) { + const value_error_value = value_error! + let value_error_value_type = RuntimeType.UNDEFINED + value_error_value_type = runtimeType(value_error_value) + if (((RuntimeType.UNDEFINED == value_error_value_type))) { + valueSerializer.writeInt8(1 as int32) + } + else if (((RuntimeType.OBJECT == value_error_value_type)) || ((RuntimeType.NUMBER == value_error_value_type)) || ((RuntimeType.STRING == value_error_value_type)) || ((RuntimeType.OBJECT == value_error_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_error_value_0 = value_error_value as ResourceColor + let value_error_value_0_type = RuntimeType.UNDEFINED + value_error_value_0_type = runtimeType(value_error_value_0) + if (((RuntimeType.OBJECT) == (value_error_value_0_type)) && (value_error_value_0 instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_error_value_0_0 = value_error_value_0 as Color + valueSerializer.writeInt32((value_error_value_0_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_error_value_0_type))) { + valueSerializer.writeInt8(1 as int32) + const value_error_value_0_1 = value_error_value_0 as number + valueSerializer.writeNumber(value_error_value_0_1) + } + else if (((RuntimeType.STRING == value_error_value_0_type))) { + valueSerializer.writeInt8(2 as int32) + const value_error_value_0_2 = value_error_value_0 as string + valueSerializer.writeString(value_error_value_0_2) + } + else if (isResource(value_error_value_0)) { + valueSerializer.writeInt8(3 as int32) + const value_error_value_0_3 = value_error_value_0 as Resource + valueSerializer.writeResource(value_error_value_0_3) + } + } + } + const value_disable = value.disable + let value_disable_type = RuntimeType.UNDEFINED + if (value_disable != undefined) { + value_disable_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_disable_type as int32) + if ((RuntimeType.UNDEFINED) != (value_disable_type)) { + const value_disable_value = value_disable! + let value_disable_value_type = RuntimeType.UNDEFINED + value_disable_value_type = runtimeType(value_disable_value) + if (((RuntimeType.UNDEFINED == value_disable_value_type))) { + valueSerializer.writeInt8(1 as int32) + } + else if (((RuntimeType.OBJECT == value_disable_value_type)) || ((RuntimeType.NUMBER == value_disable_value_type)) || ((RuntimeType.STRING == value_disable_value_type)) || ((RuntimeType.OBJECT == value_disable_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_disable_value_0 = value_disable_value as ResourceColor + let value_disable_value_0_type = RuntimeType.UNDEFINED + value_disable_value_0_type = runtimeType(value_disable_value_0) + if (((RuntimeType.OBJECT) == (value_disable_value_0_type)) && (value_disable_value_0 instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_disable_value_0_0 = value_disable_value_0 as Color + valueSerializer.writeInt32((value_disable_value_0_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_disable_value_0_type))) { + valueSerializer.writeInt8(1 as int32) + const value_disable_value_0_1 = value_disable_value_0 as number + valueSerializer.writeNumber(value_disable_value_0_1) + } + else if (((RuntimeType.STRING == value_disable_value_0_type))) { + valueSerializer.writeInt8(2 as int32) + const value_disable_value_0_2 = value_disable_value_0 as string + valueSerializer.writeString(value_disable_value_0_2) + } + else if (isResource(value_disable_value_0)) { + valueSerializer.writeInt8(3 as int32) + const value_disable_value_0_3 = value_disable_value_0 as Resource + valueSerializer.writeResource(value_disable_value_0_3) + } + } + } + } + writeBottomTabBarStyle(value: BottomTabBarStyle): void { + let valueSerializer = this + const value__labelStyle = value._labelStyle + let value__labelStyle_type = RuntimeType.UNDEFINED + if (value__labelStyle != undefined) { + value__labelStyle_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value__labelStyle_type as int32) + if ((RuntimeType.UNDEFINED) != (value__labelStyle_type)) { + const value__labelStyle_value = value__labelStyle! + valueSerializer.writeLabelStyle(value__labelStyle_value) + } + const value__padding = value._padding + let value__padding_type = RuntimeType.UNDEFINED + if (value__padding != undefined) { + value__padding_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value__padding_type as int32) + if ((RuntimeType.UNDEFINED) != (value__padding_type)) { + const value__padding_value = value__padding! + let value__padding_value_type = RuntimeType.UNDEFINED + value__padding_value_type = runtimeType(value__padding_value) + if (TypeChecker.isPadding(value__padding_value, true, false, true, false)) { + valueSerializer.writeInt8(0 as int32) + const value__padding_value_0 = value__padding_value as Padding + const value__padding_value_0_top = value__padding_value_0.top + let value__padding_value_0_top_type = RuntimeType.UNDEFINED + if (value__padding_value_0_top != undefined) { + value__padding_value_0_top_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value__padding_value_0_top_type as int32) + if ((RuntimeType.UNDEFINED) != (value__padding_value_0_top_type)) { + const value__padding_value_0_top_value = value__padding_value_0_top! + valueSerializer.writeLength(value__padding_value_0_top_value); + } + const value__padding_value_0_right = value__padding_value_0.right + let value__padding_value_0_right_type = RuntimeType.UNDEFINED + if (value__padding_value_0_right != undefined) { + value__padding_value_0_right_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value__padding_value_0_right_type as int32) + if ((RuntimeType.UNDEFINED) != (value__padding_value_0_right_type)) { + const value__padding_value_0_right_value = value__padding_value_0_right! + valueSerializer.writeLength(value__padding_value_0_right_value); + } + const value__padding_value_0_bottom = value__padding_value_0.bottom + let value__padding_value_0_bottom_type = RuntimeType.UNDEFINED + if (value__padding_value_0_bottom != undefined) { + value__padding_value_0_bottom_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value__padding_value_0_bottom_type as int32) + if ((RuntimeType.UNDEFINED) != (value__padding_value_0_bottom_type)) { + const value__padding_value_0_bottom_value = value__padding_value_0_bottom! + valueSerializer.writeLength(value__padding_value_0_bottom_value); + } + const value__padding_value_0_left = value__padding_value_0.left + let value__padding_value_0_left_type = RuntimeType.UNDEFINED + if (value__padding_value_0_left != undefined) { + value__padding_value_0_left_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value__padding_value_0_left_type as int32) + if ((RuntimeType.UNDEFINED) != (value__padding_value_0_left_type)) { + const value__padding_value_0_left_value = value__padding_value_0_left! + valueSerializer.writeLength(value__padding_value_0_left_value); + } + } + else if (((RuntimeType.NUMBER) == (value__padding_value_type)) || ((RuntimeType.STRING) == (value__padding_value_type)) || (((RuntimeType.OBJECT) == (value__padding_value_type)) && (isResource(value__padding_value)))) { + valueSerializer.writeInt8(1 as int32) + const value__padding_value_1 = value__padding_value as Dimension + valueSerializer.writeLength(value__padding_value_1); + } + else if (TypeChecker.isLocalizedPadding(value__padding_value, true, false, true, false)) { + valueSerializer.writeInt8(2 as int32) + const value__padding_value_2 = value__padding_value as LocalizedPadding + valueSerializer.writeLocalizedPadding(value__padding_value_2) + } + } + const value__layoutMode = value._layoutMode + let value__layoutMode_type = RuntimeType.UNDEFINED + if (value__layoutMode != undefined) { + value__layoutMode_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value__layoutMode_type as int32) + if ((RuntimeType.UNDEFINED) != (value__layoutMode_type)) { + const value__layoutMode_value = value__layoutMode! + valueSerializer.writeInt32((value__layoutMode_value.value as int32)) + } + const value__verticalAlign = value._verticalAlign + let value__verticalAlign_type = RuntimeType.UNDEFINED + if (value__verticalAlign != undefined) { + value__verticalAlign_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value__verticalAlign_type as int32) + if ((RuntimeType.UNDEFINED) != (value__verticalAlign_type)) { + const value__verticalAlign_value = value__verticalAlign! + valueSerializer.writeInt32((value__verticalAlign_value.value as int32)) + } + const value__symmetricExtensible = value._symmetricExtensible + let value__symmetricExtensible_type = RuntimeType.UNDEFINED + if (value__symmetricExtensible != undefined) { + value__symmetricExtensible_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value__symmetricExtensible_type as int32) + if ((RuntimeType.UNDEFINED) != (value__symmetricExtensible_type)) { + const value__symmetricExtensible_value = value__symmetricExtensible! + valueSerializer.writeBoolean(value__symmetricExtensible_value) + } + const value__id = value._id + let value__id_type = RuntimeType.UNDEFINED + if (value__id != undefined) { + value__id_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value__id_type as int32) + if ((RuntimeType.UNDEFINED) != (value__id_type)) { + const value__id_value = value__id! + valueSerializer.writeString(value__id_value) + } + const value__iconStyle = value._iconStyle + let value__iconStyle_type = RuntimeType.UNDEFINED + if (value__iconStyle != undefined) { + value__iconStyle_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value__iconStyle_type as int32) + if ((RuntimeType.UNDEFINED) != (value__iconStyle_type)) { + const value__iconStyle_value = value__iconStyle! + valueSerializer.writeTabBarIconStyle(value__iconStyle_value) + } + const value__icon = value._icon + let value__icon_type = RuntimeType.UNDEFINED + if (value__icon != undefined) { + value__icon_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value__icon_type as int32) + if ((RuntimeType.UNDEFINED) != (value__icon_type)) { + const value__icon_value = value__icon! + let value__icon_value_type = RuntimeType.UNDEFINED + value__icon_value_type = runtimeType(value__icon_value) + if (((RuntimeType.OBJECT) == (value__icon_value_type)) && (value__icon_value instanceof TabBarSymbol)) { + valueSerializer.writeInt8(1 as int32) + const value__icon_value_1 = value__icon_value as TabBarSymbol + valueSerializer.writeTabBarSymbol(value__icon_value_1) + } + else if (((RuntimeType.STRING == value__icon_value_type)) || ((RuntimeType.OBJECT == value__icon_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value__icon_value_0 = value__icon_value as ResourceStr + let value__icon_value_0_type = RuntimeType.UNDEFINED + value__icon_value_0_type = runtimeType(value__icon_value_0) + if (((RuntimeType.STRING == value__icon_value_0_type))) { + valueSerializer.writeInt8(0 as int32) + const value__icon_value_0_0 = value__icon_value_0 as string + valueSerializer.writeString(value__icon_value_0_0) + } + else if (((RuntimeType.OBJECT == value__icon_value_0_type))) { + valueSerializer.writeInt8(1 as int32) + const value__icon_value_0_1 = value__icon_value_0 as Resource + valueSerializer.writeResource(value__icon_value_0_1) + } + } + } + const value__text = value._text + let value__text_type = RuntimeType.UNDEFINED + if (value__text != undefined) { + value__text_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value__text_type as int32) + if ((RuntimeType.UNDEFINED) != (value__text_type)) { + const value__text_value = value__text! + let value__text_value_type = RuntimeType.UNDEFINED + value__text_value_type = runtimeType(value__text_value) + if (((RuntimeType.STRING == value__text_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value__text_value_0 = value__text_value as string + valueSerializer.writeString(value__text_value_0) + } + else if (((RuntimeType.OBJECT == value__text_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value__text_value_1 = value__text_value as Resource + valueSerializer.writeResource(value__text_value_1) + } + } + } + writeSubTabBarStyle(value: SubTabBarStyle): void { + let valueSerializer = this + const value__indicator = value._indicator + let value__indicator_type = RuntimeType.UNDEFINED + if (value__indicator != undefined) { + value__indicator_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value__indicator_type as int32) + if ((RuntimeType.UNDEFINED) != (value__indicator_type)) { + const value__indicator_value = value__indicator! + valueSerializer.writeIndicatorStyle(value__indicator_value) + } + const value__selectedMode = value._selectedMode + let value__selectedMode_type = RuntimeType.UNDEFINED + if (value__selectedMode != undefined) { + value__selectedMode_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value__selectedMode_type as int32) + if ((RuntimeType.UNDEFINED) != (value__selectedMode_type)) { + const value__selectedMode_value = value__selectedMode! + valueSerializer.writeInt32((value__selectedMode_value.value as int32)) + } + const value__board = value._board + let value__board_type = RuntimeType.UNDEFINED + if (value__board != undefined) { + value__board_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value__board_type as int32) + if ((RuntimeType.UNDEFINED) != (value__board_type)) { + const value__board_value = value__board! + valueSerializer.writeBoardStyle(value__board_value) + } + const value__labelStyle = value._labelStyle + let value__labelStyle_type = RuntimeType.UNDEFINED + if (value__labelStyle != undefined) { + value__labelStyle_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value__labelStyle_type as int32) + if ((RuntimeType.UNDEFINED) != (value__labelStyle_type)) { + const value__labelStyle_value = value__labelStyle! + valueSerializer.writeLabelStyle(value__labelStyle_value) + } + const value__padding = value._padding + let value__padding_type = RuntimeType.UNDEFINED + if (value__padding != undefined) { + value__padding_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value__padding_type as int32) + if ((RuntimeType.UNDEFINED) != (value__padding_type)) { + const value__padding_value = value__padding! + let value__padding_value_type = RuntimeType.UNDEFINED + value__padding_value_type = runtimeType(value__padding_value) + if (TypeChecker.isPadding(value__padding_value, false, false, false, false)) { + valueSerializer.writeInt8(0 as int32) + const value__padding_value_0 = value__padding_value as Padding + const value__padding_value_0_top = value__padding_value_0.top + let value__padding_value_0_top_type = RuntimeType.UNDEFINED + if (value__padding_value_0_top != undefined) { + value__padding_value_0_top_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value__padding_value_0_top_type as int32) + if ((RuntimeType.UNDEFINED) != (value__padding_value_0_top_type)) { + const value__padding_value_0_top_value = value__padding_value_0_top! + valueSerializer.writeLength(value__padding_value_0_top_value); + } + const value__padding_value_0_right = value__padding_value_0.right + let value__padding_value_0_right_type = RuntimeType.UNDEFINED + if (value__padding_value_0_right != undefined) { + value__padding_value_0_right_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value__padding_value_0_right_type as int32) + if ((RuntimeType.UNDEFINED) != (value__padding_value_0_right_type)) { + const value__padding_value_0_right_value = value__padding_value_0_right! + valueSerializer.writeLength(value__padding_value_0_right_value); + } + const value__padding_value_0_bottom = value__padding_value_0.bottom + let value__padding_value_0_bottom_type = RuntimeType.UNDEFINED + if (value__padding_value_0_bottom != undefined) { + value__padding_value_0_bottom_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value__padding_value_0_bottom_type as int32) + if ((RuntimeType.UNDEFINED) != (value__padding_value_0_bottom_type)) { + const value__padding_value_0_bottom_value = value__padding_value_0_bottom! + valueSerializer.writeLength(value__padding_value_0_bottom_value); + } + const value__padding_value_0_left = value__padding_value_0.left + let value__padding_value_0_left_type = RuntimeType.UNDEFINED + if (value__padding_value_0_left != undefined) { + value__padding_value_0_left_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value__padding_value_0_left_type as int32) + if ((RuntimeType.UNDEFINED) != (value__padding_value_0_left_type)) { + const value__padding_value_0_left_value = value__padding_value_0_left! + valueSerializer.writeLength(value__padding_value_0_left_value); + } + } + else if (((RuntimeType.NUMBER) == (value__padding_value_type)) || ((RuntimeType.STRING) == (value__padding_value_type)) || (((RuntimeType.OBJECT) == (value__padding_value_type)) && (isResource(value__padding_value)))) { + valueSerializer.writeInt8(1 as int32) + const value__padding_value_1 = value__padding_value as Dimension + valueSerializer.writeLength(value__padding_value_1); + } + } + const value__id = value._id + let value__id_type = RuntimeType.UNDEFINED + if (value__id != undefined) { + value__id_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value__id_type as int32) + if ((RuntimeType.UNDEFINED) != (value__id_type)) { + const value__id_value = value__id! + valueSerializer.writeString(value__id_value) + } + const value__content = value._content + let value__content_type = RuntimeType.UNDEFINED + if (value__content != undefined) { + value__content_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value__content_type as int32) + if ((RuntimeType.UNDEFINED) != (value__content_type)) { + const value__content_value = value__content! + let value__content_value_type = RuntimeType.UNDEFINED + value__content_value_type = runtimeType(value__content_value) + if (((RuntimeType.STRING == value__content_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value__content_value_0 = value__content_value as string + valueSerializer.writeString(value__content_value_0) + } + else if (((RuntimeType.OBJECT == value__content_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value__content_value_1 = value__content_value as Resource + valueSerializer.writeResource(value__content_value_1) + } + } + } + writeArrowStyle(value: ArrowStyle): void { + let valueSerializer = this + const value_showBackground = value.showBackground + let value_showBackground_type = RuntimeType.UNDEFINED + if (value_showBackground != undefined) { + value_showBackground_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_showBackground_type as int32) + if ((RuntimeType.UNDEFINED) != (value_showBackground_type)) { + const value_showBackground_value = value_showBackground! + valueSerializer.writeBoolean(value_showBackground_value) + } + const value_isSidebarMiddle = value.isSidebarMiddle + let value_isSidebarMiddle_type = RuntimeType.UNDEFINED + if (value_isSidebarMiddle != undefined) { + value_isSidebarMiddle_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_isSidebarMiddle_type as int32) + if ((RuntimeType.UNDEFINED) != (value_isSidebarMiddle_type)) { + const value_isSidebarMiddle_value = value_isSidebarMiddle! + valueSerializer.writeBoolean(value_isSidebarMiddle_value) + } + const value_backgroundSize = value.backgroundSize + let value_backgroundSize_type = RuntimeType.UNDEFINED + if (value_backgroundSize != undefined) { + value_backgroundSize_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_backgroundSize_type as int32) + if ((RuntimeType.UNDEFINED) != (value_backgroundSize_type)) { + const value_backgroundSize_value = value_backgroundSize! + valueSerializer.writeLength(value_backgroundSize_value); + } + const value_backgroundColor = value.backgroundColor + let value_backgroundColor_type = RuntimeType.UNDEFINED + if (value_backgroundColor != undefined) { + value_backgroundColor_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_backgroundColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_backgroundColor_type)) { + const value_backgroundColor_value = value_backgroundColor! + let value_backgroundColor_value_type = RuntimeType.UNDEFINED + value_backgroundColor_value_type = runtimeType(value_backgroundColor_value) + if (((RuntimeType.OBJECT) == (value_backgroundColor_value_type)) && (value_backgroundColor_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_backgroundColor_value_0 = value_backgroundColor_value as Color + valueSerializer.writeInt32((value_backgroundColor_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_backgroundColor_value_1 = value_backgroundColor_value as number + valueSerializer.writeNumber(value_backgroundColor_value_1) + } + else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_backgroundColor_value_2 = value_backgroundColor_value as string + valueSerializer.writeString(value_backgroundColor_value_2) + } + else if (isResource(value_backgroundColor_value)) { + valueSerializer.writeInt8(3 as int32) + const value_backgroundColor_value_3 = value_backgroundColor_value as Resource + valueSerializer.writeResource(value_backgroundColor_value_3) + } + } + const value_arrowSize = value.arrowSize + let value_arrowSize_type = RuntimeType.UNDEFINED + if (value_arrowSize != undefined) { + value_arrowSize_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_arrowSize_type as int32) + if ((RuntimeType.UNDEFINED) != (value_arrowSize_type)) { + const value_arrowSize_value = value_arrowSize! + valueSerializer.writeLength(value_arrowSize_value); + } + const value_arrowColor = value.arrowColor + let value_arrowColor_type = RuntimeType.UNDEFINED + if (value_arrowColor != undefined) { + value_arrowColor_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_arrowColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_arrowColor_type)) { + const value_arrowColor_value = value_arrowColor! + let value_arrowColor_value_type = RuntimeType.UNDEFINED + value_arrowColor_value_type = runtimeType(value_arrowColor_value) + if (((RuntimeType.OBJECT) == (value_arrowColor_value_type)) && (value_arrowColor_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_arrowColor_value_0 = value_arrowColor_value as Color + valueSerializer.writeInt32((value_arrowColor_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_arrowColor_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_arrowColor_value_1 = value_arrowColor_value as number + valueSerializer.writeNumber(value_arrowColor_value_1) + } + else if (((RuntimeType.STRING == value_arrowColor_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_arrowColor_value_2 = value_arrowColor_value as string + valueSerializer.writeString(value_arrowColor_value_2) + } + else if (isResource(value_arrowColor_value)) { + valueSerializer.writeInt8(3 as int32) + const value_arrowColor_value_3 = value_arrowColor_value as Resource + valueSerializer.writeResource(value_arrowColor_value_3) + } + } + } + writeDigitIndicator(value: DigitIndicator): void { + let valueSerializer = this + const value__left = value._left + let value__left_type = RuntimeType.UNDEFINED + if (value__left != undefined) { + value__left_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value__left_type as int32) + if ((RuntimeType.UNDEFINED) != (value__left_type)) { + const value__left_value = value__left! + valueSerializer.writeLength(value__left_value); + } + const value__top = value._top + let value__top_type = RuntimeType.UNDEFINED + if (value__top != undefined) { + value__top_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value__top_type as int32) + if ((RuntimeType.UNDEFINED) != (value__top_type)) { + const value__top_value = value__top! + valueSerializer.writeLength(value__top_value); + } + const value__right = value._right + let value__right_type = RuntimeType.UNDEFINED + if (value__right != undefined) { + value__right_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value__right_type as int32) + if ((RuntimeType.UNDEFINED) != (value__right_type)) { + const value__right_value = value__right! + valueSerializer.writeLength(value__right_value); + } + const value__bottom = value._bottom + let value__bottom_type = RuntimeType.UNDEFINED + if (value__bottom != undefined) { + value__bottom_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value__bottom_type as int32) + if ((RuntimeType.UNDEFINED) != (value__bottom_type)) { + const value__bottom_value = value__bottom! + valueSerializer.writeLength(value__bottom_value); + } + const value__start = value._start + let value__start_type = RuntimeType.UNDEFINED + if (value__start != undefined) { + value__start_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value__start_type as int32) + if ((RuntimeType.UNDEFINED) != (value__start_type)) { + const value__start_value = value__start! + valueSerializer.writeCustomObject("LengthMetrics", value__start_value) + } + const value__end = value._end + let value__end_type = RuntimeType.UNDEFINED + if (value__end != undefined) { + value__end_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value__end_type as int32) + if ((RuntimeType.UNDEFINED) != (value__end_type)) { + const value__end_value = value__end! + valueSerializer.writeCustomObject("LengthMetrics", value__end_value) + } + const value__fontColor = value._fontColor + let value__fontColor_type = RuntimeType.UNDEFINED + if (value__fontColor != undefined) { + value__fontColor_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value__fontColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value__fontColor_type)) { + const value__fontColor_value = value__fontColor! + let value__fontColor_value_type = RuntimeType.UNDEFINED + value__fontColor_value_type = runtimeType(value__fontColor_value) + if (((RuntimeType.OBJECT) == (value__fontColor_value_type)) && (value__fontColor_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value__fontColor_value_0 = value__fontColor_value as Color + valueSerializer.writeInt32((value__fontColor_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value__fontColor_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value__fontColor_value_1 = value__fontColor_value as number + valueSerializer.writeNumber(value__fontColor_value_1) + } + else if (((RuntimeType.STRING == value__fontColor_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value__fontColor_value_2 = value__fontColor_value as string + valueSerializer.writeString(value__fontColor_value_2) + } + else if (isResource(value__fontColor_value)) { + valueSerializer.writeInt8(3 as int32) + const value__fontColor_value_3 = value__fontColor_value as Resource + valueSerializer.writeResource(value__fontColor_value_3) + } + } + const value__selectedFontColor = value._selectedFontColor + let value__selectedFontColor_type = RuntimeType.UNDEFINED + if (value__selectedFontColor != undefined) { + value__selectedFontColor_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value__selectedFontColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value__selectedFontColor_type)) { + const value__selectedFontColor_value = value__selectedFontColor! + let value__selectedFontColor_value_type = RuntimeType.UNDEFINED + value__selectedFontColor_value_type = runtimeType(value__selectedFontColor_value) + if (((RuntimeType.OBJECT) == (value__selectedFontColor_value_type)) && (value__selectedFontColor_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value__selectedFontColor_value_0 = value__selectedFontColor_value as Color + valueSerializer.writeInt32((value__selectedFontColor_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value__selectedFontColor_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value__selectedFontColor_value_1 = value__selectedFontColor_value as number + valueSerializer.writeNumber(value__selectedFontColor_value_1) + } + else if (((RuntimeType.STRING == value__selectedFontColor_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value__selectedFontColor_value_2 = value__selectedFontColor_value as string + valueSerializer.writeString(value__selectedFontColor_value_2) + } + else if (isResource(value__selectedFontColor_value)) { + valueSerializer.writeInt8(3 as int32) + const value__selectedFontColor_value_3 = value__selectedFontColor_value as Resource + valueSerializer.writeResource(value__selectedFontColor_value_3) + } + } + const value__digitFont = value._digitFont + let value__digitFont_type = RuntimeType.UNDEFINED + if (value__digitFont != undefined) { + value__digitFont_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value__digitFont_type as int32) + if ((RuntimeType.UNDEFINED) != (value__digitFont_type)) { + const value__digitFont_value = value__digitFont! + valueSerializer.writeFont(value__digitFont_value) + } + const value__selectedDigitFont = value._selectedDigitFont + let value__selectedDigitFont_type = RuntimeType.UNDEFINED + if (value__selectedDigitFont != undefined) { + value__selectedDigitFont_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value__selectedDigitFont_type as int32) + if ((RuntimeType.UNDEFINED) != (value__selectedDigitFont_type)) { + const value__selectedDigitFont_value = value__selectedDigitFont! + valueSerializer.writeFont(value__selectedDigitFont_value) + } + } + writeDotIndicator(value: DotIndicator): void { + let valueSerializer = this + const value__left = value._left + let value__left_type = RuntimeType.UNDEFINED + if (value__left != undefined) { + value__left_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value__left_type as int32) + if ((RuntimeType.UNDEFINED) != (value__left_type)) { + const value__left_value = value__left! + valueSerializer.writeLength(value__left_value); + } + const value__top = value._top + let value__top_type = RuntimeType.UNDEFINED + if (value__top != undefined) { + value__top_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value__top_type as int32) + if ((RuntimeType.UNDEFINED) != (value__top_type)) { + const value__top_value = value__top! + valueSerializer.writeLength(value__top_value); + } + const value__right = value._right + let value__right_type = RuntimeType.UNDEFINED + if (value__right != undefined) { + value__right_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value__right_type as int32) + if ((RuntimeType.UNDEFINED) != (value__right_type)) { + const value__right_value = value__right! + valueSerializer.writeLength(value__right_value); + } + const value__bottom = value._bottom + let value__bottom_type = RuntimeType.UNDEFINED + if (value__bottom != undefined) { + value__bottom_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value__bottom_type as int32) + if ((RuntimeType.UNDEFINED) != (value__bottom_type)) { + const value__bottom_value = value__bottom! + valueSerializer.writeLength(value__bottom_value); + } + const value__start = value._start + let value__start_type = RuntimeType.UNDEFINED + if (value__start != undefined) { + value__start_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value__start_type as int32) + if ((RuntimeType.UNDEFINED) != (value__start_type)) { + const value__start_value = value__start! + valueSerializer.writeCustomObject("LengthMetrics", value__start_value) + } + const value__end = value._end + let value__end_type = RuntimeType.UNDEFINED + if (value__end != undefined) { + value__end_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value__end_type as int32) + if ((RuntimeType.UNDEFINED) != (value__end_type)) { + const value__end_value = value__end! + valueSerializer.writeCustomObject("LengthMetrics", value__end_value) + } + const value__itemWidth = value._itemWidth + let value__itemWidth_type = RuntimeType.UNDEFINED + if (value__itemWidth != undefined) { + value__itemWidth_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value__itemWidth_type as int32) + if ((RuntimeType.UNDEFINED) != (value__itemWidth_type)) { + const value__itemWidth_value = value__itemWidth! + valueSerializer.writeLength(value__itemWidth_value); + } + const value__itemHeight = value._itemHeight + let value__itemHeight_type = RuntimeType.UNDEFINED + if (value__itemHeight != undefined) { + value__itemHeight_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value__itemHeight_type as int32) + if ((RuntimeType.UNDEFINED) != (value__itemHeight_type)) { + const value__itemHeight_value = value__itemHeight! + valueSerializer.writeLength(value__itemHeight_value); + } + const value__selectedItemWidth = value._selectedItemWidth + let value__selectedItemWidth_type = RuntimeType.UNDEFINED + if (value__selectedItemWidth != undefined) { + value__selectedItemWidth_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value__selectedItemWidth_type as int32) + if ((RuntimeType.UNDEFINED) != (value__selectedItemWidth_type)) { + const value__selectedItemWidth_value = value__selectedItemWidth! + valueSerializer.writeLength(value__selectedItemWidth_value); + } + const value__selectedItemHeight = value._selectedItemHeight + let value__selectedItemHeight_type = RuntimeType.UNDEFINED + if (value__selectedItemHeight != undefined) { + value__selectedItemHeight_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value__selectedItemHeight_type as int32) + if ((RuntimeType.UNDEFINED) != (value__selectedItemHeight_type)) { + const value__selectedItemHeight_value = value__selectedItemHeight! + valueSerializer.writeLength(value__selectedItemHeight_value); + } + const value__mask = value._mask + let value__mask_type = RuntimeType.UNDEFINED + if (value__mask != undefined) { + value__mask_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value__mask_type as int32) + if ((RuntimeType.UNDEFINED) != (value__mask_type)) { + const value__mask_value = value__mask! + valueSerializer.writeBoolean(value__mask_value) + } + const value__color = value._color + let value__color_type = RuntimeType.UNDEFINED + if (value__color != undefined) { + value__color_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value__color_type as int32) + if ((RuntimeType.UNDEFINED) != (value__color_type)) { + const value__color_value = value__color! + let value__color_value_type = RuntimeType.UNDEFINED + value__color_value_type = runtimeType(value__color_value) + if (((RuntimeType.OBJECT) == (value__color_value_type)) && (value__color_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value__color_value_0 = value__color_value as Color + valueSerializer.writeInt32((value__color_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value__color_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value__color_value_1 = value__color_value as number + valueSerializer.writeNumber(value__color_value_1) + } + else if (((RuntimeType.STRING == value__color_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value__color_value_2 = value__color_value as string + valueSerializer.writeString(value__color_value_2) + } + else if (isResource(value__color_value)) { + valueSerializer.writeInt8(3 as int32) + const value__color_value_3 = value__color_value as Resource + valueSerializer.writeResource(value__color_value_3) + } + } + const value__selectedColor = value._selectedColor + let value__selectedColor_type = RuntimeType.UNDEFINED + if (value__selectedColor != undefined) { + value__selectedColor_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value__selectedColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value__selectedColor_type)) { + const value__selectedColor_value = value__selectedColor! + let value__selectedColor_value_type = RuntimeType.UNDEFINED + value__selectedColor_value_type = runtimeType(value__selectedColor_value) + if (((RuntimeType.OBJECT) == (value__selectedColor_value_type)) && (value__selectedColor_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value__selectedColor_value_0 = value__selectedColor_value as Color + valueSerializer.writeInt32((value__selectedColor_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value__selectedColor_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value__selectedColor_value_1 = value__selectedColor_value as number + valueSerializer.writeNumber(value__selectedColor_value_1) + } + else if (((RuntimeType.STRING == value__selectedColor_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value__selectedColor_value_2 = value__selectedColor_value as string + valueSerializer.writeString(value__selectedColor_value_2) + } + else if (isResource(value__selectedColor_value)) { + valueSerializer.writeInt8(3 as int32) + const value__selectedColor_value_3 = value__selectedColor_value as Resource + valueSerializer.writeResource(value__selectedColor_value_3) + } + } + const value__maxDisplayCount = value._maxDisplayCount + let value__maxDisplayCount_type = RuntimeType.UNDEFINED + if (value__maxDisplayCount != undefined) { + value__maxDisplayCount_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value__maxDisplayCount_type as int32) + if ((RuntimeType.UNDEFINED) != (value__maxDisplayCount_type)) { + const value__maxDisplayCount_value = value__maxDisplayCount! + valueSerializer.writeNumber(value__maxDisplayCount_value) + } + } + writeCancelButtonSymbolOptions(value: CancelButtonSymbolOptions): void { + let valueSerializer = this + const value_style = value.style + let value_style_type = RuntimeType.UNDEFINED + if (value_style != undefined) { + value_style_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_style_type as int32) + if ((RuntimeType.UNDEFINED) != (value_style_type)) { + const value_style_value = value_style! + valueSerializer.writeInt32((value_style_value.value as int32)) + } + const value_icon = value.icon + let value_icon_type = RuntimeType.UNDEFINED + if (value_icon != undefined) { + value_icon_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_icon_type as int32) + if ((RuntimeType.UNDEFINED) != (value_icon_type)) { + const value_icon_value = value_icon! + valueSerializer.writeCustomObject("SymbolGlyphModifier", value_icon_value) + } + } + writeCancelButtonOptions(value: CancelButtonOptions): void { + let valueSerializer = this + const value_style = value.style + let value_style_type = RuntimeType.UNDEFINED + if (value_style != undefined) { + value_style_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_style_type as int32) + if ((RuntimeType.UNDEFINED) != (value_style_type)) { + const value_style_value = value_style! + valueSerializer.writeInt32((value_style_value.value as int32)) + } + const value_icon = value.icon + let value_icon_type = RuntimeType.UNDEFINED + if (value_icon != undefined) { + value_icon_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_icon_type as int32) + if ((RuntimeType.UNDEFINED) != (value_icon_type)) { + const value_icon_value = value_icon! + valueSerializer.writeIconOptions(value_icon_value) + } + } + writeGuideLinePosition(value: GuideLinePosition): void { + let valueSerializer = this + const value_start = value.start + let value_start_type = RuntimeType.UNDEFINED + if (value_start != undefined) { + value_start_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_start_type as int32) + if ((RuntimeType.UNDEFINED) != (value_start_type)) { + const value_start_value = value_start! + valueSerializer.writeLength(value_start_value); + } + const value_end = value.end + let value_end_type = RuntimeType.UNDEFINED + if (value_end != undefined) { + value_end_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_end_type as int32) + if ((RuntimeType.UNDEFINED) != (value_end_type)) { + const value_end_value = value_end! + valueSerializer.writeLength(value_end_value); + } + } + writePluginComponentTemplate(value: PluginComponentTemplate): void { + let valueSerializer = this + const value_source = value.source + valueSerializer.writeString(value_source) + const value_bundleName = value.bundleName + valueSerializer.writeString(value_bundleName) + } + writeCircleStyleOptions(value: CircleStyleOptions): void { + let valueSerializer = this + const value_color = value.color + let value_color_type = RuntimeType.UNDEFINED + if (value_color != undefined) { + value_color_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_color_type as int32) + if ((RuntimeType.UNDEFINED) != (value_color_type)) { + const value_color_value = value_color! + let value_color_value_type = RuntimeType.UNDEFINED + value_color_value_type = runtimeType(value_color_value) + if (((RuntimeType.OBJECT) == (value_color_value_type)) && (value_color_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_color_value_0 = value_color_value as Color + valueSerializer.writeInt32((value_color_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_color_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_color_value_1 = value_color_value as number + valueSerializer.writeNumber(value_color_value_1) + } + else if (((RuntimeType.STRING == value_color_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_color_value_2 = value_color_value as string + valueSerializer.writeString(value_color_value_2) + } + else if (isResource(value_color_value)) { + valueSerializer.writeInt8(3 as int32) + const value_color_value_3 = value_color_value as Resource + valueSerializer.writeResource(value_color_value_3) + } + } + const value_radius = value.radius + let value_radius_type = RuntimeType.UNDEFINED + if (value_radius != undefined) { + value_radius_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_radius_type as int32) + if ((RuntimeType.UNDEFINED) != (value_radius_type)) { + const value_radius_value = value_radius! + valueSerializer.writeCustomObject("LengthMetrics", value_radius_value) + } + const value_enableWaveEffect = value.enableWaveEffect + let value_enableWaveEffect_type = RuntimeType.UNDEFINED + if (value_enableWaveEffect != undefined) { + value_enableWaveEffect_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_enableWaveEffect_type as int32) + if ((RuntimeType.UNDEFINED) != (value_enableWaveEffect_type)) { + const value_enableWaveEffect_value = value_enableWaveEffect! + valueSerializer.writeBoolean(value_enableWaveEffect_value) + } + } + writeNavigationCustomTitle(value: NavigationCustomTitle): void { + let valueSerializer = this + const value_builder = value.builder + let value_builder_type = RuntimeType.UNDEFINED + value_builder_type = runtimeType(value_builder) + if (((RuntimeType.FUNCTION == value_builder_type))) { + valueSerializer.writeInt8(0 as int32) + const value_builder_0 = value_builder as Object + valueSerializer.writeFunction(value_builder_0) + } + else if (((RuntimeType.UNDEFINED == value_builder_type))) { + valueSerializer.writeInt8(1 as int32) + } + const value_height = value.height + let value_height_type = RuntimeType.UNDEFINED + value_height_type = runtimeType(value_height) + if (((RuntimeType.OBJECT) == (value_height_type)) && (value_height instanceof TitleHeight)) { + valueSerializer.writeInt8(0 as int32) + const value_height_0 = value_height as TitleHeight + valueSerializer.writeInt32((value_height_0.value as int32)) + } + else if (((RuntimeType.NUMBER) == (value_height_type)) || ((RuntimeType.STRING) == (value_height_type)) || (((RuntimeType.OBJECT) == (value_height_type)) && (isResource(value_height)))) { + valueSerializer.writeInt8(1 as int32) + const value_height_1 = value_height as Length + valueSerializer.writeLength(value_height_1); + } + } + writeNavigationCommonTitle(value: NavigationCommonTitle): void { + let valueSerializer = this + const value_main = value.main + let value_main_type = RuntimeType.UNDEFINED + value_main_type = runtimeType(value_main) + if (((RuntimeType.STRING == value_main_type))) { + valueSerializer.writeInt8(0 as int32) + const value_main_0 = value_main as string + valueSerializer.writeString(value_main_0) + } + else if (((RuntimeType.OBJECT == value_main_type))) { + valueSerializer.writeInt8(1 as int32) + const value_main_1 = value_main as Resource + valueSerializer.writeResource(value_main_1) + } + const value_sub = value.sub + let value_sub_type = RuntimeType.UNDEFINED + value_sub_type = runtimeType(value_sub) + if (((RuntimeType.STRING == value_sub_type))) { + valueSerializer.writeInt8(0 as int32) + const value_sub_0 = value_sub as string + valueSerializer.writeString(value_sub_0) + } + else if (((RuntimeType.OBJECT == value_sub_type))) { + valueSerializer.writeInt8(1 as int32) + const value_sub_1 = value_sub as Resource + valueSerializer.writeResource(value_sub_1) + } + } + writeNavDestinationCustomTitle(value: NavDestinationCustomTitle): void { + let valueSerializer = this + const value_builder = value.builder + let value_builder_type = RuntimeType.UNDEFINED + value_builder_type = runtimeType(value_builder) + if (((RuntimeType.FUNCTION == value_builder_type))) { + valueSerializer.writeInt8(0 as int32) + const value_builder_0 = value_builder as Object + valueSerializer.writeFunction(value_builder_0) + } + else if (((RuntimeType.UNDEFINED == value_builder_type))) { + valueSerializer.writeInt8(1 as int32) + } + const value_height = value.height + let value_height_type = RuntimeType.UNDEFINED + value_height_type = runtimeType(value_height) + if (((RuntimeType.OBJECT) == (value_height_type)) && (value_height instanceof TitleHeight)) { + valueSerializer.writeInt8(0 as int32) + const value_height_0 = value_height as TitleHeight + valueSerializer.writeInt32((value_height_0.value as int32)) + } + else if (((RuntimeType.NUMBER) == (value_height_type)) || ((RuntimeType.STRING) == (value_height_type)) || (((RuntimeType.OBJECT) == (value_height_type)) && (isResource(value_height)))) { + valueSerializer.writeInt8(1 as int32) + const value_height_1 = value_height as Length + valueSerializer.writeLength(value_height_1); + } + } + writeNavDestinationCommonTitle(value: NavDestinationCommonTitle): void { + let valueSerializer = this + const value_main = value.main + let value_main_type = RuntimeType.UNDEFINED + value_main_type = runtimeType(value_main) + if (((RuntimeType.STRING == value_main_type))) { + valueSerializer.writeInt8(0 as int32) + const value_main_0 = value_main as string + valueSerializer.writeString(value_main_0) + } + else if (((RuntimeType.OBJECT == value_main_type))) { + valueSerializer.writeInt8(1 as int32) + const value_main_1 = value_main as Resource + valueSerializer.writeResource(value_main_1) + } + const value_sub = value.sub + let value_sub_type = RuntimeType.UNDEFINED + value_sub_type = runtimeType(value_sub) + if (((RuntimeType.STRING == value_sub_type))) { + valueSerializer.writeInt8(0 as int32) + const value_sub_0 = value_sub as string + valueSerializer.writeString(value_sub_0) + } + else if (((RuntimeType.OBJECT == value_sub_type))) { + valueSerializer.writeInt8(1 as int32) + const value_sub_1 = value_sub as Resource + valueSerializer.writeResource(value_sub_1) + } + } + writeMenuItemOptions(value: MenuItemOptions): void { + let valueSerializer = this + const value_startIcon = value.startIcon + let value_startIcon_type = RuntimeType.UNDEFINED + if (value_startIcon != undefined) { + value_startIcon_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_startIcon_type as int32) + if ((RuntimeType.UNDEFINED) != (value_startIcon_type)) { + const value_startIcon_value = value_startIcon! + let value_startIcon_value_type = RuntimeType.UNDEFINED + value_startIcon_value_type = runtimeType(value_startIcon_value) + if (((RuntimeType.STRING == value_startIcon_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_startIcon_value_0 = value_startIcon_value as string + valueSerializer.writeString(value_startIcon_value_0) + } + else if (((RuntimeType.OBJECT == value_startIcon_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_startIcon_value_1 = value_startIcon_value as Resource + valueSerializer.writeResource(value_startIcon_value_1) + } + } + const value_symbolStartIcon = value.symbolStartIcon + let value_symbolStartIcon_type = RuntimeType.UNDEFINED + if (value_symbolStartIcon != undefined) { + value_symbolStartIcon_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_symbolStartIcon_type as int32) + if ((RuntimeType.UNDEFINED) != (value_symbolStartIcon_type)) { + const value_symbolStartIcon_value = value_symbolStartIcon! + valueSerializer.writeCustomObject("SymbolGlyphModifier", value_symbolStartIcon_value) + } + const value_content = value.content + let value_content_type = RuntimeType.UNDEFINED + if (value_content != undefined) { + value_content_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_content_type as int32) + if ((RuntimeType.UNDEFINED) != (value_content_type)) { + const value_content_value = value_content! + let value_content_value_type = RuntimeType.UNDEFINED + value_content_value_type = runtimeType(value_content_value) + if (((RuntimeType.STRING == value_content_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_content_value_0 = value_content_value as string + valueSerializer.writeString(value_content_value_0) + } + else if (((RuntimeType.OBJECT == value_content_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_content_value_1 = value_content_value as Resource + valueSerializer.writeResource(value_content_value_1) + } + } + const value_endIcon = value.endIcon + let value_endIcon_type = RuntimeType.UNDEFINED + if (value_endIcon != undefined) { + value_endIcon_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_endIcon_type as int32) + if ((RuntimeType.UNDEFINED) != (value_endIcon_type)) { + const value_endIcon_value = value_endIcon! + let value_endIcon_value_type = RuntimeType.UNDEFINED + value_endIcon_value_type = runtimeType(value_endIcon_value) + if (((RuntimeType.STRING == value_endIcon_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_endIcon_value_0 = value_endIcon_value as string + valueSerializer.writeString(value_endIcon_value_0) + } + else if (((RuntimeType.OBJECT == value_endIcon_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_endIcon_value_1 = value_endIcon_value as Resource + valueSerializer.writeResource(value_endIcon_value_1) + } + } + const value_symbolEndIcon = value.symbolEndIcon + let value_symbolEndIcon_type = RuntimeType.UNDEFINED + if (value_symbolEndIcon != undefined) { + value_symbolEndIcon_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_symbolEndIcon_type as int32) + if ((RuntimeType.UNDEFINED) != (value_symbolEndIcon_type)) { + const value_symbolEndIcon_value = value_symbolEndIcon! + valueSerializer.writeCustomObject("SymbolGlyphModifier", value_symbolEndIcon_value) + } + const value_labelInfo = value.labelInfo + let value_labelInfo_type = RuntimeType.UNDEFINED + if (value_labelInfo != undefined) { + value_labelInfo_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_labelInfo_type as int32) + if ((RuntimeType.UNDEFINED) != (value_labelInfo_type)) { + const value_labelInfo_value = value_labelInfo! + let value_labelInfo_value_type = RuntimeType.UNDEFINED + value_labelInfo_value_type = runtimeType(value_labelInfo_value) + if (((RuntimeType.STRING == value_labelInfo_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_labelInfo_value_0 = value_labelInfo_value as string + valueSerializer.writeString(value_labelInfo_value_0) + } + else if (((RuntimeType.OBJECT == value_labelInfo_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_labelInfo_value_1 = value_labelInfo_value as Resource + valueSerializer.writeResource(value_labelInfo_value_1) + } + } + const value_builder = value.builder + let value_builder_type = RuntimeType.UNDEFINED + if (value_builder != undefined) { + value_builder_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_builder_type as int32) + if ((RuntimeType.UNDEFINED) != (value_builder_type)) { + const value_builder_value = value_builder! + let value_builder_value_type = RuntimeType.UNDEFINED + value_builder_value_type = runtimeType(value_builder_value) + if (((RuntimeType.FUNCTION == value_builder_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_builder_value_0 = value_builder_value as Object + valueSerializer.writeFunction(value_builder_value_0) + } + else if (((RuntimeType.UNDEFINED == value_builder_value_type))) { + valueSerializer.writeInt8(1 as int32) + } + } + } + writeDividerStyleOptions(value: DividerStyleOptions): void { + let valueSerializer = this + const value_strokeWidth = value.strokeWidth + let value_strokeWidth_type = RuntimeType.UNDEFINED + if (value_strokeWidth != undefined) { + value_strokeWidth_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_strokeWidth_type as int32) + if ((RuntimeType.UNDEFINED) != (value_strokeWidth_type)) { + const value_strokeWidth_value = value_strokeWidth! + valueSerializer.writeCustomObject("LengthMetrics", value_strokeWidth_value) + } + const value_color = value.color + let value_color_type = RuntimeType.UNDEFINED + if (value_color != undefined) { + value_color_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_color_type as int32) + if ((RuntimeType.UNDEFINED) != (value_color_type)) { + const value_color_value = value_color! + let value_color_value_type = RuntimeType.UNDEFINED + value_color_value_type = runtimeType(value_color_value) + if (((RuntimeType.OBJECT) == (value_color_value_type)) && (value_color_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_color_value_0 = value_color_value as Color + valueSerializer.writeInt32((value_color_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_color_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_color_value_1 = value_color_value as number + valueSerializer.writeNumber(value_color_value_1) + } + else if (((RuntimeType.STRING == value_color_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_color_value_2 = value_color_value as string + valueSerializer.writeString(value_color_value_2) + } + else if (isResource(value_color_value)) { + valueSerializer.writeInt8(3 as int32) + const value_color_value_3 = value_color_value as Resource + valueSerializer.writeResource(value_color_value_3) + } + } + const value_startMargin = value.startMargin + let value_startMargin_type = RuntimeType.UNDEFINED + if (value_startMargin != undefined) { + value_startMargin_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_startMargin_type as int32) + if ((RuntimeType.UNDEFINED) != (value_startMargin_type)) { + const value_startMargin_value = value_startMargin! + valueSerializer.writeCustomObject("LengthMetrics", value_startMargin_value) + } + const value_endMargin = value.endMargin + let value_endMargin_type = RuntimeType.UNDEFINED + if (value_endMargin != undefined) { + value_endMargin_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_endMargin_type as int32) + if ((RuntimeType.UNDEFINED) != (value_endMargin_type)) { + const value_endMargin_value = value_endMargin! + valueSerializer.writeCustomObject("LengthMetrics", value_endMargin_value) + } + } + writeASTCResource(value: ASTCResource): void { + let valueSerializer = this + const value_sources = value.sources + valueSerializer.writeInt8(runtimeType(value_sources) as int32) + valueSerializer.writeInt32(value_sources.length as int32) + for (let i = 0; i < value_sources.length; i++) { + const value_sources_element = value_sources[i] + valueSerializer.writeString(value_sources_element) + } + const value_column = value.column + valueSerializer.writeNumber(value_column) + } + writeLocalizedEdges(value: LocalizedEdges): void { + let valueSerializer = this + const value_top = value.top + let value_top_type = RuntimeType.UNDEFINED + if (value_top != undefined) { + value_top_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_top_type as int32) + if ((RuntimeType.UNDEFINED) != (value_top_type)) { + const value_top_value = value_top! + valueSerializer.writeCustomObject("LengthMetrics", value_top_value) + } + const value_start = value.start + let value_start_type = RuntimeType.UNDEFINED + if (value_start != undefined) { + value_start_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_start_type as int32) + if ((RuntimeType.UNDEFINED) != (value_start_type)) { + const value_start_value = value_start! + valueSerializer.writeCustomObject("LengthMetrics", value_start_value) + } + const value_bottom = value.bottom + let value_bottom_type = RuntimeType.UNDEFINED + if (value_bottom != undefined) { + value_bottom_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_bottom_type as int32) + if ((RuntimeType.UNDEFINED) != (value_bottom_type)) { + const value_bottom_value = value_bottom! + valueSerializer.writeCustomObject("LengthMetrics", value_bottom_value) + } + const value_end = value.end + let value_end_type = RuntimeType.UNDEFINED + if (value_end != undefined) { + value_end_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_end_type as int32) + if ((RuntimeType.UNDEFINED) != (value_end_type)) { + const value_end_value = value_end! + valueSerializer.writeCustomObject("LengthMetrics", value_end_value) + } + } + writeEdges(value: Edges): void { + let valueSerializer = this + const value_top = value.top + let value_top_type = RuntimeType.UNDEFINED + if (value_top != undefined) { + value_top_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_top_type as int32) + if ((RuntimeType.UNDEFINED) != (value_top_type)) { + const value_top_value = value_top! + valueSerializer.writeLength(value_top_value); + } + const value_left = value.left + let value_left_type = RuntimeType.UNDEFINED + if (value_left != undefined) { + value_left_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_left_type as int32) + if ((RuntimeType.UNDEFINED) != (value_left_type)) { + const value_left_value = value_left! + valueSerializer.writeLength(value_left_value); + } + const value_bottom = value.bottom + let value_bottom_type = RuntimeType.UNDEFINED + if (value_bottom != undefined) { + value_bottom_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_bottom_type as int32) + if ((RuntimeType.UNDEFINED) != (value_bottom_type)) { + const value_bottom_value = value_bottom! + valueSerializer.writeLength(value_bottom_value); + } + const value_right = value.right + let value_right_type = RuntimeType.UNDEFINED + if (value_right != undefined) { + value_right_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_right_type as int32) + if ((RuntimeType.UNDEFINED) != (value_right_type)) { + const value_right_value = value_right! + valueSerializer.writeLength(value_right_value); + } + } + writeListDividerOptions(value: ListDividerOptions): void { + let valueSerializer = this + const value_strokeWidth = value.strokeWidth + valueSerializer.writeLength(value_strokeWidth); + const value_color = value.color + let value_color_type = RuntimeType.UNDEFINED + if (value_color != undefined) { + value_color_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_color_type as int32) + if ((RuntimeType.UNDEFINED) != (value_color_type)) { + const value_color_value = value_color! + let value_color_value_type = RuntimeType.UNDEFINED + value_color_value_type = runtimeType(value_color_value) + if (((RuntimeType.OBJECT) == (value_color_value_type)) && (value_color_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_color_value_0 = value_color_value as Color + valueSerializer.writeInt32((value_color_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_color_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_color_value_1 = value_color_value as number + valueSerializer.writeNumber(value_color_value_1) + } + else if (((RuntimeType.STRING == value_color_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_color_value_2 = value_color_value as string + valueSerializer.writeString(value_color_value_2) + } + else if (isResource(value_color_value)) { + valueSerializer.writeInt8(3 as int32) + const value_color_value_3 = value_color_value as Resource + valueSerializer.writeResource(value_color_value_3) + } + } + const value_startMargin = value.startMargin + let value_startMargin_type = RuntimeType.UNDEFINED + if (value_startMargin != undefined) { + value_startMargin_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_startMargin_type as int32) + if ((RuntimeType.UNDEFINED) != (value_startMargin_type)) { + const value_startMargin_value = value_startMargin! + valueSerializer.writeLength(value_startMargin_value); + } + const value_endMargin = value.endMargin + let value_endMargin_type = RuntimeType.UNDEFINED + if (value_endMargin != undefined) { + value_endMargin_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_endMargin_type as int32) + if ((RuntimeType.UNDEFINED) != (value_endMargin_type)) { + const value_endMargin_value = value_endMargin! + valueSerializer.writeLength(value_endMargin_value); + } + } + writeColorFilter(value: ColorFilter): void { + } + writeBreakPoints(value: BreakPoints): void { + let valueSerializer = this + const value_value = value.value + let value_value_type = RuntimeType.UNDEFINED + if (value_value != undefined) { + value_value_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_value_type as int32) + if ((RuntimeType.UNDEFINED) != (value_value_type)) { + const value_value_value = value_value! + valueSerializer.writeInt8(runtimeType(value_value_value) as int32) + valueSerializer.writeInt32(value_value_value.length as int32) + for (let i = 0; i < value_value_value.length; i++) { + const value_value_value_element = value_value_value[i] + valueSerializer.writeString(value_value_value_element) + } + } + const value_reference = value.reference + let value_reference_type = RuntimeType.UNDEFINED + if (value_reference != undefined) { + value_reference_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_reference_type as int32) + if ((RuntimeType.UNDEFINED) != (value_reference_type)) { + const value_reference_value = value_reference! + valueSerializer.writeInt32((value_reference_value.value as int32)) + } + } + writeMultiShadowOptions(value: MultiShadowOptions): void { + let valueSerializer = this + const value_radius = value.radius + let value_radius_type = RuntimeType.UNDEFINED + if (value_radius != undefined) { + value_radius_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_radius_type as int32) + if ((RuntimeType.UNDEFINED) != (value_radius_type)) { + const value_radius_value = value_radius! + let value_radius_value_type = RuntimeType.UNDEFINED + value_radius_value_type = runtimeType(value_radius_value) + if (((RuntimeType.NUMBER == value_radius_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_radius_value_0 = value_radius_value as number + valueSerializer.writeNumber(value_radius_value_0) + } + else if (((RuntimeType.OBJECT == value_radius_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_radius_value_1 = value_radius_value as Resource + valueSerializer.writeResource(value_radius_value_1) + } + } + const value_offsetX = value.offsetX + let value_offsetX_type = RuntimeType.UNDEFINED + if (value_offsetX != undefined) { + value_offsetX_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_offsetX_type as int32) + if ((RuntimeType.UNDEFINED) != (value_offsetX_type)) { + const value_offsetX_value = value_offsetX! + let value_offsetX_value_type = RuntimeType.UNDEFINED + value_offsetX_value_type = runtimeType(value_offsetX_value) + if (((RuntimeType.NUMBER == value_offsetX_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_offsetX_value_0 = value_offsetX_value as number + valueSerializer.writeNumber(value_offsetX_value_0) + } + else if (((RuntimeType.OBJECT == value_offsetX_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_offsetX_value_1 = value_offsetX_value as Resource + valueSerializer.writeResource(value_offsetX_value_1) + } + } + const value_offsetY = value.offsetY + let value_offsetY_type = RuntimeType.UNDEFINED + if (value_offsetY != undefined) { + value_offsetY_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_offsetY_type as int32) + if ((RuntimeType.UNDEFINED) != (value_offsetY_type)) { + const value_offsetY_value = value_offsetY! + let value_offsetY_value_type = RuntimeType.UNDEFINED + value_offsetY_value_type = runtimeType(value_offsetY_value) + if (((RuntimeType.NUMBER == value_offsetY_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_offsetY_value_0 = value_offsetY_value as number + valueSerializer.writeNumber(value_offsetY_value_0) + } + else if (((RuntimeType.OBJECT == value_offsetY_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_offsetY_value_1 = value_offsetY_value as Resource + valueSerializer.writeResource(value_offsetY_value_1) + } + } + } + writeFlexSpaceOptions(value: FlexSpaceOptions): void { + let valueSerializer = this + const value_main = value.main + let value_main_type = RuntimeType.UNDEFINED + if (value_main != undefined) { + value_main_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_main_type as int32) + if ((RuntimeType.UNDEFINED) != (value_main_type)) { + const value_main_value = value_main! + valueSerializer.writeCustomObject("LengthMetrics", value_main_value) + } + const value_cross = value.cross + let value_cross_type = RuntimeType.UNDEFINED + if (value_cross != undefined) { + value_cross_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_cross_type as int32) + if ((RuntimeType.UNDEFINED) != (value_cross_type)) { + const value_cross_value = value_cross! + valueSerializer.writeCustomObject("LengthMetrics", value_cross_value) + } + } + writeColumnSplitDividerStyle(value: ColumnSplitDividerStyle): void { + let valueSerializer = this + const value_startMargin = value.startMargin + let value_startMargin_type = RuntimeType.UNDEFINED + if (value_startMargin != undefined) { + value_startMargin_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_startMargin_type as int32) + if ((RuntimeType.UNDEFINED) != (value_startMargin_type)) { + const value_startMargin_value = value_startMargin! + valueSerializer.writeLength(value_startMargin_value); + } + const value_endMargin = value.endMargin + let value_endMargin_type = RuntimeType.UNDEFINED + if (value_endMargin != undefined) { + value_endMargin_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_endMargin_type as int32) + if ((RuntimeType.UNDEFINED) != (value_endMargin_type)) { + const value_endMargin_value = value_endMargin! + valueSerializer.writeLength(value_endMargin_value); + } + } + writeLightSource(value: LightSource): void { + let valueSerializer = this + const value_positionX = value.positionX + valueSerializer.writeLength(value_positionX); + const value_positionY = value.positionY + valueSerializer.writeLength(value_positionY); + const value_positionZ = value.positionZ + valueSerializer.writeLength(value_positionZ); + const value_intensity = value.intensity + valueSerializer.writeNumber(value_intensity) + const value_color = value.color + let value_color_type = RuntimeType.UNDEFINED + if (value_color != undefined) { + value_color_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_color_type as int32) + if ((RuntimeType.UNDEFINED) != (value_color_type)) { + const value_color_value = value_color! + let value_color_value_type = RuntimeType.UNDEFINED + value_color_value_type = runtimeType(value_color_value) + if (((RuntimeType.OBJECT) == (value_color_value_type)) && (value_color_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_color_value_0 = value_color_value as Color + valueSerializer.writeInt32((value_color_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_color_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_color_value_1 = value_color_value as number + valueSerializer.writeNumber(value_color_value_1) + } + else if (((RuntimeType.STRING == value_color_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_color_value_2 = value_color_value as string + valueSerializer.writeString(value_color_value_2) + } + else if (isResource(value_color_value)) { + valueSerializer.writeInt8(3 as int32) + const value_color_value_3 = value_color_value as Resource + valueSerializer.writeResource(value_color_value_3) + } + } + } + writeMonthData(value: MonthData): void { + let valueSerializer = this + const value_year = value.year + valueSerializer.writeNumber(value_year) + const value_month = value.month + valueSerializer.writeNumber(value_month) + const value_data = value.data + valueSerializer.writeInt8(runtimeType(value_data) as int32) + valueSerializer.writeInt32(value_data.length as int32) + for (let i = 0; i < value_data.length; i++) { + const value_data_element = value_data[i] + valueSerializer.writeCalendarDay(value_data_element) + } + } + writeBadgeParam(value: BadgeParam): void { + let valueSerializer = this + const value_position = value.position + let value_position_type = RuntimeType.UNDEFINED + if (value_position != undefined) { + value_position_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_position_type as int32) + if ((RuntimeType.UNDEFINED) != (value_position_type)) { + const value_position_value = value_position! + let value_position_value_type = RuntimeType.UNDEFINED + value_position_value_type = runtimeType(value_position_value) + if (((RuntimeType.OBJECT) == (value_position_value_type)) && (value_position_value instanceof BadgePosition)) { + valueSerializer.writeInt8(0 as int32) + const value_position_value_0 = value_position_value as BadgePosition + valueSerializer.writeInt32((value_position_value_0.value as int32)) + } + else if (TypeChecker.isPosition(value_position_value, false, false)) { + valueSerializer.writeInt8(1 as int32) + const value_position_value_1 = value_position_value as Position + valueSerializer.writePosition(value_position_value_1) + } + } + const value_style = value.style + valueSerializer.writeBadgeStyle(value_style) + } + writeScrollMotion(value: ScrollMotion): void { + } + writeFrictionMotion(value: FrictionMotion): void { + } + writeSpringMotion(value: SpringMotion): void { + } + writeBindOptions(value: BindOptions): void { + let valueSerializer = this + const value_backgroundColor = value.backgroundColor + let value_backgroundColor_type = RuntimeType.UNDEFINED + if (value_backgroundColor != undefined) { + value_backgroundColor_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_backgroundColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_backgroundColor_type)) { + const value_backgroundColor_value = value_backgroundColor! + let value_backgroundColor_value_type = RuntimeType.UNDEFINED + value_backgroundColor_value_type = runtimeType(value_backgroundColor_value) + if (((RuntimeType.OBJECT) == (value_backgroundColor_value_type)) && (value_backgroundColor_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_backgroundColor_value_0 = value_backgroundColor_value as Color + valueSerializer.writeInt32((value_backgroundColor_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_backgroundColor_value_1 = value_backgroundColor_value as number + valueSerializer.writeNumber(value_backgroundColor_value_1) + } + else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_backgroundColor_value_2 = value_backgroundColor_value as string + valueSerializer.writeString(value_backgroundColor_value_2) + } + else if (isResource(value_backgroundColor_value)) { + valueSerializer.writeInt8(3 as int32) + const value_backgroundColor_value_3 = value_backgroundColor_value as Resource + valueSerializer.writeResource(value_backgroundColor_value_3) + } + } + const value_onAppear = value.onAppear + let value_onAppear_type = RuntimeType.UNDEFINED + if (value_onAppear != undefined) { + value_onAppear_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_onAppear_type as int32) + if ((RuntimeType.UNDEFINED) != (value_onAppear_type)) { + const value_onAppear_value = value_onAppear! + valueSerializer.writeFunction(value_onAppear_value) + } + const value_onDisappear = value.onDisappear + let value_onDisappear_type = RuntimeType.UNDEFINED + if (value_onDisappear != undefined) { + value_onDisappear_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_onDisappear_type as int32) + if ((RuntimeType.UNDEFINED) != (value_onDisappear_type)) { + const value_onDisappear_value = value_onDisappear! + valueSerializer.writeFunction(value_onDisappear_value) + } + const value_onWillAppear = value.onWillAppear + let value_onWillAppear_type = RuntimeType.UNDEFINED + if (value_onWillAppear != undefined) { + value_onWillAppear_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_onWillAppear_type as int32) + if ((RuntimeType.UNDEFINED) != (value_onWillAppear_type)) { + const value_onWillAppear_value = value_onWillAppear! + valueSerializer.writeFunction(value_onWillAppear_value) + } + const value_onWillDisappear = value.onWillDisappear + let value_onWillDisappear_type = RuntimeType.UNDEFINED + if (value_onWillDisappear != undefined) { + value_onWillDisappear_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_onWillDisappear_type as int32) + if ((RuntimeType.UNDEFINED) != (value_onWillDisappear_type)) { + const value_onWillDisappear_value = value_onWillDisappear! + valueSerializer.writeFunction(value_onWillDisappear_value) + } + } + writeContextMenuOptions(value: ContextMenuOptions): void { + let valueSerializer = this + const value_offset = value.offset + let value_offset_type = RuntimeType.UNDEFINED + if (value_offset != undefined) { + value_offset_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_offset_type as int32) + if ((RuntimeType.UNDEFINED) != (value_offset_type)) { + const value_offset_value = value_offset! + valueSerializer.writePosition(value_offset_value) + } + const value_placement = value.placement + let value_placement_type = RuntimeType.UNDEFINED + if (value_placement != undefined) { + value_placement_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_placement_type as int32) + if ((RuntimeType.UNDEFINED) != (value_placement_type)) { + const value_placement_value = value_placement! + valueSerializer.writeInt32((value_placement_value.value as int32)) + } + const value_enableArrow = value.enableArrow + let value_enableArrow_type = RuntimeType.UNDEFINED + if (value_enableArrow != undefined) { + value_enableArrow_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_enableArrow_type as int32) + if ((RuntimeType.UNDEFINED) != (value_enableArrow_type)) { + const value_enableArrow_value = value_enableArrow! + valueSerializer.writeBoolean(value_enableArrow_value) + } + const value_arrowOffset = value.arrowOffset + let value_arrowOffset_type = RuntimeType.UNDEFINED + if (value_arrowOffset != undefined) { + value_arrowOffset_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_arrowOffset_type as int32) + if ((RuntimeType.UNDEFINED) != (value_arrowOffset_type)) { + const value_arrowOffset_value = value_arrowOffset! + valueSerializer.writeLength(value_arrowOffset_value); + } + const value_preview = value.preview + let value_preview_type = RuntimeType.UNDEFINED + if (value_preview != undefined) { + value_preview_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_preview_type as int32) + if ((RuntimeType.UNDEFINED) != (value_preview_type)) { + const value_preview_value = value_preview! + let value_preview_value_type = RuntimeType.UNDEFINED + value_preview_value_type = runtimeType(value_preview_value) + if (((value_preview_value instanceof MenuPreviewMode))) { + valueSerializer.writeInt8(0 as int32) + const value_preview_value_0 = value_preview_value as MenuPreviewMode + valueSerializer.writeInt32((value_preview_value_0.value as int32)) + } + else if (((RuntimeType.FUNCTION == value_preview_value_type)) || ((RuntimeType.UNDEFINED == value_preview_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_preview_value_1 = value_preview_value as CustomBuilder + let value_preview_value_1_type = RuntimeType.UNDEFINED + value_preview_value_1_type = runtimeType(value_preview_value_1) + if (((RuntimeType.FUNCTION == value_preview_value_1_type))) { + valueSerializer.writeInt8(0 as int32) + const value_preview_value_1_0 = value_preview_value_1 as Object + valueSerializer.writeFunction(value_preview_value_1_0) + } + else if (((RuntimeType.UNDEFINED == value_preview_value_1_type))) { + valueSerializer.writeInt8(1 as int32) + } + } + } + const value_borderRadius = value.borderRadius + let value_borderRadius_type = RuntimeType.UNDEFINED + if (value_borderRadius != undefined) { + value_borderRadius_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_borderRadius_type as int32) + if ((RuntimeType.UNDEFINED) != (value_borderRadius_type)) { + const value_borderRadius_value = value_borderRadius! + let value_borderRadius_value_type = RuntimeType.UNDEFINED + value_borderRadius_value_type = runtimeType(value_borderRadius_value) + if (((RuntimeType.NUMBER) == (value_borderRadius_value_type)) || ((RuntimeType.STRING) == (value_borderRadius_value_type)) || (((RuntimeType.OBJECT) == (value_borderRadius_value_type)) && (isResource(value_borderRadius_value)))) { + valueSerializer.writeInt8(0 as int32) + const value_borderRadius_value_0 = value_borderRadius_value as Length + valueSerializer.writeLength(value_borderRadius_value_0); + } + else if (TypeChecker.isBorderRadiuses(value_borderRadius_value, false, false, false, false)) { + valueSerializer.writeInt8(1 as int32) + const value_borderRadius_value_1 = value_borderRadius_value as BorderRadiuses + const value_borderRadius_value_1_topLeft = value_borderRadius_value_1.topLeft + let value_borderRadius_value_1_topLeft_type = RuntimeType.UNDEFINED + if (value_borderRadius_value_1_topLeft != undefined) { + value_borderRadius_value_1_topLeft_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_borderRadius_value_1_topLeft_type as int32) + if ((RuntimeType.UNDEFINED) != (value_borderRadius_value_1_topLeft_type)) { + const value_borderRadius_value_1_topLeft_value = value_borderRadius_value_1_topLeft! + valueSerializer.writeLength(value_borderRadius_value_1_topLeft_value); + } + const value_borderRadius_value_1_topRight = value_borderRadius_value_1.topRight + let value_borderRadius_value_1_topRight_type = RuntimeType.UNDEFINED + if (value_borderRadius_value_1_topRight != undefined) { + value_borderRadius_value_1_topRight_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_borderRadius_value_1_topRight_type as int32) + if ((RuntimeType.UNDEFINED) != (value_borderRadius_value_1_topRight_type)) { + const value_borderRadius_value_1_topRight_value = value_borderRadius_value_1_topRight! + valueSerializer.writeLength(value_borderRadius_value_1_topRight_value); + } + const value_borderRadius_value_1_bottomLeft = value_borderRadius_value_1.bottomLeft + let value_borderRadius_value_1_bottomLeft_type = RuntimeType.UNDEFINED + if (value_borderRadius_value_1_bottomLeft != undefined) { + value_borderRadius_value_1_bottomLeft_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_borderRadius_value_1_bottomLeft_type as int32) + if ((RuntimeType.UNDEFINED) != (value_borderRadius_value_1_bottomLeft_type)) { + const value_borderRadius_value_1_bottomLeft_value = value_borderRadius_value_1_bottomLeft! + valueSerializer.writeLength(value_borderRadius_value_1_bottomLeft_value); + } + const value_borderRadius_value_1_bottomRight = value_borderRadius_value_1.bottomRight + let value_borderRadius_value_1_bottomRight_type = RuntimeType.UNDEFINED + if (value_borderRadius_value_1_bottomRight != undefined) { + value_borderRadius_value_1_bottomRight_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_borderRadius_value_1_bottomRight_type as int32) + if ((RuntimeType.UNDEFINED) != (value_borderRadius_value_1_bottomRight_type)) { + const value_borderRadius_value_1_bottomRight_value = value_borderRadius_value_1_bottomRight! + valueSerializer.writeLength(value_borderRadius_value_1_bottomRight_value); + } + } + else if (TypeChecker.isLocalizedBorderRadiuses(value_borderRadius_value, false, false, false, false)) { + valueSerializer.writeInt8(2 as int32) + const value_borderRadius_value_2 = value_borderRadius_value as LocalizedBorderRadiuses + valueSerializer.writeLocalizedBorderRadiuses(value_borderRadius_value_2) + } + } + const value_onAppear = value.onAppear + let value_onAppear_type = RuntimeType.UNDEFINED + if (value_onAppear != undefined) { + value_onAppear_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_onAppear_type as int32) + if ((RuntimeType.UNDEFINED) != (value_onAppear_type)) { + const value_onAppear_value = value_onAppear! + valueSerializer.writeFunction(value_onAppear_value) + } + const value_onDisappear = value.onDisappear + let value_onDisappear_type = RuntimeType.UNDEFINED + if (value_onDisappear != undefined) { + value_onDisappear_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_onDisappear_type as int32) + if ((RuntimeType.UNDEFINED) != (value_onDisappear_type)) { + const value_onDisappear_value = value_onDisappear! + valueSerializer.writeFunction(value_onDisappear_value) + } + const value_aboutToAppear = value.aboutToAppear + let value_aboutToAppear_type = RuntimeType.UNDEFINED + if (value_aboutToAppear != undefined) { + value_aboutToAppear_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_aboutToAppear_type as int32) + if ((RuntimeType.UNDEFINED) != (value_aboutToAppear_type)) { + const value_aboutToAppear_value = value_aboutToAppear! + valueSerializer.writeFunction(value_aboutToAppear_value) + } + const value_aboutToDisappear = value.aboutToDisappear + let value_aboutToDisappear_type = RuntimeType.UNDEFINED + if (value_aboutToDisappear != undefined) { + value_aboutToDisappear_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_aboutToDisappear_type as int32) + if ((RuntimeType.UNDEFINED) != (value_aboutToDisappear_type)) { + const value_aboutToDisappear_value = value_aboutToDisappear! + valueSerializer.writeFunction(value_aboutToDisappear_value) + } + const value_layoutRegionMargin = value.layoutRegionMargin + let value_layoutRegionMargin_type = RuntimeType.UNDEFINED + if (value_layoutRegionMargin != undefined) { + value_layoutRegionMargin_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_layoutRegionMargin_type as int32) + if ((RuntimeType.UNDEFINED) != (value_layoutRegionMargin_type)) { + const value_layoutRegionMargin_value = value_layoutRegionMargin! + const value_layoutRegionMargin_value_top = value_layoutRegionMargin_value.top + let value_layoutRegionMargin_value_top_type = RuntimeType.UNDEFINED + if (value_layoutRegionMargin_value_top != undefined) { + value_layoutRegionMargin_value_top_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_layoutRegionMargin_value_top_type as int32) + if ((RuntimeType.UNDEFINED) != (value_layoutRegionMargin_value_top_type)) { + const value_layoutRegionMargin_value_top_value = value_layoutRegionMargin_value_top! + valueSerializer.writeLength(value_layoutRegionMargin_value_top_value); + } + const value_layoutRegionMargin_value_right = value_layoutRegionMargin_value.right + let value_layoutRegionMargin_value_right_type = RuntimeType.UNDEFINED + if (value_layoutRegionMargin_value_right != undefined) { + value_layoutRegionMargin_value_right_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_layoutRegionMargin_value_right_type as int32) + if ((RuntimeType.UNDEFINED) != (value_layoutRegionMargin_value_right_type)) { + const value_layoutRegionMargin_value_right_value = value_layoutRegionMargin_value_right! + valueSerializer.writeLength(value_layoutRegionMargin_value_right_value); + } + const value_layoutRegionMargin_value_bottom = value_layoutRegionMargin_value.bottom + let value_layoutRegionMargin_value_bottom_type = RuntimeType.UNDEFINED + if (value_layoutRegionMargin_value_bottom != undefined) { + value_layoutRegionMargin_value_bottom_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_layoutRegionMargin_value_bottom_type as int32) + if ((RuntimeType.UNDEFINED) != (value_layoutRegionMargin_value_bottom_type)) { + const value_layoutRegionMargin_value_bottom_value = value_layoutRegionMargin_value_bottom! + valueSerializer.writeLength(value_layoutRegionMargin_value_bottom_value); + } + const value_layoutRegionMargin_value_left = value_layoutRegionMargin_value.left + let value_layoutRegionMargin_value_left_type = RuntimeType.UNDEFINED + if (value_layoutRegionMargin_value_left != undefined) { + value_layoutRegionMargin_value_left_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_layoutRegionMargin_value_left_type as int32) + if ((RuntimeType.UNDEFINED) != (value_layoutRegionMargin_value_left_type)) { + const value_layoutRegionMargin_value_left_value = value_layoutRegionMargin_value_left! + valueSerializer.writeLength(value_layoutRegionMargin_value_left_value); + } + } + const value_previewAnimationOptions = value.previewAnimationOptions + let value_previewAnimationOptions_type = RuntimeType.UNDEFINED + if (value_previewAnimationOptions != undefined) { + value_previewAnimationOptions_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_previewAnimationOptions_type as int32) + if ((RuntimeType.UNDEFINED) != (value_previewAnimationOptions_type)) { + const value_previewAnimationOptions_value = value_previewAnimationOptions! + valueSerializer.writeContextMenuAnimationOptions(value_previewAnimationOptions_value) + } + const value_backgroundColor = value.backgroundColor + let value_backgroundColor_type = RuntimeType.UNDEFINED + if (value_backgroundColor != undefined) { + value_backgroundColor_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_backgroundColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_backgroundColor_type)) { + const value_backgroundColor_value = value_backgroundColor! + let value_backgroundColor_value_type = RuntimeType.UNDEFINED + value_backgroundColor_value_type = runtimeType(value_backgroundColor_value) + if (((RuntimeType.OBJECT) == (value_backgroundColor_value_type)) && (value_backgroundColor_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_backgroundColor_value_0 = value_backgroundColor_value as Color + valueSerializer.writeInt32((value_backgroundColor_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_backgroundColor_value_1 = value_backgroundColor_value as number + valueSerializer.writeNumber(value_backgroundColor_value_1) + } + else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_backgroundColor_value_2 = value_backgroundColor_value as string + valueSerializer.writeString(value_backgroundColor_value_2) + } + else if (isResource(value_backgroundColor_value)) { + valueSerializer.writeInt8(3 as int32) + const value_backgroundColor_value_3 = value_backgroundColor_value as Resource + valueSerializer.writeResource(value_backgroundColor_value_3) + } + } + const value_backgroundBlurStyle = value.backgroundBlurStyle + let value_backgroundBlurStyle_type = RuntimeType.UNDEFINED + if (value_backgroundBlurStyle != undefined) { + value_backgroundBlurStyle_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_backgroundBlurStyle_type as int32) + if ((RuntimeType.UNDEFINED) != (value_backgroundBlurStyle_type)) { + const value_backgroundBlurStyle_value = value_backgroundBlurStyle! + valueSerializer.writeInt32((value_backgroundBlurStyle_value.value as int32)) + } + const value_transition = value.transition + let value_transition_type = RuntimeType.UNDEFINED + if (value_transition != undefined) { + value_transition_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_transition_type as int32) + if ((RuntimeType.UNDEFINED) != (value_transition_type)) { + const value_transition_value = value_transition! + valueSerializer.writeCustomObject("TransitionEffect", value_transition_value) + } + const value_enableHoverMode = value.enableHoverMode + let value_enableHoverMode_type = RuntimeType.UNDEFINED + if (value_enableHoverMode != undefined) { + value_enableHoverMode_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_enableHoverMode_type as int32) + if ((RuntimeType.UNDEFINED) != (value_enableHoverMode_type)) { + const value_enableHoverMode_value = value_enableHoverMode! + valueSerializer.writeBoolean(value_enableHoverMode_value) + } + } + writeCustomPopupOptions(value: CustomPopupOptions): void { + let valueSerializer = this + const value_builder = value.builder + let value_builder_type = RuntimeType.UNDEFINED + value_builder_type = runtimeType(value_builder) + if (((RuntimeType.FUNCTION == value_builder_type))) { + valueSerializer.writeInt8(0 as int32) + const value_builder_0 = value_builder as Object + valueSerializer.writeFunction(value_builder_0) + } + else if (((RuntimeType.UNDEFINED == value_builder_type))) { + valueSerializer.writeInt8(1 as int32) + } + const value_placement = value.placement + let value_placement_type = RuntimeType.UNDEFINED + if (value_placement != undefined) { + value_placement_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_placement_type as int32) + if ((RuntimeType.UNDEFINED) != (value_placement_type)) { + const value_placement_value = value_placement! + valueSerializer.writeInt32((value_placement_value.value as int32)) + } + const value_maskColor = value.maskColor + let value_maskColor_type = RuntimeType.UNDEFINED + if (value_maskColor != undefined) { + value_maskColor_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_maskColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_maskColor_type)) { + const value_maskColor_value = value_maskColor! + let value_maskColor_value_type = RuntimeType.UNDEFINED + value_maskColor_value_type = runtimeType(value_maskColor_value) + if (((RuntimeType.OBJECT) == (value_maskColor_value_type)) && (value_maskColor_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_maskColor_value_0 = value_maskColor_value as Color + valueSerializer.writeInt32((value_maskColor_value_0.value as int32)) + } + else if (((RuntimeType.STRING == value_maskColor_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_maskColor_value_1 = value_maskColor_value as string + valueSerializer.writeString(value_maskColor_value_1) + } + else if (isResource(value_maskColor_value)) { + valueSerializer.writeInt8(2 as int32) + const value_maskColor_value_2 = value_maskColor_value as Resource + valueSerializer.writeResource(value_maskColor_value_2) + } + else if (((RuntimeType.NUMBER == value_maskColor_value_type))) { + valueSerializer.writeInt8(3 as int32) + const value_maskColor_value_3 = value_maskColor_value as number + valueSerializer.writeNumber(value_maskColor_value_3) + } + } + const value_popupColor = value.popupColor + let value_popupColor_type = RuntimeType.UNDEFINED + if (value_popupColor != undefined) { + value_popupColor_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_popupColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_popupColor_type)) { + const value_popupColor_value = value_popupColor! + let value_popupColor_value_type = RuntimeType.UNDEFINED + value_popupColor_value_type = runtimeType(value_popupColor_value) + if (((RuntimeType.OBJECT) == (value_popupColor_value_type)) && (value_popupColor_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_popupColor_value_0 = value_popupColor_value as Color + valueSerializer.writeInt32((value_popupColor_value_0.value as int32)) + } + else if (((RuntimeType.STRING == value_popupColor_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_popupColor_value_1 = value_popupColor_value as string + valueSerializer.writeString(value_popupColor_value_1) + } + else if (isResource(value_popupColor_value)) { + valueSerializer.writeInt8(2 as int32) + const value_popupColor_value_2 = value_popupColor_value as Resource + valueSerializer.writeResource(value_popupColor_value_2) + } + else if (((RuntimeType.NUMBER == value_popupColor_value_type))) { + valueSerializer.writeInt8(3 as int32) + const value_popupColor_value_3 = value_popupColor_value as number + valueSerializer.writeNumber(value_popupColor_value_3) + } + } + const value_enableArrow = value.enableArrow + let value_enableArrow_type = RuntimeType.UNDEFINED + if (value_enableArrow != undefined) { + value_enableArrow_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_enableArrow_type as int32) + if ((RuntimeType.UNDEFINED) != (value_enableArrow_type)) { + const value_enableArrow_value = value_enableArrow! + valueSerializer.writeBoolean(value_enableArrow_value) + } + const value_autoCancel = value.autoCancel + let value_autoCancel_type = RuntimeType.UNDEFINED + if (value_autoCancel != undefined) { + value_autoCancel_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_autoCancel_type as int32) + if ((RuntimeType.UNDEFINED) != (value_autoCancel_type)) { + const value_autoCancel_value = value_autoCancel! + valueSerializer.writeBoolean(value_autoCancel_value) + } + const value_onStateChange = value.onStateChange + let value_onStateChange_type = RuntimeType.UNDEFINED + if (value_onStateChange != undefined) { + value_onStateChange_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_onStateChange_type as int32) + if ((RuntimeType.UNDEFINED) != (value_onStateChange_type)) { + const value_onStateChange_value = value_onStateChange! + valueSerializer.writeFunction(value_onStateChange_value) + } + const value_arrowOffset = value.arrowOffset + let value_arrowOffset_type = RuntimeType.UNDEFINED + if (value_arrowOffset != undefined) { + value_arrowOffset_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_arrowOffset_type as int32) + if ((RuntimeType.UNDEFINED) != (value_arrowOffset_type)) { + const value_arrowOffset_value = value_arrowOffset! + valueSerializer.writeLength(value_arrowOffset_value); + } + const value_showInSubWindow = value.showInSubWindow + let value_showInSubWindow_type = RuntimeType.UNDEFINED + if (value_showInSubWindow != undefined) { + value_showInSubWindow_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_showInSubWindow_type as int32) + if ((RuntimeType.UNDEFINED) != (value_showInSubWindow_type)) { + const value_showInSubWindow_value = value_showInSubWindow! + valueSerializer.writeBoolean(value_showInSubWindow_value) + } + const value_mask = value.mask + let value_mask_type = RuntimeType.UNDEFINED + if (value_mask != undefined) { + value_mask_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_mask_type as int32) + if ((RuntimeType.UNDEFINED) != (value_mask_type)) { + const value_mask_value = value_mask! + let value_mask_value_type = RuntimeType.UNDEFINED + value_mask_value_type = runtimeType(value_mask_value) + if (((RuntimeType.BOOLEAN == value_mask_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_mask_value_0 = value_mask_value as boolean + valueSerializer.writeBoolean(value_mask_value_0) + } + else if (((RuntimeType.OBJECT == value_mask_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_mask_value_1 = value_mask_value as LITERAL_ColorResourceColor + const value_mask_value_1_color = value_mask_value_1.color + let value_mask_value_1_color_type = RuntimeType.UNDEFINED + value_mask_value_1_color_type = runtimeType(value_mask_value_1_color) + if (((RuntimeType.OBJECT) == (value_mask_value_1_color_type)) && (value_mask_value_1_color instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_mask_value_1_color_0 = value_mask_value_1_color as Color + valueSerializer.writeInt32((value_mask_value_1_color_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_mask_value_1_color_type))) { + valueSerializer.writeInt8(1 as int32) + const value_mask_value_1_color_1 = value_mask_value_1_color as number + valueSerializer.writeNumber(value_mask_value_1_color_1) + } + else if (((RuntimeType.STRING == value_mask_value_1_color_type))) { + valueSerializer.writeInt8(2 as int32) + const value_mask_value_1_color_2 = value_mask_value_1_color as string + valueSerializer.writeString(value_mask_value_1_color_2) + } + else if (isResource(value_mask_value_1_color)) { + valueSerializer.writeInt8(3 as int32) + const value_mask_value_1_color_3 = value_mask_value_1_color as Resource + valueSerializer.writeResource(value_mask_value_1_color_3) + } + } + } + const value_targetSpace = value.targetSpace + let value_targetSpace_type = RuntimeType.UNDEFINED + if (value_targetSpace != undefined) { + value_targetSpace_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_targetSpace_type as int32) + if ((RuntimeType.UNDEFINED) != (value_targetSpace_type)) { + const value_targetSpace_value = value_targetSpace! + valueSerializer.writeLength(value_targetSpace_value); + } + const value_offset = value.offset + let value_offset_type = RuntimeType.UNDEFINED + if (value_offset != undefined) { + value_offset_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_offset_type as int32) + if ((RuntimeType.UNDEFINED) != (value_offset_type)) { + const value_offset_value = value_offset! + valueSerializer.writePosition(value_offset_value) + } + const value_width = value.width + let value_width_type = RuntimeType.UNDEFINED + if (value_width != undefined) { + value_width_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_width_type as int32) + if ((RuntimeType.UNDEFINED) != (value_width_type)) { + const value_width_value = value_width! + valueSerializer.writeLength(value_width_value); + } + const value_arrowPointPosition = value.arrowPointPosition + let value_arrowPointPosition_type = RuntimeType.UNDEFINED + if (value_arrowPointPosition != undefined) { + value_arrowPointPosition_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_arrowPointPosition_type as int32) + if ((RuntimeType.UNDEFINED) != (value_arrowPointPosition_type)) { + const value_arrowPointPosition_value = value_arrowPointPosition! + valueSerializer.writeInt32((value_arrowPointPosition_value.ordinal as int32)) + } + const value_arrowWidth = value.arrowWidth + let value_arrowWidth_type = RuntimeType.UNDEFINED + if (value_arrowWidth != undefined) { + value_arrowWidth_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_arrowWidth_type as int32) + if ((RuntimeType.UNDEFINED) != (value_arrowWidth_type)) { + const value_arrowWidth_value = value_arrowWidth! + valueSerializer.writeLength(value_arrowWidth_value); + } + const value_arrowHeight = value.arrowHeight + let value_arrowHeight_type = RuntimeType.UNDEFINED + if (value_arrowHeight != undefined) { + value_arrowHeight_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_arrowHeight_type as int32) + if ((RuntimeType.UNDEFINED) != (value_arrowHeight_type)) { + const value_arrowHeight_value = value_arrowHeight! + valueSerializer.writeLength(value_arrowHeight_value); + } + const value_radius = value.radius + let value_radius_type = RuntimeType.UNDEFINED + if (value_radius != undefined) { + value_radius_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_radius_type as int32) + if ((RuntimeType.UNDEFINED) != (value_radius_type)) { + const value_radius_value = value_radius! + valueSerializer.writeLength(value_radius_value); + } + const value_shadow = value.shadow + let value_shadow_type = RuntimeType.UNDEFINED + if (value_shadow != undefined) { + value_shadow_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_shadow_type as int32) + if ((RuntimeType.UNDEFINED) != (value_shadow_type)) { + const value_shadow_value = value_shadow! + let value_shadow_value_type = RuntimeType.UNDEFINED + value_shadow_value_type = runtimeType(value_shadow_value) + if (TypeChecker.isShadowOptions(value_shadow_value, false, false, false, false, false, false)) { + valueSerializer.writeInt8(0 as int32) + const value_shadow_value_0 = value_shadow_value as ShadowOptions + valueSerializer.writeShadowOptions(value_shadow_value_0) + } + else if (((RuntimeType.OBJECT) == (value_shadow_value_type)) && (value_shadow_value instanceof ShadowStyle)) { + valueSerializer.writeInt8(1 as int32) + const value_shadow_value_1 = value_shadow_value as ShadowStyle + valueSerializer.writeInt32((value_shadow_value_1.value as int32)) + } + } + const value_backgroundBlurStyle = value.backgroundBlurStyle + let value_backgroundBlurStyle_type = RuntimeType.UNDEFINED + if (value_backgroundBlurStyle != undefined) { + value_backgroundBlurStyle_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_backgroundBlurStyle_type as int32) + if ((RuntimeType.UNDEFINED) != (value_backgroundBlurStyle_type)) { + const value_backgroundBlurStyle_value = value_backgroundBlurStyle! + valueSerializer.writeInt32((value_backgroundBlurStyle_value.value as int32)) + } + const value_focusable = value.focusable + let value_focusable_type = RuntimeType.UNDEFINED + if (value_focusable != undefined) { + value_focusable_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_focusable_type as int32) + if ((RuntimeType.UNDEFINED) != (value_focusable_type)) { + const value_focusable_value = value_focusable! + valueSerializer.writeBoolean(value_focusable_value) + } + const value_transition = value.transition + let value_transition_type = RuntimeType.UNDEFINED + if (value_transition != undefined) { + value_transition_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_transition_type as int32) + if ((RuntimeType.UNDEFINED) != (value_transition_type)) { + const value_transition_value = value_transition! + valueSerializer.writeCustomObject("TransitionEffect", value_transition_value) + } + const value_onWillDismiss = value.onWillDismiss + let value_onWillDismiss_type = RuntimeType.UNDEFINED + if (value_onWillDismiss != undefined) { + value_onWillDismiss_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_onWillDismiss_type as int32) + if ((RuntimeType.UNDEFINED) != (value_onWillDismiss_type)) { + const value_onWillDismiss_value = value_onWillDismiss! + let value_onWillDismiss_value_type = RuntimeType.UNDEFINED + value_onWillDismiss_value_type = runtimeType(value_onWillDismiss_value) + if (((RuntimeType.BOOLEAN == value_onWillDismiss_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_onWillDismiss_value_0 = value_onWillDismiss_value as boolean + valueSerializer.writeBoolean(value_onWillDismiss_value_0) + } + else if (((RuntimeType.FUNCTION == value_onWillDismiss_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_onWillDismiss_value_1 = value_onWillDismiss_value as Object + valueSerializer.writeFunction(value_onWillDismiss_value_1) + } + } + const value_enableHoverMode = value.enableHoverMode + let value_enableHoverMode_type = RuntimeType.UNDEFINED + if (value_enableHoverMode != undefined) { + value_enableHoverMode_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_enableHoverMode_type as int32) + if ((RuntimeType.UNDEFINED) != (value_enableHoverMode_type)) { + const value_enableHoverMode_value = value_enableHoverMode! + valueSerializer.writeBoolean(value_enableHoverMode_value) + } + } + writePopupOptions(value: PopupOptions): void { + let valueSerializer = this + const value_message = value.message + valueSerializer.writeString(value_message) + const value_placementOnTop = value.placementOnTop + let value_placementOnTop_type = RuntimeType.UNDEFINED + if (value_placementOnTop != undefined) { + value_placementOnTop_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_placementOnTop_type as int32) + if ((RuntimeType.UNDEFINED) != (value_placementOnTop_type)) { + const value_placementOnTop_value = value_placementOnTop! + valueSerializer.writeBoolean(value_placementOnTop_value) + } + const value_placement = value.placement + let value_placement_type = RuntimeType.UNDEFINED + if (value_placement != undefined) { + value_placement_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_placement_type as int32) + if ((RuntimeType.UNDEFINED) != (value_placement_type)) { + const value_placement_value = value_placement! + valueSerializer.writeInt32((value_placement_value.value as int32)) + } + const value_primaryButton = value.primaryButton + let value_primaryButton_type = RuntimeType.UNDEFINED + if (value_primaryButton != undefined) { + value_primaryButton_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_primaryButton_type as int32) + if ((RuntimeType.UNDEFINED) != (value_primaryButton_type)) { + const value_primaryButton_value = value_primaryButton! + const value_primaryButton_value_value = value_primaryButton_value.value + valueSerializer.writeString(value_primaryButton_value_value) + const value_primaryButton_value_action = value_primaryButton_value.action + valueSerializer.writeFunction(value_primaryButton_value_action) + } + const value_secondaryButton = value.secondaryButton + let value_secondaryButton_type = RuntimeType.UNDEFINED + if (value_secondaryButton != undefined) { + value_secondaryButton_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_secondaryButton_type as int32) + if ((RuntimeType.UNDEFINED) != (value_secondaryButton_type)) { + const value_secondaryButton_value = value_secondaryButton! + const value_secondaryButton_value_value = value_secondaryButton_value.value + valueSerializer.writeString(value_secondaryButton_value_value) + const value_secondaryButton_value_action = value_secondaryButton_value.action + valueSerializer.writeFunction(value_secondaryButton_value_action) + } + const value_onStateChange = value.onStateChange + let value_onStateChange_type = RuntimeType.UNDEFINED + if (value_onStateChange != undefined) { + value_onStateChange_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_onStateChange_type as int32) + if ((RuntimeType.UNDEFINED) != (value_onStateChange_type)) { + const value_onStateChange_value = value_onStateChange! + valueSerializer.writeFunction(value_onStateChange_value) + } + const value_arrowOffset = value.arrowOffset + let value_arrowOffset_type = RuntimeType.UNDEFINED + if (value_arrowOffset != undefined) { + value_arrowOffset_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_arrowOffset_type as int32) + if ((RuntimeType.UNDEFINED) != (value_arrowOffset_type)) { + const value_arrowOffset_value = value_arrowOffset! + valueSerializer.writeLength(value_arrowOffset_value); + } + const value_showInSubWindow = value.showInSubWindow + let value_showInSubWindow_type = RuntimeType.UNDEFINED + if (value_showInSubWindow != undefined) { + value_showInSubWindow_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_showInSubWindow_type as int32) + if ((RuntimeType.UNDEFINED) != (value_showInSubWindow_type)) { + const value_showInSubWindow_value = value_showInSubWindow! + valueSerializer.writeBoolean(value_showInSubWindow_value) + } + const value_mask = value.mask + let value_mask_type = RuntimeType.UNDEFINED + if (value_mask != undefined) { + value_mask_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_mask_type as int32) + if ((RuntimeType.UNDEFINED) != (value_mask_type)) { + const value_mask_value = value_mask! + let value_mask_value_type = RuntimeType.UNDEFINED + value_mask_value_type = runtimeType(value_mask_value) + if (((RuntimeType.BOOLEAN == value_mask_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_mask_value_0 = value_mask_value as boolean + valueSerializer.writeBoolean(value_mask_value_0) + } + else if (((RuntimeType.OBJECT == value_mask_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_mask_value_1 = value_mask_value as LITERAL_ColorResourceColor + const value_mask_value_1_color = value_mask_value_1.color + let value_mask_value_1_color_type = RuntimeType.UNDEFINED + value_mask_value_1_color_type = runtimeType(value_mask_value_1_color) + if (((RuntimeType.OBJECT) == (value_mask_value_1_color_type)) && (value_mask_value_1_color instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_mask_value_1_color_0 = value_mask_value_1_color as Color + valueSerializer.writeInt32((value_mask_value_1_color_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_mask_value_1_color_type))) { + valueSerializer.writeInt8(1 as int32) + const value_mask_value_1_color_1 = value_mask_value_1_color as number + valueSerializer.writeNumber(value_mask_value_1_color_1) + } + else if (((RuntimeType.STRING == value_mask_value_1_color_type))) { + valueSerializer.writeInt8(2 as int32) + const value_mask_value_1_color_2 = value_mask_value_1_color as string + valueSerializer.writeString(value_mask_value_1_color_2) + } + else if (isResource(value_mask_value_1_color)) { + valueSerializer.writeInt8(3 as int32) + const value_mask_value_1_color_3 = value_mask_value_1_color as Resource + valueSerializer.writeResource(value_mask_value_1_color_3) + } + } + } + const value_messageOptions = value.messageOptions + let value_messageOptions_type = RuntimeType.UNDEFINED + if (value_messageOptions != undefined) { + value_messageOptions_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_messageOptions_type as int32) + if ((RuntimeType.UNDEFINED) != (value_messageOptions_type)) { + const value_messageOptions_value = value_messageOptions! + valueSerializer.writePopupMessageOptions(value_messageOptions_value) + } + const value_targetSpace = value.targetSpace + let value_targetSpace_type = RuntimeType.UNDEFINED + if (value_targetSpace != undefined) { + value_targetSpace_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_targetSpace_type as int32) + if ((RuntimeType.UNDEFINED) != (value_targetSpace_type)) { + const value_targetSpace_value = value_targetSpace! + valueSerializer.writeLength(value_targetSpace_value); + } + const value_enableArrow = value.enableArrow + let value_enableArrow_type = RuntimeType.UNDEFINED + if (value_enableArrow != undefined) { + value_enableArrow_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_enableArrow_type as int32) + if ((RuntimeType.UNDEFINED) != (value_enableArrow_type)) { + const value_enableArrow_value = value_enableArrow! + valueSerializer.writeBoolean(value_enableArrow_value) + } + const value_offset = value.offset + let value_offset_type = RuntimeType.UNDEFINED + if (value_offset != undefined) { + value_offset_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_offset_type as int32) + if ((RuntimeType.UNDEFINED) != (value_offset_type)) { + const value_offset_value = value_offset! + valueSerializer.writePosition(value_offset_value) + } + const value_popupColor = value.popupColor + let value_popupColor_type = RuntimeType.UNDEFINED + if (value_popupColor != undefined) { + value_popupColor_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_popupColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_popupColor_type)) { + const value_popupColor_value = value_popupColor! + let value_popupColor_value_type = RuntimeType.UNDEFINED + value_popupColor_value_type = runtimeType(value_popupColor_value) + if (((RuntimeType.OBJECT) == (value_popupColor_value_type)) && (value_popupColor_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_popupColor_value_0 = value_popupColor_value as Color + valueSerializer.writeInt32((value_popupColor_value_0.value as int32)) + } + else if (((RuntimeType.STRING == value_popupColor_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_popupColor_value_1 = value_popupColor_value as string + valueSerializer.writeString(value_popupColor_value_1) + } + else if (isResource(value_popupColor_value)) { + valueSerializer.writeInt8(2 as int32) + const value_popupColor_value_2 = value_popupColor_value as Resource + valueSerializer.writeResource(value_popupColor_value_2) + } + else if (((RuntimeType.NUMBER == value_popupColor_value_type))) { + valueSerializer.writeInt8(3 as int32) + const value_popupColor_value_3 = value_popupColor_value as number + valueSerializer.writeNumber(value_popupColor_value_3) + } + } + const value_autoCancel = value.autoCancel + let value_autoCancel_type = RuntimeType.UNDEFINED + if (value_autoCancel != undefined) { + value_autoCancel_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_autoCancel_type as int32) + if ((RuntimeType.UNDEFINED) != (value_autoCancel_type)) { + const value_autoCancel_value = value_autoCancel! + valueSerializer.writeBoolean(value_autoCancel_value) + } + const value_width = value.width + let value_width_type = RuntimeType.UNDEFINED + if (value_width != undefined) { + value_width_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_width_type as int32) + if ((RuntimeType.UNDEFINED) != (value_width_type)) { + const value_width_value = value_width! + valueSerializer.writeLength(value_width_value); + } + const value_arrowPointPosition = value.arrowPointPosition + let value_arrowPointPosition_type = RuntimeType.UNDEFINED + if (value_arrowPointPosition != undefined) { + value_arrowPointPosition_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_arrowPointPosition_type as int32) + if ((RuntimeType.UNDEFINED) != (value_arrowPointPosition_type)) { + const value_arrowPointPosition_value = value_arrowPointPosition! + valueSerializer.writeInt32((value_arrowPointPosition_value.ordinal as int32)) + } + const value_arrowWidth = value.arrowWidth + let value_arrowWidth_type = RuntimeType.UNDEFINED + if (value_arrowWidth != undefined) { + value_arrowWidth_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_arrowWidth_type as int32) + if ((RuntimeType.UNDEFINED) != (value_arrowWidth_type)) { + const value_arrowWidth_value = value_arrowWidth! + valueSerializer.writeLength(value_arrowWidth_value); + } + const value_arrowHeight = value.arrowHeight + let value_arrowHeight_type = RuntimeType.UNDEFINED + if (value_arrowHeight != undefined) { + value_arrowHeight_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_arrowHeight_type as int32) + if ((RuntimeType.UNDEFINED) != (value_arrowHeight_type)) { + const value_arrowHeight_value = value_arrowHeight! + valueSerializer.writeLength(value_arrowHeight_value); + } + const value_radius = value.radius + let value_radius_type = RuntimeType.UNDEFINED + if (value_radius != undefined) { + value_radius_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_radius_type as int32) + if ((RuntimeType.UNDEFINED) != (value_radius_type)) { + const value_radius_value = value_radius! + valueSerializer.writeLength(value_radius_value); + } + const value_shadow = value.shadow + let value_shadow_type = RuntimeType.UNDEFINED + if (value_shadow != undefined) { + value_shadow_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_shadow_type as int32) + if ((RuntimeType.UNDEFINED) != (value_shadow_type)) { + const value_shadow_value = value_shadow! + let value_shadow_value_type = RuntimeType.UNDEFINED + value_shadow_value_type = runtimeType(value_shadow_value) + if (TypeChecker.isShadowOptions(value_shadow_value, false, false, false, false, false, false)) { + valueSerializer.writeInt8(0 as int32) + const value_shadow_value_0 = value_shadow_value as ShadowOptions + valueSerializer.writeShadowOptions(value_shadow_value_0) + } + else if (((RuntimeType.OBJECT) == (value_shadow_value_type)) && (value_shadow_value instanceof ShadowStyle)) { + valueSerializer.writeInt8(1 as int32) + const value_shadow_value_1 = value_shadow_value as ShadowStyle + valueSerializer.writeInt32((value_shadow_value_1.value as int32)) + } + } + const value_backgroundBlurStyle = value.backgroundBlurStyle + let value_backgroundBlurStyle_type = RuntimeType.UNDEFINED + if (value_backgroundBlurStyle != undefined) { + value_backgroundBlurStyle_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_backgroundBlurStyle_type as int32) + if ((RuntimeType.UNDEFINED) != (value_backgroundBlurStyle_type)) { + const value_backgroundBlurStyle_value = value_backgroundBlurStyle! + valueSerializer.writeInt32((value_backgroundBlurStyle_value.value as int32)) + } + const value_transition = value.transition + let value_transition_type = RuntimeType.UNDEFINED + if (value_transition != undefined) { + value_transition_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_transition_type as int32) + if ((RuntimeType.UNDEFINED) != (value_transition_type)) { + const value_transition_value = value_transition! + valueSerializer.writeCustomObject("TransitionEffect", value_transition_value) + } + const value_onWillDismiss = value.onWillDismiss + let value_onWillDismiss_type = RuntimeType.UNDEFINED + if (value_onWillDismiss != undefined) { + value_onWillDismiss_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_onWillDismiss_type as int32) + if ((RuntimeType.UNDEFINED) != (value_onWillDismiss_type)) { + const value_onWillDismiss_value = value_onWillDismiss! + let value_onWillDismiss_value_type = RuntimeType.UNDEFINED + value_onWillDismiss_value_type = runtimeType(value_onWillDismiss_value) + if (((RuntimeType.BOOLEAN == value_onWillDismiss_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_onWillDismiss_value_0 = value_onWillDismiss_value as boolean + valueSerializer.writeBoolean(value_onWillDismiss_value_0) + } + else if (((RuntimeType.FUNCTION == value_onWillDismiss_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_onWillDismiss_value_1 = value_onWillDismiss_value as Object + valueSerializer.writeFunction(value_onWillDismiss_value_1) + } + } + const value_enableHoverMode = value.enableHoverMode + let value_enableHoverMode_type = RuntimeType.UNDEFINED + if (value_enableHoverMode != undefined) { + value_enableHoverMode_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_enableHoverMode_type as int32) + if ((RuntimeType.UNDEFINED) != (value_enableHoverMode_type)) { + const value_enableHoverMode_value = value_enableHoverMode! + valueSerializer.writeBoolean(value_enableHoverMode_value) + } + } + writeOverlayOffset(value: OverlayOffset): void { + let valueSerializer = this + const value_x = value.x + let value_x_type = RuntimeType.UNDEFINED + if (value_x != undefined) { + value_x_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_x_type as int32) + if ((RuntimeType.UNDEFINED) != (value_x_type)) { + const value_x_value = value_x! + valueSerializer.writeNumber(value_x_value) + } + const value_y = value.y + let value_y_type = RuntimeType.UNDEFINED + if (value_y != undefined) { + value_y_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_y_type as int32) + if ((RuntimeType.UNDEFINED) != (value_y_type)) { + const value_y_value = value_y! + valueSerializer.writeNumber(value_y_value) + } + } + writeDragItemInfo(value: DragItemInfo): void { + let valueSerializer = this + const value_pixelMap = value.pixelMap + let value_pixelMap_type = RuntimeType.UNDEFINED + if (value_pixelMap != undefined) { + value_pixelMap_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_pixelMap_type as int32) + if ((RuntimeType.UNDEFINED) != (value_pixelMap_type)) { + const value_pixelMap_value = value_pixelMap! + valueSerializer.writeCustomObject("PixelMap", value_pixelMap_value) + } + const value_builder = value.builder + let value_builder_type = RuntimeType.UNDEFINED + if (value_builder != undefined) { + value_builder_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_builder_type as int32) + if ((RuntimeType.UNDEFINED) != (value_builder_type)) { + const value_builder_value = value_builder! + let value_builder_value_type = RuntimeType.UNDEFINED + value_builder_value_type = runtimeType(value_builder_value) + if (((RuntimeType.FUNCTION == value_builder_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_builder_value_0 = value_builder_value as Object + valueSerializer.writeFunction(value_builder_value_0) + } + else if (((RuntimeType.UNDEFINED == value_builder_value_type))) { + valueSerializer.writeInt8(1 as int32) + } + } + const value_extraInfo = value.extraInfo + let value_extraInfo_type = RuntimeType.UNDEFINED + if (value_extraInfo != undefined) { + value_extraInfo_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_extraInfo_type as int32) + if ((RuntimeType.UNDEFINED) != (value_extraInfo_type)) { + const value_extraInfo_value = value_extraInfo! + valueSerializer.writeString(value_extraInfo_value) + } + } + writeClickEffect(value: ClickEffect): void { + let valueSerializer = this + const value_level = value.level + valueSerializer.writeInt32((value_level.value as int32)) + const value_scale = value.scale + let value_scale_type = RuntimeType.UNDEFINED + if (value_scale != undefined) { + value_scale_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_scale_type as int32) + if ((RuntimeType.UNDEFINED) != (value_scale_type)) { + const value_scale_value = value_scale! + valueSerializer.writeNumber(value_scale_value) + } + } + writeBias(value: Bias): void { + let valueSerializer = this + const value_horizontal = value.horizontal + let value_horizontal_type = RuntimeType.UNDEFINED + if (value_horizontal != undefined) { + value_horizontal_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_horizontal_type as int32) + if ((RuntimeType.UNDEFINED) != (value_horizontal_type)) { + const value_horizontal_value = value_horizontal! + valueSerializer.writeNumber(value_horizontal_value) + } + const value_vertical = value.vertical + let value_vertical_type = RuntimeType.UNDEFINED + if (value_vertical != undefined) { + value_vertical_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_vertical_type as int32) + if ((RuntimeType.UNDEFINED) != (value_vertical_type)) { + const value_vertical_value = value_vertical! + valueSerializer.writeNumber(value_vertical_value) + } + } + writeLocalizedVerticalAlignParam(value: LocalizedVerticalAlignParam): void { + let valueSerializer = this + const value_anchor = value.anchor + valueSerializer.writeString(value_anchor) + const value_align = value.align + valueSerializer.writeInt32((value_align.value as int32)) + } + writeLocalizedHorizontalAlignParam(value: LocalizedHorizontalAlignParam): void { + let valueSerializer = this + const value_anchor = value.anchor + valueSerializer.writeString(value_anchor) + const value_align = value.align + valueSerializer.writeInt32((value_align.value as int32)) + } + writeLocalizedPosition(value: LocalizedPosition): void { + let valueSerializer = this + const value_start = value.start + let value_start_type = RuntimeType.UNDEFINED + if (value_start != undefined) { + value_start_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_start_type as int32) + if ((RuntimeType.UNDEFINED) != (value_start_type)) { + const value_start_value = value_start! + valueSerializer.writeCustomObject("LengthMetrics", value_start_value) + } + const value_top = value.top + let value_top_type = RuntimeType.UNDEFINED + if (value_top != undefined) { + value_top_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_top_type as int32) + if ((RuntimeType.UNDEFINED) != (value_top_type)) { + const value_top_value = value_top! + valueSerializer.writeCustomObject("LengthMetrics", value_top_value) + } + } + writeMotionPathOptions(value: MotionPathOptions): void { + let valueSerializer = this + const value_path = value.path + valueSerializer.writeString(value_path) + const value_from = value.from + let value_from_type = RuntimeType.UNDEFINED + if (value_from != undefined) { + value_from_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_from_type as int32) + if ((RuntimeType.UNDEFINED) != (value_from_type)) { + const value_from_value = value_from! + valueSerializer.writeNumber(value_from_value) + } + const value_to = value.to + let value_to_type = RuntimeType.UNDEFINED + if (value_to != undefined) { + value_to_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_to_type as int32) + if ((RuntimeType.UNDEFINED) != (value_to_type)) { + const value_to_value = value_to! + valueSerializer.writeNumber(value_to_value) + } + const value_rotatable = value.rotatable + let value_rotatable_type = RuntimeType.UNDEFINED + if (value_rotatable != undefined) { + value_rotatable_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_rotatable_type as int32) + if ((RuntimeType.UNDEFINED) != (value_rotatable_type)) { + const value_rotatable_value = value_rotatable! + valueSerializer.writeBoolean(value_rotatable_value) + } + } + writeInvertOptions(value: InvertOptions): void { + let valueSerializer = this + const value_low = value.low + valueSerializer.writeNumber(value_low) + const value_high = value.high + valueSerializer.writeNumber(value_high) + const value_threshold = value.threshold + valueSerializer.writeNumber(value_threshold) + const value_thresholdRange = value.thresholdRange + valueSerializer.writeNumber(value_thresholdRange) + } + writeMotionBlurAnchor(value: MotionBlurAnchor): void { + let valueSerializer = this + const value_x = value.x + valueSerializer.writeNumber(value_x) + const value_y = value.y + valueSerializer.writeNumber(value_y) + } + writeGestureGroupInterface(value: GestureGroupInterface): void { + } + writeRotationGestureInterface(value: RotationGestureInterface): void { + } + writeSwipeGestureInterface(value: SwipeGestureInterface): void { + } + writePinchGestureInterface(value: PinchGestureInterface): void { + } + writePanGestureInterface(value: PanGestureInterface): void { + } + writeLongPressGestureInterface(value: LongPressGestureInterface): void { + } + writeTapGestureInterface(value: TapGestureInterface): void { + } + writeTransitionOptions(value: TransitionOptions): void { + let valueSerializer = this + const value_type = value.type + let value_type_type = RuntimeType.UNDEFINED + if (value_type != undefined) { + value_type_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_type_type as int32) + if ((RuntimeType.UNDEFINED) != (value_type_type)) { + const value_type_value = value_type! + valueSerializer.writeInt32((value_type_value.value as int32)) + } + const value_opacity = value.opacity + let value_opacity_type = RuntimeType.UNDEFINED + if (value_opacity != undefined) { + value_opacity_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_opacity_type as int32) + if ((RuntimeType.UNDEFINED) != (value_opacity_type)) { + const value_opacity_value = value_opacity! + valueSerializer.writeNumber(value_opacity_value) + } + const value_translate = value.translate + let value_translate_type = RuntimeType.UNDEFINED + if (value_translate != undefined) { + value_translate_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_translate_type as int32) + if ((RuntimeType.UNDEFINED) != (value_translate_type)) { + const value_translate_value = value_translate! + valueSerializer.writeTranslateOptions(value_translate_value) + } + const value_scale = value.scale + let value_scale_type = RuntimeType.UNDEFINED + if (value_scale != undefined) { + value_scale_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_scale_type as int32) + if ((RuntimeType.UNDEFINED) != (value_scale_type)) { + const value_scale_value = value_scale! + valueSerializer.writeScaleOptions(value_scale_value) + } + const value_rotate = value.rotate + let value_rotate_type = RuntimeType.UNDEFINED + if (value_rotate != undefined) { + value_rotate_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_rotate_type as int32) + if ((RuntimeType.UNDEFINED) != (value_rotate_type)) { + const value_rotate_value = value_rotate! + valueSerializer.writeRotateOptions(value_rotate_value) + } + } + writeExpectedFrameRateRange(value: ExpectedFrameRateRange): void { + let valueSerializer = this + const value_min = value.min + valueSerializer.writeNumber(value_min) + const value_max = value.max + valueSerializer.writeNumber(value_max) + const value_expected = value.expected + valueSerializer.writeNumber(value_expected) + } + writeBlurStyleOptions(value: BlurStyleOptions): void { + let valueSerializer = this + const value_colorMode = value.colorMode + let value_colorMode_type = RuntimeType.UNDEFINED + if (value_colorMode != undefined) { + value_colorMode_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_colorMode_type as int32) + if ((RuntimeType.UNDEFINED) != (value_colorMode_type)) { + const value_colorMode_value = value_colorMode! + valueSerializer.writeInt32((value_colorMode_value.value as int32)) + } + const value_adaptiveColor = value.adaptiveColor + let value_adaptiveColor_type = RuntimeType.UNDEFINED + if (value_adaptiveColor != undefined) { + value_adaptiveColor_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_adaptiveColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_adaptiveColor_type)) { + const value_adaptiveColor_value = value_adaptiveColor! + valueSerializer.writeInt32((value_adaptiveColor_value.value as int32)) + } + const value_scale = value.scale + let value_scale_type = RuntimeType.UNDEFINED + if (value_scale != undefined) { + value_scale_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_scale_type as int32) + if ((RuntimeType.UNDEFINED) != (value_scale_type)) { + const value_scale_value = value_scale! + valueSerializer.writeNumber(value_scale_value) + } + const value_blurOptions = value.blurOptions + let value_blurOptions_type = RuntimeType.UNDEFINED + if (value_blurOptions != undefined) { + value_blurOptions_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_blurOptions_type as int32) + if ((RuntimeType.UNDEFINED) != (value_blurOptions_type)) { + const value_blurOptions_value = value_blurOptions! + valueSerializer.writeBlurOptions(value_blurOptions_value) + } + } + writeRectangle(value: Rectangle): void { + let valueSerializer = this + const value_x = value.x + let value_x_type = RuntimeType.UNDEFINED + if (value_x != undefined) { + value_x_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_x_type as int32) + if ((RuntimeType.UNDEFINED) != (value_x_type)) { + const value_x_value = value_x! + valueSerializer.writeLength(value_x_value); + } + const value_y = value.y + let value_y_type = RuntimeType.UNDEFINED + if (value_y != undefined) { + value_y_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_y_type as int32) + if ((RuntimeType.UNDEFINED) != (value_y_type)) { + const value_y_value = value_y! + valueSerializer.writeLength(value_y_value); + } + const value_width = value.width + let value_width_type = RuntimeType.UNDEFINED + if (value_width != undefined) { + value_width_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_width_type as int32) + if ((RuntimeType.UNDEFINED) != (value_width_type)) { + const value_width_value = value_width! + valueSerializer.writeLength(value_width_value); + } + const value_height = value.height + let value_height_type = RuntimeType.UNDEFINED + if (value_height != undefined) { + value_height_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_height_type as int32) + if ((RuntimeType.UNDEFINED) != (value_height_type)) { + const value_height_value = value_height! + valueSerializer.writeLength(value_height_value); + } + } + writeTerminationInfo(value: TerminationInfo): void { + let valueSerializer = this + const value_code = value.code + valueSerializer.writeNumber(value_code) + const value_want = value.want + let value_want_type = RuntimeType.UNDEFINED + if (value_want != undefined) { + value_want_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_want_type as int32) + if ((RuntimeType.UNDEFINED) != (value_want_type)) { + const value_want_value = value_want! + valueSerializer.writeCustomObject("default", value_want_value) + } + } + writeAdsBlockedDetails(value: AdsBlockedDetails): void { + let valueSerializer = this + const value_url = value.url + valueSerializer.writeString(value_url) + const value_adsBlocked = value.adsBlocked + valueSerializer.writeInt8(runtimeType(value_adsBlocked) as int32) + valueSerializer.writeInt32(value_adsBlocked.length as int32) + for (let i = 0; i < value_adsBlocked.length; i++) { + const value_adsBlocked_element = value_adsBlocked[i] + valueSerializer.writeString(value_adsBlocked_element) + } + } + writeWebKeyboardCallbackInfo(value: WebKeyboardCallbackInfo): void { + let valueSerializer = this + const value_controller = value.controller + valueSerializer.writeMaterialized(value_controller) + const value_attributes = value.attributes + valueSerializer.writeCustomObject("Record", value_attributes) + } + writeRenderProcessNotRespondingData(value: RenderProcessNotRespondingData): void { + let valueSerializer = this + const value_jsStack = value.jsStack + valueSerializer.writeString(value_jsStack) + const value_pid = value.pid + valueSerializer.writeNumber(value_pid) + const value_reason = value.reason + valueSerializer.writeInt32((value_reason.value as int32)) + } + writeNativeEmbedTouchInfo(value: NativeEmbedTouchInfo): void { + let valueSerializer = this + const value_embedId = value.embedId + let value_embedId_type = RuntimeType.UNDEFINED + if (value_embedId != undefined) { + value_embedId_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_embedId_type as int32) + if ((RuntimeType.UNDEFINED) != (value_embedId_type)) { + const value_embedId_value = value_embedId! + valueSerializer.writeString(value_embedId_value) + } + const value_touchEvent = value.touchEvent + let value_touchEvent_type = RuntimeType.UNDEFINED + if (value_touchEvent != undefined) { + value_touchEvent_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_touchEvent_type as int32) + if ((RuntimeType.UNDEFINED) != (value_touchEvent_type)) { + const value_touchEvent_value = value_touchEvent! + valueSerializer.writeTouchEvent(value_touchEvent_value) + } + const value_result = value.result + let value_result_type = RuntimeType.UNDEFINED + if (value_result != undefined) { + value_result_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_result_type as int32) + if ((RuntimeType.UNDEFINED) != (value_result_type)) { + const value_result_value = value_result! + valueSerializer.writeMaterialized(value_result_value) + } + } + writeNativeEmbedVisibilityInfo(value: NativeEmbedVisibilityInfo): void { + let valueSerializer = this + const value_visibility = value.visibility + valueSerializer.writeBoolean(value_visibility) + const value_embedId = value.embedId + valueSerializer.writeString(value_embedId) + } + writeNativeEmbedDataInfo(value: NativeEmbedDataInfo): void { + let valueSerializer = this + const value_status = value.status + let value_status_type = RuntimeType.UNDEFINED + if (value_status != undefined) { + value_status_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_status_type as int32) + if ((RuntimeType.UNDEFINED) != (value_status_type)) { + const value_status_value = value_status! + valueSerializer.writeInt32((value_status_value.value as int32)) + } + const value_surfaceId = value.surfaceId + let value_surfaceId_type = RuntimeType.UNDEFINED + if (value_surfaceId != undefined) { + value_surfaceId_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_surfaceId_type as int32) + if ((RuntimeType.UNDEFINED) != (value_surfaceId_type)) { + const value_surfaceId_value = value_surfaceId! + valueSerializer.writeString(value_surfaceId_value) + } + const value_embedId = value.embedId + let value_embedId_type = RuntimeType.UNDEFINED + if (value_embedId != undefined) { + value_embedId_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_embedId_type as int32) + if ((RuntimeType.UNDEFINED) != (value_embedId_type)) { + const value_embedId_value = value_embedId! + valueSerializer.writeString(value_embedId_value) + } + const value_info = value.info + let value_info_type = RuntimeType.UNDEFINED + if (value_info != undefined) { + value_info_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_info_type as int32) + if ((RuntimeType.UNDEFINED) != (value_info_type)) { + const value_info_value = value_info! + valueSerializer.writeNativeEmbedInfo(value_info_value) + } + } + writeIntelligentTrackingPreventionDetails(value: IntelligentTrackingPreventionDetails): void { + let valueSerializer = this + const value_host = value.host + valueSerializer.writeString(value_host) + const value_trackerHost = value.trackerHost + valueSerializer.writeString(value_trackerHost) + } + writeLoadCommittedDetails(value: LoadCommittedDetails): void { + let valueSerializer = this + const value_isMainFrame = value.isMainFrame + valueSerializer.writeBoolean(value_isMainFrame) + const value_isSameDocument = value.isSameDocument + valueSerializer.writeBoolean(value_isSameDocument) + const value_didReplaceEntry = value.didReplaceEntry + valueSerializer.writeBoolean(value_didReplaceEntry) + const value_navigationType = value.navigationType + valueSerializer.writeInt32((value_navigationType.value as int32)) + const value_url = value.url + valueSerializer.writeString(value_url) + } + writeOnOverScrollEvent(value: OnOverScrollEvent): void { + let valueSerializer = this + const value_xOffset = value.xOffset + valueSerializer.writeNumber(value_xOffset) + const value_yOffset = value.yOffset + valueSerializer.writeNumber(value_yOffset) + } + writeOnLoadInterceptEvent(value: OnLoadInterceptEvent): void { + let valueSerializer = this + const value_data = value.data + valueSerializer.writeMaterialized(value_data) + } + writeLargestContentfulPaint(value: LargestContentfulPaint): void { + let valueSerializer = this + const value_navigationStartTime = value.navigationStartTime + let value_navigationStartTime_type = RuntimeType.UNDEFINED + if (value_navigationStartTime != undefined) { + value_navigationStartTime_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_navigationStartTime_type as int32) + if ((RuntimeType.UNDEFINED) != (value_navigationStartTime_type)) { + const value_navigationStartTime_value = value_navigationStartTime! + valueSerializer.writeNumber(value_navigationStartTime_value) + } + const value_largestImagePaintTime = value.largestImagePaintTime + let value_largestImagePaintTime_type = RuntimeType.UNDEFINED + if (value_largestImagePaintTime != undefined) { + value_largestImagePaintTime_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_largestImagePaintTime_type as int32) + if ((RuntimeType.UNDEFINED) != (value_largestImagePaintTime_type)) { + const value_largestImagePaintTime_value = value_largestImagePaintTime! + valueSerializer.writeNumber(value_largestImagePaintTime_value) + } + const value_largestTextPaintTime = value.largestTextPaintTime + let value_largestTextPaintTime_type = RuntimeType.UNDEFINED + if (value_largestTextPaintTime != undefined) { + value_largestTextPaintTime_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_largestTextPaintTime_type as int32) + if ((RuntimeType.UNDEFINED) != (value_largestTextPaintTime_type)) { + const value_largestTextPaintTime_value = value_largestTextPaintTime! + valueSerializer.writeNumber(value_largestTextPaintTime_value) + } + const value_imageBPP = value.imageBPP + let value_imageBPP_type = RuntimeType.UNDEFINED + if (value_imageBPP != undefined) { + value_imageBPP_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_imageBPP_type as int32) + if ((RuntimeType.UNDEFINED) != (value_imageBPP_type)) { + const value_imageBPP_value = value_imageBPP! + valueSerializer.writeNumber(value_imageBPP_value) + } + const value_largestImageLoadStartTime = value.largestImageLoadStartTime + let value_largestImageLoadStartTime_type = RuntimeType.UNDEFINED + if (value_largestImageLoadStartTime != undefined) { + value_largestImageLoadStartTime_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_largestImageLoadStartTime_type as int32) + if ((RuntimeType.UNDEFINED) != (value_largestImageLoadStartTime_type)) { + const value_largestImageLoadStartTime_value = value_largestImageLoadStartTime! + valueSerializer.writeNumber(value_largestImageLoadStartTime_value) + } + const value_largestImageLoadEndTime = value.largestImageLoadEndTime + let value_largestImageLoadEndTime_type = RuntimeType.UNDEFINED + if (value_largestImageLoadEndTime != undefined) { + value_largestImageLoadEndTime_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_largestImageLoadEndTime_type as int32) + if ((RuntimeType.UNDEFINED) != (value_largestImageLoadEndTime_type)) { + const value_largestImageLoadEndTime_value = value_largestImageLoadEndTime! + valueSerializer.writeNumber(value_largestImageLoadEndTime_value) + } + } + writeFirstMeaningfulPaint(value: FirstMeaningfulPaint): void { + let valueSerializer = this + const value_navigationStartTime = value.navigationStartTime + let value_navigationStartTime_type = RuntimeType.UNDEFINED + if (value_navigationStartTime != undefined) { + value_navigationStartTime_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_navigationStartTime_type as int32) + if ((RuntimeType.UNDEFINED) != (value_navigationStartTime_type)) { + const value_navigationStartTime_value = value_navigationStartTime! + valueSerializer.writeNumber(value_navigationStartTime_value) + } + const value_firstMeaningfulPaintTime = value.firstMeaningfulPaintTime + let value_firstMeaningfulPaintTime_type = RuntimeType.UNDEFINED + if (value_firstMeaningfulPaintTime != undefined) { + value_firstMeaningfulPaintTime_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_firstMeaningfulPaintTime_type as int32) + if ((RuntimeType.UNDEFINED) != (value_firstMeaningfulPaintTime_type)) { + const value_firstMeaningfulPaintTime_value = value_firstMeaningfulPaintTime! + valueSerializer.writeNumber(value_firstMeaningfulPaintTime_value) + } + } + writeOnFirstContentfulPaintEvent(value: OnFirstContentfulPaintEvent): void { + let valueSerializer = this + const value_navigationStartTick = value.navigationStartTick + valueSerializer.writeNumber(value_navigationStartTick) + const value_firstContentfulPaintMs = value.firstContentfulPaintMs + valueSerializer.writeNumber(value_firstContentfulPaintMs) + } + writeOnAudioStateChangedEvent(value: OnAudioStateChangedEvent): void { + let valueSerializer = this + const value_playing = value.playing + valueSerializer.writeBoolean(value_playing) + } + writeOnDataResubmittedEvent(value: OnDataResubmittedEvent): void { + let valueSerializer = this + const value_handler = value.handler + valueSerializer.writeMaterialized(value_handler) + } + writeOnPageVisibleEvent(value: OnPageVisibleEvent): void { + let valueSerializer = this + const value_url = value.url + valueSerializer.writeString(value_url) + } + writeOnFaviconReceivedEvent(value: OnFaviconReceivedEvent): void { + let valueSerializer = this + const value_favicon = value.favicon + valueSerializer.writeCustomObject("PixelMap", value_favicon) + } + writeOnTouchIconUrlReceivedEvent(value: OnTouchIconUrlReceivedEvent): void { + let valueSerializer = this + const value_url = value.url + valueSerializer.writeString(value_url) + const value_precomposed = value.precomposed + valueSerializer.writeBoolean(value_precomposed) + } + writeOnWindowNewEvent(value: OnWindowNewEvent): void { + let valueSerializer = this + const value_isAlert = value.isAlert + valueSerializer.writeBoolean(value_isAlert) + const value_isUserTrigger = value.isUserTrigger + valueSerializer.writeBoolean(value_isUserTrigger) + const value_targetUrl = value.targetUrl + valueSerializer.writeString(value_targetUrl) + const value_handler = value.handler + valueSerializer.writeMaterialized(value_handler) + } + writeOnClientAuthenticationEvent(value: OnClientAuthenticationEvent): void { + let valueSerializer = this + const value_handler = value.handler + valueSerializer.writeMaterialized(value_handler) + const value_host = value.host + valueSerializer.writeString(value_host) + const value_port = value.port + valueSerializer.writeNumber(value_port) + const value_keyTypes = value.keyTypes + valueSerializer.writeInt8(runtimeType(value_keyTypes) as int32) + valueSerializer.writeInt32(value_keyTypes.length as int32) + for (let i = 0; i < value_keyTypes.length; i++) { + const value_keyTypes_element = value_keyTypes[i] + valueSerializer.writeString(value_keyTypes_element) + } + const value_issuers = value.issuers + valueSerializer.writeInt8(runtimeType(value_issuers) as int32) + valueSerializer.writeInt32(value_issuers.length as int32) + for (let i = 0; i < value_issuers.length; i++) { + const value_issuers_element = value_issuers[i] + valueSerializer.writeString(value_issuers_element) + } + } + writeSslErrorEvent(value: SslErrorEvent): void { + let valueSerializer = this + const value_handler = value.handler + valueSerializer.writeMaterialized(value_handler) + const value_error = value.error + valueSerializer.writeInt32((value_error.value as int32)) + const value_url = value.url + valueSerializer.writeString(value_url) + const value_originalUrl = value.originalUrl + valueSerializer.writeString(value_originalUrl) + const value_referrer = value.referrer + valueSerializer.writeString(value_referrer) + const value_isFatalError = value.isFatalError + valueSerializer.writeBoolean(value_isFatalError) + const value_isMainFrame = value.isMainFrame + valueSerializer.writeBoolean(value_isMainFrame) + } + writeOnSslErrorEventReceiveEvent(value: OnSslErrorEventReceiveEvent): void { + let valueSerializer = this + const value_handler = value.handler + valueSerializer.writeMaterialized(value_handler) + const value_error = value.error + valueSerializer.writeInt32((value_error.value as int32)) + } + writeOnScrollEvent(value: OnScrollEvent): void { + let valueSerializer = this + const value_xOffset = value.xOffset + valueSerializer.writeNumber(value_xOffset) + const value_yOffset = value.yOffset + valueSerializer.writeNumber(value_yOffset) + } + writeOnSearchResultReceiveEvent(value: OnSearchResultReceiveEvent): void { + let valueSerializer = this + const value_activeMatchOrdinal = value.activeMatchOrdinal + valueSerializer.writeNumber(value_activeMatchOrdinal) + const value_numberOfMatches = value.numberOfMatches + valueSerializer.writeNumber(value_numberOfMatches) + const value_isDoneCounting = value.isDoneCounting + valueSerializer.writeBoolean(value_isDoneCounting) + } + writeOnContextMenuShowEvent(value: OnContextMenuShowEvent): void { + let valueSerializer = this + const value_param = value.param + valueSerializer.writeMaterialized(value_param) + const value_result = value.result + valueSerializer.writeMaterialized(value_result) + } + writeOnScreenCaptureRequestEvent(value: OnScreenCaptureRequestEvent): void { + let valueSerializer = this + const value_handler = value.handler + valueSerializer.writeMaterialized(value_handler) + } + writeOnPermissionRequestEvent(value: OnPermissionRequestEvent): void { + let valueSerializer = this + const value_request = value.request + valueSerializer.writeMaterialized(value_request) + } + writeOnInterceptRequestEvent(value: OnInterceptRequestEvent): void { + let valueSerializer = this + const value_request = value.request + valueSerializer.writeMaterialized(value_request) + } + writeOnHttpAuthRequestEvent(value: OnHttpAuthRequestEvent): void { + let valueSerializer = this + const value_handler = value.handler + valueSerializer.writeMaterialized(value_handler) + const value_host = value.host + valueSerializer.writeString(value_host) + const value_realm = value.realm + valueSerializer.writeString(value_realm) + } + writeOnScaleChangeEvent(value: OnScaleChangeEvent): void { + let valueSerializer = this + const value_oldScale = value.oldScale + valueSerializer.writeNumber(value_oldScale) + const value_newScale = value.newScale + valueSerializer.writeNumber(value_newScale) + } + writeFullScreenEnterEvent(value: FullScreenEnterEvent): void { + let valueSerializer = this + const value_handler = value.handler + valueSerializer.writeMaterialized(value_handler) + const value_videoWidth = value.videoWidth + let value_videoWidth_type = RuntimeType.UNDEFINED + if (value_videoWidth != undefined) { + value_videoWidth_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_videoWidth_type as int32) + if ((RuntimeType.UNDEFINED) != (value_videoWidth_type)) { + const value_videoWidth_value = value_videoWidth! + valueSerializer.writeNumber(value_videoWidth_value) + } + const value_videoHeight = value.videoHeight + let value_videoHeight_type = RuntimeType.UNDEFINED + if (value_videoHeight != undefined) { + value_videoHeight_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_videoHeight_type as int32) + if ((RuntimeType.UNDEFINED) != (value_videoHeight_type)) { + const value_videoHeight_value = value_videoHeight! + valueSerializer.writeNumber(value_videoHeight_value) + } + } + writeOnResourceLoadEvent(value: OnResourceLoadEvent): void { + let valueSerializer = this + const value_url = value.url + valueSerializer.writeString(value_url) + } + writeOnShowFileSelectorEvent(value: OnShowFileSelectorEvent): void { + let valueSerializer = this + const value_result = value.result + valueSerializer.writeMaterialized(value_result) + const value_fileSelector = value.fileSelector + valueSerializer.writeMaterialized(value_fileSelector) + } + writeOnRenderExitedEvent(value: OnRenderExitedEvent): void { + let valueSerializer = this + const value_renderExitReason = value.renderExitReason + valueSerializer.writeInt32((value_renderExitReason.value as int32)) + } + writeOnRefreshAccessedHistoryEvent(value: OnRefreshAccessedHistoryEvent): void { + let valueSerializer = this + const value_url = value.url + valueSerializer.writeString(value_url) + const value_isRefreshed = value.isRefreshed + valueSerializer.writeBoolean(value_isRefreshed) + } + writeOnDownloadStartEvent(value: OnDownloadStartEvent): void { + let valueSerializer = this + const value_url = value.url + valueSerializer.writeString(value_url) + const value_userAgent = value.userAgent + valueSerializer.writeString(value_userAgent) + const value_contentDisposition = value.contentDisposition + valueSerializer.writeString(value_contentDisposition) + const value_mimetype = value.mimetype + valueSerializer.writeString(value_mimetype) + const value_contentLength = value.contentLength + valueSerializer.writeNumber(value_contentLength) + } + writeOnHttpErrorReceiveEvent(value: OnHttpErrorReceiveEvent): void { + let valueSerializer = this + const value_request = value.request + valueSerializer.writeMaterialized(value_request) + const value_response = value.response + valueSerializer.writeMaterialized(value_response) + } + writeOnErrorReceiveEvent(value: OnErrorReceiveEvent): void { + let valueSerializer = this + const value_request = value.request + valueSerializer.writeMaterialized(value_request) + const value_error = value.error + valueSerializer.writeMaterialized(value_error) + } + writeOnConsoleEvent(value: OnConsoleEvent): void { + let valueSerializer = this + const value_message = value.message + valueSerializer.writeMaterialized(value_message) + } + writeOnPromptEvent(value: OnPromptEvent): void { + let valueSerializer = this + const value_url = value.url + valueSerializer.writeString(value_url) + const value_message = value.message + valueSerializer.writeString(value_message) + const value_value = value.value + valueSerializer.writeString(value_value) + const value_result = value.result + valueSerializer.writeMaterialized(value_result) + } + writeOnConfirmEvent(value: OnConfirmEvent): void { + let valueSerializer = this + const value_url = value.url + valueSerializer.writeString(value_url) + const value_message = value.message + valueSerializer.writeString(value_message) + const value_result = value.result + valueSerializer.writeMaterialized(value_result) + } + writeOnBeforeUnloadEvent(value: OnBeforeUnloadEvent): void { + let valueSerializer = this + const value_url = value.url + valueSerializer.writeString(value_url) + const value_message = value.message + valueSerializer.writeString(value_message) + const value_result = value.result + valueSerializer.writeMaterialized(value_result) + } + writeOnAlertEvent(value: OnAlertEvent): void { + let valueSerializer = this + const value_url = value.url + valueSerializer.writeString(value_url) + const value_message = value.message + valueSerializer.writeString(value_message) + const value_result = value.result + valueSerializer.writeMaterialized(value_result) + } + writeOnGeolocationShowEvent(value: OnGeolocationShowEvent): void { + let valueSerializer = this + const value_origin = value.origin + valueSerializer.writeString(value_origin) + const value_geolocation = value.geolocation + valueSerializer.writeMaterialized(value_geolocation) + } + writeOnTitleReceiveEvent(value: OnTitleReceiveEvent): void { + let valueSerializer = this + const value_title = value.title + valueSerializer.writeString(value_title) + } + writeOnProgressChangeEvent(value: OnProgressChangeEvent): void { + let valueSerializer = this + const value_newProgress = value.newProgress + valueSerializer.writeNumber(value_newProgress) + } + writeOnPageBeginEvent(value: OnPageBeginEvent): void { + let valueSerializer = this + const value_url = value.url + valueSerializer.writeString(value_url) + } + writeOnPageEndEvent(value: OnPageEndEvent): void { + let valueSerializer = this + const value_url = value.url + valueSerializer.writeString(value_url) + } + writeTimePickerResult(value: TimePickerResult): void { + let valueSerializer = this + const value_hour = value.hour + valueSerializer.writeNumber(value_hour) + const value_minute = value.minute + valueSerializer.writeNumber(value_minute) + const value_second = value.second + valueSerializer.writeNumber(value_second) + } + writeTabsAnimationEvent(value: TabsAnimationEvent): void { + let valueSerializer = this + const value_currentOffset = value.currentOffset + valueSerializer.writeNumber(value_currentOffset) + const value_targetOffset = value.targetOffset + valueSerializer.writeNumber(value_targetOffset) + const value_velocity = value.velocity + valueSerializer.writeNumber(value_velocity) + } + writeSwiperAnimationEvent(value: SwiperAnimationEvent): void { + let valueSerializer = this + const value_currentOffset = value.currentOffset + valueSerializer.writeNumber(value_currentOffset) + const value_targetOffset = value.targetOffset + valueSerializer.writeNumber(value_targetOffset) + const value_velocity = value.velocity + valueSerializer.writeNumber(value_velocity) + } + writeDeleteValue(value: DeleteValue): void { + let valueSerializer = this + const value_deleteOffset = value.deleteOffset + valueSerializer.writeNumber(value_deleteOffset) + const value_direction = value.direction + valueSerializer.writeInt32((value_direction.value as int32)) + const value_deleteValue = value.deleteValue + valueSerializer.writeString(value_deleteValue) + } + writeInsertValue(value: InsertValue): void { + let valueSerializer = this + const value_insertOffset = value.insertOffset + valueSerializer.writeNumber(value_insertOffset) + const value_insertValue = value.insertValue + valueSerializer.writeString(value_insertValue) + } + writePreviewText(value: PreviewText): void { + let valueSerializer = this + const value_offset = value.offset + valueSerializer.writeNumber(value_offset) + const value_value = value.value + valueSerializer.writeString(value_value) + } + writeCopyEvent(value: CopyEvent): void { + let valueSerializer = this + const value_preventDefault = value.preventDefault + let value_preventDefault_type = RuntimeType.UNDEFINED + if (value_preventDefault != undefined) { + value_preventDefault_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_preventDefault_type as int32) + if ((RuntimeType.UNDEFINED) != (value_preventDefault_type)) { + const value_preventDefault_value = value_preventDefault! + valueSerializer.writeFunction(value_preventDefault_value) + } + } + writeCutEvent(value: CutEvent): void { + let valueSerializer = this + const value_preventDefault = value.preventDefault + let value_preventDefault_type = RuntimeType.UNDEFINED + if (value_preventDefault != undefined) { + value_preventDefault_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_preventDefault_type as int32) + if ((RuntimeType.UNDEFINED) != (value_preventDefault_type)) { + const value_preventDefault_value = value_preventDefault! + valueSerializer.writeFunction(value_preventDefault_value) + } + } + writeRichEditorChangeValue(value: RichEditorChangeValue): void { + let valueSerializer = this + const value_rangeBefore = value.rangeBefore + valueSerializer.writeTextRange(value_rangeBefore) + const value_replacedSpans = value.replacedSpans + valueSerializer.writeInt8(runtimeType(value_replacedSpans) as int32) + valueSerializer.writeInt32(value_replacedSpans.length as int32) + for (let i = 0; i < value_replacedSpans.length; i++) { + const value_replacedSpans_element = value_replacedSpans[i] + valueSerializer.writeRichEditorTextSpanResult(value_replacedSpans_element) + } + const value_replacedImageSpans = value.replacedImageSpans + valueSerializer.writeInt8(runtimeType(value_replacedImageSpans) as int32) + valueSerializer.writeInt32(value_replacedImageSpans.length as int32) + for (let i = 0; i < value_replacedImageSpans.length; i++) { + const value_replacedImageSpans_element = value_replacedImageSpans[i] + valueSerializer.writeRichEditorImageSpanResult(value_replacedImageSpans_element) + } + const value_replacedSymbolSpans = value.replacedSymbolSpans + valueSerializer.writeInt8(runtimeType(value_replacedSymbolSpans) as int32) + valueSerializer.writeInt32(value_replacedSymbolSpans.length as int32) + for (let i = 0; i < value_replacedSymbolSpans.length; i++) { + const value_replacedSymbolSpans_element = value_replacedSymbolSpans[i] + valueSerializer.writeRichEditorTextSpanResult(value_replacedSymbolSpans_element) + } + } + writeSubmitEvent(value: SubmitEvent): void { + let valueSerializer = this + const value_text = value.text + valueSerializer.writeString(value_text) + } + writePasteEvent(value: PasteEvent): void { + let valueSerializer = this + const value_preventDefault = value.preventDefault + let value_preventDefault_type = RuntimeType.UNDEFINED + if (value_preventDefault != undefined) { + value_preventDefault_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_preventDefault_type as int32) + if ((RuntimeType.UNDEFINED) != (value_preventDefault_type)) { + const value_preventDefault_value = value_preventDefault! + valueSerializer.writeFunction(value_preventDefault_value) + } + } + writeRichEditorDeleteValue(value: RichEditorDeleteValue): void { + let valueSerializer = this + const value_offset = value.offset + valueSerializer.writeNumber(value_offset) + const value_direction = value.direction + valueSerializer.writeInt32((value_direction.value as int32)) + const value_length = value.length + valueSerializer.writeNumber(value_length) + const value_richEditorDeleteSpans = value.richEditorDeleteSpans + valueSerializer.writeInt8(runtimeType(value_richEditorDeleteSpans) as int32) + valueSerializer.writeInt32(value_richEditorDeleteSpans.length as int32) + for (let i = 0; i < value_richEditorDeleteSpans.length; i++) { + const value_richEditorDeleteSpans_element = value_richEditorDeleteSpans[i] + let value_richEditorDeleteSpans_element_type = RuntimeType.UNDEFINED + value_richEditorDeleteSpans_element_type = runtimeType(value_richEditorDeleteSpans_element) + if (TypeChecker.isRichEditorTextSpanResult(value_richEditorDeleteSpans_element, true, false, false, true, false, false, false, false)) { + valueSerializer.writeInt8(0 as int32) + const value_richEditorDeleteSpans_element_0 = value_richEditorDeleteSpans_element as RichEditorTextSpanResult + valueSerializer.writeRichEditorTextSpanResult(value_richEditorDeleteSpans_element_0) + } + else if (TypeChecker.isRichEditorImageSpanResult(value_richEditorDeleteSpans_element, true, false, false, false, true)) { + valueSerializer.writeInt8(1 as int32) + const value_richEditorDeleteSpans_element_1 = value_richEditorDeleteSpans_element as RichEditorImageSpanResult + valueSerializer.writeRichEditorImageSpanResult(value_richEditorDeleteSpans_element_1) + } + } + } + writeRichEditorInsertValue(value: RichEditorInsertValue): void { + let valueSerializer = this + const value_insertOffset = value.insertOffset + valueSerializer.writeNumber(value_insertOffset) + const value_insertValue = value.insertValue + valueSerializer.writeString(value_insertValue) + const value_previewText = value.previewText + let value_previewText_type = RuntimeType.UNDEFINED + if (value_previewText != undefined) { + value_previewText_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_previewText_type as int32) + if ((RuntimeType.UNDEFINED) != (value_previewText_type)) { + const value_previewText_value = value_previewText! + valueSerializer.writeString(value_previewText_value) + } + } + writeRichEditorSelection(value: RichEditorSelection): void { + let valueSerializer = this + const value_selection = value.selection + valueSerializer.writeInt8(runtimeType(value_selection) as int32) + const value_selection_0 = value_selection[0] + valueSerializer.writeNumber(value_selection_0) + const value_selection_1 = value_selection[1] + valueSerializer.writeNumber(value_selection_1) + const value_spans = value.spans + valueSerializer.writeInt8(runtimeType(value_spans) as int32) + valueSerializer.writeInt32(value_spans.length as int32) + for (let i = 0; i < value_spans.length; i++) { + const value_spans_element = value_spans[i] + let value_spans_element_type = RuntimeType.UNDEFINED + value_spans_element_type = runtimeType(value_spans_element) + if (TypeChecker.isRichEditorTextSpanResult(value_spans_element, true, false, false, true, false, false, false, false)) { + valueSerializer.writeInt8(0 as int32) + const value_spans_element_0 = value_spans_element as RichEditorTextSpanResult + valueSerializer.writeRichEditorTextSpanResult(value_spans_element_0) + } + else if (TypeChecker.isRichEditorImageSpanResult(value_spans_element, true, false, false, false, true)) { + valueSerializer.writeInt8(1 as int32) + const value_spans_element_1 = value_spans_element as RichEditorImageSpanResult + valueSerializer.writeRichEditorImageSpanResult(value_spans_element_1) + } + } + } + writeNavContentInfo(value: NavContentInfo): void { + let valueSerializer = this + const value_name = value.name + let value_name_type = RuntimeType.UNDEFINED + if (value_name != undefined) { + value_name_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_name_type as int32) + if ((RuntimeType.UNDEFINED) != (value_name_type)) { + const value_name_value = value_name! + valueSerializer.writeString(value_name_value) + } + const value_index = value.index + valueSerializer.writeNumber(value_index) + const value_mode = value.mode + let value_mode_type = RuntimeType.UNDEFINED + if (value_mode != undefined) { + value_mode_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_mode_type as int32) + if ((RuntimeType.UNDEFINED) != (value_mode_type)) { + const value_mode_value = value_mode! + valueSerializer.writeInt32((value_mode_value.value as int32)) + } + const value_param = value.param + let value_param_type = RuntimeType.UNDEFINED + if (value_param != undefined) { + value_param_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_param_type as int32) + if ((RuntimeType.UNDEFINED) != (value_param_type)) { + const value_param_value = value_param! + valueSerializer.writeObject(value_param_value) + } + const value_navDestinationId = value.navDestinationId + let value_navDestinationId_type = RuntimeType.UNDEFINED + if (value_navDestinationId != undefined) { + value_navDestinationId_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_navDestinationId_type as int32) + if ((RuntimeType.UNDEFINED) != (value_navDestinationId_type)) { + const value_navDestinationId_value = value_navDestinationId! + valueSerializer.writeString(value_navDestinationId_value) + } + } + writeVisibleListContentInfo(value: VisibleListContentInfo): void { + let valueSerializer = this + const value_index = value.index + valueSerializer.writeNumber(value_index) + const value_itemGroupArea = value.itemGroupArea + let value_itemGroupArea_type = RuntimeType.UNDEFINED + if (value_itemGroupArea != undefined) { + value_itemGroupArea_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_itemGroupArea_type as int32) + if ((RuntimeType.UNDEFINED) != (value_itemGroupArea_type)) { + const value_itemGroupArea_value = value_itemGroupArea! + valueSerializer.writeInt32((value_itemGroupArea_value.value as int32)) + } + const value_itemIndexInGroup = value.itemIndexInGroup + let value_itemIndexInGroup_type = RuntimeType.UNDEFINED + if (value_itemIndexInGroup != undefined) { + value_itemIndexInGroup_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_itemIndexInGroup_type as int32) + if ((RuntimeType.UNDEFINED) != (value_itemIndexInGroup_type)) { + const value_itemIndexInGroup_value = value_itemIndexInGroup! + valueSerializer.writeNumber(value_itemIndexInGroup_value) + } + } + writeImageLoadResult(value: ImageLoadResult): void { + let valueSerializer = this + const value_width = value.width + valueSerializer.writeNumber(value_width) + const value_height = value.height + valueSerializer.writeNumber(value_height) + const value_componentWidth = value.componentWidth + valueSerializer.writeNumber(value_componentWidth) + const value_componentHeight = value.componentHeight + valueSerializer.writeNumber(value_componentHeight) + const value_loadingStatus = value.loadingStatus + valueSerializer.writeNumber(value_loadingStatus) + const value_contentWidth = value.contentWidth + valueSerializer.writeNumber(value_contentWidth) + const value_contentHeight = value.contentHeight + valueSerializer.writeNumber(value_contentHeight) + const value_contentOffsetX = value.contentOffsetX + valueSerializer.writeNumber(value_contentOffsetX) + const value_contentOffsetY = value.contentOffsetY + valueSerializer.writeNumber(value_contentOffsetY) + } + writeImageError(value: ImageError): void { + let valueSerializer = this + const value_componentWidth = value.componentWidth + valueSerializer.writeNumber(value_componentWidth) + const value_componentHeight = value.componentHeight + valueSerializer.writeNumber(value_componentHeight) + const value_message = value.message + valueSerializer.writeString(value_message) + } + writeItemDragInfo(value: ItemDragInfo): void { + let valueSerializer = this + const value_x = value.x + valueSerializer.writeNumber(value_x) + const value_y = value.y + valueSerializer.writeNumber(value_y) + } + writeFormCallbackInfo(value: FormCallbackInfo): void { + let valueSerializer = this + const value_id = value.id + valueSerializer.writeNumber(value_id) + const value_idString = value.idString + valueSerializer.writeString(value_idString) + } + writeHoverEventParam(value: HoverEventParam): void { + let valueSerializer = this + const value_foldStatus = value.foldStatus + valueSerializer.writeInt32((value_foldStatus.value as int32)) + const value_isHoverMode = value.isHoverMode + valueSerializer.writeBoolean(value_isHoverMode) + const value_appRotation = value.appRotation + valueSerializer.writeInt32((value_appRotation.value as int32)) + const value_windowStatusType = value.windowStatusType + valueSerializer.writeCustomObject("WindowStatusType", value_windowStatusType) + } + writeOnFoldStatusChangeInfo(value: OnFoldStatusChangeInfo): void { + let valueSerializer = this + const value_foldStatus = value.foldStatus + valueSerializer.writeInt32((value_foldStatus.value as int32)) + } + writeDatePickerResult(value: DatePickerResult): void { + let valueSerializer = this + const value_year = value.year + let value_year_type = RuntimeType.UNDEFINED + if (value_year != undefined) { + value_year_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_year_type as int32) + if ((RuntimeType.UNDEFINED) != (value_year_type)) { + const value_year_value = value_year! + valueSerializer.writeNumber(value_year_value) + } + const value_month = value.month + let value_month_type = RuntimeType.UNDEFINED + if (value_month != undefined) { + value_month_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_month_type as int32) + if ((RuntimeType.UNDEFINED) != (value_month_type)) { + const value_month_value = value_month! + valueSerializer.writeNumber(value_month_value) + } + const value_day = value.day + let value_day_type = RuntimeType.UNDEFINED + if (value_day != undefined) { + value_day_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_day_type as int32) + if ((RuntimeType.UNDEFINED) != (value_day_type)) { + const value_day_value = value_day! + valueSerializer.writeNumber(value_day_value) + } + } + writeFingerInfo(value: FingerInfo): void { + let valueSerializer = this + const value_id = value.id + valueSerializer.writeNumber(value_id) + const value_globalX = value.globalX + valueSerializer.writeNumber(value_globalX) + const value_globalY = value.globalY + valueSerializer.writeNumber(value_globalY) + const value_localX = value.localX + valueSerializer.writeNumber(value_localX) + const value_localY = value.localY + valueSerializer.writeNumber(value_localY) + const value_displayX = value.displayX + valueSerializer.writeNumber(value_displayX) + const value_displayY = value.displayY + valueSerializer.writeNumber(value_displayY) + } + writeBaseGestureEvent(value: BaseGestureEvent): void { + let valueSerializer = this + const value_target = value.target + valueSerializer.writeEventTarget(value_target) + const value_timestamp = value.timestamp + valueSerializer.writeNumber(value_timestamp) + const value_source = value.source + valueSerializer.writeInt32((value_source.value as int32)) + const value_axisHorizontal = value.axisHorizontal + let value_axisHorizontal_type = RuntimeType.UNDEFINED + if (value_axisHorizontal != undefined) { + value_axisHorizontal_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_axisHorizontal_type as int32) + if ((RuntimeType.UNDEFINED) != (value_axisHorizontal_type)) { + const value_axisHorizontal_value = value_axisHorizontal! + valueSerializer.writeNumber(value_axisHorizontal_value) + } + const value_axisVertical = value.axisVertical + let value_axisVertical_type = RuntimeType.UNDEFINED + if (value_axisVertical != undefined) { + value_axisVertical_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_axisVertical_type as int32) + if ((RuntimeType.UNDEFINED) != (value_axisVertical_type)) { + const value_axisVertical_value = value_axisVertical! + valueSerializer.writeNumber(value_axisVertical_value) + } + const value_pressure = value.pressure + valueSerializer.writeNumber(value_pressure) + const value_tiltX = value.tiltX + valueSerializer.writeNumber(value_tiltX) + const value_tiltY = value.tiltY + valueSerializer.writeNumber(value_tiltY) + const value_sourceTool = value.sourceTool + valueSerializer.writeInt32((value_sourceTool.value as int32)) + const value_deviceId = value.deviceId + let value_deviceId_type = RuntimeType.UNDEFINED + if (value_deviceId != undefined) { + value_deviceId_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_deviceId_type as int32) + if ((RuntimeType.UNDEFINED) != (value_deviceId_type)) { + const value_deviceId_value = value_deviceId! + valueSerializer.writeNumber(value_deviceId_value) + } + const value_fingerList = value.fingerList + valueSerializer.writeInt8(runtimeType(value_fingerList) as int32) + valueSerializer.writeInt32(value_fingerList.length as int32) + for (let i = 0; i < value_fingerList.length; i++) { + const value_fingerList_element = value_fingerList[i] + valueSerializer.writeFingerInfo(value_fingerList_element) + } + } + writeGestureInfo(value: GestureInfo): void { + let valueSerializer = this + const value_tag = value.tag + let value_tag_type = RuntimeType.UNDEFINED + if (value_tag != undefined) { + value_tag_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_tag_type as int32) + if ((RuntimeType.UNDEFINED) != (value_tag_type)) { + const value_tag_value = value_tag! + valueSerializer.writeString(value_tag_value) + } + const value_type = value.type + valueSerializer.writeCustomObject("GestureType", value_type) + const value_isSystemGesture = value.isSystemGesture + valueSerializer.writeBoolean(value_isSystemGesture) + } + writeDragEvent(value: DragEvent): void { + let valueSerializer = this + const value_dragBehavior = value.dragBehavior + valueSerializer.writeInt32((value_dragBehavior.value as int32)) + const value_useCustomDropAnimation = value.useCustomDropAnimation + valueSerializer.writeBoolean(value_useCustomDropAnimation) + } + writeKeyEvent(value: KeyEvent): void { + let valueSerializer = this + const value_type = value.type + valueSerializer.writeInt32((value_type.value as int32)) + const value_keyCode = value.keyCode + valueSerializer.writeNumber(value_keyCode) + const value_keyText = value.keyText + valueSerializer.writeString(value_keyText) + const value_keySource = value.keySource + valueSerializer.writeInt32((value_keySource.value as int32)) + const value_deviceId = value.deviceId + valueSerializer.writeNumber(value_deviceId) + const value_metaKey = value.metaKey + valueSerializer.writeNumber(value_metaKey) + const value_timestamp = value.timestamp + valueSerializer.writeNumber(value_timestamp) + const value_stopPropagation = value.stopPropagation + valueSerializer.writeFunction(value_stopPropagation) + const value_intentionCode = value.intentionCode + valueSerializer.writeCustomObject("IntentionCode", value_intentionCode) + const value_unicode = value.unicode + let value_unicode_type = RuntimeType.UNDEFINED + if (value_unicode != undefined) { + value_unicode_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_unicode_type as int32) + if ((RuntimeType.UNDEFINED) != (value_unicode_type)) { + const value_unicode_value = value_unicode! + valueSerializer.writeNumber(value_unicode_value) + } + } + writeTouchObject(value: TouchObject): void { + let valueSerializer = this + const value_type = value.type + valueSerializer.writeInt32((value_type.value as int32)) + const value_id = value.id + valueSerializer.writeNumber(value_id) + const value_displayX = value.displayX + valueSerializer.writeNumber(value_displayX) + const value_displayY = value.displayY + valueSerializer.writeNumber(value_displayY) + const value_windowX = value.windowX + valueSerializer.writeNumber(value_windowX) + const value_windowY = value.windowY + valueSerializer.writeNumber(value_windowY) + const value_screenX = value.screenX + valueSerializer.writeNumber(value_screenX) + const value_screenY = value.screenY + valueSerializer.writeNumber(value_screenY) + const value_x = value.x + valueSerializer.writeNumber(value_x) + const value_y = value.y + valueSerializer.writeNumber(value_y) + } + writeMouseEvent(value: MouseEvent): void { + let valueSerializer = this + const value_target = value.target + valueSerializer.writeEventTarget(value_target) + const value_timestamp = value.timestamp + valueSerializer.writeNumber(value_timestamp) + const value_source = value.source + valueSerializer.writeInt32((value_source.value as int32)) + const value_axisHorizontal = value.axisHorizontal + let value_axisHorizontal_type = RuntimeType.UNDEFINED + if (value_axisHorizontal != undefined) { + value_axisHorizontal_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_axisHorizontal_type as int32) + if ((RuntimeType.UNDEFINED) != (value_axisHorizontal_type)) { + const value_axisHorizontal_value = value_axisHorizontal! + valueSerializer.writeNumber(value_axisHorizontal_value) + } + const value_axisVertical = value.axisVertical + let value_axisVertical_type = RuntimeType.UNDEFINED + if (value_axisVertical != undefined) { + value_axisVertical_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_axisVertical_type as int32) + if ((RuntimeType.UNDEFINED) != (value_axisVertical_type)) { + const value_axisVertical_value = value_axisVertical! + valueSerializer.writeNumber(value_axisVertical_value) + } + const value_pressure = value.pressure + valueSerializer.writeNumber(value_pressure) + const value_tiltX = value.tiltX + valueSerializer.writeNumber(value_tiltX) + const value_tiltY = value.tiltY + valueSerializer.writeNumber(value_tiltY) + const value_sourceTool = value.sourceTool + valueSerializer.writeInt32((value_sourceTool.value as int32)) + const value_deviceId = value.deviceId + let value_deviceId_type = RuntimeType.UNDEFINED + if (value_deviceId != undefined) { + value_deviceId_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_deviceId_type as int32) + if ((RuntimeType.UNDEFINED) != (value_deviceId_type)) { + const value_deviceId_value = value_deviceId! + valueSerializer.writeNumber(value_deviceId_value) + } + const value_button = value.button + valueSerializer.writeInt32((value_button.value as int32)) + const value_action = value.action + valueSerializer.writeInt32((value_action.value as int32)) + const value_displayX = value.displayX + valueSerializer.writeNumber(value_displayX) + const value_displayY = value.displayY + valueSerializer.writeNumber(value_displayY) + const value_windowX = value.windowX + valueSerializer.writeNumber(value_windowX) + const value_windowY = value.windowY + valueSerializer.writeNumber(value_windowY) + const value_screenX = value.screenX + valueSerializer.writeNumber(value_screenX) + const value_screenY = value.screenY + valueSerializer.writeNumber(value_screenY) + const value_x = value.x + valueSerializer.writeNumber(value_x) + const value_y = value.y + valueSerializer.writeNumber(value_y) + const value_stopPropagation = value.stopPropagation + valueSerializer.writeFunction(value_stopPropagation) + } + writeAccessibilityHoverEvent(value: AccessibilityHoverEvent): void { + let valueSerializer = this + const value_target = value.target + valueSerializer.writeEventTarget(value_target) + const value_timestamp = value.timestamp + valueSerializer.writeNumber(value_timestamp) + const value_source = value.source + valueSerializer.writeInt32((value_source.value as int32)) + const value_axisHorizontal = value.axisHorizontal + let value_axisHorizontal_type = RuntimeType.UNDEFINED + if (value_axisHorizontal != undefined) { + value_axisHorizontal_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_axisHorizontal_type as int32) + if ((RuntimeType.UNDEFINED) != (value_axisHorizontal_type)) { + const value_axisHorizontal_value = value_axisHorizontal! + valueSerializer.writeNumber(value_axisHorizontal_value) + } + const value_axisVertical = value.axisVertical + let value_axisVertical_type = RuntimeType.UNDEFINED + if (value_axisVertical != undefined) { + value_axisVertical_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_axisVertical_type as int32) + if ((RuntimeType.UNDEFINED) != (value_axisVertical_type)) { + const value_axisVertical_value = value_axisVertical! + valueSerializer.writeNumber(value_axisVertical_value) + } + const value_pressure = value.pressure + valueSerializer.writeNumber(value_pressure) + const value_tiltX = value.tiltX + valueSerializer.writeNumber(value_tiltX) + const value_tiltY = value.tiltY + valueSerializer.writeNumber(value_tiltY) + const value_sourceTool = value.sourceTool + valueSerializer.writeInt32((value_sourceTool.value as int32)) + const value_deviceId = value.deviceId + let value_deviceId_type = RuntimeType.UNDEFINED + if (value_deviceId != undefined) { + value_deviceId_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_deviceId_type as int32) + if ((RuntimeType.UNDEFINED) != (value_deviceId_type)) { + const value_deviceId_value = value_deviceId! + valueSerializer.writeNumber(value_deviceId_value) + } + const value_type = value.type + valueSerializer.writeInt32((value_type.value as int32)) + const value_x = value.x + valueSerializer.writeNumber(value_x) + const value_y = value.y + valueSerializer.writeNumber(value_y) + const value_displayX = value.displayX + valueSerializer.writeNumber(value_displayX) + const value_displayY = value.displayY + valueSerializer.writeNumber(value_displayY) + const value_windowX = value.windowX + valueSerializer.writeNumber(value_windowX) + const value_windowY = value.windowY + valueSerializer.writeNumber(value_windowY) + } + writeHoverEvent(value: HoverEvent): void { + let valueSerializer = this + const value_target = value.target + valueSerializer.writeEventTarget(value_target) + const value_timestamp = value.timestamp + valueSerializer.writeNumber(value_timestamp) + const value_source = value.source + valueSerializer.writeInt32((value_source.value as int32)) + const value_axisHorizontal = value.axisHorizontal + let value_axisHorizontal_type = RuntimeType.UNDEFINED + if (value_axisHorizontal != undefined) { + value_axisHorizontal_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_axisHorizontal_type as int32) + if ((RuntimeType.UNDEFINED) != (value_axisHorizontal_type)) { + const value_axisHorizontal_value = value_axisHorizontal! + valueSerializer.writeNumber(value_axisHorizontal_value) + } + const value_axisVertical = value.axisVertical + let value_axisVertical_type = RuntimeType.UNDEFINED + if (value_axisVertical != undefined) { + value_axisVertical_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_axisVertical_type as int32) + if ((RuntimeType.UNDEFINED) != (value_axisVertical_type)) { + const value_axisVertical_value = value_axisVertical! + valueSerializer.writeNumber(value_axisVertical_value) + } + const value_pressure = value.pressure + valueSerializer.writeNumber(value_pressure) + const value_tiltX = value.tiltX + valueSerializer.writeNumber(value_tiltX) + const value_tiltY = value.tiltY + valueSerializer.writeNumber(value_tiltY) + const value_sourceTool = value.sourceTool + valueSerializer.writeInt32((value_sourceTool.value as int32)) + const value_deviceId = value.deviceId + let value_deviceId_type = RuntimeType.UNDEFINED + if (value_deviceId != undefined) { + value_deviceId_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_deviceId_type as int32) + if ((RuntimeType.UNDEFINED) != (value_deviceId_type)) { + const value_deviceId_value = value_deviceId! + valueSerializer.writeNumber(value_deviceId_value) + } + const value_stopPropagation = value.stopPropagation + valueSerializer.writeFunction(value_stopPropagation) + } + writeClickEvent(value: ClickEvent): void { + let valueSerializer = this + const value_target = value.target + valueSerializer.writeEventTarget(value_target) + const value_timestamp = value.timestamp + valueSerializer.writeNumber(value_timestamp) + const value_source = value.source + valueSerializer.writeInt32((value_source.value as int32)) + const value_axisHorizontal = value.axisHorizontal + let value_axisHorizontal_type = RuntimeType.UNDEFINED + if (value_axisHorizontal != undefined) { + value_axisHorizontal_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_axisHorizontal_type as int32) + if ((RuntimeType.UNDEFINED) != (value_axisHorizontal_type)) { + const value_axisHorizontal_value = value_axisHorizontal! + valueSerializer.writeNumber(value_axisHorizontal_value) + } + const value_axisVertical = value.axisVertical + let value_axisVertical_type = RuntimeType.UNDEFINED + if (value_axisVertical != undefined) { + value_axisVertical_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_axisVertical_type as int32) + if ((RuntimeType.UNDEFINED) != (value_axisVertical_type)) { + const value_axisVertical_value = value_axisVertical! + valueSerializer.writeNumber(value_axisVertical_value) + } + const value_pressure = value.pressure + valueSerializer.writeNumber(value_pressure) + const value_tiltX = value.tiltX + valueSerializer.writeNumber(value_tiltX) + const value_tiltY = value.tiltY + valueSerializer.writeNumber(value_tiltY) + const value_sourceTool = value.sourceTool + valueSerializer.writeInt32((value_sourceTool.value as int32)) + const value_deviceId = value.deviceId + let value_deviceId_type = RuntimeType.UNDEFINED + if (value_deviceId != undefined) { + value_deviceId_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_deviceId_type as int32) + if ((RuntimeType.UNDEFINED) != (value_deviceId_type)) { + const value_deviceId_value = value_deviceId! + valueSerializer.writeNumber(value_deviceId_value) + } + const value_displayX = value.displayX + valueSerializer.writeNumber(value_displayX) + const value_displayY = value.displayY + valueSerializer.writeNumber(value_displayY) + const value_windowX = value.windowX + valueSerializer.writeNumber(value_windowX) + const value_windowY = value.windowY + valueSerializer.writeNumber(value_windowY) + const value_screenX = value.screenX + valueSerializer.writeNumber(value_screenX) + const value_screenY = value.screenY + valueSerializer.writeNumber(value_screenY) + const value_x = value.x + valueSerializer.writeNumber(value_x) + const value_y = value.y + valueSerializer.writeNumber(value_y) + const value_preventDefault = value.preventDefault + valueSerializer.writeFunction(value_preventDefault) + } + writeTouchTestInfo(value: TouchTestInfo): void { + let valueSerializer = this + const value_windowX = value.windowX + valueSerializer.writeNumber(value_windowX) + const value_windowY = value.windowY + valueSerializer.writeNumber(value_windowY) + const value_parentX = value.parentX + valueSerializer.writeNumber(value_parentX) + const value_parentY = value.parentY + valueSerializer.writeNumber(value_parentY) + const value_x = value.x + valueSerializer.writeNumber(value_x) + const value_y = value.y + valueSerializer.writeNumber(value_y) + const value_rect = value.rect + valueSerializer.writeRectResult(value_rect) + const value_id = value.id + valueSerializer.writeString(value_id) + } + writeCheckboxGroupResult(value: CheckboxGroupResult): void { + let valueSerializer = this + const value_name = value.name + valueSerializer.writeInt8(runtimeType(value_name) as int32) + valueSerializer.writeInt32(value_name.length as int32) + for (let i = 0; i < value_name.length; i++) { + const value_name_element = value_name[i] + valueSerializer.writeString(value_name_element) + } + const value_status = value.status + valueSerializer.writeInt32((value_status.value as int32)) + } + writeCalendarRequestedData(value: CalendarRequestedData): void { + let valueSerializer = this + const value_year = value.year + valueSerializer.writeNumber(value_year) + const value_month = value.month + valueSerializer.writeNumber(value_month) + const value_currentYear = value.currentYear + valueSerializer.writeNumber(value_currentYear) + const value_currentMonth = value.currentMonth + valueSerializer.writeNumber(value_currentMonth) + const value_monthState = value.monthState + valueSerializer.writeNumber(value_monthState) + } + writeCalendarSelectedDate(value: CalendarSelectedDate): void { + let valueSerializer = this + const value_year = value.year + valueSerializer.writeNumber(value_year) + const value_month = value.month + valueSerializer.writeNumber(value_month) + const value_day = value.day + valueSerializer.writeNumber(value_day) + } + writeLinearIndicatorStartOptions(value: LinearIndicatorStartOptions): void { + let valueSerializer = this + const value_interval = value.interval + let value_interval_type = RuntimeType.UNDEFINED + if (value_interval != undefined) { + value_interval_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_interval_type as int32) + if ((RuntimeType.UNDEFINED) != (value_interval_type)) { + const value_interval_value = value_interval! + valueSerializer.writeNumber(value_interval_value) + } + const value_duration = value.duration + let value_duration_type = RuntimeType.UNDEFINED + if (value_duration != undefined) { + value_duration_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_duration_type as int32) + if ((RuntimeType.UNDEFINED) != (value_duration_type)) { + const value_duration_value = value_duration! + valueSerializer.writeNumber(value_duration_value) + } + } + writeSectionOptions(value: SectionOptions): void { + let valueSerializer = this + const value_itemsCount = value.itemsCount + valueSerializer.writeNumber(value_itemsCount) + const value_crossCount = value.crossCount + let value_crossCount_type = RuntimeType.UNDEFINED + if (value_crossCount != undefined) { + value_crossCount_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_crossCount_type as int32) + if ((RuntimeType.UNDEFINED) != (value_crossCount_type)) { + const value_crossCount_value = value_crossCount! + valueSerializer.writeNumber(value_crossCount_value) + } + const value_onGetItemMainSizeByIndex = value.onGetItemMainSizeByIndex + let value_onGetItemMainSizeByIndex_type = RuntimeType.UNDEFINED + if (value_onGetItemMainSizeByIndex != undefined) { + value_onGetItemMainSizeByIndex_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_onGetItemMainSizeByIndex_type as int32) + if ((RuntimeType.UNDEFINED) != (value_onGetItemMainSizeByIndex_type)) { + const value_onGetItemMainSizeByIndex_value = value_onGetItemMainSizeByIndex! + valueSerializer.writeFunction(value_onGetItemMainSizeByIndex_value) + } + const value_columnsGap = value.columnsGap + let value_columnsGap_type = RuntimeType.UNDEFINED + if (value_columnsGap != undefined) { + value_columnsGap_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_columnsGap_type as int32) + if ((RuntimeType.UNDEFINED) != (value_columnsGap_type)) { + const value_columnsGap_value = value_columnsGap! + valueSerializer.writeLength(value_columnsGap_value); + } + const value_rowsGap = value.rowsGap + let value_rowsGap_type = RuntimeType.UNDEFINED + if (value_rowsGap != undefined) { + value_rowsGap_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_rowsGap_type as int32) + if ((RuntimeType.UNDEFINED) != (value_rowsGap_type)) { + const value_rowsGap_value = value_rowsGap! + valueSerializer.writeLength(value_rowsGap_value); + } + const value_margin = value.margin + let value_margin_type = RuntimeType.UNDEFINED + if (value_margin != undefined) { + value_margin_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_margin_type as int32) + if ((RuntimeType.UNDEFINED) != (value_margin_type)) { + const value_margin_value = value_margin! + let value_margin_value_type = RuntimeType.UNDEFINED + value_margin_value_type = runtimeType(value_margin_value) + if (TypeChecker.isPadding(value_margin_value, false, false, false, false)) { + valueSerializer.writeInt8(0 as int32) + const value_margin_value_0 = value_margin_value as Margin + const value_margin_value_0_top = value_margin_value_0.top + let value_margin_value_0_top_type = RuntimeType.UNDEFINED + if (value_margin_value_0_top != undefined) { + value_margin_value_0_top_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_margin_value_0_top_type as int32) + if ((RuntimeType.UNDEFINED) != (value_margin_value_0_top_type)) { + const value_margin_value_0_top_value = value_margin_value_0_top! + valueSerializer.writeLength(value_margin_value_0_top_value); + } + const value_margin_value_0_right = value_margin_value_0.right + let value_margin_value_0_right_type = RuntimeType.UNDEFINED + if (value_margin_value_0_right != undefined) { + value_margin_value_0_right_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_margin_value_0_right_type as int32) + if ((RuntimeType.UNDEFINED) != (value_margin_value_0_right_type)) { + const value_margin_value_0_right_value = value_margin_value_0_right! + valueSerializer.writeLength(value_margin_value_0_right_value); + } + const value_margin_value_0_bottom = value_margin_value_0.bottom + let value_margin_value_0_bottom_type = RuntimeType.UNDEFINED + if (value_margin_value_0_bottom != undefined) { + value_margin_value_0_bottom_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_margin_value_0_bottom_type as int32) + if ((RuntimeType.UNDEFINED) != (value_margin_value_0_bottom_type)) { + const value_margin_value_0_bottom_value = value_margin_value_0_bottom! + valueSerializer.writeLength(value_margin_value_0_bottom_value); + } + const value_margin_value_0_left = value_margin_value_0.left + let value_margin_value_0_left_type = RuntimeType.UNDEFINED + if (value_margin_value_0_left != undefined) { + value_margin_value_0_left_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_margin_value_0_left_type as int32) + if ((RuntimeType.UNDEFINED) != (value_margin_value_0_left_type)) { + const value_margin_value_0_left_value = value_margin_value_0_left! + valueSerializer.writeLength(value_margin_value_0_left_value); + } + } + else if (((RuntimeType.NUMBER) == (value_margin_value_type)) || ((RuntimeType.STRING) == (value_margin_value_type)) || (((RuntimeType.OBJECT) == (value_margin_value_type)) && (isResource(value_margin_value)))) { + valueSerializer.writeInt8(1 as int32) + const value_margin_value_1 = value_margin_value as Dimension + valueSerializer.writeLength(value_margin_value_1); + } + } + } + writeSurfaceRotationOptions(value: SurfaceRotationOptions): void { + let valueSerializer = this + const value_lock = value.lock + let value_lock_type = RuntimeType.UNDEFINED + if (value_lock != undefined) { + value_lock_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_lock_type as int32) + if ((RuntimeType.UNDEFINED) != (value_lock_type)) { + const value_lock_value = value_lock! + valueSerializer.writeBoolean(value_lock_value) + } + } + writeSurfaceRect(value: SurfaceRect): void { + let valueSerializer = this + const value_offsetX = value.offsetX + let value_offsetX_type = RuntimeType.UNDEFINED + if (value_offsetX != undefined) { + value_offsetX_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_offsetX_type as int32) + if ((RuntimeType.UNDEFINED) != (value_offsetX_type)) { + const value_offsetX_value = value_offsetX! + valueSerializer.writeNumber(value_offsetX_value) + } + const value_offsetY = value.offsetY + let value_offsetY_type = RuntimeType.UNDEFINED + if (value_offsetY != undefined) { + value_offsetY_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_offsetY_type as int32) + if ((RuntimeType.UNDEFINED) != (value_offsetY_type)) { + const value_offsetY_value = value_offsetY! + valueSerializer.writeNumber(value_offsetY_value) + } + const value_surfaceWidth = value.surfaceWidth + valueSerializer.writeNumber(value_surfaceWidth) + const value_surfaceHeight = value.surfaceHeight + valueSerializer.writeNumber(value_surfaceHeight) + } + writeScreenCaptureConfig(value: ScreenCaptureConfig): void { + let valueSerializer = this + const value_captureMode = value.captureMode + valueSerializer.writeInt32((value_captureMode.value as int32)) + } + writeHeader(value: Header): void { + let valueSerializer = this + const value_headerKey = value.headerKey + valueSerializer.writeString(value_headerKey) + const value_headerValue = value.headerValue + valueSerializer.writeString(value_headerValue) + } + writeSpanStyle(value: SpanStyle): void { + let valueSerializer = this + const value_start = value.start + valueSerializer.writeNumber(value_start) + const value_length = value.length + valueSerializer.writeNumber(value_length) + const value_styledKey = value.styledKey + valueSerializer.writeInt32((value_styledKey.value as int32)) + const value_styledValue = value.styledValue + let value_styledValue_type = RuntimeType.UNDEFINED + value_styledValue_type = runtimeType(value_styledValue) + if (TypeChecker.isTextStyle(value_styledValue, true)) { + valueSerializer.writeInt8(0 as int32) + const value_styledValue_0 = value_styledValue as TextStyle + valueSerializer.writeTextStyle(value_styledValue_0) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof DecorationStyle)) { + valueSerializer.writeInt8(1 as int32) + const value_styledValue_1 = value_styledValue as DecorationStyle + valueSerializer.writeDecorationStyle(value_styledValue_1) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof BaselineOffsetStyle)) { + valueSerializer.writeInt8(2 as int32) + const value_styledValue_2 = value_styledValue as BaselineOffsetStyle + valueSerializer.writeBaselineOffsetStyle(value_styledValue_2) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof LetterSpacingStyle)) { + valueSerializer.writeInt8(3 as int32) + const value_styledValue_3 = value_styledValue as LetterSpacingStyle + valueSerializer.writeLetterSpacingStyle(value_styledValue_3) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof TextShadowStyle)) { + valueSerializer.writeInt8(4 as int32) + const value_styledValue_4 = value_styledValue as TextShadowStyle + valueSerializer.writeTextShadowStyle(value_styledValue_4) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof GestureStyle)) { + valueSerializer.writeInt8(5 as int32) + const value_styledValue_5 = value_styledValue as GestureStyle + valueSerializer.writeGestureStyle(value_styledValue_5) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof ImageAttachment)) { + valueSerializer.writeInt8(6 as int32) + const value_styledValue_6 = value_styledValue as ImageAttachment + valueSerializer.writeImageAttachment(value_styledValue_6) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof ParagraphStyle)) { + valueSerializer.writeInt8(7 as int32) + const value_styledValue_7 = value_styledValue as ParagraphStyle + valueSerializer.writeParagraphStyle(value_styledValue_7) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof LineHeightStyle)) { + valueSerializer.writeInt8(8 as int32) + const value_styledValue_8 = value_styledValue as LineHeightStyle + valueSerializer.writeLineHeightStyle(value_styledValue_8) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof UrlStyle)) { + valueSerializer.writeInt8(9 as int32) + const value_styledValue_9 = value_styledValue as UrlStyle + valueSerializer.writeUrlStyle(value_styledValue_9) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof CustomSpan)) { + valueSerializer.writeInt8(10 as int32) + const value_styledValue_10 = value_styledValue as CustomSpan + valueSerializer.writeMaterialized(value_styledValue_10) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof UserDataSpan)) { + valueSerializer.writeInt8(11 as int32) + const value_styledValue_11 = value_styledValue as UserDataSpan + valueSerializer.writeUserDataSpan(value_styledValue_11) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof BackgroundColorStyle)) { + valueSerializer.writeInt8(12 as int32) + const value_styledValue_12 = value_styledValue as BackgroundColorStyle + valueSerializer.writeBackgroundColorStyle(value_styledValue_12) + } + } + writeStyledStringChangedListener(value: StyledStringChangedListener): void { + let valueSerializer = this + const value_onWillChange = value.onWillChange + let value_onWillChange_type = RuntimeType.UNDEFINED + if (value_onWillChange != undefined) { + value_onWillChange_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_onWillChange_type as int32) + if ((RuntimeType.UNDEFINED) != (value_onWillChange_type)) { + const value_onWillChange_value = value_onWillChange! + valueSerializer.writeFunction(value_onWillChange_value) + } + const value_onDidChange = value.onDidChange + let value_onDidChange_type = RuntimeType.UNDEFINED + if (value_onDidChange != undefined) { + value_onDidChange_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_onDidChange_type as int32) + if ((RuntimeType.UNDEFINED) != (value_onDidChange_type)) { + const value_onDidChange_value = value_onDidChange! + valueSerializer.writeFunction(value_onDidChange_value) + } + } + writeCustomSpanDrawInfo(value: CustomSpanDrawInfo): void { + let valueSerializer = this + const value_x = value.x + valueSerializer.writeNumber(value_x) + const value_lineTop = value.lineTop + valueSerializer.writeNumber(value_lineTop) + const value_lineBottom = value.lineBottom + valueSerializer.writeNumber(value_lineBottom) + const value_baseline = value.baseline + valueSerializer.writeNumber(value_baseline) + } + writeCustomSpanMeasureInfo(value: CustomSpanMeasureInfo): void { + let valueSerializer = this + const value_fontSize = value.fontSize + valueSerializer.writeNumber(value_fontSize) + } + writeStyleOptions(value: StyleOptions): void { + let valueSerializer = this + const value_start = value.start + let value_start_type = RuntimeType.UNDEFINED + if (value_start != undefined) { + value_start_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_start_type as int32) + if ((RuntimeType.UNDEFINED) != (value_start_type)) { + const value_start_value = value_start! + valueSerializer.writeNumber(value_start_value) + } + const value_length = value.length + let value_length_type = RuntimeType.UNDEFINED + if (value_length != undefined) { + value_length_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_length_type as int32) + if ((RuntimeType.UNDEFINED) != (value_length_type)) { + const value_length_value = value_length! + valueSerializer.writeNumber(value_length_value) + } + const value_styledKey = value.styledKey + valueSerializer.writeInt32((value_styledKey.value as int32)) + const value_styledValue = value.styledValue + let value_styledValue_type = RuntimeType.UNDEFINED + value_styledValue_type = runtimeType(value_styledValue) + if (TypeChecker.isTextStyle(value_styledValue, true)) { + valueSerializer.writeInt8(0 as int32) + const value_styledValue_0 = value_styledValue as TextStyle + valueSerializer.writeTextStyle(value_styledValue_0) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof DecorationStyle)) { + valueSerializer.writeInt8(1 as int32) + const value_styledValue_1 = value_styledValue as DecorationStyle + valueSerializer.writeDecorationStyle(value_styledValue_1) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof BaselineOffsetStyle)) { + valueSerializer.writeInt8(2 as int32) + const value_styledValue_2 = value_styledValue as BaselineOffsetStyle + valueSerializer.writeBaselineOffsetStyle(value_styledValue_2) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof LetterSpacingStyle)) { + valueSerializer.writeInt8(3 as int32) + const value_styledValue_3 = value_styledValue as LetterSpacingStyle + valueSerializer.writeLetterSpacingStyle(value_styledValue_3) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof TextShadowStyle)) { + valueSerializer.writeInt8(4 as int32) + const value_styledValue_4 = value_styledValue as TextShadowStyle + valueSerializer.writeTextShadowStyle(value_styledValue_4) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof GestureStyle)) { + valueSerializer.writeInt8(5 as int32) + const value_styledValue_5 = value_styledValue as GestureStyle + valueSerializer.writeGestureStyle(value_styledValue_5) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof ImageAttachment)) { + valueSerializer.writeInt8(6 as int32) + const value_styledValue_6 = value_styledValue as ImageAttachment + valueSerializer.writeImageAttachment(value_styledValue_6) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof ParagraphStyle)) { + valueSerializer.writeInt8(7 as int32) + const value_styledValue_7 = value_styledValue as ParagraphStyle + valueSerializer.writeParagraphStyle(value_styledValue_7) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof LineHeightStyle)) { + valueSerializer.writeInt8(8 as int32) + const value_styledValue_8 = value_styledValue as LineHeightStyle + valueSerializer.writeLineHeightStyle(value_styledValue_8) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof UrlStyle)) { + valueSerializer.writeInt8(9 as int32) + const value_styledValue_9 = value_styledValue as UrlStyle + valueSerializer.writeUrlStyle(value_styledValue_9) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof CustomSpan)) { + valueSerializer.writeInt8(10 as int32) + const value_styledValue_10 = value_styledValue as CustomSpan + valueSerializer.writeMaterialized(value_styledValue_10) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof UserDataSpan)) { + valueSerializer.writeInt8(11 as int32) + const value_styledValue_11 = value_styledValue as UserDataSpan + valueSerializer.writeUserDataSpan(value_styledValue_11) + } + else if (((RuntimeType.OBJECT) == (value_styledValue_type)) && (value_styledValue instanceof BackgroundColorStyle)) { + valueSerializer.writeInt8(12 as int32) + const value_styledValue_12 = value_styledValue as BackgroundColorStyle + valueSerializer.writeBackgroundColorStyle(value_styledValue_12) + } + } + writeSelectionOptions(value: SelectionOptions): void { + let valueSerializer = this + const value_menuPolicy = value.menuPolicy + let value_menuPolicy_type = RuntimeType.UNDEFINED + if (value_menuPolicy != undefined) { + value_menuPolicy_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_menuPolicy_type as int32) + if ((RuntimeType.UNDEFINED) != (value_menuPolicy_type)) { + const value_menuPolicy_value = value_menuPolicy! + valueSerializer.writeInt32((value_menuPolicy_value.value as int32)) + } + } + writeRichEditorParagraphStyleOptions(value: RichEditorParagraphStyleOptions): void { + let valueSerializer = this + const value_start = value.start + let value_start_type = RuntimeType.UNDEFINED + if (value_start != undefined) { + value_start_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_start_type as int32) + if ((RuntimeType.UNDEFINED) != (value_start_type)) { + const value_start_value = value_start! + valueSerializer.writeNumber(value_start_value) + } + const value_end = value.end + let value_end_type = RuntimeType.UNDEFINED + if (value_end != undefined) { + value_end_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_end_type as int32) + if ((RuntimeType.UNDEFINED) != (value_end_type)) { + const value_end_value = value_end! + valueSerializer.writeNumber(value_end_value) + } + const value_style = value.style + valueSerializer.writeRichEditorParagraphStyle(value_style) + } + writeRichEditorSymbolSpanOptions(value: RichEditorSymbolSpanOptions): void { + let valueSerializer = this + const value_offset = value.offset + let value_offset_type = RuntimeType.UNDEFINED + if (value_offset != undefined) { + value_offset_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_offset_type as int32) + if ((RuntimeType.UNDEFINED) != (value_offset_type)) { + const value_offset_value = value_offset! + valueSerializer.writeNumber(value_offset_value) + } + const value_style = value.style + let value_style_type = RuntimeType.UNDEFINED + if (value_style != undefined) { + value_style_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_style_type as int32) + if ((RuntimeType.UNDEFINED) != (value_style_type)) { + const value_style_value = value_style! + valueSerializer.writeRichEditorSymbolSpanStyle(value_style_value) + } + } + writeRichEditorBuilderSpanOptions(value: RichEditorBuilderSpanOptions): void { + let valueSerializer = this + const value_offset = value.offset + let value_offset_type = RuntimeType.UNDEFINED + if (value_offset != undefined) { + value_offset_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_offset_type as int32) + if ((RuntimeType.UNDEFINED) != (value_offset_type)) { + const value_offset_value = value_offset! + valueSerializer.writeNumber(value_offset_value) + } + } + writeRichEditorImageSpanOptions(value: RichEditorImageSpanOptions): void { + let valueSerializer = this + const value_offset = value.offset + let value_offset_type = RuntimeType.UNDEFINED + if (value_offset != undefined) { + value_offset_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_offset_type as int32) + if ((RuntimeType.UNDEFINED) != (value_offset_type)) { + const value_offset_value = value_offset! + valueSerializer.writeNumber(value_offset_value) + } + const value_imageStyle = value.imageStyle + let value_imageStyle_type = RuntimeType.UNDEFINED + if (value_imageStyle != undefined) { + value_imageStyle_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_imageStyle_type as int32) + if ((RuntimeType.UNDEFINED) != (value_imageStyle_type)) { + const value_imageStyle_value = value_imageStyle! + valueSerializer.writeRichEditorImageSpanStyle(value_imageStyle_value) + } + const value_gesture = value.gesture + let value_gesture_type = RuntimeType.UNDEFINED + if (value_gesture != undefined) { + value_gesture_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_gesture_type as int32) + if ((RuntimeType.UNDEFINED) != (value_gesture_type)) { + const value_gesture_value = value_gesture! + valueSerializer.writeRichEditorGesture(value_gesture_value) + } + } + writeRichEditorTextSpanOptions(value: RichEditorTextSpanOptions): void { + let valueSerializer = this + const value_offset = value.offset + let value_offset_type = RuntimeType.UNDEFINED + if (value_offset != undefined) { + value_offset_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_offset_type as int32) + if ((RuntimeType.UNDEFINED) != (value_offset_type)) { + const value_offset_value = value_offset! + valueSerializer.writeNumber(value_offset_value) + } + const value_style = value.style + let value_style_type = RuntimeType.UNDEFINED + if (value_style != undefined) { + value_style_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_style_type as int32) + if ((RuntimeType.UNDEFINED) != (value_style_type)) { + const value_style_value = value_style! + valueSerializer.writeRichEditorTextStyle(value_style_value) + } + const value_paragraphStyle = value.paragraphStyle + let value_paragraphStyle_type = RuntimeType.UNDEFINED + if (value_paragraphStyle != undefined) { + value_paragraphStyle_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_paragraphStyle_type as int32) + if ((RuntimeType.UNDEFINED) != (value_paragraphStyle_type)) { + const value_paragraphStyle_value = value_paragraphStyle! + valueSerializer.writeRichEditorParagraphStyle(value_paragraphStyle_value) + } + const value_gesture = value.gesture + let value_gesture_type = RuntimeType.UNDEFINED + if (value_gesture != undefined) { + value_gesture_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_gesture_type as int32) + if ((RuntimeType.UNDEFINED) != (value_gesture_type)) { + const value_gesture_value = value_gesture! + valueSerializer.writeRichEditorGesture(value_gesture_value) + } + } + writeTextMenuItem(value: TextMenuItem): void { + let valueSerializer = this + const value_content = value.content + let value_content_type = RuntimeType.UNDEFINED + value_content_type = runtimeType(value_content) + if (((RuntimeType.STRING == value_content_type))) { + valueSerializer.writeInt8(0 as int32) + const value_content_0 = value_content as string + valueSerializer.writeString(value_content_0) + } + else if (((RuntimeType.OBJECT == value_content_type))) { + valueSerializer.writeInt8(1 as int32) + const value_content_1 = value_content as Resource + valueSerializer.writeResource(value_content_1) + } + const value_icon = value.icon + let value_icon_type = RuntimeType.UNDEFINED + if (value_icon != undefined) { + value_icon_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_icon_type as int32) + if ((RuntimeType.UNDEFINED) != (value_icon_type)) { + const value_icon_value = value_icon! + let value_icon_value_type = RuntimeType.UNDEFINED + value_icon_value_type = runtimeType(value_icon_value) + if (((RuntimeType.STRING == value_icon_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_icon_value_0 = value_icon_value as string + valueSerializer.writeString(value_icon_value_0) + } + else if (((RuntimeType.OBJECT == value_icon_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_icon_value_1 = value_icon_value as Resource + valueSerializer.writeResource(value_icon_value_1) + } + } + const value_id = value.id + valueSerializer.writeTextMenuItemId(value_id) + } + writeNavigationInterception(value: NavigationInterception): void { + let valueSerializer = this + const value_willShow = value.willShow + let value_willShow_type = RuntimeType.UNDEFINED + if (value_willShow != undefined) { + value_willShow_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_willShow_type as int32) + if ((RuntimeType.UNDEFINED) != (value_willShow_type)) { + const value_willShow_value = value_willShow! + valueSerializer.writeFunction(value_willShow_value) + } + const value_didShow = value.didShow + let value_didShow_type = RuntimeType.UNDEFINED + if (value_didShow != undefined) { + value_didShow_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_didShow_type as int32) + if ((RuntimeType.UNDEFINED) != (value_didShow_type)) { + const value_didShow_value = value_didShow! + valueSerializer.writeFunction(value_didShow_value) + } + const value_modeChange = value.modeChange + let value_modeChange_type = RuntimeType.UNDEFINED + if (value_modeChange != undefined) { + value_modeChange_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_modeChange_type as int32) + if ((RuntimeType.UNDEFINED) != (value_modeChange_type)) { + const value_modeChange_value = value_modeChange! + valueSerializer.writeFunction(value_modeChange_value) + } + } + writeNavigationOptions(value: NavigationOptions): void { + let valueSerializer = this + const value_launchMode = value.launchMode + let value_launchMode_type = RuntimeType.UNDEFINED + if (value_launchMode != undefined) { + value_launchMode_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_launchMode_type as int32) + if ((RuntimeType.UNDEFINED) != (value_launchMode_type)) { + const value_launchMode_value = value_launchMode! + valueSerializer.writeInt32((value_launchMode_value.value as int32)) + } + const value_animated = value.animated + let value_animated_type = RuntimeType.UNDEFINED + if (value_animated != undefined) { + value_animated_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_animated_type as int32) + if ((RuntimeType.UNDEFINED) != (value_animated_type)) { + const value_animated_value = value_animated! + valueSerializer.writeBoolean(value_animated_value) + } + } + writeNavPathInfo(value: NavPathInfo): void { + let valueSerializer = this + const value_name = value.name + valueSerializer.writeString(value_name) + const value_param = value.param + let value_param_type = RuntimeType.UNDEFINED + if (value_param != undefined) { + value_param_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_param_type as int32) + if ((RuntimeType.UNDEFINED) != (value_param_type)) { + const value_param_value = value_param! + valueSerializer.writeCustomObject("Any", value_param_value) + } + const value_onPop = value.onPop + let value_onPop_type = RuntimeType.UNDEFINED + if (value_onPop != undefined) { + value_onPop_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_onPop_type as int32) + if ((RuntimeType.UNDEFINED) != (value_onPop_type)) { + const value_onPop_value = value_onPop! + valueSerializer.writeFunction(value_onPop_value) + } + const value_isEntry = value.isEntry + let value_isEntry_type = RuntimeType.UNDEFINED + if (value_isEntry != undefined) { + value_isEntry_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_isEntry_type as int32) + if ((RuntimeType.UNDEFINED) != (value_isEntry_type)) { + const value_isEntry_value = value_isEntry! + valueSerializer.writeBoolean(value_isEntry_value) + } + } + writeScrollToIndexOptions(value: ScrollToIndexOptions): void { + let valueSerializer = this + const value_extraOffset = value.extraOffset + let value_extraOffset_type = RuntimeType.UNDEFINED + if (value_extraOffset != undefined) { + value_extraOffset_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_extraOffset_type as int32) + if ((RuntimeType.UNDEFINED) != (value_extraOffset_type)) { + const value_extraOffset_value = value_extraOffset! + valueSerializer.writeCustomObject("LengthMetrics", value_extraOffset_value) + } + } + writeScrollEdgeOptions(value: ScrollEdgeOptions): void { + let valueSerializer = this + const value_velocity = value.velocity + let value_velocity_type = RuntimeType.UNDEFINED + if (value_velocity != undefined) { + value_velocity_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_velocity_type as int32) + if ((RuntimeType.UNDEFINED) != (value_velocity_type)) { + const value_velocity_value = value_velocity! + valueSerializer.writeNumber(value_velocity_value) + } + } + writeScrollOptions(value: ScrollOptions): void { + let valueSerializer = this + const value_xOffset = value.xOffset + let value_xOffset_type = RuntimeType.UNDEFINED + value_xOffset_type = runtimeType(value_xOffset) + if (((RuntimeType.NUMBER == value_xOffset_type))) { + valueSerializer.writeInt8(0 as int32) + const value_xOffset_0 = value_xOffset as number + valueSerializer.writeNumber(value_xOffset_0) + } + else if (((RuntimeType.STRING == value_xOffset_type))) { + valueSerializer.writeInt8(1 as int32) + const value_xOffset_1 = value_xOffset as string + valueSerializer.writeString(value_xOffset_1) + } + const value_yOffset = value.yOffset + let value_yOffset_type = RuntimeType.UNDEFINED + value_yOffset_type = runtimeType(value_yOffset) + if (((RuntimeType.NUMBER == value_yOffset_type))) { + valueSerializer.writeInt8(0 as int32) + const value_yOffset_0 = value_yOffset as number + valueSerializer.writeNumber(value_yOffset_0) + } + else if (((RuntimeType.STRING == value_yOffset_type))) { + valueSerializer.writeInt8(1 as int32) + const value_yOffset_1 = value_yOffset as string + valueSerializer.writeString(value_yOffset_1) + } + const value_animation = value.animation + let value_animation_type = RuntimeType.UNDEFINED + if (value_animation != undefined) { + value_animation_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_animation_type as int32) + if ((RuntimeType.UNDEFINED) != (value_animation_type)) { + const value_animation_value = value_animation! + let value_animation_value_type = RuntimeType.UNDEFINED + value_animation_value_type = runtimeType(value_animation_value) + if (((RuntimeType.OBJECT == value_animation_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_animation_value_0 = value_animation_value as ScrollAnimationOptions + valueSerializer.writeScrollAnimationOptions(value_animation_value_0) + } + else if (((RuntimeType.BOOLEAN == value_animation_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_animation_value_1 = value_animation_value as boolean + valueSerializer.writeBoolean(value_animation_value_1) + } + } + } + writeImageData(value: ImageData): void { + let valueSerializer = this + const value_data = value.data + valueSerializer.writeUint8ClampedArray(value_data) + const value_height = value.height + valueSerializer.writeNumber(value_height) + const value_width = value.width + valueSerializer.writeNumber(value_width) + } + writeRenderingContextSettings(value: RenderingContextSettings): void { + let valueSerializer = this + const value_antialias = value.antialias + let value_antialias_type = RuntimeType.UNDEFINED + if (value_antialias != undefined) { + value_antialias_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_antialias_type as int32) + if ((RuntimeType.UNDEFINED) != (value_antialias_type)) { + const value_antialias_value = value_antialias! + valueSerializer.writeBoolean(value_antialias_value) + } + } + writeUIGestureEvent(value: UIGestureEvent): void { + } + writeUIExtensionOptions(value: UIExtensionOptions): void { + let valueSerializer = this + const value_isTransferringCaller = value.isTransferringCaller + let value_isTransferringCaller_type = RuntimeType.UNDEFINED + if (value_isTransferringCaller != undefined) { + value_isTransferringCaller_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_isTransferringCaller_type as int32) + if ((RuntimeType.UNDEFINED) != (value_isTransferringCaller_type)) { + const value_isTransferringCaller_value = value_isTransferringCaller! + valueSerializer.writeBoolean(value_isTransferringCaller_value) + } + const value_placeholder = value.placeholder + let value_placeholder_type = RuntimeType.UNDEFINED + if (value_placeholder != undefined) { + value_placeholder_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_placeholder_type as int32) + if ((RuntimeType.UNDEFINED) != (value_placeholder_type)) { + const value_placeholder_value = value_placeholder! + valueSerializer.writeCustomObject("ComponentContent", value_placeholder_value) + } + const value_areaChangePlaceholder = value.areaChangePlaceholder + let value_areaChangePlaceholder_type = RuntimeType.UNDEFINED + if (value_areaChangePlaceholder != undefined) { + value_areaChangePlaceholder_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_areaChangePlaceholder_type as int32) + if ((RuntimeType.UNDEFINED) != (value_areaChangePlaceholder_type)) { + const value_areaChangePlaceholder_value = value_areaChangePlaceholder! + valueSerializer.writeCustomObject("Record", value_areaChangePlaceholder_value) + } + const value_dpiFollowStrategy = value.dpiFollowStrategy + let value_dpiFollowStrategy_type = RuntimeType.UNDEFINED + if (value_dpiFollowStrategy != undefined) { + value_dpiFollowStrategy_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_dpiFollowStrategy_type as int32) + if ((RuntimeType.UNDEFINED) != (value_dpiFollowStrategy_type)) { + const value_dpiFollowStrategy_value = value_dpiFollowStrategy! + valueSerializer.writeInt32((value_dpiFollowStrategy_value.value as int32)) + } + } + writeWaterFlowOptions(value: WaterFlowOptions): void { + let valueSerializer = this + const value_footer = value.footer + let value_footer_type = RuntimeType.UNDEFINED + if (value_footer != undefined) { + value_footer_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_footer_type as int32) + if ((RuntimeType.UNDEFINED) != (value_footer_type)) { + const value_footer_value = value_footer! + let value_footer_value_type = RuntimeType.UNDEFINED + value_footer_value_type = runtimeType(value_footer_value) + if (((RuntimeType.FUNCTION == value_footer_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_footer_value_0 = value_footer_value as Object + valueSerializer.writeFunction(value_footer_value_0) + } + else if (((RuntimeType.UNDEFINED == value_footer_value_type))) { + valueSerializer.writeInt8(1 as int32) + } + } + const value_scroller = value.scroller + let value_scroller_type = RuntimeType.UNDEFINED + if (value_scroller != undefined) { + value_scroller_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_scroller_type as int32) + if ((RuntimeType.UNDEFINED) != (value_scroller_type)) { + const value_scroller_value = value_scroller! + valueSerializer.writeMaterialized(value_scroller_value) + } + const value_sections = value.sections + let value_sections_type = RuntimeType.UNDEFINED + if (value_sections != undefined) { + value_sections_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_sections_type as int32) + if ((RuntimeType.UNDEFINED) != (value_sections_type)) { + const value_sections_value = value_sections! + valueSerializer.writeMaterialized(value_sections_value) + } + const value_layoutMode = value.layoutMode + let value_layoutMode_type = RuntimeType.UNDEFINED + if (value_layoutMode != undefined) { + value_layoutMode_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_layoutMode_type as int32) + if ((RuntimeType.UNDEFINED) != (value_layoutMode_type)) { + const value_layoutMode_value = value_layoutMode! + valueSerializer.writeInt32((value_layoutMode_value.value as int32)) + } + } + writeWindowAnimationTarget(value: WindowAnimationTarget): void { + let valueSerializer = this + const value_bundleName = value.bundleName + valueSerializer.writeString(value_bundleName) + const value_abilityName = value.abilityName + valueSerializer.writeString(value_abilityName) + const value_windowBounds = value.windowBounds + valueSerializer.writeRRect(value_windowBounds) + const value_missionId = value.missionId + valueSerializer.writeNumber(value_missionId) + } + writeButtonStyle(value: ButtonStyle): void { + let valueSerializer = this + const value_left = value.left + let value_left_type = RuntimeType.UNDEFINED + if (value_left != undefined) { + value_left_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_left_type as int32) + if ((RuntimeType.UNDEFINED) != (value_left_type)) { + const value_left_value = value_left! + valueSerializer.writeNumber(value_left_value) + } + const value_top = value.top + let value_top_type = RuntimeType.UNDEFINED + if (value_top != undefined) { + value_top_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_top_type as int32) + if ((RuntimeType.UNDEFINED) != (value_top_type)) { + const value_top_value = value_top! + valueSerializer.writeNumber(value_top_value) + } + const value_width = value.width + let value_width_type = RuntimeType.UNDEFINED + if (value_width != undefined) { + value_width_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_width_type as int32) + if ((RuntimeType.UNDEFINED) != (value_width_type)) { + const value_width_value = value_width! + valueSerializer.writeNumber(value_width_value) + } + const value_height = value.height + let value_height_type = RuntimeType.UNDEFINED + if (value_height != undefined) { + value_height_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_height_type as int32) + if ((RuntimeType.UNDEFINED) != (value_height_type)) { + const value_height_value = value_height! + valueSerializer.writeNumber(value_height_value) + } + const value_icons = value.icons + let value_icons_type = RuntimeType.UNDEFINED + if (value_icons != undefined) { + value_icons_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_icons_type as int32) + if ((RuntimeType.UNDEFINED) != (value_icons_type)) { + const value_icons_value = value_icons! + const value_icons_value_shown = value_icons_value.shown + let value_icons_value_shown_type = RuntimeType.UNDEFINED + value_icons_value_shown_type = runtimeType(value_icons_value_shown) + if (((RuntimeType.STRING == value_icons_value_shown_type))) { + valueSerializer.writeInt8(0 as int32) + const value_icons_value_shown_0 = value_icons_value_shown as string + valueSerializer.writeString(value_icons_value_shown_0) + } + else if (((RuntimeType.OBJECT) == (value_icons_value_shown_type)) && (isPixelMap(value_icons_value_shown))) { + valueSerializer.writeInt8(1 as int32) + const value_icons_value_shown_1 = value_icons_value_shown as PixelMap + valueSerializer.writeCustomObject("PixelMap", value_icons_value_shown_1) + } + else if (isResource(value_icons_value_shown)) { + valueSerializer.writeInt8(2 as int32) + const value_icons_value_shown_2 = value_icons_value_shown as Resource + valueSerializer.writeResource(value_icons_value_shown_2) + } + const value_icons_value_hidden = value_icons_value.hidden + let value_icons_value_hidden_type = RuntimeType.UNDEFINED + value_icons_value_hidden_type = runtimeType(value_icons_value_hidden) + if (((RuntimeType.STRING == value_icons_value_hidden_type))) { + valueSerializer.writeInt8(0 as int32) + const value_icons_value_hidden_0 = value_icons_value_hidden as string + valueSerializer.writeString(value_icons_value_hidden_0) + } + else if (((RuntimeType.OBJECT) == (value_icons_value_hidden_type)) && (isPixelMap(value_icons_value_hidden))) { + valueSerializer.writeInt8(1 as int32) + const value_icons_value_hidden_1 = value_icons_value_hidden as PixelMap + valueSerializer.writeCustomObject("PixelMap", value_icons_value_hidden_1) + } + else if (isResource(value_icons_value_hidden)) { + valueSerializer.writeInt8(2 as int32) + const value_icons_value_hidden_2 = value_icons_value_hidden as Resource + valueSerializer.writeResource(value_icons_value_hidden_2) + } + const value_icons_value_switching = value_icons_value.switching + let value_icons_value_switching_type = RuntimeType.UNDEFINED + if (value_icons_value_switching != undefined) { + value_icons_value_switching_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_icons_value_switching_type as int32) + if ((RuntimeType.UNDEFINED) != (value_icons_value_switching_type)) { + const value_icons_value_switching_value = value_icons_value_switching! + let value_icons_value_switching_value_type = RuntimeType.UNDEFINED + value_icons_value_switching_value_type = runtimeType(value_icons_value_switching_value) + if (((RuntimeType.STRING == value_icons_value_switching_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_icons_value_switching_value_0 = value_icons_value_switching_value as string + valueSerializer.writeString(value_icons_value_switching_value_0) + } + else if (((RuntimeType.OBJECT) == (value_icons_value_switching_value_type)) && (isPixelMap(value_icons_value_switching_value))) { + valueSerializer.writeInt8(1 as int32) + const value_icons_value_switching_value_1 = value_icons_value_switching_value as PixelMap + valueSerializer.writeCustomObject("PixelMap", value_icons_value_switching_value_1) + } + else if (isResource(value_icons_value_switching_value)) { + valueSerializer.writeInt8(2 as int32) + const value_icons_value_switching_value_2 = value_icons_value_switching_value as Resource + valueSerializer.writeResource(value_icons_value_switching_value_2) + } + } + } + } + writeXComponentOptions(value: XComponentOptions): void { + let valueSerializer = this + const value_type = value.type + valueSerializer.writeInt32((value_type.value as int32)) + const value_controller = value.controller + valueSerializer.writeMaterialized(value_controller) + const value_imageAIOptions = value.imageAIOptions + let value_imageAIOptions_type = RuntimeType.UNDEFINED + if (value_imageAIOptions != undefined) { + value_imageAIOptions_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_imageAIOptions_type as int32) + if ((RuntimeType.UNDEFINED) != (value_imageAIOptions_type)) { + const value_imageAIOptions_value = value_imageAIOptions! + valueSerializer.writeImageAIOptions(value_imageAIOptions_value) + } + } + writeExpandedMenuItemOptions(value: ExpandedMenuItemOptions): void { + let valueSerializer = this + const value_content = value.content + let value_content_type = RuntimeType.UNDEFINED + value_content_type = runtimeType(value_content) + if (((RuntimeType.STRING == value_content_type))) { + valueSerializer.writeInt8(0 as int32) + const value_content_0 = value_content as string + valueSerializer.writeString(value_content_0) + } + else if (((RuntimeType.OBJECT == value_content_type))) { + valueSerializer.writeInt8(1 as int32) + const value_content_1 = value_content as Resource + valueSerializer.writeResource(value_content_1) + } + const value_startIcon = value.startIcon + let value_startIcon_type = RuntimeType.UNDEFINED + if (value_startIcon != undefined) { + value_startIcon_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_startIcon_type as int32) + if ((RuntimeType.UNDEFINED) != (value_startIcon_type)) { + const value_startIcon_value = value_startIcon! + let value_startIcon_value_type = RuntimeType.UNDEFINED + value_startIcon_value_type = runtimeType(value_startIcon_value) + if (((RuntimeType.STRING == value_startIcon_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_startIcon_value_0 = value_startIcon_value as string + valueSerializer.writeString(value_startIcon_value_0) + } + else if (((RuntimeType.OBJECT == value_startIcon_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_startIcon_value_1 = value_startIcon_value as Resource + valueSerializer.writeResource(value_startIcon_value_1) + } + } + const value_action = value.action + valueSerializer.writeFunction(value_action) + } + writeNativeMediaPlayerConfig(value: NativeMediaPlayerConfig): void { + let valueSerializer = this + const value_enable = value.enable + valueSerializer.writeBoolean(value_enable) + const value_shouldOverlay = value.shouldOverlay + valueSerializer.writeBoolean(value_shouldOverlay) + } + writeScriptItem(value: ScriptItem): void { + let valueSerializer = this + const value_script = value.script + valueSerializer.writeString(value_script) + const value_scriptRules = value.scriptRules + valueSerializer.writeInt8(runtimeType(value_scriptRules) as int32) + valueSerializer.writeInt32(value_scriptRules.length as int32) + for (let i = 0; i < value_scriptRules.length; i++) { + const value_scriptRules_element = value_scriptRules[i] + valueSerializer.writeString(value_scriptRules_element) + } + } + writeWebMediaOptions(value: WebMediaOptions): void { + let valueSerializer = this + const value_resumeInterval = value.resumeInterval + let value_resumeInterval_type = RuntimeType.UNDEFINED + if (value_resumeInterval != undefined) { + value_resumeInterval_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_resumeInterval_type as int32) + if ((RuntimeType.UNDEFINED) != (value_resumeInterval_type)) { + const value_resumeInterval_value = value_resumeInterval! + valueSerializer.writeNumber(value_resumeInterval_value) + } + const value_audioExclusive = value.audioExclusive + let value_audioExclusive_type = RuntimeType.UNDEFINED + if (value_audioExclusive != undefined) { + value_audioExclusive_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_audioExclusive_type as int32) + if ((RuntimeType.UNDEFINED) != (value_audioExclusive_type)) { + const value_audioExclusive_value = value_audioExclusive! + valueSerializer.writeBoolean(value_audioExclusive_value) + } + } + writeJavaScriptProxy(value: JavaScriptProxy): void { + let valueSerializer = this + const value_object = value.object + valueSerializer.writeCustomObject("Object", value_object) + const value_name = value.name + valueSerializer.writeString(value_name) + const value_methodList = value.methodList + valueSerializer.writeInt8(runtimeType(value_methodList) as int32) + valueSerializer.writeInt32(value_methodList.length as int32) + for (let i = 0; i < value_methodList.length; i++) { + const value_methodList_element = value_methodList[i] + valueSerializer.writeString(value_methodList_element) + } + const value_controller = value.controller + let value_controller_type = RuntimeType.UNDEFINED + value_controller_type = runtimeType(value_controller) + if (((RuntimeType.OBJECT) == (value_controller_type)) && (value_controller instanceof WebController)) { + valueSerializer.writeInt8(0 as int32) + const value_controller_0 = value_controller as WebController + valueSerializer.writeMaterialized(value_controller_0) + } + else if (((RuntimeType.OBJECT == value_controller_type))) { + valueSerializer.writeInt8(1 as int32) + const value_controller_1 = value_controller as WebviewController + valueSerializer.writeCustomObject("WebviewController", value_controller_1) + } + const value_asyncMethodList = value.asyncMethodList + let value_asyncMethodList_type = RuntimeType.UNDEFINED + if (value_asyncMethodList != undefined) { + value_asyncMethodList_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_asyncMethodList_type as int32) + if ((RuntimeType.UNDEFINED) != (value_asyncMethodList_type)) { + const value_asyncMethodList_value = value_asyncMethodList! + valueSerializer.writeInt8(runtimeType(value_asyncMethodList_value) as int32) + valueSerializer.writeInt32(value_asyncMethodList_value.length as int32) + for (let i = 0; i < value_asyncMethodList_value.length; i++) { + const value_asyncMethodList_value_element = value_asyncMethodList_value[i] + valueSerializer.writeString(value_asyncMethodList_value_element) + } + } + const value_permission = value.permission + let value_permission_type = RuntimeType.UNDEFINED + if (value_permission != undefined) { + value_permission_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_permission_type as int32) + if ((RuntimeType.UNDEFINED) != (value_permission_type)) { + const value_permission_value = value_permission! + valueSerializer.writeString(value_permission_value) + } + } + writeWebOptions(value: WebOptions): void { + let valueSerializer = this + const value_src = value.src + let value_src_type = RuntimeType.UNDEFINED + value_src_type = runtimeType(value_src) + if (((RuntimeType.STRING == value_src_type))) { + valueSerializer.writeInt8(0 as int32) + const value_src_0 = value_src as string + valueSerializer.writeString(value_src_0) + } + else if (((RuntimeType.OBJECT == value_src_type))) { + valueSerializer.writeInt8(1 as int32) + const value_src_1 = value_src as Resource + valueSerializer.writeResource(value_src_1) + } + const value_controller = value.controller + let value_controller_type = RuntimeType.UNDEFINED + value_controller_type = runtimeType(value_controller) + if (((RuntimeType.OBJECT) == (value_controller_type)) && (value_controller instanceof WebController)) { + valueSerializer.writeInt8(0 as int32) + const value_controller_0 = value_controller as WebController + valueSerializer.writeMaterialized(value_controller_0) + } + else if (((RuntimeType.OBJECT == value_controller_type))) { + valueSerializer.writeInt8(1 as int32) + const value_controller_1 = value_controller as WebviewController + valueSerializer.writeCustomObject("WebviewController", value_controller_1) + } + const value_renderMode = value.renderMode + let value_renderMode_type = RuntimeType.UNDEFINED + if (value_renderMode != undefined) { + value_renderMode_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_renderMode_type as int32) + if ((RuntimeType.UNDEFINED) != (value_renderMode_type)) { + const value_renderMode_value = value_renderMode! + valueSerializer.writeInt32((value_renderMode_value.value as int32)) + } + const value_incognitoMode = value.incognitoMode + let value_incognitoMode_type = RuntimeType.UNDEFINED + if (value_incognitoMode != undefined) { + value_incognitoMode_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_incognitoMode_type as int32) + if ((RuntimeType.UNDEFINED) != (value_incognitoMode_type)) { + const value_incognitoMode_value = value_incognitoMode! + valueSerializer.writeBoolean(value_incognitoMode_value) + } + const value_sharedRenderProcessToken = value.sharedRenderProcessToken + let value_sharedRenderProcessToken_type = RuntimeType.UNDEFINED + if (value_sharedRenderProcessToken != undefined) { + value_sharedRenderProcessToken_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_sharedRenderProcessToken_type as int32) + if ((RuntimeType.UNDEFINED) != (value_sharedRenderProcessToken_type)) { + const value_sharedRenderProcessToken_value = value_sharedRenderProcessToken! + valueSerializer.writeString(value_sharedRenderProcessToken_value) + } + } + writeVideoOptions(value: VideoOptions): void { + let valueSerializer = this + const value_src = value.src + let value_src_type = RuntimeType.UNDEFINED + if (value_src != undefined) { + value_src_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_src_type as int32) + if ((RuntimeType.UNDEFINED) != (value_src_type)) { + const value_src_value = value_src! + let value_src_value_type = RuntimeType.UNDEFINED + value_src_value_type = runtimeType(value_src_value) + if (((RuntimeType.STRING == value_src_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_src_value_0 = value_src_value as string + valueSerializer.writeString(value_src_value_0) + } + else if (((RuntimeType.OBJECT == value_src_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_src_value_1 = value_src_value as Resource + valueSerializer.writeResource(value_src_value_1) + } + } + const value_currentProgressRate = value.currentProgressRate + let value_currentProgressRate_type = RuntimeType.UNDEFINED + if (value_currentProgressRate != undefined) { + value_currentProgressRate_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_currentProgressRate_type as int32) + if ((RuntimeType.UNDEFINED) != (value_currentProgressRate_type)) { + const value_currentProgressRate_value = value_currentProgressRate! + let value_currentProgressRate_value_type = RuntimeType.UNDEFINED + value_currentProgressRate_value_type = runtimeType(value_currentProgressRate_value) + if (((RuntimeType.NUMBER == value_currentProgressRate_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_currentProgressRate_value_0 = value_currentProgressRate_value as number + valueSerializer.writeNumber(value_currentProgressRate_value_0) + } + else if (((RuntimeType.STRING == value_currentProgressRate_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_currentProgressRate_value_1 = value_currentProgressRate_value as string + valueSerializer.writeString(value_currentProgressRate_value_1) + } + else if (((value_currentProgressRate_value instanceof PlaybackSpeed))) { + valueSerializer.writeInt8(2 as int32) + const value_currentProgressRate_value_2 = value_currentProgressRate_value as PlaybackSpeed + valueSerializer.writeInt32((value_currentProgressRate_value_2.value as int32)) + } + } + const value_previewUri = value.previewUri + let value_previewUri_type = RuntimeType.UNDEFINED + if (value_previewUri != undefined) { + value_previewUri_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_previewUri_type as int32) + if ((RuntimeType.UNDEFINED) != (value_previewUri_type)) { + const value_previewUri_value = value_previewUri! + let value_previewUri_value_type = RuntimeType.UNDEFINED + value_previewUri_value_type = runtimeType(value_previewUri_value) + if (((RuntimeType.STRING == value_previewUri_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_previewUri_value_0 = value_previewUri_value as string + valueSerializer.writeString(value_previewUri_value_0) + } + else if (((RuntimeType.OBJECT) == (value_previewUri_value_type)) && (isPixelMap(value_previewUri_value))) { + valueSerializer.writeInt8(1 as int32) + const value_previewUri_value_1 = value_previewUri_value as PixelMap + valueSerializer.writeCustomObject("PixelMap", value_previewUri_value_1) + } + else if (isResource(value_previewUri_value)) { + valueSerializer.writeInt8(2 as int32) + const value_previewUri_value_2 = value_previewUri_value as Resource + valueSerializer.writeResource(value_previewUri_value_2) + } + } + const value_controller = value.controller + let value_controller_type = RuntimeType.UNDEFINED + if (value_controller != undefined) { + value_controller_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_controller_type as int32) + if ((RuntimeType.UNDEFINED) != (value_controller_type)) { + const value_controller_value = value_controller! + valueSerializer.writeMaterialized(value_controller_value) + } + const value_imageAIOptions = value.imageAIOptions + let value_imageAIOptions_type = RuntimeType.UNDEFINED + if (value_imageAIOptions != undefined) { + value_imageAIOptions_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_imageAIOptions_type as int32) + if ((RuntimeType.UNDEFINED) != (value_imageAIOptions_type)) { + const value_imageAIOptions_value = value_imageAIOptions! + valueSerializer.writeImageAIOptions(value_imageAIOptions_value) + } + } + writeSwitchStyle(value: SwitchStyle): void { + let valueSerializer = this + const value_pointRadius = value.pointRadius + let value_pointRadius_type = RuntimeType.UNDEFINED + if (value_pointRadius != undefined) { + value_pointRadius_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_pointRadius_type as int32) + if ((RuntimeType.UNDEFINED) != (value_pointRadius_type)) { + const value_pointRadius_value = value_pointRadius! + let value_pointRadius_value_type = RuntimeType.UNDEFINED + value_pointRadius_value_type = runtimeType(value_pointRadius_value) + if (((RuntimeType.NUMBER == value_pointRadius_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_pointRadius_value_0 = value_pointRadius_value as number + valueSerializer.writeNumber(value_pointRadius_value_0) + } + else if (((RuntimeType.OBJECT == value_pointRadius_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_pointRadius_value_1 = value_pointRadius_value as Resource + valueSerializer.writeResource(value_pointRadius_value_1) + } + } + const value_unselectedColor = value.unselectedColor + let value_unselectedColor_type = RuntimeType.UNDEFINED + if (value_unselectedColor != undefined) { + value_unselectedColor_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_unselectedColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_unselectedColor_type)) { + const value_unselectedColor_value = value_unselectedColor! + let value_unselectedColor_value_type = RuntimeType.UNDEFINED + value_unselectedColor_value_type = runtimeType(value_unselectedColor_value) + if (((RuntimeType.OBJECT) == (value_unselectedColor_value_type)) && (value_unselectedColor_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_unselectedColor_value_0 = value_unselectedColor_value as Color + valueSerializer.writeInt32((value_unselectedColor_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_unselectedColor_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_unselectedColor_value_1 = value_unselectedColor_value as number + valueSerializer.writeNumber(value_unselectedColor_value_1) + } + else if (((RuntimeType.STRING == value_unselectedColor_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_unselectedColor_value_2 = value_unselectedColor_value as string + valueSerializer.writeString(value_unselectedColor_value_2) + } + else if (isResource(value_unselectedColor_value)) { + valueSerializer.writeInt8(3 as int32) + const value_unselectedColor_value_3 = value_unselectedColor_value as Resource + valueSerializer.writeResource(value_unselectedColor_value_3) + } + } + const value_pointColor = value.pointColor + let value_pointColor_type = RuntimeType.UNDEFINED + if (value_pointColor != undefined) { + value_pointColor_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_pointColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_pointColor_type)) { + const value_pointColor_value = value_pointColor! + let value_pointColor_value_type = RuntimeType.UNDEFINED + value_pointColor_value_type = runtimeType(value_pointColor_value) + if (((RuntimeType.OBJECT) == (value_pointColor_value_type)) && (value_pointColor_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_pointColor_value_0 = value_pointColor_value as Color + valueSerializer.writeInt32((value_pointColor_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_pointColor_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_pointColor_value_1 = value_pointColor_value as number + valueSerializer.writeNumber(value_pointColor_value_1) + } + else if (((RuntimeType.STRING == value_pointColor_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_pointColor_value_2 = value_pointColor_value as string + valueSerializer.writeString(value_pointColor_value_2) + } + else if (isResource(value_pointColor_value)) { + valueSerializer.writeInt8(3 as int32) + const value_pointColor_value_3 = value_pointColor_value as Resource + valueSerializer.writeResource(value_pointColor_value_3) + } + } + const value_trackBorderRadius = value.trackBorderRadius + let value_trackBorderRadius_type = RuntimeType.UNDEFINED + if (value_trackBorderRadius != undefined) { + value_trackBorderRadius_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_trackBorderRadius_type as int32) + if ((RuntimeType.UNDEFINED) != (value_trackBorderRadius_type)) { + const value_trackBorderRadius_value = value_trackBorderRadius! + let value_trackBorderRadius_value_type = RuntimeType.UNDEFINED + value_trackBorderRadius_value_type = runtimeType(value_trackBorderRadius_value) + if (((RuntimeType.NUMBER == value_trackBorderRadius_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_trackBorderRadius_value_0 = value_trackBorderRadius_value as number + valueSerializer.writeNumber(value_trackBorderRadius_value_0) + } + else if (((RuntimeType.OBJECT == value_trackBorderRadius_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_trackBorderRadius_value_1 = value_trackBorderRadius_value as Resource + valueSerializer.writeResource(value_trackBorderRadius_value_1) + } + } + } + writeToggleOptions(value: ToggleOptions): void { + let valueSerializer = this + const value_type = value.type + valueSerializer.writeInt32((value_type.value as int32)) + const value_isOn = value.isOn + let value_isOn_type = RuntimeType.UNDEFINED + if (value_isOn != undefined) { + value_isOn_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_isOn_type as int32) + if ((RuntimeType.UNDEFINED) != (value_isOn_type)) { + const value_isOn_value = value_isOn! + valueSerializer.writeBoolean(value_isOn_value) + } + } + writeTimePickerOptions(value: TimePickerOptions): void { + let valueSerializer = this + const value_selected = value.selected + let value_selected_type = RuntimeType.UNDEFINED + if (value_selected != undefined) { + value_selected_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_selected_type as int32) + if ((RuntimeType.UNDEFINED) != (value_selected_type)) { + const value_selected_value = value_selected! + valueSerializer.writeCustomObject("Date", value_selected_value) + } + const value_format = value.format + let value_format_type = RuntimeType.UNDEFINED + if (value_format != undefined) { + value_format_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_format_type as int32) + if ((RuntimeType.UNDEFINED) != (value_format_type)) { + const value_format_value = value_format! + valueSerializer.writeInt32((value_format_value.value as int32)) + } + } + writeTextTimerOptions(value: TextTimerOptions): void { + let valueSerializer = this + const value_isCountDown = value.isCountDown + let value_isCountDown_type = RuntimeType.UNDEFINED + if (value_isCountDown != undefined) { + value_isCountDown_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_isCountDown_type as int32) + if ((RuntimeType.UNDEFINED) != (value_isCountDown_type)) { + const value_isCountDown_value = value_isCountDown! + valueSerializer.writeBoolean(value_isCountDown_value) + } + const value_count = value.count + let value_count_type = RuntimeType.UNDEFINED + if (value_count != undefined) { + value_count_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_count_type as int32) + if ((RuntimeType.UNDEFINED) != (value_count_type)) { + const value_count_value = value_count! + valueSerializer.writeNumber(value_count_value) + } + const value_controller = value.controller + let value_controller_type = RuntimeType.UNDEFINED + if (value_controller != undefined) { + value_controller_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_controller_type as int32) + if ((RuntimeType.UNDEFINED) != (value_controller_type)) { + const value_controller_value = value_controller! + valueSerializer.writeMaterialized(value_controller_value) + } + } + writeTextCascadePickerRangeContent(value: TextCascadePickerRangeContent): void { + let valueSerializer = this + const value_text = value.text + let value_text_type = RuntimeType.UNDEFINED + value_text_type = runtimeType(value_text) + if (((RuntimeType.STRING == value_text_type))) { + valueSerializer.writeInt8(0 as int32) + const value_text_0 = value_text as string + valueSerializer.writeString(value_text_0) + } + else if (((RuntimeType.OBJECT == value_text_type))) { + valueSerializer.writeInt8(1 as int32) + const value_text_1 = value_text as Resource + valueSerializer.writeResource(value_text_1) + } + const value_children = value.children + let value_children_type = RuntimeType.UNDEFINED + if (value_children != undefined) { + value_children_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_children_type as int32) + if ((RuntimeType.UNDEFINED) != (value_children_type)) { + const value_children_value = value_children! + valueSerializer.writeInt8(runtimeType(value_children_value) as int32) + valueSerializer.writeInt32(value_children_value.length as int32) + for (let i = 0; i < value_children_value.length; i++) { + const value_children_value_element = value_children_value[i] + valueSerializer.writeTextCascadePickerRangeContent(value_children_value_element) + } + } + } + writeTextPickerRangeContent(value: TextPickerRangeContent): void { + let valueSerializer = this + const value_icon = value.icon + let value_icon_type = RuntimeType.UNDEFINED + value_icon_type = runtimeType(value_icon) + if (((RuntimeType.STRING == value_icon_type))) { + valueSerializer.writeInt8(0 as int32) + const value_icon_0 = value_icon as string + valueSerializer.writeString(value_icon_0) + } + else if (((RuntimeType.OBJECT == value_icon_type))) { + valueSerializer.writeInt8(1 as int32) + const value_icon_1 = value_icon as Resource + valueSerializer.writeResource(value_icon_1) + } + const value_text = value.text + let value_text_type = RuntimeType.UNDEFINED + if (value_text != undefined) { + value_text_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_text_type as int32) + if ((RuntimeType.UNDEFINED) != (value_text_type)) { + const value_text_value = value_text! + let value_text_value_type = RuntimeType.UNDEFINED + value_text_value_type = runtimeType(value_text_value) + if (((RuntimeType.STRING == value_text_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_text_value_0 = value_text_value as string + valueSerializer.writeString(value_text_value_0) + } + else if (((RuntimeType.OBJECT == value_text_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_text_value_1 = value_text_value as Resource + valueSerializer.writeResource(value_text_value_1) + } + } + } + writeTextPickerOptions(value: TextPickerOptions): void { + let valueSerializer = this + const value_range = value.range + let value_range_type = RuntimeType.UNDEFINED + value_range_type = runtimeType(value_range) + if (TypeChecker.isstringBracketsArray(value_range)) { + valueSerializer.writeInt8(0 as int32) + const value_range_0 = value_range as string[] + valueSerializer.writeInt8(runtimeType(value_range_0) as int32) + valueSerializer.writeInt32(value_range_0.length as int32) + for (let i = 0; i < value_range_0.length; i++) { + const value_range_0_element = value_range_0[i] + valueSerializer.writeString(value_range_0_element) + } + } + else if (TypeChecker.isstringBracketsArrayBracketsArray(value_range)) { + valueSerializer.writeInt8(1 as int32) + const value_range_1 = value_range as string[][] + valueSerializer.writeInt8(runtimeType(value_range_1) as int32) + valueSerializer.writeInt32(value_range_1.length as int32) + for (let i = 0; i < value_range_1.length; i++) { + const value_range_1_element = value_range_1[i] + valueSerializer.writeInt8(runtimeType(value_range_1_element) as int32) + valueSerializer.writeInt32(value_range_1_element.length as int32) + for (let i = 0; i < value_range_1_element.length; i++) { + const value_range_1_element_element = value_range_1_element[i] + valueSerializer.writeString(value_range_1_element_element) + } + } + } + else if (isResource(value_range)) { + valueSerializer.writeInt8(2 as int32) + const value_range_2 = value_range as Resource + valueSerializer.writeResource(value_range_2) + } + else if (TypeChecker.isTextPickerRangeContentBracketsArray(value_range)) { + valueSerializer.writeInt8(3 as int32) + const value_range_3 = value_range as TextPickerRangeContent[] + valueSerializer.writeInt8(runtimeType(value_range_3) as int32) + valueSerializer.writeInt32(value_range_3.length as int32) + for (let i = 0; i < value_range_3.length; i++) { + const value_range_3_element = value_range_3[i] + valueSerializer.writeTextPickerRangeContent(value_range_3_element) + } + } + else if (TypeChecker.isTextCascadePickerRangeContentBracketsArray(value_range)) { + valueSerializer.writeInt8(4 as int32) + const value_range_4 = value_range as TextCascadePickerRangeContent[] + valueSerializer.writeInt8(runtimeType(value_range_4) as int32) + valueSerializer.writeInt32(value_range_4.length as int32) + for (let i = 0; i < value_range_4.length; i++) { + const value_range_4_element = value_range_4[i] + valueSerializer.writeTextCascadePickerRangeContent(value_range_4_element) + } + } + const value_value = value.value + let value_value_type = RuntimeType.UNDEFINED + if (value_value != undefined) { + value_value_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_value_type as int32) + if ((RuntimeType.UNDEFINED) != (value_value_type)) { + const value_value_value = value_value! + let value_value_value_type = RuntimeType.UNDEFINED + value_value_value_type = runtimeType(value_value_value) + if (((RuntimeType.STRING == value_value_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_value_value_0 = value_value_value as string + valueSerializer.writeString(value_value_value_0) + } + else if (((RuntimeType.OBJECT == value_value_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_value_value_1 = value_value_value as string[] + valueSerializer.writeInt8(runtimeType(value_value_value_1) as int32) + valueSerializer.writeInt32(value_value_value_1.length as int32) + for (let i = 0; i < value_value_value_1.length; i++) { + const value_value_value_1_element = value_value_value_1[i] + valueSerializer.writeString(value_value_value_1_element) + } + } + } + const value_selected = value.selected + let value_selected_type = RuntimeType.UNDEFINED + if (value_selected != undefined) { + value_selected_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_selected_type as int32) + if ((RuntimeType.UNDEFINED) != (value_selected_type)) { + const value_selected_value = value_selected! + let value_selected_value_type = RuntimeType.UNDEFINED + value_selected_value_type = runtimeType(value_selected_value) + if (((RuntimeType.NUMBER == value_selected_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_selected_value_0 = value_selected_value as number + valueSerializer.writeNumber(value_selected_value_0) + } + else if (((RuntimeType.OBJECT == value_selected_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_selected_value_1 = value_selected_value as number[] + valueSerializer.writeInt8(runtimeType(value_selected_value_1) as int32) + valueSerializer.writeInt32(value_selected_value_1.length as int32) + for (let i = 0; i < value_selected_value_1.length; i++) { + const value_selected_value_1_element = value_selected_value_1[i] + valueSerializer.writeNumber(value_selected_value_1_element) + } + } + } + } + writePasswordIcon(value: PasswordIcon): void { + let valueSerializer = this + const value_onIconSrc = value.onIconSrc + let value_onIconSrc_type = RuntimeType.UNDEFINED + if (value_onIconSrc != undefined) { + value_onIconSrc_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_onIconSrc_type as int32) + if ((RuntimeType.UNDEFINED) != (value_onIconSrc_type)) { + const value_onIconSrc_value = value_onIconSrc! + let value_onIconSrc_value_type = RuntimeType.UNDEFINED + value_onIconSrc_value_type = runtimeType(value_onIconSrc_value) + if (((RuntimeType.STRING == value_onIconSrc_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_onIconSrc_value_0 = value_onIconSrc_value as string + valueSerializer.writeString(value_onIconSrc_value_0) + } + else if (((RuntimeType.OBJECT == value_onIconSrc_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_onIconSrc_value_1 = value_onIconSrc_value as Resource + valueSerializer.writeResource(value_onIconSrc_value_1) + } + } + const value_offIconSrc = value.offIconSrc + let value_offIconSrc_type = RuntimeType.UNDEFINED + if (value_offIconSrc != undefined) { + value_offIconSrc_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_offIconSrc_type as int32) + if ((RuntimeType.UNDEFINED) != (value_offIconSrc_type)) { + const value_offIconSrc_value = value_offIconSrc! + let value_offIconSrc_value_type = RuntimeType.UNDEFINED + value_offIconSrc_value_type = runtimeType(value_offIconSrc_value) + if (((RuntimeType.STRING == value_offIconSrc_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_offIconSrc_value_0 = value_offIconSrc_value as string + valueSerializer.writeString(value_offIconSrc_value_0) + } + else if (((RuntimeType.OBJECT == value_offIconSrc_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_offIconSrc_value_1 = value_offIconSrc_value as Resource + valueSerializer.writeResource(value_offIconSrc_value_1) + } + } + } + writeTextInputOptions(value: TextInputOptions): void { + let valueSerializer = this + const value_placeholder = value.placeholder + let value_placeholder_type = RuntimeType.UNDEFINED + if (value_placeholder != undefined) { + value_placeholder_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_placeholder_type as int32) + if ((RuntimeType.UNDEFINED) != (value_placeholder_type)) { + const value_placeholder_value = value_placeholder! + let value_placeholder_value_type = RuntimeType.UNDEFINED + value_placeholder_value_type = runtimeType(value_placeholder_value) + if (((RuntimeType.STRING == value_placeholder_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_placeholder_value_0 = value_placeholder_value as string + valueSerializer.writeString(value_placeholder_value_0) + } + else if (((RuntimeType.OBJECT == value_placeholder_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_placeholder_value_1 = value_placeholder_value as Resource + valueSerializer.writeResource(value_placeholder_value_1) + } + } + const value_text = value.text + let value_text_type = RuntimeType.UNDEFINED + if (value_text != undefined) { + value_text_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_text_type as int32) + if ((RuntimeType.UNDEFINED) != (value_text_type)) { + const value_text_value = value_text! + let value_text_value_type = RuntimeType.UNDEFINED + value_text_value_type = runtimeType(value_text_value) + if (((RuntimeType.STRING == value_text_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_text_value_0 = value_text_value as string + valueSerializer.writeString(value_text_value_0) + } + else if (((RuntimeType.OBJECT == value_text_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_text_value_1 = value_text_value as Resource + valueSerializer.writeResource(value_text_value_1) + } + } + const value_controller = value.controller + let value_controller_type = RuntimeType.UNDEFINED + if (value_controller != undefined) { + value_controller_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_controller_type as int32) + if ((RuntimeType.UNDEFINED) != (value_controller_type)) { + const value_controller_value = value_controller! + valueSerializer.writeMaterialized(value_controller_value) + } + } + writeTextClockOptions(value: TextClockOptions): void { + let valueSerializer = this + const value_timeZoneOffset = value.timeZoneOffset + let value_timeZoneOffset_type = RuntimeType.UNDEFINED + if (value_timeZoneOffset != undefined) { + value_timeZoneOffset_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_timeZoneOffset_type as int32) + if ((RuntimeType.UNDEFINED) != (value_timeZoneOffset_type)) { + const value_timeZoneOffset_value = value_timeZoneOffset! + valueSerializer.writeNumber(value_timeZoneOffset_value) + } + const value_controller = value.controller + let value_controller_type = RuntimeType.UNDEFINED + if (value_controller != undefined) { + value_controller_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_controller_type as int32) + if ((RuntimeType.UNDEFINED) != (value_controller_type)) { + const value_controller_value = value_controller! + valueSerializer.writeMaterialized(value_controller_value) + } + } + writeInputCounterOptions(value: InputCounterOptions): void { + let valueSerializer = this + const value_thresholdPercentage = value.thresholdPercentage + let value_thresholdPercentage_type = RuntimeType.UNDEFINED + if (value_thresholdPercentage != undefined) { + value_thresholdPercentage_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_thresholdPercentage_type as int32) + if ((RuntimeType.UNDEFINED) != (value_thresholdPercentage_type)) { + const value_thresholdPercentage_value = value_thresholdPercentage! + valueSerializer.writeNumber(value_thresholdPercentage_value) + } + const value_highlightBorder = value.highlightBorder + let value_highlightBorder_type = RuntimeType.UNDEFINED + if (value_highlightBorder != undefined) { + value_highlightBorder_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_highlightBorder_type as int32) + if ((RuntimeType.UNDEFINED) != (value_highlightBorder_type)) { + const value_highlightBorder_value = value_highlightBorder! + valueSerializer.writeBoolean(value_highlightBorder_value) + } + } + writeTextAreaOptions(value: TextAreaOptions): void { + let valueSerializer = this + const value_placeholder = value.placeholder + let value_placeholder_type = RuntimeType.UNDEFINED + if (value_placeholder != undefined) { + value_placeholder_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_placeholder_type as int32) + if ((RuntimeType.UNDEFINED) != (value_placeholder_type)) { + const value_placeholder_value = value_placeholder! + let value_placeholder_value_type = RuntimeType.UNDEFINED + value_placeholder_value_type = runtimeType(value_placeholder_value) + if (((RuntimeType.STRING == value_placeholder_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_placeholder_value_0 = value_placeholder_value as string + valueSerializer.writeString(value_placeholder_value_0) + } + else if (((RuntimeType.OBJECT == value_placeholder_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_placeholder_value_1 = value_placeholder_value as Resource + valueSerializer.writeResource(value_placeholder_value_1) + } + } + const value_text = value.text + let value_text_type = RuntimeType.UNDEFINED + if (value_text != undefined) { + value_text_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_text_type as int32) + if ((RuntimeType.UNDEFINED) != (value_text_type)) { + const value_text_value = value_text! + let value_text_value_type = RuntimeType.UNDEFINED + value_text_value_type = runtimeType(value_text_value) + if (((RuntimeType.STRING == value_text_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_text_value_0 = value_text_value as string + valueSerializer.writeString(value_text_value_0) + } + else if (((RuntimeType.OBJECT == value_text_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_text_value_1 = value_text_value as Resource + valueSerializer.writeResource(value_text_value_1) + } + } + const value_controller = value.controller + let value_controller_type = RuntimeType.UNDEFINED + if (value_controller != undefined) { + value_controller_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_controller_type as int32) + if ((RuntimeType.UNDEFINED) != (value_controller_type)) { + const value_controller_value = value_controller! + valueSerializer.writeMaterialized(value_controller_value) + } + } + writeTextOverflowOptions(value: TextOverflowOptions): void { + let valueSerializer = this + const value_overflow = value.overflow + valueSerializer.writeInt32((value_overflow.value as int32)) + } + writeFontSettingOptions(value: FontSettingOptions): void { + let valueSerializer = this + const value_enableVariableFontWeight = value.enableVariableFontWeight + let value_enableVariableFontWeight_type = RuntimeType.UNDEFINED + if (value_enableVariableFontWeight != undefined) { + value_enableVariableFontWeight_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_enableVariableFontWeight_type as int32) + if ((RuntimeType.UNDEFINED) != (value_enableVariableFontWeight_type)) { + const value_enableVariableFontWeight_value = value_enableVariableFontWeight! + valueSerializer.writeBoolean(value_enableVariableFontWeight_value) + } + } + writeTextOptions(value: TextOptions): void { + let valueSerializer = this + const value_controller = value.controller + valueSerializer.writeMaterialized(value_controller) + } + writeBarGridColumnOptions(value: BarGridColumnOptions): void { + let valueSerializer = this + const value_sm = value.sm + let value_sm_type = RuntimeType.UNDEFINED + if (value_sm != undefined) { + value_sm_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_sm_type as int32) + if ((RuntimeType.UNDEFINED) != (value_sm_type)) { + const value_sm_value = value_sm! + valueSerializer.writeNumber(value_sm_value) + } + const value_md = value.md + let value_md_type = RuntimeType.UNDEFINED + if (value_md != undefined) { + value_md_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_md_type as int32) + if ((RuntimeType.UNDEFINED) != (value_md_type)) { + const value_md_value = value_md! + valueSerializer.writeNumber(value_md_value) + } + const value_lg = value.lg + let value_lg_type = RuntimeType.UNDEFINED + if (value_lg != undefined) { + value_lg_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_lg_type as int32) + if ((RuntimeType.UNDEFINED) != (value_lg_type)) { + const value_lg_value = value_lg! + valueSerializer.writeNumber(value_lg_value) + } + const value_margin = value.margin + let value_margin_type = RuntimeType.UNDEFINED + if (value_margin != undefined) { + value_margin_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_margin_type as int32) + if ((RuntimeType.UNDEFINED) != (value_margin_type)) { + const value_margin_value = value_margin! + valueSerializer.writeLength(value_margin_value); + } + const value_gutter = value.gutter + let value_gutter_type = RuntimeType.UNDEFINED + if (value_gutter != undefined) { + value_gutter_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_gutter_type as int32) + if ((RuntimeType.UNDEFINED) != (value_gutter_type)) { + const value_gutter_value = value_gutter! + valueSerializer.writeLength(value_gutter_value); + } + } + writeScrollableBarModeOptions(value: ScrollableBarModeOptions): void { + let valueSerializer = this + const value_margin = value.margin + let value_margin_type = RuntimeType.UNDEFINED + if (value_margin != undefined) { + value_margin_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_margin_type as int32) + if ((RuntimeType.UNDEFINED) != (value_margin_type)) { + const value_margin_value = value_margin! + valueSerializer.writeLength(value_margin_value); + } + const value_nonScrollableLayoutStyle = value.nonScrollableLayoutStyle + let value_nonScrollableLayoutStyle_type = RuntimeType.UNDEFINED + if (value_nonScrollableLayoutStyle != undefined) { + value_nonScrollableLayoutStyle_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_nonScrollableLayoutStyle_type as int32) + if ((RuntimeType.UNDEFINED) != (value_nonScrollableLayoutStyle_type)) { + const value_nonScrollableLayoutStyle_value = value_nonScrollableLayoutStyle! + valueSerializer.writeInt32((value_nonScrollableLayoutStyle_value.value as int32)) + } + } + writeSymbolEffect(value: SymbolEffect): void { + } + writeSwiperContentAnimatedTransition(value: SwiperContentAnimatedTransition): void { + let valueSerializer = this + const value_timeout = value.timeout + let value_timeout_type = RuntimeType.UNDEFINED + if (value_timeout != undefined) { + value_timeout_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_timeout_type as int32) + if ((RuntimeType.UNDEFINED) != (value_timeout_type)) { + const value_timeout_value = value_timeout! + valueSerializer.writeNumber(value_timeout_value) + } + const value_transition = value.transition + valueSerializer.writeFunction(value_transition) + } + writeStackOptions(value: StackOptions): void { + let valueSerializer = this + const value_alignContent = value.alignContent + let value_alignContent_type = RuntimeType.UNDEFINED + if (value_alignContent != undefined) { + value_alignContent_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_alignContent_type as int32) + if ((RuntimeType.UNDEFINED) != (value_alignContent_type)) { + const value_alignContent_value = value_alignContent! + valueSerializer.writeInt32((value_alignContent_value.value as int32)) + } + } + writeSlideRange(value: SlideRange): void { + let valueSerializer = this + const value_from = value.from + let value_from_type = RuntimeType.UNDEFINED + if (value_from != undefined) { + value_from_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_from_type as int32) + if ((RuntimeType.UNDEFINED) != (value_from_type)) { + const value_from_value = value_from! + valueSerializer.writeNumber(value_from_value) + } + const value_to = value.to + let value_to_type = RuntimeType.UNDEFINED + if (value_to != undefined) { + value_to_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_to_type as int32) + if ((RuntimeType.UNDEFINED) != (value_to_type)) { + const value_to_value = value_to! + valueSerializer.writeNumber(value_to_value) + } + } + writeSliderBlockStyle(value: SliderBlockStyle): void { + let valueSerializer = this + const value_type = value.type + valueSerializer.writeInt32((value_type.value as int32)) + const value_image = value.image + let value_image_type = RuntimeType.UNDEFINED + if (value_image != undefined) { + value_image_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_image_type as int32) + if ((RuntimeType.UNDEFINED) != (value_image_type)) { + const value_image_value = value_image! + let value_image_value_type = RuntimeType.UNDEFINED + value_image_value_type = runtimeType(value_image_value) + if (((RuntimeType.STRING == value_image_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_image_value_0 = value_image_value as string + valueSerializer.writeString(value_image_value_0) + } + else if (((RuntimeType.OBJECT == value_image_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_image_value_1 = value_image_value as Resource + valueSerializer.writeResource(value_image_value_1) + } + } + const value_shape = value.shape + let value_shape_type = RuntimeType.UNDEFINED + if (value_shape != undefined) { + value_shape_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_shape_type as int32) + if ((RuntimeType.UNDEFINED) != (value_shape_type)) { + const value_shape_value = value_shape! + let value_shape_value_type = RuntimeType.UNDEFINED + value_shape_value_type = runtimeType(value_shape_value) + if (((RuntimeType.OBJECT) == (value_shape_value_type)) && (value_shape_value instanceof CircleAttribute)) { + valueSerializer.writeInt8(0 as int32) + const value_shape_value_0 = value_shape_value as CircleAttribute + valueSerializer.writeCircleAttribute(value_shape_value_0) + } + else if (((RuntimeType.OBJECT) == (value_shape_value_type)) && (value_shape_value instanceof EllipseAttribute)) { + valueSerializer.writeInt8(1 as int32) + const value_shape_value_1 = value_shape_value as EllipseAttribute + valueSerializer.writeEllipseAttribute(value_shape_value_1) + } + else if (((RuntimeType.OBJECT) == (value_shape_value_type)) && (value_shape_value instanceof PathAttribute)) { + valueSerializer.writeInt8(2 as int32) + const value_shape_value_2 = value_shape_value as PathAttribute + valueSerializer.writePathAttribute(value_shape_value_2) + } + else if (((RuntimeType.OBJECT) == (value_shape_value_type)) && (value_shape_value instanceof RectAttribute)) { + valueSerializer.writeInt8(3 as int32) + const value_shape_value_3 = value_shape_value as RectAttribute + valueSerializer.writeRectAttribute(value_shape_value_3) + } + } + } + writeSliderOptions(value: SliderOptions): void { + let valueSerializer = this + const value_value = value.value + let value_value_type = RuntimeType.UNDEFINED + if (value_value != undefined) { + value_value_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_value_type as int32) + if ((RuntimeType.UNDEFINED) != (value_value_type)) { + const value_value_value = value_value! + valueSerializer.writeNumber(value_value_value) + } + const value_min = value.min + let value_min_type = RuntimeType.UNDEFINED + if (value_min != undefined) { + value_min_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_min_type as int32) + if ((RuntimeType.UNDEFINED) != (value_min_type)) { + const value_min_value = value_min! + valueSerializer.writeNumber(value_min_value) + } + const value_max = value.max + let value_max_type = RuntimeType.UNDEFINED + if (value_max != undefined) { + value_max_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_max_type as int32) + if ((RuntimeType.UNDEFINED) != (value_max_type)) { + const value_max_value = value_max! + valueSerializer.writeNumber(value_max_value) + } + const value_step = value.step + let value_step_type = RuntimeType.UNDEFINED + if (value_step != undefined) { + value_step_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_step_type as int32) + if ((RuntimeType.UNDEFINED) != (value_step_type)) { + const value_step_value = value_step! + valueSerializer.writeNumber(value_step_value) + } + const value_style = value.style + let value_style_type = RuntimeType.UNDEFINED + if (value_style != undefined) { + value_style_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_style_type as int32) + if ((RuntimeType.UNDEFINED) != (value_style_type)) { + const value_style_value = value_style! + valueSerializer.writeInt32((value_style_value.value as int32)) + } + const value_direction = value.direction + let value_direction_type = RuntimeType.UNDEFINED + if (value_direction != undefined) { + value_direction_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_direction_type as int32) + if ((RuntimeType.UNDEFINED) != (value_direction_type)) { + const value_direction_value = value_direction! + valueSerializer.writeInt32((value_direction_value.value as int32)) + } + const value_reverse = value.reverse + let value_reverse_type = RuntimeType.UNDEFINED + if (value_reverse != undefined) { + value_reverse_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_reverse_type as int32) + if ((RuntimeType.UNDEFINED) != (value_reverse_type)) { + const value_reverse_value = value_reverse! + valueSerializer.writeBoolean(value_reverse_value) + } + } + writeSelectOption(value: SelectOption): void { + let valueSerializer = this + const value_value = value.value + let value_value_type = RuntimeType.UNDEFINED + value_value_type = runtimeType(value_value) + if (((RuntimeType.STRING == value_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_value_0 = value_value as string + valueSerializer.writeString(value_value_0) + } + else if (((RuntimeType.OBJECT == value_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_value_1 = value_value as Resource + valueSerializer.writeResource(value_value_1) + } + const value_icon = value.icon + let value_icon_type = RuntimeType.UNDEFINED + if (value_icon != undefined) { + value_icon_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_icon_type as int32) + if ((RuntimeType.UNDEFINED) != (value_icon_type)) { + const value_icon_value = value_icon! + let value_icon_value_type = RuntimeType.UNDEFINED + value_icon_value_type = runtimeType(value_icon_value) + if (((RuntimeType.STRING == value_icon_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_icon_value_0 = value_icon_value as string + valueSerializer.writeString(value_icon_value_0) + } + else if (((RuntimeType.OBJECT == value_icon_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_icon_value_1 = value_icon_value as Resource + valueSerializer.writeResource(value_icon_value_1) + } + } + const value_symbolIcon = value.symbolIcon + let value_symbolIcon_type = RuntimeType.UNDEFINED + if (value_symbolIcon != undefined) { + value_symbolIcon_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_symbolIcon_type as int32) + if ((RuntimeType.UNDEFINED) != (value_symbolIcon_type)) { + const value_symbolIcon_value = value_symbolIcon! + valueSerializer.writeCustomObject("SymbolGlyphModifier", value_symbolIcon_value) + } + } + writeTextDecorationOptions(value: TextDecorationOptions): void { + let valueSerializer = this + const value_type = value.type + valueSerializer.writeInt32((value_type.value as int32)) + const value_color = value.color + let value_color_type = RuntimeType.UNDEFINED + if (value_color != undefined) { + value_color_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_color_type as int32) + if ((RuntimeType.UNDEFINED) != (value_color_type)) { + const value_color_value = value_color! + let value_color_value_type = RuntimeType.UNDEFINED + value_color_value_type = runtimeType(value_color_value) + if (((RuntimeType.OBJECT) == (value_color_value_type)) && (value_color_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_color_value_0 = value_color_value as Color + valueSerializer.writeInt32((value_color_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_color_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_color_value_1 = value_color_value as number + valueSerializer.writeNumber(value_color_value_1) + } + else if (((RuntimeType.STRING == value_color_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_color_value_2 = value_color_value as string + valueSerializer.writeString(value_color_value_2) + } + else if (isResource(value_color_value)) { + valueSerializer.writeInt8(3 as int32) + const value_color_value_3 = value_color_value as Resource + valueSerializer.writeResource(value_color_value_3) + } + } + const value_style = value.style + let value_style_type = RuntimeType.UNDEFINED + if (value_style != undefined) { + value_style_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_style_type as int32) + if ((RuntimeType.UNDEFINED) != (value_style_type)) { + const value_style_value = value_style! + valueSerializer.writeInt32((value_style_value.value as int32)) + } + } + writeCaretStyle(value: CaretStyle): void { + let valueSerializer = this + const value_width = value.width + let value_width_type = RuntimeType.UNDEFINED + if (value_width != undefined) { + value_width_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_width_type as int32) + if ((RuntimeType.UNDEFINED) != (value_width_type)) { + const value_width_value = value_width! + valueSerializer.writeLength(value_width_value); + } + const value_color = value.color + let value_color_type = RuntimeType.UNDEFINED + if (value_color != undefined) { + value_color_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_color_type as int32) + if ((RuntimeType.UNDEFINED) != (value_color_type)) { + const value_color_value = value_color! + let value_color_value_type = RuntimeType.UNDEFINED + value_color_value_type = runtimeType(value_color_value) + if (((RuntimeType.OBJECT) == (value_color_value_type)) && (value_color_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_color_value_0 = value_color_value as Color + valueSerializer.writeInt32((value_color_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_color_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_color_value_1 = value_color_value as number + valueSerializer.writeNumber(value_color_value_1) + } + else if (((RuntimeType.STRING == value_color_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_color_value_2 = value_color_value as string + valueSerializer.writeString(value_color_value_2) + } + else if (isResource(value_color_value)) { + valueSerializer.writeInt8(3 as int32) + const value_color_value_3 = value_color_value as Resource + valueSerializer.writeResource(value_color_value_3) + } + } + } + writeSearchButtonOptions(value: SearchButtonOptions): void { + let valueSerializer = this + const value_fontSize = value.fontSize + let value_fontSize_type = RuntimeType.UNDEFINED + if (value_fontSize != undefined) { + value_fontSize_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_fontSize_type as int32) + if ((RuntimeType.UNDEFINED) != (value_fontSize_type)) { + const value_fontSize_value = value_fontSize! + valueSerializer.writeLength(value_fontSize_value); + } + const value_fontColor = value.fontColor + let value_fontColor_type = RuntimeType.UNDEFINED + if (value_fontColor != undefined) { + value_fontColor_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_fontColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_fontColor_type)) { + const value_fontColor_value = value_fontColor! + let value_fontColor_value_type = RuntimeType.UNDEFINED + value_fontColor_value_type = runtimeType(value_fontColor_value) + if (((RuntimeType.OBJECT) == (value_fontColor_value_type)) && (value_fontColor_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_fontColor_value_0 = value_fontColor_value as Color + valueSerializer.writeInt32((value_fontColor_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_fontColor_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_fontColor_value_1 = value_fontColor_value as number + valueSerializer.writeNumber(value_fontColor_value_1) + } + else if (((RuntimeType.STRING == value_fontColor_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_fontColor_value_2 = value_fontColor_value as string + valueSerializer.writeString(value_fontColor_value_2) + } + else if (isResource(value_fontColor_value)) { + valueSerializer.writeInt8(3 as int32) + const value_fontColor_value_3 = value_fontColor_value as Resource + valueSerializer.writeResource(value_fontColor_value_3) + } + } + } + writeScrollBarOptions(value: ScrollBarOptions): void { + let valueSerializer = this + const value_scroller = value.scroller + valueSerializer.writeMaterialized(value_scroller) + const value_direction = value.direction + let value_direction_type = RuntimeType.UNDEFINED + if (value_direction != undefined) { + value_direction_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_direction_type as int32) + if ((RuntimeType.UNDEFINED) != (value_direction_type)) { + const value_direction_value = value_direction! + valueSerializer.writeInt32((value_direction_value.value as int32)) + } + const value_state = value.state + let value_state_type = RuntimeType.UNDEFINED + if (value_state != undefined) { + value_state_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_state_type as int32) + if ((RuntimeType.UNDEFINED) != (value_state_type)) { + const value_state_value = value_state! + valueSerializer.writeInt32((value_state_value.value as int32)) + } + } + writeOffsetOptions(value: OffsetOptions): void { + let valueSerializer = this + const value_xOffset = value.xOffset + let value_xOffset_type = RuntimeType.UNDEFINED + if (value_xOffset != undefined) { + value_xOffset_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_xOffset_type as int32) + if ((RuntimeType.UNDEFINED) != (value_xOffset_type)) { + const value_xOffset_value = value_xOffset! + valueSerializer.writeLength(value_xOffset_value); + } + const value_yOffset = value.yOffset + let value_yOffset_type = RuntimeType.UNDEFINED + if (value_yOffset != undefined) { + value_yOffset_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_yOffset_type as int32) + if ((RuntimeType.UNDEFINED) != (value_yOffset_type)) { + const value_yOffset_value = value_yOffset! + valueSerializer.writeLength(value_yOffset_value); + } + } + writeScrollSnapOptions(value: ScrollSnapOptions): void { + let valueSerializer = this + const value_snapAlign = value.snapAlign + valueSerializer.writeInt32((value_snapAlign.value as int32)) + const value_snapPagination = value.snapPagination + let value_snapPagination_type = RuntimeType.UNDEFINED + if (value_snapPagination != undefined) { + value_snapPagination_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_snapPagination_type as int32) + if ((RuntimeType.UNDEFINED) != (value_snapPagination_type)) { + const value_snapPagination_value = value_snapPagination! + let value_snapPagination_value_type = RuntimeType.UNDEFINED + value_snapPagination_value_type = runtimeType(value_snapPagination_value) + if (((RuntimeType.NUMBER) == (value_snapPagination_value_type)) || ((RuntimeType.STRING) == (value_snapPagination_value_type)) || (((RuntimeType.OBJECT) == (value_snapPagination_value_type)) && (isResource(value_snapPagination_value)))) { + valueSerializer.writeInt8(0 as int32) + const value_snapPagination_value_0 = value_snapPagination_value as Dimension + valueSerializer.writeLength(value_snapPagination_value_0); + } + else if (((RuntimeType.OBJECT) == (value_snapPagination_value_type)) && (value_snapPagination_value instanceof Array)) { + valueSerializer.writeInt8(1 as int32) + const value_snapPagination_value_1 = value_snapPagination_value as Array + valueSerializer.writeInt8(runtimeType(value_snapPagination_value_1) as int32) + valueSerializer.writeInt32(value_snapPagination_value_1.length as int32) + for (let i = 0; i < value_snapPagination_value_1.length; i++) { + const value_snapPagination_value_1_element = value_snapPagination_value_1[i] + valueSerializer.writeLength(value_snapPagination_value_1_element); + } + } + } + const value_enableSnapToStart = value.enableSnapToStart + let value_enableSnapToStart_type = RuntimeType.UNDEFINED + if (value_enableSnapToStart != undefined) { + value_enableSnapToStart_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_enableSnapToStart_type as int32) + if ((RuntimeType.UNDEFINED) != (value_enableSnapToStart_type)) { + const value_enableSnapToStart_value = value_enableSnapToStart! + valueSerializer.writeBoolean(value_enableSnapToStart_value) + } + const value_enableSnapToEnd = value.enableSnapToEnd + let value_enableSnapToEnd_type = RuntimeType.UNDEFINED + if (value_enableSnapToEnd != undefined) { + value_enableSnapToEnd_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_enableSnapToEnd_type as int32) + if ((RuntimeType.UNDEFINED) != (value_enableSnapToEnd_type)) { + const value_enableSnapToEnd_value = value_enableSnapToEnd! + valueSerializer.writeBoolean(value_enableSnapToEnd_value) + } + } + writeSaveButtonOptions(value: SaveButtonOptions): void { + let valueSerializer = this + const value_icon = value.icon + let value_icon_type = RuntimeType.UNDEFINED + if (value_icon != undefined) { + value_icon_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_icon_type as int32) + if ((RuntimeType.UNDEFINED) != (value_icon_type)) { + const value_icon_value = value_icon! + valueSerializer.writeInt32((value_icon_value.value as int32)) + } + const value_text = value.text + let value_text_type = RuntimeType.UNDEFINED + if (value_text != undefined) { + value_text_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_text_type as int32) + if ((RuntimeType.UNDEFINED) != (value_text_type)) { + const value_text_value = value_text! + valueSerializer.writeInt32((value_text_value.value as int32)) + } + const value_buttonType = value.buttonType + let value_buttonType_type = RuntimeType.UNDEFINED + if (value_buttonType != undefined) { + value_buttonType_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_buttonType_type as int32) + if ((RuntimeType.UNDEFINED) != (value_buttonType_type)) { + const value_buttonType_value = value_buttonType! + valueSerializer.writeInt32((value_buttonType_value.value as int32)) + } + } + writeRowOptions(value: RowOptions): void { + let valueSerializer = this + const value_space = value.space + let value_space_type = RuntimeType.UNDEFINED + if (value_space != undefined) { + value_space_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_space_type as int32) + if ((RuntimeType.UNDEFINED) != (value_space_type)) { + const value_space_value = value_space! + let value_space_value_type = RuntimeType.UNDEFINED + value_space_value_type = runtimeType(value_space_value) + if (((RuntimeType.STRING == value_space_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_space_value_0 = value_space_value as string + valueSerializer.writeString(value_space_value_0) + } + else if (((RuntimeType.NUMBER == value_space_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_space_value_1 = value_space_value as number + valueSerializer.writeNumber(value_space_value_1) + } + } + } + writeRootSceneSession(value: RootSceneSession): void { + } + writePlaceholderStyle(value: PlaceholderStyle): void { + let valueSerializer = this + const value_font = value.font + let value_font_type = RuntimeType.UNDEFINED + if (value_font != undefined) { + value_font_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_font_type as int32) + if ((RuntimeType.UNDEFINED) != (value_font_type)) { + const value_font_value = value_font! + valueSerializer.writeFont(value_font_value) + } + const value_fontColor = value.fontColor + let value_fontColor_type = RuntimeType.UNDEFINED + if (value_fontColor != undefined) { + value_fontColor_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_fontColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_fontColor_type)) { + const value_fontColor_value = value_fontColor! + let value_fontColor_value_type = RuntimeType.UNDEFINED + value_fontColor_value_type = runtimeType(value_fontColor_value) + if (((RuntimeType.OBJECT) == (value_fontColor_value_type)) && (value_fontColor_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_fontColor_value_0 = value_fontColor_value as Color + valueSerializer.writeInt32((value_fontColor_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_fontColor_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_fontColor_value_1 = value_fontColor_value as number + valueSerializer.writeNumber(value_fontColor_value_1) + } + else if (((RuntimeType.STRING == value_fontColor_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_fontColor_value_2 = value_fontColor_value as string + valueSerializer.writeString(value_fontColor_value_2) + } + else if (isResource(value_fontColor_value)) { + valueSerializer.writeInt8(3 as int32) + const value_fontColor_value_3 = value_fontColor_value as Resource + valueSerializer.writeResource(value_fontColor_value_3) + } + } + } + writeTextDataDetectorConfig(value: TextDataDetectorConfig): void { + let valueSerializer = this + const value_types = value.types + valueSerializer.writeInt8(runtimeType(value_types) as int32) + valueSerializer.writeInt32(value_types.length as int32) + for (let i = 0; i < value_types.length; i++) { + const value_types_element = value_types[i] + valueSerializer.writeInt32((value_types_element.value as int32)) + } + const value_onDetectResultUpdate = value.onDetectResultUpdate + let value_onDetectResultUpdate_type = RuntimeType.UNDEFINED + if (value_onDetectResultUpdate != undefined) { + value_onDetectResultUpdate_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_onDetectResultUpdate_type as int32) + if ((RuntimeType.UNDEFINED) != (value_onDetectResultUpdate_type)) { + const value_onDetectResultUpdate_value = value_onDetectResultUpdate! + valueSerializer.writeFunction(value_onDetectResultUpdate_value) + } + const value_color = value.color + let value_color_type = RuntimeType.UNDEFINED + if (value_color != undefined) { + value_color_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_color_type as int32) + if ((RuntimeType.UNDEFINED) != (value_color_type)) { + const value_color_value = value_color! + let value_color_value_type = RuntimeType.UNDEFINED + value_color_value_type = runtimeType(value_color_value) + if (((RuntimeType.OBJECT) == (value_color_value_type)) && (value_color_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_color_value_0 = value_color_value as Color + valueSerializer.writeInt32((value_color_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_color_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_color_value_1 = value_color_value as number + valueSerializer.writeNumber(value_color_value_1) + } + else if (((RuntimeType.STRING == value_color_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_color_value_2 = value_color_value as string + valueSerializer.writeString(value_color_value_2) + } + else if (isResource(value_color_value)) { + valueSerializer.writeInt8(3 as int32) + const value_color_value_3 = value_color_value as Resource + valueSerializer.writeResource(value_color_value_3) + } + } + const value_decoration = value.decoration + let value_decoration_type = RuntimeType.UNDEFINED + if (value_decoration != undefined) { + value_decoration_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_decoration_type as int32) + if ((RuntimeType.UNDEFINED) != (value_decoration_type)) { + const value_decoration_value = value_decoration! + valueSerializer.writeDecorationStyleInterface(value_decoration_value) + } + } + writeKeyboardOptions(value: KeyboardOptions): void { + let valueSerializer = this + const value_supportAvoidance = value.supportAvoidance + let value_supportAvoidance_type = RuntimeType.UNDEFINED + if (value_supportAvoidance != undefined) { + value_supportAvoidance_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_supportAvoidance_type as int32) + if ((RuntimeType.UNDEFINED) != (value_supportAvoidance_type)) { + const value_supportAvoidance_value = value_supportAvoidance! + valueSerializer.writeBoolean(value_supportAvoidance_value) + } + } + writeSelectionMenuOptions(value: SelectionMenuOptions): void { + let valueSerializer = this + const value_onAppear = value.onAppear + let value_onAppear_type = RuntimeType.UNDEFINED + if (value_onAppear != undefined) { + value_onAppear_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_onAppear_type as int32) + if ((RuntimeType.UNDEFINED) != (value_onAppear_type)) { + const value_onAppear_value = value_onAppear! + valueSerializer.writeFunction(value_onAppear_value) + } + const value_onDisappear = value.onDisappear + let value_onDisappear_type = RuntimeType.UNDEFINED + if (value_onDisappear != undefined) { + value_onDisappear_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_onDisappear_type as int32) + if ((RuntimeType.UNDEFINED) != (value_onDisappear_type)) { + const value_onDisappear_value = value_onDisappear! + valueSerializer.writeFunction(value_onDisappear_value) + } + const value_menuType = value.menuType + let value_menuType_type = RuntimeType.UNDEFINED + if (value_menuType != undefined) { + value_menuType_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_menuType_type as int32) + if ((RuntimeType.UNDEFINED) != (value_menuType_type)) { + const value_menuType_value = value_menuType! + valueSerializer.writeInt32((value_menuType_value.value as int32)) + } + } + writeRichEditorStyledStringOptions(value: RichEditorStyledStringOptions): void { + let valueSerializer = this + const value_controller = value.controller + valueSerializer.writeMaterialized(value_controller) + } + writeRichEditorOptions(value: RichEditorOptions): void { + let valueSerializer = this + const value_controller = value.controller + valueSerializer.writeMaterialized(value_controller) + } + writeLocalizedBarrierStyle(value: LocalizedBarrierStyle): void { + let valueSerializer = this + const value_id = value.id + valueSerializer.writeString(value_id) + const value_localizedDirection = value.localizedDirection + valueSerializer.writeInt32((value_localizedDirection.value as int32)) + const value_referencedId = value.referencedId + valueSerializer.writeInt8(runtimeType(value_referencedId) as int32) + valueSerializer.writeInt32(value_referencedId.length as int32) + for (let i = 0; i < value_referencedId.length; i++) { + const value_referencedId_element = value_referencedId[i] + valueSerializer.writeString(value_referencedId_element) + } + } + writeBarrierStyle(value: BarrierStyle): void { + let valueSerializer = this + const value_id = value.id + valueSerializer.writeString(value_id) + const value_direction = value.direction + valueSerializer.writeInt32((value_direction.value as int32)) + const value_referencedId = value.referencedId + valueSerializer.writeInt8(runtimeType(value_referencedId) as int32) + valueSerializer.writeInt32(value_referencedId.length as int32) + for (let i = 0; i < value_referencedId.length; i++) { + const value_referencedId_element = value_referencedId[i] + valueSerializer.writeString(value_referencedId_element) + } + } + writeGuideLineStyle(value: GuideLineStyle): void { + let valueSerializer = this + const value_id = value.id + valueSerializer.writeString(value_id) + const value_direction = value.direction + valueSerializer.writeInt32((value_direction.value as int32)) + const value_position = value.position + valueSerializer.writeGuideLinePosition(value_position) + } + writeRefreshOptions(value: RefreshOptions): void { + let valueSerializer = this + const value_refreshing = value.refreshing + valueSerializer.writeBoolean(value_refreshing) + const value_offset = value.offset + let value_offset_type = RuntimeType.UNDEFINED + if (value_offset != undefined) { + value_offset_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_offset_type as int32) + if ((RuntimeType.UNDEFINED) != (value_offset_type)) { + const value_offset_value = value_offset! + let value_offset_value_type = RuntimeType.UNDEFINED + value_offset_value_type = runtimeType(value_offset_value) + if (((RuntimeType.NUMBER == value_offset_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_offset_value_0 = value_offset_value as number + valueSerializer.writeNumber(value_offset_value_0) + } + else if (((RuntimeType.STRING == value_offset_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_offset_value_1 = value_offset_value as string + valueSerializer.writeString(value_offset_value_1) + } + } + const value_friction = value.friction + let value_friction_type = RuntimeType.UNDEFINED + if (value_friction != undefined) { + value_friction_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_friction_type as int32) + if ((RuntimeType.UNDEFINED) != (value_friction_type)) { + const value_friction_value = value_friction! + let value_friction_value_type = RuntimeType.UNDEFINED + value_friction_value_type = runtimeType(value_friction_value) + if (((RuntimeType.NUMBER == value_friction_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_friction_value_0 = value_friction_value as number + valueSerializer.writeNumber(value_friction_value_0) + } + else if (((RuntimeType.STRING == value_friction_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_friction_value_1 = value_friction_value as string + valueSerializer.writeString(value_friction_value_1) + } + } + const value_promptText = value.promptText + let value_promptText_type = RuntimeType.UNDEFINED + if (value_promptText != undefined) { + value_promptText_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_promptText_type as int32) + if ((RuntimeType.UNDEFINED) != (value_promptText_type)) { + const value_promptText_value = value_promptText! + let value_promptText_value_type = RuntimeType.UNDEFINED + value_promptText_value_type = runtimeType(value_promptText_value) + if (((RuntimeType.STRING == value_promptText_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_promptText_value_0 = value_promptText_value as string + valueSerializer.writeString(value_promptText_value_0) + } + else if (((RuntimeType.OBJECT == value_promptText_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_promptText_value_1 = value_promptText_value as Resource + valueSerializer.writeResource(value_promptText_value_1) + } + } + const value_builder = value.builder + let value_builder_type = RuntimeType.UNDEFINED + if (value_builder != undefined) { + value_builder_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_builder_type as int32) + if ((RuntimeType.UNDEFINED) != (value_builder_type)) { + const value_builder_value = value_builder! + let value_builder_value_type = RuntimeType.UNDEFINED + value_builder_value_type = runtimeType(value_builder_value) + if (((RuntimeType.FUNCTION == value_builder_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_builder_value_0 = value_builder_value as Object + valueSerializer.writeFunction(value_builder_value_0) + } + else if (((RuntimeType.UNDEFINED == value_builder_value_type))) { + valueSerializer.writeInt8(1 as int32) + } + } + const value_refreshingContent = value.refreshingContent + let value_refreshingContent_type = RuntimeType.UNDEFINED + if (value_refreshingContent != undefined) { + value_refreshingContent_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_refreshingContent_type as int32) + if ((RuntimeType.UNDEFINED) != (value_refreshingContent_type)) { + const value_refreshingContent_value = value_refreshingContent! + valueSerializer.writeCustomObject("ComponentContent", value_refreshingContent_value) + } + } + writeStarStyleOptions(value: StarStyleOptions): void { + let valueSerializer = this + const value_backgroundUri = value.backgroundUri + valueSerializer.writeString(value_backgroundUri) + const value_foregroundUri = value.foregroundUri + valueSerializer.writeString(value_foregroundUri) + const value_secondaryUri = value.secondaryUri + let value_secondaryUri_type = RuntimeType.UNDEFINED + if (value_secondaryUri != undefined) { + value_secondaryUri_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_secondaryUri_type as int32) + if ((RuntimeType.UNDEFINED) != (value_secondaryUri_type)) { + const value_secondaryUri_value = value_secondaryUri! + valueSerializer.writeString(value_secondaryUri_value) + } + } + writeRatingOptions(value: RatingOptions): void { + let valueSerializer = this + const value_rating = value.rating + valueSerializer.writeNumber(value_rating) + const value_indicator = value.indicator + let value_indicator_type = RuntimeType.UNDEFINED + if (value_indicator != undefined) { + value_indicator_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_indicator_type as int32) + if ((RuntimeType.UNDEFINED) != (value_indicator_type)) { + const value_indicator_value = value_indicator! + valueSerializer.writeBoolean(value_indicator_value) + } + } + writeRadioStyle(value: RadioStyle): void { + let valueSerializer = this + const value_checkedBackgroundColor = value.checkedBackgroundColor + let value_checkedBackgroundColor_type = RuntimeType.UNDEFINED + if (value_checkedBackgroundColor != undefined) { + value_checkedBackgroundColor_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_checkedBackgroundColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_checkedBackgroundColor_type)) { + const value_checkedBackgroundColor_value = value_checkedBackgroundColor! + let value_checkedBackgroundColor_value_type = RuntimeType.UNDEFINED + value_checkedBackgroundColor_value_type = runtimeType(value_checkedBackgroundColor_value) + if (((RuntimeType.OBJECT) == (value_checkedBackgroundColor_value_type)) && (value_checkedBackgroundColor_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_checkedBackgroundColor_value_0 = value_checkedBackgroundColor_value as Color + valueSerializer.writeInt32((value_checkedBackgroundColor_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_checkedBackgroundColor_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_checkedBackgroundColor_value_1 = value_checkedBackgroundColor_value as number + valueSerializer.writeNumber(value_checkedBackgroundColor_value_1) + } + else if (((RuntimeType.STRING == value_checkedBackgroundColor_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_checkedBackgroundColor_value_2 = value_checkedBackgroundColor_value as string + valueSerializer.writeString(value_checkedBackgroundColor_value_2) + } + else if (isResource(value_checkedBackgroundColor_value)) { + valueSerializer.writeInt8(3 as int32) + const value_checkedBackgroundColor_value_3 = value_checkedBackgroundColor_value as Resource + valueSerializer.writeResource(value_checkedBackgroundColor_value_3) + } + } + const value_uncheckedBorderColor = value.uncheckedBorderColor + let value_uncheckedBorderColor_type = RuntimeType.UNDEFINED + if (value_uncheckedBorderColor != undefined) { + value_uncheckedBorderColor_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_uncheckedBorderColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_uncheckedBorderColor_type)) { + const value_uncheckedBorderColor_value = value_uncheckedBorderColor! + let value_uncheckedBorderColor_value_type = RuntimeType.UNDEFINED + value_uncheckedBorderColor_value_type = runtimeType(value_uncheckedBorderColor_value) + if (((RuntimeType.OBJECT) == (value_uncheckedBorderColor_value_type)) && (value_uncheckedBorderColor_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_uncheckedBorderColor_value_0 = value_uncheckedBorderColor_value as Color + valueSerializer.writeInt32((value_uncheckedBorderColor_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_uncheckedBorderColor_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_uncheckedBorderColor_value_1 = value_uncheckedBorderColor_value as number + valueSerializer.writeNumber(value_uncheckedBorderColor_value_1) + } + else if (((RuntimeType.STRING == value_uncheckedBorderColor_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_uncheckedBorderColor_value_2 = value_uncheckedBorderColor_value as string + valueSerializer.writeString(value_uncheckedBorderColor_value_2) + } + else if (isResource(value_uncheckedBorderColor_value)) { + valueSerializer.writeInt8(3 as int32) + const value_uncheckedBorderColor_value_3 = value_uncheckedBorderColor_value as Resource + valueSerializer.writeResource(value_uncheckedBorderColor_value_3) + } + } + const value_indicatorColor = value.indicatorColor + let value_indicatorColor_type = RuntimeType.UNDEFINED + if (value_indicatorColor != undefined) { + value_indicatorColor_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_indicatorColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_indicatorColor_type)) { + const value_indicatorColor_value = value_indicatorColor! + let value_indicatorColor_value_type = RuntimeType.UNDEFINED + value_indicatorColor_value_type = runtimeType(value_indicatorColor_value) + if (((RuntimeType.OBJECT) == (value_indicatorColor_value_type)) && (value_indicatorColor_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_indicatorColor_value_0 = value_indicatorColor_value as Color + valueSerializer.writeInt32((value_indicatorColor_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_indicatorColor_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_indicatorColor_value_1 = value_indicatorColor_value as number + valueSerializer.writeNumber(value_indicatorColor_value_1) + } + else if (((RuntimeType.STRING == value_indicatorColor_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_indicatorColor_value_2 = value_indicatorColor_value as string + valueSerializer.writeString(value_indicatorColor_value_2) + } + else if (isResource(value_indicatorColor_value)) { + valueSerializer.writeInt8(3 as int32) + const value_indicatorColor_value_3 = value_indicatorColor_value as Resource + valueSerializer.writeResource(value_indicatorColor_value_3) + } + } + } + writeRadioOptions(value: RadioOptions): void { + let valueSerializer = this + const value_group = value.group + valueSerializer.writeString(value_group) + const value_value = value.value + valueSerializer.writeString(value_value) + const value_indicatorType = value.indicatorType + let value_indicatorType_type = RuntimeType.UNDEFINED + if (value_indicatorType != undefined) { + value_indicatorType_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_indicatorType_type as int32) + if ((RuntimeType.UNDEFINED) != (value_indicatorType_type)) { + const value_indicatorType_value = value_indicatorType! + valueSerializer.writeInt32((value_indicatorType_value.value as int32)) + } + const value_indicatorBuilder = value.indicatorBuilder + let value_indicatorBuilder_type = RuntimeType.UNDEFINED + if (value_indicatorBuilder != undefined) { + value_indicatorBuilder_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_indicatorBuilder_type as int32) + if ((RuntimeType.UNDEFINED) != (value_indicatorBuilder_type)) { + const value_indicatorBuilder_value = value_indicatorBuilder! + let value_indicatorBuilder_value_type = RuntimeType.UNDEFINED + value_indicatorBuilder_value_type = runtimeType(value_indicatorBuilder_value) + if (((RuntimeType.FUNCTION == value_indicatorBuilder_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_indicatorBuilder_value_0 = value_indicatorBuilder_value as Object + valueSerializer.writeFunction(value_indicatorBuilder_value_0) + } + else if (((RuntimeType.UNDEFINED == value_indicatorBuilder_value_type))) { + valueSerializer.writeInt8(1 as int32) + } + } + } + writePasteButtonOptions(value: PasteButtonOptions): void { + let valueSerializer = this + const value_icon = value.icon + let value_icon_type = RuntimeType.UNDEFINED + if (value_icon != undefined) { + value_icon_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_icon_type as int32) + if ((RuntimeType.UNDEFINED) != (value_icon_type)) { + const value_icon_value = value_icon! + valueSerializer.writeInt32((value_icon_value.value as int32)) + } + const value_text = value.text + let value_text_type = RuntimeType.UNDEFINED + if (value_text != undefined) { + value_text_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_text_type as int32) + if ((RuntimeType.UNDEFINED) != (value_text_type)) { + const value_text_value = value_text! + valueSerializer.writeInt32((value_text_value.value as int32)) + } + const value_buttonType = value.buttonType + let value_buttonType_type = RuntimeType.UNDEFINED + if (value_buttonType != undefined) { + value_buttonType_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_buttonType_type as int32) + if ((RuntimeType.UNDEFINED) != (value_buttonType_type)) { + const value_buttonType_value = value_buttonType! + valueSerializer.writeInt32((value_buttonType_value.value as int32)) + } + } + writeNavigationToolbarOptions(value: NavigationToolbarOptions): void { + let valueSerializer = this + const value_backgroundColor = value.backgroundColor + let value_backgroundColor_type = RuntimeType.UNDEFINED + if (value_backgroundColor != undefined) { + value_backgroundColor_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_backgroundColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_backgroundColor_type)) { + const value_backgroundColor_value = value_backgroundColor! + let value_backgroundColor_value_type = RuntimeType.UNDEFINED + value_backgroundColor_value_type = runtimeType(value_backgroundColor_value) + if (((RuntimeType.OBJECT) == (value_backgroundColor_value_type)) && (value_backgroundColor_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_backgroundColor_value_0 = value_backgroundColor_value as Color + valueSerializer.writeInt32((value_backgroundColor_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_backgroundColor_value_1 = value_backgroundColor_value as number + valueSerializer.writeNumber(value_backgroundColor_value_1) + } + else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_backgroundColor_value_2 = value_backgroundColor_value as string + valueSerializer.writeString(value_backgroundColor_value_2) + } + else if (isResource(value_backgroundColor_value)) { + valueSerializer.writeInt8(3 as int32) + const value_backgroundColor_value_3 = value_backgroundColor_value as Resource + valueSerializer.writeResource(value_backgroundColor_value_3) + } + } + const value_backgroundBlurStyle = value.backgroundBlurStyle + let value_backgroundBlurStyle_type = RuntimeType.UNDEFINED + if (value_backgroundBlurStyle != undefined) { + value_backgroundBlurStyle_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_backgroundBlurStyle_type as int32) + if ((RuntimeType.UNDEFINED) != (value_backgroundBlurStyle_type)) { + const value_backgroundBlurStyle_value = value_backgroundBlurStyle! + valueSerializer.writeInt32((value_backgroundBlurStyle_value.value as int32)) + } + } + writeToolbarItem(value: ToolbarItem): void { + let valueSerializer = this + const value_value = value.value + let value_value_type = RuntimeType.UNDEFINED + value_value_type = runtimeType(value_value) + if (((RuntimeType.STRING == value_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_value_0 = value_value as string + valueSerializer.writeString(value_value_0) + } + else if (((RuntimeType.OBJECT == value_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_value_1 = value_value as Resource + valueSerializer.writeResource(value_value_1) + } + const value_icon = value.icon + let value_icon_type = RuntimeType.UNDEFINED + if (value_icon != undefined) { + value_icon_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_icon_type as int32) + if ((RuntimeType.UNDEFINED) != (value_icon_type)) { + const value_icon_value = value_icon! + let value_icon_value_type = RuntimeType.UNDEFINED + value_icon_value_type = runtimeType(value_icon_value) + if (((RuntimeType.STRING == value_icon_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_icon_value_0 = value_icon_value as string + valueSerializer.writeString(value_icon_value_0) + } + else if (((RuntimeType.OBJECT == value_icon_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_icon_value_1 = value_icon_value as Resource + valueSerializer.writeResource(value_icon_value_1) + } + } + const value_symbolIcon = value.symbolIcon + let value_symbolIcon_type = RuntimeType.UNDEFINED + if (value_symbolIcon != undefined) { + value_symbolIcon_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_symbolIcon_type as int32) + if ((RuntimeType.UNDEFINED) != (value_symbolIcon_type)) { + const value_symbolIcon_value = value_symbolIcon! + valueSerializer.writeCustomObject("SymbolGlyphModifier", value_symbolIcon_value) + } + const value_action = value.action + let value_action_type = RuntimeType.UNDEFINED + if (value_action != undefined) { + value_action_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_action_type as int32) + if ((RuntimeType.UNDEFINED) != (value_action_type)) { + const value_action_value = value_action! + valueSerializer.writeFunction(value_action_value) + } + const value_status = value.status + let value_status_type = RuntimeType.UNDEFINED + if (value_status != undefined) { + value_status_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_status_type as int32) + if ((RuntimeType.UNDEFINED) != (value_status_type)) { + const value_status_value = value_status! + valueSerializer.writeInt32((value_status_value.value as int32)) + } + const value_activeIcon = value.activeIcon + let value_activeIcon_type = RuntimeType.UNDEFINED + if (value_activeIcon != undefined) { + value_activeIcon_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_activeIcon_type as int32) + if ((RuntimeType.UNDEFINED) != (value_activeIcon_type)) { + const value_activeIcon_value = value_activeIcon! + let value_activeIcon_value_type = RuntimeType.UNDEFINED + value_activeIcon_value_type = runtimeType(value_activeIcon_value) + if (((RuntimeType.STRING == value_activeIcon_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_activeIcon_value_0 = value_activeIcon_value as string + valueSerializer.writeString(value_activeIcon_value_0) + } + else if (((RuntimeType.OBJECT == value_activeIcon_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_activeIcon_value_1 = value_activeIcon_value as Resource + valueSerializer.writeResource(value_activeIcon_value_1) + } + } + const value_activeSymbolIcon = value.activeSymbolIcon + let value_activeSymbolIcon_type = RuntimeType.UNDEFINED + if (value_activeSymbolIcon != undefined) { + value_activeSymbolIcon_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_activeSymbolIcon_type as int32) + if ((RuntimeType.UNDEFINED) != (value_activeSymbolIcon_type)) { + const value_activeSymbolIcon_value = value_activeSymbolIcon! + valueSerializer.writeCustomObject("SymbolGlyphModifier", value_activeSymbolIcon_value) + } + } + writeRouteInfo(value: RouteInfo): void { + let valueSerializer = this + const value_name = value.name + valueSerializer.writeString(value_name) + const value_param = value.param + let value_param_type = RuntimeType.UNDEFINED + if (value_param != undefined) { + value_param_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_param_type as int32) + if ((RuntimeType.UNDEFINED) != (value_param_type)) { + const value_param_value = value_param! + valueSerializer.writeCustomObject("Any", value_param_value) + } + } + writeNavigationMenuItem(value: NavigationMenuItem): void { + let valueSerializer = this + const value_value = value.value + let value_value_type = RuntimeType.UNDEFINED + value_value_type = runtimeType(value_value) + if (((RuntimeType.STRING == value_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_value_0 = value_value as string + valueSerializer.writeString(value_value_0) + } + else if (((RuntimeType.OBJECT == value_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_value_1 = value_value as Resource + valueSerializer.writeResource(value_value_1) + } + const value_icon = value.icon + let value_icon_type = RuntimeType.UNDEFINED + if (value_icon != undefined) { + value_icon_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_icon_type as int32) + if ((RuntimeType.UNDEFINED) != (value_icon_type)) { + const value_icon_value = value_icon! + let value_icon_value_type = RuntimeType.UNDEFINED + value_icon_value_type = runtimeType(value_icon_value) + if (((RuntimeType.STRING == value_icon_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_icon_value_0 = value_icon_value as string + valueSerializer.writeString(value_icon_value_0) + } + else if (((RuntimeType.OBJECT == value_icon_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_icon_value_1 = value_icon_value as Resource + valueSerializer.writeResource(value_icon_value_1) + } + } + const value_symbolIcon = value.symbolIcon + let value_symbolIcon_type = RuntimeType.UNDEFINED + if (value_symbolIcon != undefined) { + value_symbolIcon_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_symbolIcon_type as int32) + if ((RuntimeType.UNDEFINED) != (value_symbolIcon_type)) { + const value_symbolIcon_value = value_symbolIcon! + valueSerializer.writeCustomObject("SymbolGlyphModifier", value_symbolIcon_value) + } + const value_isEnabled = value.isEnabled + let value_isEnabled_type = RuntimeType.UNDEFINED + if (value_isEnabled != undefined) { + value_isEnabled_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_isEnabled_type as int32) + if ((RuntimeType.UNDEFINED) != (value_isEnabled_type)) { + const value_isEnabled_value = value_isEnabled! + valueSerializer.writeBoolean(value_isEnabled_value) + } + const value_action = value.action + let value_action_type = RuntimeType.UNDEFINED + if (value_action != undefined) { + value_action_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_action_type as int32) + if ((RuntimeType.UNDEFINED) != (value_action_type)) { + const value_action_value = value_action! + valueSerializer.writeFunction(value_action_value) + } + } + writeNavigationTitleOptions(value: NavigationTitleOptions): void { + let valueSerializer = this + const value_backgroundColor = value.backgroundColor + let value_backgroundColor_type = RuntimeType.UNDEFINED + if (value_backgroundColor != undefined) { + value_backgroundColor_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_backgroundColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_backgroundColor_type)) { + const value_backgroundColor_value = value_backgroundColor! + let value_backgroundColor_value_type = RuntimeType.UNDEFINED + value_backgroundColor_value_type = runtimeType(value_backgroundColor_value) + if (((RuntimeType.OBJECT) == (value_backgroundColor_value_type)) && (value_backgroundColor_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_backgroundColor_value_0 = value_backgroundColor_value as Color + valueSerializer.writeInt32((value_backgroundColor_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_backgroundColor_value_1 = value_backgroundColor_value as number + valueSerializer.writeNumber(value_backgroundColor_value_1) + } + else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_backgroundColor_value_2 = value_backgroundColor_value as string + valueSerializer.writeString(value_backgroundColor_value_2) + } + else if (isResource(value_backgroundColor_value)) { + valueSerializer.writeInt8(3 as int32) + const value_backgroundColor_value_3 = value_backgroundColor_value as Resource + valueSerializer.writeResource(value_backgroundColor_value_3) + } + } + const value_backgroundBlurStyle = value.backgroundBlurStyle + let value_backgroundBlurStyle_type = RuntimeType.UNDEFINED + if (value_backgroundBlurStyle != undefined) { + value_backgroundBlurStyle_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_backgroundBlurStyle_type as int32) + if ((RuntimeType.UNDEFINED) != (value_backgroundBlurStyle_type)) { + const value_backgroundBlurStyle_value = value_backgroundBlurStyle! + valueSerializer.writeInt32((value_backgroundBlurStyle_value.value as int32)) + } + const value_barStyle = value.barStyle + let value_barStyle_type = RuntimeType.UNDEFINED + if (value_barStyle != undefined) { + value_barStyle_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_barStyle_type as int32) + if ((RuntimeType.UNDEFINED) != (value_barStyle_type)) { + const value_barStyle_value = value_barStyle! + valueSerializer.writeInt32((value_barStyle_value.value as int32)) + } + const value_paddingStart = value.paddingStart + let value_paddingStart_type = RuntimeType.UNDEFINED + if (value_paddingStart != undefined) { + value_paddingStart_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_paddingStart_type as int32) + if ((RuntimeType.UNDEFINED) != (value_paddingStart_type)) { + const value_paddingStart_value = value_paddingStart! + valueSerializer.writeCustomObject("LengthMetrics", value_paddingStart_value) + } + const value_paddingEnd = value.paddingEnd + let value_paddingEnd_type = RuntimeType.UNDEFINED + if (value_paddingEnd != undefined) { + value_paddingEnd_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_paddingEnd_type as int32) + if ((RuntimeType.UNDEFINED) != (value_paddingEnd_type)) { + const value_paddingEnd_value = value_paddingEnd! + valueSerializer.writeCustomObject("LengthMetrics", value_paddingEnd_value) + } + const value_mainTitleModifier = value.mainTitleModifier + let value_mainTitleModifier_type = RuntimeType.UNDEFINED + if (value_mainTitleModifier != undefined) { + value_mainTitleModifier_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_mainTitleModifier_type as int32) + if ((RuntimeType.UNDEFINED) != (value_mainTitleModifier_type)) { + const value_mainTitleModifier_value = value_mainTitleModifier! + valueSerializer.writeCustomObject("TextModifier", value_mainTitleModifier_value) + } + const value_subTitleModifier = value.subTitleModifier + let value_subTitleModifier_type = RuntimeType.UNDEFINED + if (value_subTitleModifier != undefined) { + value_subTitleModifier_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_subTitleModifier_type as int32) + if ((RuntimeType.UNDEFINED) != (value_subTitleModifier_type)) { + const value_subTitleModifier_value = value_subTitleModifier! + valueSerializer.writeCustomObject("TextModifier", value_subTitleModifier_value) + } + const value_enableHoverMode = value.enableHoverMode + let value_enableHoverMode_type = RuntimeType.UNDEFINED + if (value_enableHoverMode != undefined) { + value_enableHoverMode_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_enableHoverMode_type as int32) + if ((RuntimeType.UNDEFINED) != (value_enableHoverMode_type)) { + const value_enableHoverMode_value = value_enableHoverMode! + valueSerializer.writeBoolean(value_enableHoverMode_value) + } + } + writeMenuItemGroupOptions(value: MenuItemGroupOptions): void { + let valueSerializer = this + const value_header = value.header + let value_header_type = RuntimeType.UNDEFINED + if (value_header != undefined) { + value_header_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_header_type as int32) + if ((RuntimeType.UNDEFINED) != (value_header_type)) { + const value_header_value = value_header! + let value_header_value_type = RuntimeType.UNDEFINED + value_header_value_type = runtimeType(value_header_value) + if (((RuntimeType.STRING == value_header_value_type)) || ((RuntimeType.OBJECT == value_header_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_header_value_0 = value_header_value as ResourceStr + let value_header_value_0_type = RuntimeType.UNDEFINED + value_header_value_0_type = runtimeType(value_header_value_0) + if (((RuntimeType.STRING == value_header_value_0_type))) { + valueSerializer.writeInt8(0 as int32) + const value_header_value_0_0 = value_header_value_0 as string + valueSerializer.writeString(value_header_value_0_0) + } + else if (((RuntimeType.OBJECT == value_header_value_0_type))) { + valueSerializer.writeInt8(1 as int32) + const value_header_value_0_1 = value_header_value_0 as Resource + valueSerializer.writeResource(value_header_value_0_1) + } + } + else if (((RuntimeType.FUNCTION == value_header_value_type)) || ((RuntimeType.UNDEFINED == value_header_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_header_value_1 = value_header_value as CustomBuilder + let value_header_value_1_type = RuntimeType.UNDEFINED + value_header_value_1_type = runtimeType(value_header_value_1) + if (((RuntimeType.FUNCTION == value_header_value_1_type))) { + valueSerializer.writeInt8(0 as int32) + const value_header_value_1_0 = value_header_value_1 as Object + valueSerializer.writeFunction(value_header_value_1_0) + } + else if (((RuntimeType.UNDEFINED == value_header_value_1_type))) { + valueSerializer.writeInt8(1 as int32) + } + } + } + const value_footer = value.footer + let value_footer_type = RuntimeType.UNDEFINED + if (value_footer != undefined) { + value_footer_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_footer_type as int32) + if ((RuntimeType.UNDEFINED) != (value_footer_type)) { + const value_footer_value = value_footer! + let value_footer_value_type = RuntimeType.UNDEFINED + value_footer_value_type = runtimeType(value_footer_value) + if (((RuntimeType.STRING == value_footer_value_type)) || ((RuntimeType.OBJECT == value_footer_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_footer_value_0 = value_footer_value as ResourceStr + let value_footer_value_0_type = RuntimeType.UNDEFINED + value_footer_value_0_type = runtimeType(value_footer_value_0) + if (((RuntimeType.STRING == value_footer_value_0_type))) { + valueSerializer.writeInt8(0 as int32) + const value_footer_value_0_0 = value_footer_value_0 as string + valueSerializer.writeString(value_footer_value_0_0) + } + else if (((RuntimeType.OBJECT == value_footer_value_0_type))) { + valueSerializer.writeInt8(1 as int32) + const value_footer_value_0_1 = value_footer_value_0 as Resource + valueSerializer.writeResource(value_footer_value_0_1) + } + } + else if (((RuntimeType.FUNCTION == value_footer_value_type)) || ((RuntimeType.UNDEFINED == value_footer_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_footer_value_1 = value_footer_value as CustomBuilder + let value_footer_value_1_type = RuntimeType.UNDEFINED + value_footer_value_1_type = runtimeType(value_footer_value_1) + if (((RuntimeType.FUNCTION == value_footer_value_1_type))) { + valueSerializer.writeInt8(0 as int32) + const value_footer_value_1_0 = value_footer_value_1 as Object + valueSerializer.writeFunction(value_footer_value_1_0) + } + else if (((RuntimeType.UNDEFINED == value_footer_value_1_type))) { + valueSerializer.writeInt8(1 as int32) + } + } + } + } + writeMarqueeOptions(value: MarqueeOptions): void { + let valueSerializer = this + const value_start = value.start + valueSerializer.writeBoolean(value_start) + const value_step = value.step + let value_step_type = RuntimeType.UNDEFINED + if (value_step != undefined) { + value_step_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_step_type as int32) + if ((RuntimeType.UNDEFINED) != (value_step_type)) { + const value_step_value = value_step! + valueSerializer.writeNumber(value_step_value) + } + const value_loop = value.loop + let value_loop_type = RuntimeType.UNDEFINED + if (value_loop != undefined) { + value_loop_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_loop_type as int32) + if ((RuntimeType.UNDEFINED) != (value_loop_type)) { + const value_loop_value = value_loop! + valueSerializer.writeNumber(value_loop_value) + } + const value_fromStart = value.fromStart + let value_fromStart_type = RuntimeType.UNDEFINED + if (value_fromStart != undefined) { + value_fromStart_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_fromStart_type as int32) + if ((RuntimeType.UNDEFINED) != (value_fromStart_type)) { + const value_fromStart_value = value_fromStart! + valueSerializer.writeBoolean(value_fromStart_value) + } + const value_src = value.src + valueSerializer.writeString(value_src) + } + writeLocationButtonOptions(value: LocationButtonOptions): void { + let valueSerializer = this + const value_icon = value.icon + let value_icon_type = RuntimeType.UNDEFINED + if (value_icon != undefined) { + value_icon_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_icon_type as int32) + if ((RuntimeType.UNDEFINED) != (value_icon_type)) { + const value_icon_value = value_icon! + valueSerializer.writeInt32((value_icon_value.value as int32)) + } + const value_text = value.text + let value_text_type = RuntimeType.UNDEFINED + if (value_text != undefined) { + value_text_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_text_type as int32) + if ((RuntimeType.UNDEFINED) != (value_text_type)) { + const value_text_value = value_text! + valueSerializer.writeInt32((value_text_value.value as int32)) + } + const value_buttonType = value.buttonType + let value_buttonType_type = RuntimeType.UNDEFINED + if (value_buttonType != undefined) { + value_buttonType_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_buttonType_type as int32) + if ((RuntimeType.UNDEFINED) != (value_buttonType_type)) { + const value_buttonType_value = value_buttonType! + valueSerializer.writeInt32((value_buttonType_value.value as int32)) + } + } + writeListItemGroupOptions(value: ListItemGroupOptions): void { + let valueSerializer = this + const value_header = value.header + let value_header_type = RuntimeType.UNDEFINED + if (value_header != undefined) { + value_header_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_header_type as int32) + if ((RuntimeType.UNDEFINED) != (value_header_type)) { + const value_header_value = value_header! + let value_header_value_type = RuntimeType.UNDEFINED + value_header_value_type = runtimeType(value_header_value) + if (((RuntimeType.FUNCTION == value_header_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_header_value_0 = value_header_value as Object + valueSerializer.writeFunction(value_header_value_0) + } + else if (((RuntimeType.UNDEFINED == value_header_value_type))) { + valueSerializer.writeInt8(1 as int32) + } + } + const value_headerComponent = value.headerComponent + let value_headerComponent_type = RuntimeType.UNDEFINED + if (value_headerComponent != undefined) { + value_headerComponent_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_headerComponent_type as int32) + if ((RuntimeType.UNDEFINED) != (value_headerComponent_type)) { + const value_headerComponent_value = value_headerComponent! + valueSerializer.writeCustomObject("ComponentContent", value_headerComponent_value) + } + const value_footer = value.footer + let value_footer_type = RuntimeType.UNDEFINED + if (value_footer != undefined) { + value_footer_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_footer_type as int32) + if ((RuntimeType.UNDEFINED) != (value_footer_type)) { + const value_footer_value = value_footer! + let value_footer_value_type = RuntimeType.UNDEFINED + value_footer_value_type = runtimeType(value_footer_value) + if (((RuntimeType.FUNCTION == value_footer_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_footer_value_0 = value_footer_value as Object + valueSerializer.writeFunction(value_footer_value_0) + } + else if (((RuntimeType.UNDEFINED == value_footer_value_type))) { + valueSerializer.writeInt8(1 as int32) + } + } + const value_footerComponent = value.footerComponent + let value_footerComponent_type = RuntimeType.UNDEFINED + if (value_footerComponent != undefined) { + value_footerComponent_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_footerComponent_type as int32) + if ((RuntimeType.UNDEFINED) != (value_footerComponent_type)) { + const value_footerComponent_value = value_footerComponent! + valueSerializer.writeCustomObject("ComponentContent", value_footerComponent_value) + } + const value_space = value.space + let value_space_type = RuntimeType.UNDEFINED + if (value_space != undefined) { + value_space_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_space_type as int32) + if ((RuntimeType.UNDEFINED) != (value_space_type)) { + const value_space_value = value_space! + let value_space_value_type = RuntimeType.UNDEFINED + value_space_value_type = runtimeType(value_space_value) + if (((RuntimeType.NUMBER == value_space_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_space_value_0 = value_space_value as number + valueSerializer.writeNumber(value_space_value_0) + } + else if (((RuntimeType.STRING == value_space_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_space_value_1 = value_space_value as string + valueSerializer.writeString(value_space_value_1) + } + } + const value_style = value.style + let value_style_type = RuntimeType.UNDEFINED + if (value_style != undefined) { + value_style_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_style_type as int32) + if ((RuntimeType.UNDEFINED) != (value_style_type)) { + const value_style_value = value_style! + valueSerializer.writeInt32((value_style_value.value as int32)) + } + } + writeSwipeActionOptions(value: SwipeActionOptions): void { + let valueSerializer = this + const value_start = value.start + let value_start_type = RuntimeType.UNDEFINED + if (value_start != undefined) { + value_start_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_start_type as int32) + if ((RuntimeType.UNDEFINED) != (value_start_type)) { + const value_start_value = value_start! + let value_start_value_type = RuntimeType.UNDEFINED + value_start_value_type = runtimeType(value_start_value) + if (((RuntimeType.OBJECT == value_start_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_start_value_1 = value_start_value as SwipeActionItem + valueSerializer.writeSwipeActionItem(value_start_value_1) + } + else if (((RuntimeType.FUNCTION == value_start_value_type)) || ((RuntimeType.UNDEFINED == value_start_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_start_value_0 = value_start_value as CustomBuilder + let value_start_value_0_type = RuntimeType.UNDEFINED + value_start_value_0_type = runtimeType(value_start_value_0) + if (((RuntimeType.FUNCTION == value_start_value_0_type))) { + valueSerializer.writeInt8(0 as int32) + const value_start_value_0_0 = value_start_value_0 as Object + valueSerializer.writeFunction(value_start_value_0_0) + } + else if (((RuntimeType.UNDEFINED == value_start_value_0_type))) { + valueSerializer.writeInt8(1 as int32) + } + } + } + const value_end = value.end + let value_end_type = RuntimeType.UNDEFINED + if (value_end != undefined) { + value_end_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_end_type as int32) + if ((RuntimeType.UNDEFINED) != (value_end_type)) { + const value_end_value = value_end! + let value_end_value_type = RuntimeType.UNDEFINED + value_end_value_type = runtimeType(value_end_value) + if (((RuntimeType.OBJECT == value_end_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_end_value_1 = value_end_value as SwipeActionItem + valueSerializer.writeSwipeActionItem(value_end_value_1) + } + else if (((RuntimeType.FUNCTION == value_end_value_type)) || ((RuntimeType.UNDEFINED == value_end_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_end_value_0 = value_end_value as CustomBuilder + let value_end_value_0_type = RuntimeType.UNDEFINED + value_end_value_0_type = runtimeType(value_end_value_0) + if (((RuntimeType.FUNCTION == value_end_value_0_type))) { + valueSerializer.writeInt8(0 as int32) + const value_end_value_0_0 = value_end_value_0 as Object + valueSerializer.writeFunction(value_end_value_0_0) + } + else if (((RuntimeType.UNDEFINED == value_end_value_0_type))) { + valueSerializer.writeInt8(1 as int32) + } + } + } + const value_edgeEffect = value.edgeEffect + let value_edgeEffect_type = RuntimeType.UNDEFINED + if (value_edgeEffect != undefined) { + value_edgeEffect_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_edgeEffect_type as int32) + if ((RuntimeType.UNDEFINED) != (value_edgeEffect_type)) { + const value_edgeEffect_value = value_edgeEffect! + valueSerializer.writeInt32((value_edgeEffect_value.value as int32)) + } + const value_onOffsetChange = value.onOffsetChange + let value_onOffsetChange_type = RuntimeType.UNDEFINED + if (value_onOffsetChange != undefined) { + value_onOffsetChange_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_onOffsetChange_type as int32) + if ((RuntimeType.UNDEFINED) != (value_onOffsetChange_type)) { + const value_onOffsetChange_value = value_onOffsetChange! + valueSerializer.writeFunction(value_onOffsetChange_value) + } + } + writeListItemOptions(value: ListItemOptions): void { + let valueSerializer = this + const value_style = value.style + let value_style_type = RuntimeType.UNDEFINED + if (value_style != undefined) { + value_style_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_style_type as int32) + if ((RuntimeType.UNDEFINED) != (value_style_type)) { + const value_style_value = value_style! + valueSerializer.writeInt32((value_style_value.value as int32)) + } + } + writeChainAnimationOptions(value: ChainAnimationOptions): void { + let valueSerializer = this + const value_minSpace = value.minSpace + valueSerializer.writeLength(value_minSpace); + const value_maxSpace = value.maxSpace + valueSerializer.writeLength(value_maxSpace); + const value_conductivity = value.conductivity + let value_conductivity_type = RuntimeType.UNDEFINED + if (value_conductivity != undefined) { + value_conductivity_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_conductivity_type as int32) + if ((RuntimeType.UNDEFINED) != (value_conductivity_type)) { + const value_conductivity_value = value_conductivity! + valueSerializer.writeNumber(value_conductivity_value) + } + const value_intensity = value.intensity + let value_intensity_type = RuntimeType.UNDEFINED + if (value_intensity != undefined) { + value_intensity_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_intensity_type as int32) + if ((RuntimeType.UNDEFINED) != (value_intensity_type)) { + const value_intensity_value = value_intensity! + valueSerializer.writeNumber(value_intensity_value) + } + const value_edgeEffect = value.edgeEffect + let value_edgeEffect_type = RuntimeType.UNDEFINED + if (value_edgeEffect != undefined) { + value_edgeEffect_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_edgeEffect_type as int32) + if ((RuntimeType.UNDEFINED) != (value_edgeEffect_type)) { + const value_edgeEffect_value = value_edgeEffect! + valueSerializer.writeInt32((value_edgeEffect_value.value as int32)) + } + const value_stiffness = value.stiffness + let value_stiffness_type = RuntimeType.UNDEFINED + if (value_stiffness != undefined) { + value_stiffness_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_stiffness_type as int32) + if ((RuntimeType.UNDEFINED) != (value_stiffness_type)) { + const value_stiffness_value = value_stiffness! + valueSerializer.writeNumber(value_stiffness_value) + } + const value_damping = value.damping + let value_damping_type = RuntimeType.UNDEFINED + if (value_damping != undefined) { + value_damping_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_damping_type as int32) + if ((RuntimeType.UNDEFINED) != (value_damping_type)) { + const value_damping_value = value_damping! + valueSerializer.writeNumber(value_damping_value) + } + } + writeListOptions(value: ListOptions): void { + let valueSerializer = this + const value_initialIndex = value.initialIndex + let value_initialIndex_type = RuntimeType.UNDEFINED + if (value_initialIndex != undefined) { + value_initialIndex_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_initialIndex_type as int32) + if ((RuntimeType.UNDEFINED) != (value_initialIndex_type)) { + const value_initialIndex_value = value_initialIndex! + valueSerializer.writeNumber(value_initialIndex_value) + } + const value_space = value.space + let value_space_type = RuntimeType.UNDEFINED + if (value_space != undefined) { + value_space_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_space_type as int32) + if ((RuntimeType.UNDEFINED) != (value_space_type)) { + const value_space_value = value_space! + let value_space_value_type = RuntimeType.UNDEFINED + value_space_value_type = runtimeType(value_space_value) + if (((RuntimeType.NUMBER == value_space_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_space_value_0 = value_space_value as number + valueSerializer.writeNumber(value_space_value_0) + } + else if (((RuntimeType.STRING == value_space_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_space_value_1 = value_space_value as string + valueSerializer.writeString(value_space_value_1) + } + } + const value_scroller = value.scroller + let value_scroller_type = RuntimeType.UNDEFINED + if (value_scroller != undefined) { + value_scroller_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_scroller_type as int32) + if ((RuntimeType.UNDEFINED) != (value_scroller_type)) { + const value_scroller_value = value_scroller! + valueSerializer.writeMaterialized(value_scroller_value) + } + } + writeImageFrameInfo(value: ImageFrameInfo): void { + let valueSerializer = this + const value_src = value.src + let value_src_type = RuntimeType.UNDEFINED + value_src_type = runtimeType(value_src) + if (((RuntimeType.STRING == value_src_type))) { + valueSerializer.writeInt8(0 as int32) + const value_src_0 = value_src as string + valueSerializer.writeString(value_src_0) + } + else if (isResource(value_src)) { + valueSerializer.writeInt8(1 as int32) + const value_src_1 = value_src as Resource + valueSerializer.writeResource(value_src_1) + } + else if (((RuntimeType.OBJECT) == (value_src_type)) && (isPixelMap(value_src))) { + valueSerializer.writeInt8(2 as int32) + const value_src_2 = value_src as PixelMap + valueSerializer.writeCustomObject("PixelMap", value_src_2) + } + const value_width = value.width + let value_width_type = RuntimeType.UNDEFINED + if (value_width != undefined) { + value_width_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_width_type as int32) + if ((RuntimeType.UNDEFINED) != (value_width_type)) { + const value_width_value = value_width! + let value_width_value_type = RuntimeType.UNDEFINED + value_width_value_type = runtimeType(value_width_value) + if (((RuntimeType.NUMBER == value_width_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_width_value_0 = value_width_value as number + valueSerializer.writeNumber(value_width_value_0) + } + else if (((RuntimeType.STRING == value_width_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_width_value_1 = value_width_value as string + valueSerializer.writeString(value_width_value_1) + } + } + const value_height = value.height + let value_height_type = RuntimeType.UNDEFINED + if (value_height != undefined) { + value_height_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_height_type as int32) + if ((RuntimeType.UNDEFINED) != (value_height_type)) { + const value_height_value = value_height! + let value_height_value_type = RuntimeType.UNDEFINED + value_height_value_type = runtimeType(value_height_value) + if (((RuntimeType.NUMBER == value_height_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_height_value_0 = value_height_value as number + valueSerializer.writeNumber(value_height_value_0) + } + else if (((RuntimeType.STRING == value_height_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_height_value_1 = value_height_value as string + valueSerializer.writeString(value_height_value_1) + } + } + const value_top = value.top + let value_top_type = RuntimeType.UNDEFINED + if (value_top != undefined) { + value_top_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_top_type as int32) + if ((RuntimeType.UNDEFINED) != (value_top_type)) { + const value_top_value = value_top! + let value_top_value_type = RuntimeType.UNDEFINED + value_top_value_type = runtimeType(value_top_value) + if (((RuntimeType.NUMBER == value_top_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_top_value_0 = value_top_value as number + valueSerializer.writeNumber(value_top_value_0) + } + else if (((RuntimeType.STRING == value_top_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_top_value_1 = value_top_value as string + valueSerializer.writeString(value_top_value_1) + } + } + const value_left = value.left + let value_left_type = RuntimeType.UNDEFINED + if (value_left != undefined) { + value_left_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_left_type as int32) + if ((RuntimeType.UNDEFINED) != (value_left_type)) { + const value_left_value = value_left! + let value_left_value_type = RuntimeType.UNDEFINED + value_left_value_type = runtimeType(value_left_value) + if (((RuntimeType.NUMBER == value_left_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_left_value_0 = value_left_value as number + valueSerializer.writeNumber(value_left_value_0) + } + else if (((RuntimeType.STRING == value_left_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_left_value_1 = value_left_value as string + valueSerializer.writeString(value_left_value_1) + } + } + const value_duration = value.duration + let value_duration_type = RuntimeType.UNDEFINED + if (value_duration != undefined) { + value_duration_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_duration_type as int32) + if ((RuntimeType.UNDEFINED) != (value_duration_type)) { + const value_duration_value = value_duration! + valueSerializer.writeNumber(value_duration_value) + } + } + writeImageAnalyzerConfig(value: ImageAnalyzerConfig): void { + let valueSerializer = this + const value_types = value.types + valueSerializer.writeInt8(runtimeType(value_types) as int32) + valueSerializer.writeInt32(value_types.length as int32) + for (let i = 0; i < value_types.length; i++) { + const value_types_element = value_types[i] + valueSerializer.writeInt32((value_types_element.value as int32)) + } + } + writeImageSourceSize(value: ImageSourceSize): void { + let valueSerializer = this + const value_width = value.width + valueSerializer.writeNumber(value_width) + const value_height = value.height + valueSerializer.writeNumber(value_height) + } + writeGridRowOptions(value: GridRowOptions): void { + let valueSerializer = this + const value_gutter = value.gutter + let value_gutter_type = RuntimeType.UNDEFINED + if (value_gutter != undefined) { + value_gutter_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_gutter_type as int32) + if ((RuntimeType.UNDEFINED) != (value_gutter_type)) { + const value_gutter_value = value_gutter! + let value_gutter_value_type = RuntimeType.UNDEFINED + value_gutter_value_type = runtimeType(value_gutter_value) + if (((RuntimeType.NUMBER) == (value_gutter_value_type)) || ((RuntimeType.STRING) == (value_gutter_value_type)) || (((RuntimeType.OBJECT) == (value_gutter_value_type)) && (isResource(value_gutter_value)))) { + valueSerializer.writeInt8(0 as int32) + const value_gutter_value_0 = value_gutter_value as Length + valueSerializer.writeLength(value_gutter_value_0); + } + else if (TypeChecker.isGutterOption(value_gutter_value, false, false)) { + valueSerializer.writeInt8(1 as int32) + const value_gutter_value_1 = value_gutter_value as GutterOption + valueSerializer.writeGutterOption(value_gutter_value_1) + } + } + const value_columns = value.columns + let value_columns_type = RuntimeType.UNDEFINED + if (value_columns != undefined) { + value_columns_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_columns_type as int32) + if ((RuntimeType.UNDEFINED) != (value_columns_type)) { + const value_columns_value = value_columns! + let value_columns_value_type = RuntimeType.UNDEFINED + value_columns_value_type = runtimeType(value_columns_value) + if (((RuntimeType.NUMBER == value_columns_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_columns_value_0 = value_columns_value as number + valueSerializer.writeNumber(value_columns_value_0) + } + else if (((RuntimeType.OBJECT == value_columns_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_columns_value_1 = value_columns_value as GridRowColumnOption + valueSerializer.writeGridRowColumnOption(value_columns_value_1) + } + } + const value_breakpoints = value.breakpoints + let value_breakpoints_type = RuntimeType.UNDEFINED + if (value_breakpoints != undefined) { + value_breakpoints_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_breakpoints_type as int32) + if ((RuntimeType.UNDEFINED) != (value_breakpoints_type)) { + const value_breakpoints_value = value_breakpoints! + valueSerializer.writeBreakPoints(value_breakpoints_value) + } + const value_direction = value.direction + let value_direction_type = RuntimeType.UNDEFINED + if (value_direction != undefined) { + value_direction_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_direction_type as int32) + if ((RuntimeType.UNDEFINED) != (value_direction_type)) { + const value_direction_value = value_direction! + valueSerializer.writeInt32((value_direction_value.value as int32)) + } + } + writeGridContainerOptions(value: GridContainerOptions): void { + let valueSerializer = this + const value_columns = value.columns + let value_columns_type = RuntimeType.UNDEFINED + if (value_columns != undefined) { + value_columns_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_columns_type as int32) + if ((RuntimeType.UNDEFINED) != (value_columns_type)) { + const value_columns_value = value_columns! + let value_columns_value_type = RuntimeType.UNDEFINED + value_columns_value_type = runtimeType(value_columns_value) + if (((RuntimeType.NUMBER == value_columns_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_columns_value_0 = value_columns_value as number + valueSerializer.writeNumber(value_columns_value_0) + } + else if (((value_columns_value instanceof LITERAL_Auto))) { + valueSerializer.writeInt8(1 as int32) + const value_columns_value_1 = value_columns_value.toString() as string + valueSerializer.writeString(value_columns_value_1) + } + } + const value_sizeType = value.sizeType + let value_sizeType_type = RuntimeType.UNDEFINED + if (value_sizeType != undefined) { + value_sizeType_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_sizeType_type as int32) + if ((RuntimeType.UNDEFINED) != (value_sizeType_type)) { + const value_sizeType_value = value_sizeType! + valueSerializer.writeInt32((value_sizeType_value.value as int32)) + } + const value_gutter = value.gutter + let value_gutter_type = RuntimeType.UNDEFINED + if (value_gutter != undefined) { + value_gutter_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_gutter_type as int32) + if ((RuntimeType.UNDEFINED) != (value_gutter_type)) { + const value_gutter_value = value_gutter! + let value_gutter_value_type = RuntimeType.UNDEFINED + value_gutter_value_type = runtimeType(value_gutter_value) + if (((RuntimeType.NUMBER == value_gutter_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_gutter_value_0 = value_gutter_value as number + valueSerializer.writeNumber(value_gutter_value_0) + } + else if (((RuntimeType.STRING == value_gutter_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_gutter_value_1 = value_gutter_value as string + valueSerializer.writeString(value_gutter_value_1) + } + } + const value_margin = value.margin + let value_margin_type = RuntimeType.UNDEFINED + if (value_margin != undefined) { + value_margin_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_margin_type as int32) + if ((RuntimeType.UNDEFINED) != (value_margin_type)) { + const value_margin_value = value_margin! + let value_margin_value_type = RuntimeType.UNDEFINED + value_margin_value_type = runtimeType(value_margin_value) + if (((RuntimeType.NUMBER == value_margin_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_margin_value_0 = value_margin_value as number + valueSerializer.writeNumber(value_margin_value_0) + } + else if (((RuntimeType.STRING == value_margin_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_margin_value_1 = value_margin_value as string + valueSerializer.writeString(value_margin_value_1) + } + } + } + writeGridColOptions(value: GridColOptions): void { + let valueSerializer = this + const value_span = value.span + let value_span_type = RuntimeType.UNDEFINED + if (value_span != undefined) { + value_span_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_span_type as int32) + if ((RuntimeType.UNDEFINED) != (value_span_type)) { + const value_span_value = value_span! + let value_span_value_type = RuntimeType.UNDEFINED + value_span_value_type = runtimeType(value_span_value) + if (((RuntimeType.NUMBER == value_span_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_span_value_0 = value_span_value as number + valueSerializer.writeNumber(value_span_value_0) + } + else if (((RuntimeType.OBJECT == value_span_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_span_value_1 = value_span_value as GridColColumnOption + valueSerializer.writeGridColColumnOption(value_span_value_1) + } + } + const value_offset = value.offset + let value_offset_type = RuntimeType.UNDEFINED + if (value_offset != undefined) { + value_offset_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_offset_type as int32) + if ((RuntimeType.UNDEFINED) != (value_offset_type)) { + const value_offset_value = value_offset! + let value_offset_value_type = RuntimeType.UNDEFINED + value_offset_value_type = runtimeType(value_offset_value) + if (((RuntimeType.NUMBER == value_offset_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_offset_value_0 = value_offset_value as number + valueSerializer.writeNumber(value_offset_value_0) + } + else if (((RuntimeType.OBJECT == value_offset_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_offset_value_1 = value_offset_value as GridColColumnOption + valueSerializer.writeGridColColumnOption(value_offset_value_1) + } + } + const value_order = value.order + let value_order_type = RuntimeType.UNDEFINED + if (value_order != undefined) { + value_order_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_order_type as int32) + if ((RuntimeType.UNDEFINED) != (value_order_type)) { + const value_order_value = value_order! + let value_order_value_type = RuntimeType.UNDEFINED + value_order_value_type = runtimeType(value_order_value) + if (((RuntimeType.NUMBER == value_order_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_order_value_0 = value_order_value as number + valueSerializer.writeNumber(value_order_value_0) + } + else if (((RuntimeType.OBJECT == value_order_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_order_value_1 = value_order_value as GridColColumnOption + valueSerializer.writeGridColColumnOption(value_order_value_1) + } + } + } + writeGridItemOptions(value: GridItemOptions): void { + let valueSerializer = this + const value_style = value.style + let value_style_type = RuntimeType.UNDEFINED + if (value_style != undefined) { + value_style_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_style_type as int32) + if ((RuntimeType.UNDEFINED) != (value_style_type)) { + const value_style_value = value_style! + valueSerializer.writeInt32((value_style_value.value as int32)) + } + } + writeGridLayoutOptions(value: GridLayoutOptions): void { + let valueSerializer = this + const value_regularSize = value.regularSize + valueSerializer.writeInt8(runtimeType(value_regularSize) as int32) + const value_regularSize_0 = value_regularSize[0] + valueSerializer.writeNumber(value_regularSize_0) + const value_regularSize_1 = value_regularSize[1] + valueSerializer.writeNumber(value_regularSize_1) + const value_irregularIndexes = value.irregularIndexes + let value_irregularIndexes_type = RuntimeType.UNDEFINED + if (value_irregularIndexes != undefined) { + value_irregularIndexes_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_irregularIndexes_type as int32) + if ((RuntimeType.UNDEFINED) != (value_irregularIndexes_type)) { + const value_irregularIndexes_value = value_irregularIndexes! + valueSerializer.writeInt8(runtimeType(value_irregularIndexes_value) as int32) + valueSerializer.writeInt32(value_irregularIndexes_value.length as int32) + for (let i = 0; i < value_irregularIndexes_value.length; i++) { + const value_irregularIndexes_value_element = value_irregularIndexes_value[i] + valueSerializer.writeNumber(value_irregularIndexes_value_element) + } + } + const value_onGetIrregularSizeByIndex = value.onGetIrregularSizeByIndex + let value_onGetIrregularSizeByIndex_type = RuntimeType.UNDEFINED + if (value_onGetIrregularSizeByIndex != undefined) { + value_onGetIrregularSizeByIndex_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_onGetIrregularSizeByIndex_type as int32) + if ((RuntimeType.UNDEFINED) != (value_onGetIrregularSizeByIndex_type)) { + const value_onGetIrregularSizeByIndex_value = value_onGetIrregularSizeByIndex! + valueSerializer.writeFunction(value_onGetIrregularSizeByIndex_value) + } + const value_onGetRectByIndex = value.onGetRectByIndex + let value_onGetRectByIndex_type = RuntimeType.UNDEFINED + if (value_onGetRectByIndex != undefined) { + value_onGetRectByIndex_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_onGetRectByIndex_type as int32) + if ((RuntimeType.UNDEFINED) != (value_onGetRectByIndex_type)) { + const value_onGetRectByIndex_value = value_onGetRectByIndex! + valueSerializer.writeFunction(value_onGetRectByIndex_value) + } + } + writeFadingEdgeOptions(value: FadingEdgeOptions): void { + let valueSerializer = this + const value_fadingEdgeLength = value.fadingEdgeLength + let value_fadingEdgeLength_type = RuntimeType.UNDEFINED + if (value_fadingEdgeLength != undefined) { + value_fadingEdgeLength_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_fadingEdgeLength_type as int32) + if ((RuntimeType.UNDEFINED) != (value_fadingEdgeLength_type)) { + const value_fadingEdgeLength_value = value_fadingEdgeLength! + valueSerializer.writeCustomObject("LengthMetrics", value_fadingEdgeLength_value) + } + } + writeEdgeEffectOptions(value: EdgeEffectOptions): void { + let valueSerializer = this + const value_alwaysEnabled = value.alwaysEnabled + valueSerializer.writeBoolean(value_alwaysEnabled) + } + writeGaugeIndicatorOptions(value: GaugeIndicatorOptions): void { + let valueSerializer = this + const value_icon = value.icon + let value_icon_type = RuntimeType.UNDEFINED + if (value_icon != undefined) { + value_icon_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_icon_type as int32) + if ((RuntimeType.UNDEFINED) != (value_icon_type)) { + const value_icon_value = value_icon! + let value_icon_value_type = RuntimeType.UNDEFINED + value_icon_value_type = runtimeType(value_icon_value) + if (((RuntimeType.STRING == value_icon_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_icon_value_0 = value_icon_value as string + valueSerializer.writeString(value_icon_value_0) + } + else if (((RuntimeType.OBJECT == value_icon_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_icon_value_1 = value_icon_value as Resource + valueSerializer.writeResource(value_icon_value_1) + } + } + const value_space = value.space + let value_space_type = RuntimeType.UNDEFINED + if (value_space != undefined) { + value_space_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_space_type as int32) + if ((RuntimeType.UNDEFINED) != (value_space_type)) { + const value_space_value = value_space! + valueSerializer.writeLength(value_space_value); + } + } + writeGaugeShadowOptions(value: GaugeShadowOptions): void { + let valueSerializer = this + const value_radius = value.radius + let value_radius_type = RuntimeType.UNDEFINED + if (value_radius != undefined) { + value_radius_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_radius_type as int32) + if ((RuntimeType.UNDEFINED) != (value_radius_type)) { + const value_radius_value = value_radius! + let value_radius_value_type = RuntimeType.UNDEFINED + value_radius_value_type = runtimeType(value_radius_value) + if (((RuntimeType.NUMBER == value_radius_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_radius_value_0 = value_radius_value as number + valueSerializer.writeNumber(value_radius_value_0) + } + else if (((RuntimeType.OBJECT == value_radius_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_radius_value_1 = value_radius_value as Resource + valueSerializer.writeResource(value_radius_value_1) + } + } + const value_offsetX = value.offsetX + let value_offsetX_type = RuntimeType.UNDEFINED + if (value_offsetX != undefined) { + value_offsetX_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_offsetX_type as int32) + if ((RuntimeType.UNDEFINED) != (value_offsetX_type)) { + const value_offsetX_value = value_offsetX! + let value_offsetX_value_type = RuntimeType.UNDEFINED + value_offsetX_value_type = runtimeType(value_offsetX_value) + if (((RuntimeType.NUMBER == value_offsetX_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_offsetX_value_0 = value_offsetX_value as number + valueSerializer.writeNumber(value_offsetX_value_0) + } + else if (((RuntimeType.OBJECT == value_offsetX_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_offsetX_value_1 = value_offsetX_value as Resource + valueSerializer.writeResource(value_offsetX_value_1) + } + } + const value_offsetY = value.offsetY + let value_offsetY_type = RuntimeType.UNDEFINED + if (value_offsetY != undefined) { + value_offsetY_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_offsetY_type as int32) + if ((RuntimeType.UNDEFINED) != (value_offsetY_type)) { + const value_offsetY_value = value_offsetY! + let value_offsetY_value_type = RuntimeType.UNDEFINED + value_offsetY_value_type = runtimeType(value_offsetY_value) + if (((RuntimeType.NUMBER == value_offsetY_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_offsetY_value_0 = value_offsetY_value as number + valueSerializer.writeNumber(value_offsetY_value_0) + } + else if (((RuntimeType.OBJECT == value_offsetY_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_offsetY_value_1 = value_offsetY_value as Resource + valueSerializer.writeResource(value_offsetY_value_1) + } + } + } + writeGaugeOptions(value: GaugeOptions): void { + let valueSerializer = this + const value_value = value.value + valueSerializer.writeNumber(value_value) + const value_min = value.min + let value_min_type = RuntimeType.UNDEFINED + if (value_min != undefined) { + value_min_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_min_type as int32) + if ((RuntimeType.UNDEFINED) != (value_min_type)) { + const value_min_value = value_min! + valueSerializer.writeNumber(value_min_value) + } + const value_max = value.max + let value_max_type = RuntimeType.UNDEFINED + if (value_max != undefined) { + value_max_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_max_type as int32) + if ((RuntimeType.UNDEFINED) != (value_max_type)) { + const value_max_value = value_max! + valueSerializer.writeNumber(value_max_value) + } + } + writeFormLinkOptions(value: FormLinkOptions): void { + let valueSerializer = this + const value_action = value.action + valueSerializer.writeString(value_action) + const value_moduleName = value.moduleName + let value_moduleName_type = RuntimeType.UNDEFINED + if (value_moduleName != undefined) { + value_moduleName_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_moduleName_type as int32) + if ((RuntimeType.UNDEFINED) != (value_moduleName_type)) { + const value_moduleName_value = value_moduleName! + valueSerializer.writeString(value_moduleName_value) + } + const value_bundleName = value.bundleName + let value_bundleName_type = RuntimeType.UNDEFINED + if (value_bundleName != undefined) { + value_bundleName_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_bundleName_type as int32) + if ((RuntimeType.UNDEFINED) != (value_bundleName_type)) { + const value_bundleName_value = value_bundleName! + valueSerializer.writeString(value_bundleName_value) + } + const value_abilityName = value.abilityName + let value_abilityName_type = RuntimeType.UNDEFINED + if (value_abilityName != undefined) { + value_abilityName_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_abilityName_type as int32) + if ((RuntimeType.UNDEFINED) != (value_abilityName_type)) { + const value_abilityName_value = value_abilityName! + valueSerializer.writeString(value_abilityName_value) + } + const value_uri = value.uri + let value_uri_type = RuntimeType.UNDEFINED + if (value_uri != undefined) { + value_uri_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_uri_type as int32) + if ((RuntimeType.UNDEFINED) != (value_uri_type)) { + const value_uri_value = value_uri! + valueSerializer.writeString(value_uri_value) + } + const value_params = value.params + let value_params_type = RuntimeType.UNDEFINED + if (value_params != undefined) { + value_params_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_params_type as int32) + if ((RuntimeType.UNDEFINED) != (value_params_type)) { + const value_params_value = value_params! + valueSerializer.writeObject(value_params_value) + } + } + writeFormInfo(value: FormInfo): void { + let valueSerializer = this + const value_id = value.id + let value_id_type = RuntimeType.UNDEFINED + value_id_type = runtimeType(value_id) + if (((RuntimeType.NUMBER == value_id_type))) { + valueSerializer.writeInt8(0 as int32) + const value_id_0 = value_id as number + valueSerializer.writeNumber(value_id_0) + } + else if (((RuntimeType.STRING == value_id_type))) { + valueSerializer.writeInt8(1 as int32) + const value_id_1 = value_id as string + valueSerializer.writeString(value_id_1) + } + const value_name = value.name + valueSerializer.writeString(value_name) + const value_bundle = value.bundle + valueSerializer.writeString(value_bundle) + const value_ability = value.ability + valueSerializer.writeString(value_ability) + const value_module = value.module + valueSerializer.writeString(value_module) + const value_dimension = value.dimension + let value_dimension_type = RuntimeType.UNDEFINED + if (value_dimension != undefined) { + value_dimension_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_dimension_type as int32) + if ((RuntimeType.UNDEFINED) != (value_dimension_type)) { + const value_dimension_value = value_dimension! + valueSerializer.writeInt32((value_dimension_value.value as int32)) + } + const value_temporary = value.temporary + let value_temporary_type = RuntimeType.UNDEFINED + if (value_temporary != undefined) { + value_temporary_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_temporary_type as int32) + if ((RuntimeType.UNDEFINED) != (value_temporary_type)) { + const value_temporary_value = value_temporary! + valueSerializer.writeBoolean(value_temporary_value) + } + const value_want = value.want + let value_want_type = RuntimeType.UNDEFINED + if (value_want != undefined) { + value_want_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_want_type as int32) + if ((RuntimeType.UNDEFINED) != (value_want_type)) { + const value_want_value = value_want! + valueSerializer.writeCustomObject("default", value_want_value) + } + const value_renderingMode = value.renderingMode + let value_renderingMode_type = RuntimeType.UNDEFINED + if (value_renderingMode != undefined) { + value_renderingMode_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_renderingMode_type as int32) + if ((RuntimeType.UNDEFINED) != (value_renderingMode_type)) { + const value_renderingMode_value = value_renderingMode! + valueSerializer.writeInt32((value_renderingMode_value.value as int32)) + } + const value_shape = value.shape + let value_shape_type = RuntimeType.UNDEFINED + if (value_shape != undefined) { + value_shape_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_shape_type as int32) + if ((RuntimeType.UNDEFINED) != (value_shape_type)) { + const value_shape_value = value_shape! + valueSerializer.writeInt32((value_shape_value.value as int32)) + } + } + writeFolderStackOptions(value: FolderStackOptions): void { + let valueSerializer = this + const value_upperItems = value.upperItems + let value_upperItems_type = RuntimeType.UNDEFINED + if (value_upperItems != undefined) { + value_upperItems_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_upperItems_type as int32) + if ((RuntimeType.UNDEFINED) != (value_upperItems_type)) { + const value_upperItems_value = value_upperItems! + valueSerializer.writeInt8(runtimeType(value_upperItems_value) as int32) + valueSerializer.writeInt32(value_upperItems_value.length as int32) + for (let i = 0; i < value_upperItems_value.length; i++) { + const value_upperItems_value_element = value_upperItems_value[i] + valueSerializer.writeString(value_upperItems_value_element) + } + } + } + writeFlexOptions(value: FlexOptions): void { + let valueSerializer = this + const value_direction = value.direction + let value_direction_type = RuntimeType.UNDEFINED + if (value_direction != undefined) { + value_direction_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_direction_type as int32) + if ((RuntimeType.UNDEFINED) != (value_direction_type)) { + const value_direction_value = value_direction! + valueSerializer.writeInt32((value_direction_value.value as int32)) + } + const value_wrap = value.wrap + let value_wrap_type = RuntimeType.UNDEFINED + if (value_wrap != undefined) { + value_wrap_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_wrap_type as int32) + if ((RuntimeType.UNDEFINED) != (value_wrap_type)) { + const value_wrap_value = value_wrap! + valueSerializer.writeInt32((value_wrap_value.value as int32)) + } + const value_justifyContent = value.justifyContent + let value_justifyContent_type = RuntimeType.UNDEFINED + if (value_justifyContent != undefined) { + value_justifyContent_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_justifyContent_type as int32) + if ((RuntimeType.UNDEFINED) != (value_justifyContent_type)) { + const value_justifyContent_value = value_justifyContent! + valueSerializer.writeInt32((value_justifyContent_value.value as int32)) + } + const value_alignItems = value.alignItems + let value_alignItems_type = RuntimeType.UNDEFINED + if (value_alignItems != undefined) { + value_alignItems_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_alignItems_type as int32) + if ((RuntimeType.UNDEFINED) != (value_alignItems_type)) { + const value_alignItems_value = value_alignItems! + valueSerializer.writeInt32((value_alignItems_value.value as int32)) + } + const value_alignContent = value.alignContent + let value_alignContent_type = RuntimeType.UNDEFINED + if (value_alignContent != undefined) { + value_alignContent_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_alignContent_type as int32) + if ((RuntimeType.UNDEFINED) != (value_alignContent_type)) { + const value_alignContent_value = value_alignContent! + valueSerializer.writeInt32((value_alignContent_value.value as int32)) + } + const value_space = value.space + let value_space_type = RuntimeType.UNDEFINED + if (value_space != undefined) { + value_space_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_space_type as int32) + if ((RuntimeType.UNDEFINED) != (value_space_type)) { + const value_space_value = value_space! + valueSerializer.writeFlexSpaceOptions(value_space_value) + } + } + writeDatePickerOptions(value: DatePickerOptions): void { + let valueSerializer = this + const value_start = value.start + let value_start_type = RuntimeType.UNDEFINED + if (value_start != undefined) { + value_start_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_start_type as int32) + if ((RuntimeType.UNDEFINED) != (value_start_type)) { + const value_start_value = value_start! + valueSerializer.writeCustomObject("Date", value_start_value) + } + const value_end = value.end + let value_end_type = RuntimeType.UNDEFINED + if (value_end != undefined) { + value_end_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_end_type as int32) + if ((RuntimeType.UNDEFINED) != (value_end_type)) { + const value_end_value = value_end! + valueSerializer.writeCustomObject("Date", value_end_value) + } + const value_selected = value.selected + let value_selected_type = RuntimeType.UNDEFINED + if (value_selected != undefined) { + value_selected_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_selected_type as int32) + if ((RuntimeType.UNDEFINED) != (value_selected_type)) { + const value_selected_value = value_selected! + valueSerializer.writeCustomObject("Date", value_selected_value) + } + } + writeDataPanelShadowOptions(value: DataPanelShadowOptions): void { + let valueSerializer = this + const value_radius = value.radius + let value_radius_type = RuntimeType.UNDEFINED + if (value_radius != undefined) { + value_radius_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_radius_type as int32) + if ((RuntimeType.UNDEFINED) != (value_radius_type)) { + const value_radius_value = value_radius! + let value_radius_value_type = RuntimeType.UNDEFINED + value_radius_value_type = runtimeType(value_radius_value) + if (((RuntimeType.NUMBER == value_radius_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_radius_value_0 = value_radius_value as number + valueSerializer.writeNumber(value_radius_value_0) + } + else if (((RuntimeType.OBJECT == value_radius_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_radius_value_1 = value_radius_value as Resource + valueSerializer.writeResource(value_radius_value_1) + } + } + const value_offsetX = value.offsetX + let value_offsetX_type = RuntimeType.UNDEFINED + if (value_offsetX != undefined) { + value_offsetX_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_offsetX_type as int32) + if ((RuntimeType.UNDEFINED) != (value_offsetX_type)) { + const value_offsetX_value = value_offsetX! + let value_offsetX_value_type = RuntimeType.UNDEFINED + value_offsetX_value_type = runtimeType(value_offsetX_value) + if (((RuntimeType.NUMBER == value_offsetX_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_offsetX_value_0 = value_offsetX_value as number + valueSerializer.writeNumber(value_offsetX_value_0) + } + else if (((RuntimeType.OBJECT == value_offsetX_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_offsetX_value_1 = value_offsetX_value as Resource + valueSerializer.writeResource(value_offsetX_value_1) + } + } + const value_offsetY = value.offsetY + let value_offsetY_type = RuntimeType.UNDEFINED + if (value_offsetY != undefined) { + value_offsetY_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_offsetY_type as int32) + if ((RuntimeType.UNDEFINED) != (value_offsetY_type)) { + const value_offsetY_value = value_offsetY! + let value_offsetY_value_type = RuntimeType.UNDEFINED + value_offsetY_value_type = runtimeType(value_offsetY_value) + if (((RuntimeType.NUMBER == value_offsetY_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_offsetY_value_0 = value_offsetY_value as number + valueSerializer.writeNumber(value_offsetY_value_0) + } + else if (((RuntimeType.OBJECT == value_offsetY_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_offsetY_value_1 = value_offsetY_value as Resource + valueSerializer.writeResource(value_offsetY_value_1) + } + } + const value_colors = value.colors + let value_colors_type = RuntimeType.UNDEFINED + if (value_colors != undefined) { + value_colors_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_colors_type as int32) + if ((RuntimeType.UNDEFINED) != (value_colors_type)) { + const value_colors_value = value_colors! + valueSerializer.writeInt8(runtimeType(value_colors_value) as int32) + valueSerializer.writeInt32(value_colors_value.length as int32) + for (let i = 0; i < value_colors_value.length; i++) { + const value_colors_value_element = value_colors_value[i] + let value_colors_value_element_type = RuntimeType.UNDEFINED + value_colors_value_element_type = runtimeType(value_colors_value_element) + if (((RuntimeType.OBJECT) == (value_colors_value_element_type)) && (value_colors_value_element instanceof LinearGradient)) { + valueSerializer.writeInt8(1 as int32) + const value_colors_value_element_1 = value_colors_value_element as Object + valueSerializer.writeCustomObject("LinearGradient", value_colors_value_element_1) + } + else if (((RuntimeType.OBJECT == value_colors_value_element_type)) || ((RuntimeType.NUMBER == value_colors_value_element_type)) || ((RuntimeType.STRING == value_colors_value_element_type)) || ((RuntimeType.OBJECT == value_colors_value_element_type))) { + valueSerializer.writeInt8(0 as int32) + const value_colors_value_element_0 = value_colors_value_element as ResourceColor + let value_colors_value_element_0_type = RuntimeType.UNDEFINED + value_colors_value_element_0_type = runtimeType(value_colors_value_element_0) + if (((RuntimeType.OBJECT) == (value_colors_value_element_0_type)) && (value_colors_value_element_0 instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_colors_value_element_0_0 = value_colors_value_element_0 as Color + valueSerializer.writeInt32((value_colors_value_element_0_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_colors_value_element_0_type))) { + valueSerializer.writeInt8(1 as int32) + const value_colors_value_element_0_1 = value_colors_value_element_0 as number + valueSerializer.writeNumber(value_colors_value_element_0_1) + } + else if (((RuntimeType.STRING == value_colors_value_element_0_type))) { + valueSerializer.writeInt8(2 as int32) + const value_colors_value_element_0_2 = value_colors_value_element_0 as string + valueSerializer.writeString(value_colors_value_element_0_2) + } + else if (isResource(value_colors_value_element_0)) { + valueSerializer.writeInt8(3 as int32) + const value_colors_value_element_0_3 = value_colors_value_element_0 as Resource + valueSerializer.writeResource(value_colors_value_element_0_3) + } + } + } + } + } + writeDataPanelOptions(value: DataPanelOptions): void { + let valueSerializer = this + const value_values = value.values + valueSerializer.writeInt8(runtimeType(value_values) as int32) + valueSerializer.writeInt32(value_values.length as int32) + for (let i = 0; i < value_values.length; i++) { + const value_values_element = value_values[i] + valueSerializer.writeNumber(value_values_element) + } + const value_max = value.max + let value_max_type = RuntimeType.UNDEFINED + if (value_max != undefined) { + value_max_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_max_type as int32) + if ((RuntimeType.UNDEFINED) != (value_max_type)) { + const value_max_value = value_max! + valueSerializer.writeNumber(value_max_value) + } + const value_type = value.type + let value_type_type = RuntimeType.UNDEFINED + if (value_type != undefined) { + value_type_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_type_type as int32) + if ((RuntimeType.UNDEFINED) != (value_type_type)) { + const value_type_value = value_type! + valueSerializer.writeInt32((value_type_value.value as int32)) + } + } + writeSceneOptions(value: SceneOptions): void { + let valueSerializer = this + const value_scene = value.scene + let value_scene_type = RuntimeType.UNDEFINED + if (value_scene != undefined) { + value_scene_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_scene_type as int32) + if ((RuntimeType.UNDEFINED) != (value_scene_type)) { + const value_scene_value = value_scene! + let value_scene_value_type = RuntimeType.UNDEFINED + value_scene_value_type = runtimeType(value_scene_value) + if (((RuntimeType.OBJECT) == (value_scene_value_type)) && (isInstanceOf("Scene", value_scene_value))) { + valueSerializer.writeInt8(1 as int32) + const value_scene_value_1 = value_scene_value as Scene + valueSerializer.writeCustomObject("Scene", value_scene_value_1) + } + else if (((RuntimeType.STRING == value_scene_value_type)) || ((RuntimeType.OBJECT == value_scene_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_scene_value_0 = value_scene_value as ResourceStr + let value_scene_value_0_type = RuntimeType.UNDEFINED + value_scene_value_0_type = runtimeType(value_scene_value_0) + if (((RuntimeType.STRING == value_scene_value_0_type))) { + valueSerializer.writeInt8(0 as int32) + const value_scene_value_0_0 = value_scene_value_0 as string + valueSerializer.writeString(value_scene_value_0_0) + } + else if (((RuntimeType.OBJECT == value_scene_value_0_type))) { + valueSerializer.writeInt8(1 as int32) + const value_scene_value_0_1 = value_scene_value_0 as Resource + valueSerializer.writeResource(value_scene_value_0_1) + } + } + } + const value_modelType = value.modelType + let value_modelType_type = RuntimeType.UNDEFINED + if (value_modelType != undefined) { + value_modelType_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_modelType_type as int32) + if ((RuntimeType.UNDEFINED) != (value_modelType_type)) { + const value_modelType_value = value_modelType! + valueSerializer.writeInt32((value_modelType_value.value as int32)) + } + } + writePointLightStyle(value: PointLightStyle): void { + let valueSerializer = this + const value_lightSource = value.lightSource + let value_lightSource_type = RuntimeType.UNDEFINED + if (value_lightSource != undefined) { + value_lightSource_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_lightSource_type as int32) + if ((RuntimeType.UNDEFINED) != (value_lightSource_type)) { + const value_lightSource_value = value_lightSource! + valueSerializer.writeLightSource(value_lightSource_value) + } + const value_illuminated = value.illuminated + let value_illuminated_type = RuntimeType.UNDEFINED + if (value_illuminated != undefined) { + value_illuminated_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_illuminated_type as int32) + if ((RuntimeType.UNDEFINED) != (value_illuminated_type)) { + const value_illuminated_value = value_illuminated! + valueSerializer.writeInt32((value_illuminated_value.value as int32)) + } + const value_bloom = value.bloom + let value_bloom_type = RuntimeType.UNDEFINED + if (value_bloom != undefined) { + value_bloom_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_bloom_type as int32) + if ((RuntimeType.UNDEFINED) != (value_bloom_type)) { + const value_bloom_value = value_bloom! + valueSerializer.writeNumber(value_bloom_value) + } + } + writeColumnOptions(value: ColumnOptions): void { + let valueSerializer = this + const value_space = value.space + let value_space_type = RuntimeType.UNDEFINED + if (value_space != undefined) { + value_space_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_space_type as int32) + if ((RuntimeType.UNDEFINED) != (value_space_type)) { + const value_space_value = value_space! + let value_space_value_type = RuntimeType.UNDEFINED + value_space_value_type = runtimeType(value_space_value) + if (((RuntimeType.STRING == value_space_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_space_value_0 = value_space_value as string + valueSerializer.writeString(value_space_value_0) + } + else if (((RuntimeType.NUMBER == value_space_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_space_value_1 = value_space_value as number + valueSerializer.writeNumber(value_space_value_1) + } + } + } + writeCircleOptions(value: CircleOptions): void { + let valueSerializer = this + const value_width = value.width + let value_width_type = RuntimeType.UNDEFINED + if (value_width != undefined) { + value_width_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_width_type as int32) + if ((RuntimeType.UNDEFINED) != (value_width_type)) { + const value_width_value = value_width! + let value_width_value_type = RuntimeType.UNDEFINED + value_width_value_type = runtimeType(value_width_value) + if (((RuntimeType.STRING == value_width_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_width_value_0 = value_width_value as string + valueSerializer.writeString(value_width_value_0) + } + else if (((RuntimeType.NUMBER == value_width_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_width_value_1 = value_width_value as number + valueSerializer.writeNumber(value_width_value_1) + } + } + const value_height = value.height + let value_height_type = RuntimeType.UNDEFINED + if (value_height != undefined) { + value_height_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_height_type as int32) + if ((RuntimeType.UNDEFINED) != (value_height_type)) { + const value_height_value = value_height! + let value_height_value_type = RuntimeType.UNDEFINED + value_height_value_type = runtimeType(value_height_value) + if (((RuntimeType.STRING == value_height_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_height_value_0 = value_height_value as string + valueSerializer.writeString(value_height_value_0) + } + else if (((RuntimeType.NUMBER == value_height_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_height_value_1 = value_height_value as number + valueSerializer.writeNumber(value_height_value_1) + } + } + } + writeCheckboxGroupOptions(value: CheckboxGroupOptions): void { + let valueSerializer = this + const value_group = value.group + let value_group_type = RuntimeType.UNDEFINED + if (value_group != undefined) { + value_group_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_group_type as int32) + if ((RuntimeType.UNDEFINED) != (value_group_type)) { + const value_group_value = value_group! + valueSerializer.writeString(value_group_value) + } + } + writeMarkStyle(value: MarkStyle): void { + let valueSerializer = this + const value_strokeColor = value.strokeColor + let value_strokeColor_type = RuntimeType.UNDEFINED + if (value_strokeColor != undefined) { + value_strokeColor_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_strokeColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_strokeColor_type)) { + const value_strokeColor_value = value_strokeColor! + let value_strokeColor_value_type = RuntimeType.UNDEFINED + value_strokeColor_value_type = runtimeType(value_strokeColor_value) + if (((RuntimeType.OBJECT) == (value_strokeColor_value_type)) && (value_strokeColor_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_strokeColor_value_0 = value_strokeColor_value as Color + valueSerializer.writeInt32((value_strokeColor_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_strokeColor_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_strokeColor_value_1 = value_strokeColor_value as number + valueSerializer.writeNumber(value_strokeColor_value_1) + } + else if (((RuntimeType.STRING == value_strokeColor_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_strokeColor_value_2 = value_strokeColor_value as string + valueSerializer.writeString(value_strokeColor_value_2) + } + else if (isResource(value_strokeColor_value)) { + valueSerializer.writeInt8(3 as int32) + const value_strokeColor_value_3 = value_strokeColor_value as Resource + valueSerializer.writeResource(value_strokeColor_value_3) + } + } + const value_size = value.size + let value_size_type = RuntimeType.UNDEFINED + if (value_size != undefined) { + value_size_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_size_type as int32) + if ((RuntimeType.UNDEFINED) != (value_size_type)) { + const value_size_value = value_size! + valueSerializer.writeLength(value_size_value); + } + const value_strokeWidth = value.strokeWidth + let value_strokeWidth_type = RuntimeType.UNDEFINED + if (value_strokeWidth != undefined) { + value_strokeWidth_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_strokeWidth_type as int32) + if ((RuntimeType.UNDEFINED) != (value_strokeWidth_type)) { + const value_strokeWidth_value = value_strokeWidth! + valueSerializer.writeLength(value_strokeWidth_value); + } + } + writeCheckboxOptions(value: CheckboxOptions): void { + let valueSerializer = this + const value_name = value.name + let value_name_type = RuntimeType.UNDEFINED + if (value_name != undefined) { + value_name_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_name_type as int32) + if ((RuntimeType.UNDEFINED) != (value_name_type)) { + const value_name_value = value_name! + valueSerializer.writeString(value_name_value) + } + const value_group = value.group + let value_group_type = RuntimeType.UNDEFINED + if (value_group != undefined) { + value_group_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_group_type as int32) + if ((RuntimeType.UNDEFINED) != (value_group_type)) { + const value_group_value = value_group! + valueSerializer.writeString(value_group_value) + } + const value_indicatorBuilder = value.indicatorBuilder + let value_indicatorBuilder_type = RuntimeType.UNDEFINED + if (value_indicatorBuilder != undefined) { + value_indicatorBuilder_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_indicatorBuilder_type as int32) + if ((RuntimeType.UNDEFINED) != (value_indicatorBuilder_type)) { + const value_indicatorBuilder_value = value_indicatorBuilder! + let value_indicatorBuilder_value_type = RuntimeType.UNDEFINED + value_indicatorBuilder_value_type = runtimeType(value_indicatorBuilder_value) + if (((RuntimeType.FUNCTION == value_indicatorBuilder_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_indicatorBuilder_value_0 = value_indicatorBuilder_value as Object + valueSerializer.writeFunction(value_indicatorBuilder_value_0) + } + else if (((RuntimeType.UNDEFINED == value_indicatorBuilder_value_type))) { + valueSerializer.writeInt8(1 as int32) + } + } + } + writePickerTextStyle(value: PickerTextStyle): void { + let valueSerializer = this + const value_color = value.color + let value_color_type = RuntimeType.UNDEFINED + if (value_color != undefined) { + value_color_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_color_type as int32) + if ((RuntimeType.UNDEFINED) != (value_color_type)) { + const value_color_value = value_color! + let value_color_value_type = RuntimeType.UNDEFINED + value_color_value_type = runtimeType(value_color_value) + if (((RuntimeType.OBJECT) == (value_color_value_type)) && (value_color_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_color_value_0 = value_color_value as Color + valueSerializer.writeInt32((value_color_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_color_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_color_value_1 = value_color_value as number + valueSerializer.writeNumber(value_color_value_1) + } + else if (((RuntimeType.STRING == value_color_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_color_value_2 = value_color_value as string + valueSerializer.writeString(value_color_value_2) + } + else if (isResource(value_color_value)) { + valueSerializer.writeInt8(3 as int32) + const value_color_value_3 = value_color_value as Resource + valueSerializer.writeResource(value_color_value_3) + } + } + const value_font = value.font + let value_font_type = RuntimeType.UNDEFINED + if (value_font != undefined) { + value_font_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_font_type as int32) + if ((RuntimeType.UNDEFINED) != (value_font_type)) { + const value_font_value = value_font! + valueSerializer.writeFont(value_font_value) + } + } + writeCalendarOptions(value: CalendarOptions): void { + let valueSerializer = this + const value_hintRadius = value.hintRadius + let value_hintRadius_type = RuntimeType.UNDEFINED + if (value_hintRadius != undefined) { + value_hintRadius_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_hintRadius_type as int32) + if ((RuntimeType.UNDEFINED) != (value_hintRadius_type)) { + const value_hintRadius_value = value_hintRadius! + let value_hintRadius_value_type = RuntimeType.UNDEFINED + value_hintRadius_value_type = runtimeType(value_hintRadius_value) + if (((RuntimeType.NUMBER == value_hintRadius_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_hintRadius_value_0 = value_hintRadius_value as number + valueSerializer.writeNumber(value_hintRadius_value_0) + } + else if (((RuntimeType.OBJECT == value_hintRadius_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_hintRadius_value_1 = value_hintRadius_value as Resource + valueSerializer.writeResource(value_hintRadius_value_1) + } + } + const value_selected = value.selected + let value_selected_type = RuntimeType.UNDEFINED + if (value_selected != undefined) { + value_selected_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_selected_type as int32) + if ((RuntimeType.UNDEFINED) != (value_selected_type)) { + const value_selected_value = value_selected! + valueSerializer.writeCustomObject("Date", value_selected_value) + } + } + writeWorkStateStyle(value: WorkStateStyle): void { + let valueSerializer = this + const value_workDayMarkColor = value.workDayMarkColor + let value_workDayMarkColor_type = RuntimeType.UNDEFINED + if (value_workDayMarkColor != undefined) { + value_workDayMarkColor_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_workDayMarkColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_workDayMarkColor_type)) { + const value_workDayMarkColor_value = value_workDayMarkColor! + let value_workDayMarkColor_value_type = RuntimeType.UNDEFINED + value_workDayMarkColor_value_type = runtimeType(value_workDayMarkColor_value) + if (((RuntimeType.OBJECT) == (value_workDayMarkColor_value_type)) && (value_workDayMarkColor_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_workDayMarkColor_value_0 = value_workDayMarkColor_value as Color + valueSerializer.writeInt32((value_workDayMarkColor_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_workDayMarkColor_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_workDayMarkColor_value_1 = value_workDayMarkColor_value as number + valueSerializer.writeNumber(value_workDayMarkColor_value_1) + } + else if (((RuntimeType.STRING == value_workDayMarkColor_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_workDayMarkColor_value_2 = value_workDayMarkColor_value as string + valueSerializer.writeString(value_workDayMarkColor_value_2) + } + else if (isResource(value_workDayMarkColor_value)) { + valueSerializer.writeInt8(3 as int32) + const value_workDayMarkColor_value_3 = value_workDayMarkColor_value as Resource + valueSerializer.writeResource(value_workDayMarkColor_value_3) + } + } + const value_offDayMarkColor = value.offDayMarkColor + let value_offDayMarkColor_type = RuntimeType.UNDEFINED + if (value_offDayMarkColor != undefined) { + value_offDayMarkColor_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_offDayMarkColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_offDayMarkColor_type)) { + const value_offDayMarkColor_value = value_offDayMarkColor! + let value_offDayMarkColor_value_type = RuntimeType.UNDEFINED + value_offDayMarkColor_value_type = runtimeType(value_offDayMarkColor_value) + if (((RuntimeType.OBJECT) == (value_offDayMarkColor_value_type)) && (value_offDayMarkColor_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_offDayMarkColor_value_0 = value_offDayMarkColor_value as Color + valueSerializer.writeInt32((value_offDayMarkColor_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_offDayMarkColor_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_offDayMarkColor_value_1 = value_offDayMarkColor_value as number + valueSerializer.writeNumber(value_offDayMarkColor_value_1) + } + else if (((RuntimeType.STRING == value_offDayMarkColor_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_offDayMarkColor_value_2 = value_offDayMarkColor_value as string + valueSerializer.writeString(value_offDayMarkColor_value_2) + } + else if (isResource(value_offDayMarkColor_value)) { + valueSerializer.writeInt8(3 as int32) + const value_offDayMarkColor_value_3 = value_offDayMarkColor_value as Resource + valueSerializer.writeResource(value_offDayMarkColor_value_3) + } + } + const value_workDayMarkSize = value.workDayMarkSize + let value_workDayMarkSize_type = RuntimeType.UNDEFINED + if (value_workDayMarkSize != undefined) { + value_workDayMarkSize_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_workDayMarkSize_type as int32) + if ((RuntimeType.UNDEFINED) != (value_workDayMarkSize_type)) { + const value_workDayMarkSize_value = value_workDayMarkSize! + valueSerializer.writeNumber(value_workDayMarkSize_value) + } + const value_offDayMarkSize = value.offDayMarkSize + let value_offDayMarkSize_type = RuntimeType.UNDEFINED + if (value_offDayMarkSize != undefined) { + value_offDayMarkSize_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_offDayMarkSize_type as int32) + if ((RuntimeType.UNDEFINED) != (value_offDayMarkSize_type)) { + const value_offDayMarkSize_value = value_offDayMarkSize! + valueSerializer.writeNumber(value_offDayMarkSize_value) + } + const value_workStateWidth = value.workStateWidth + let value_workStateWidth_type = RuntimeType.UNDEFINED + if (value_workStateWidth != undefined) { + value_workStateWidth_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_workStateWidth_type as int32) + if ((RuntimeType.UNDEFINED) != (value_workStateWidth_type)) { + const value_workStateWidth_value = value_workStateWidth! + valueSerializer.writeNumber(value_workStateWidth_value) + } + const value_workStateHorizontalMovingDistance = value.workStateHorizontalMovingDistance + let value_workStateHorizontalMovingDistance_type = RuntimeType.UNDEFINED + if (value_workStateHorizontalMovingDistance != undefined) { + value_workStateHorizontalMovingDistance_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_workStateHorizontalMovingDistance_type as int32) + if ((RuntimeType.UNDEFINED) != (value_workStateHorizontalMovingDistance_type)) { + const value_workStateHorizontalMovingDistance_value = value_workStateHorizontalMovingDistance! + valueSerializer.writeNumber(value_workStateHorizontalMovingDistance_value) + } + const value_workStateVerticalMovingDistance = value.workStateVerticalMovingDistance + let value_workStateVerticalMovingDistance_type = RuntimeType.UNDEFINED + if (value_workStateVerticalMovingDistance != undefined) { + value_workStateVerticalMovingDistance_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_workStateVerticalMovingDistance_type as int32) + if ((RuntimeType.UNDEFINED) != (value_workStateVerticalMovingDistance_type)) { + const value_workStateVerticalMovingDistance_value = value_workStateVerticalMovingDistance! + valueSerializer.writeNumber(value_workStateVerticalMovingDistance_value) + } + } + writeWeekStyle(value: WeekStyle): void { + let valueSerializer = this + const value_weekColor = value.weekColor + let value_weekColor_type = RuntimeType.UNDEFINED + if (value_weekColor != undefined) { + value_weekColor_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_weekColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_weekColor_type)) { + const value_weekColor_value = value_weekColor! + let value_weekColor_value_type = RuntimeType.UNDEFINED + value_weekColor_value_type = runtimeType(value_weekColor_value) + if (((RuntimeType.OBJECT) == (value_weekColor_value_type)) && (value_weekColor_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_weekColor_value_0 = value_weekColor_value as Color + valueSerializer.writeInt32((value_weekColor_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_weekColor_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_weekColor_value_1 = value_weekColor_value as number + valueSerializer.writeNumber(value_weekColor_value_1) + } + else if (((RuntimeType.STRING == value_weekColor_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_weekColor_value_2 = value_weekColor_value as string + valueSerializer.writeString(value_weekColor_value_2) + } + else if (isResource(value_weekColor_value)) { + valueSerializer.writeInt8(3 as int32) + const value_weekColor_value_3 = value_weekColor_value as Resource + valueSerializer.writeResource(value_weekColor_value_3) + } + } + const value_weekendDayColor = value.weekendDayColor + let value_weekendDayColor_type = RuntimeType.UNDEFINED + if (value_weekendDayColor != undefined) { + value_weekendDayColor_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_weekendDayColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_weekendDayColor_type)) { + const value_weekendDayColor_value = value_weekendDayColor! + let value_weekendDayColor_value_type = RuntimeType.UNDEFINED + value_weekendDayColor_value_type = runtimeType(value_weekendDayColor_value) + if (((RuntimeType.OBJECT) == (value_weekendDayColor_value_type)) && (value_weekendDayColor_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_weekendDayColor_value_0 = value_weekendDayColor_value as Color + valueSerializer.writeInt32((value_weekendDayColor_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_weekendDayColor_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_weekendDayColor_value_1 = value_weekendDayColor_value as number + valueSerializer.writeNumber(value_weekendDayColor_value_1) + } + else if (((RuntimeType.STRING == value_weekendDayColor_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_weekendDayColor_value_2 = value_weekendDayColor_value as string + valueSerializer.writeString(value_weekendDayColor_value_2) + } + else if (isResource(value_weekendDayColor_value)) { + valueSerializer.writeInt8(3 as int32) + const value_weekendDayColor_value_3 = value_weekendDayColor_value as Resource + valueSerializer.writeResource(value_weekendDayColor_value_3) + } + } + const value_weekendLunarColor = value.weekendLunarColor + let value_weekendLunarColor_type = RuntimeType.UNDEFINED + if (value_weekendLunarColor != undefined) { + value_weekendLunarColor_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_weekendLunarColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_weekendLunarColor_type)) { + const value_weekendLunarColor_value = value_weekendLunarColor! + let value_weekendLunarColor_value_type = RuntimeType.UNDEFINED + value_weekendLunarColor_value_type = runtimeType(value_weekendLunarColor_value) + if (((RuntimeType.OBJECT) == (value_weekendLunarColor_value_type)) && (value_weekendLunarColor_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_weekendLunarColor_value_0 = value_weekendLunarColor_value as Color + valueSerializer.writeInt32((value_weekendLunarColor_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_weekendLunarColor_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_weekendLunarColor_value_1 = value_weekendLunarColor_value as number + valueSerializer.writeNumber(value_weekendLunarColor_value_1) + } + else if (((RuntimeType.STRING == value_weekendLunarColor_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_weekendLunarColor_value_2 = value_weekendLunarColor_value as string + valueSerializer.writeString(value_weekendLunarColor_value_2) + } + else if (isResource(value_weekendLunarColor_value)) { + valueSerializer.writeInt8(3 as int32) + const value_weekendLunarColor_value_3 = value_weekendLunarColor_value as Resource + valueSerializer.writeResource(value_weekendLunarColor_value_3) + } + } + const value_weekFontSize = value.weekFontSize + let value_weekFontSize_type = RuntimeType.UNDEFINED + if (value_weekFontSize != undefined) { + value_weekFontSize_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_weekFontSize_type as int32) + if ((RuntimeType.UNDEFINED) != (value_weekFontSize_type)) { + const value_weekFontSize_value = value_weekFontSize! + valueSerializer.writeNumber(value_weekFontSize_value) + } + const value_weekHeight = value.weekHeight + let value_weekHeight_type = RuntimeType.UNDEFINED + if (value_weekHeight != undefined) { + value_weekHeight_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_weekHeight_type as int32) + if ((RuntimeType.UNDEFINED) != (value_weekHeight_type)) { + const value_weekHeight_value = value_weekHeight! + valueSerializer.writeNumber(value_weekHeight_value) + } + const value_weekWidth = value.weekWidth + let value_weekWidth_type = RuntimeType.UNDEFINED + if (value_weekWidth != undefined) { + value_weekWidth_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_weekWidth_type as int32) + if ((RuntimeType.UNDEFINED) != (value_weekWidth_type)) { + const value_weekWidth_value = value_weekWidth! + valueSerializer.writeNumber(value_weekWidth_value) + } + const value_weekAndDayRowSpace = value.weekAndDayRowSpace + let value_weekAndDayRowSpace_type = RuntimeType.UNDEFINED + if (value_weekAndDayRowSpace != undefined) { + value_weekAndDayRowSpace_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_weekAndDayRowSpace_type as int32) + if ((RuntimeType.UNDEFINED) != (value_weekAndDayRowSpace_type)) { + const value_weekAndDayRowSpace_value = value_weekAndDayRowSpace! + valueSerializer.writeNumber(value_weekAndDayRowSpace_value) + } + } + writeTodayStyle(value: TodayStyle): void { + let valueSerializer = this + const value_focusedDayColor = value.focusedDayColor + let value_focusedDayColor_type = RuntimeType.UNDEFINED + if (value_focusedDayColor != undefined) { + value_focusedDayColor_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_focusedDayColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_focusedDayColor_type)) { + const value_focusedDayColor_value = value_focusedDayColor! + let value_focusedDayColor_value_type = RuntimeType.UNDEFINED + value_focusedDayColor_value_type = runtimeType(value_focusedDayColor_value) + if (((RuntimeType.OBJECT) == (value_focusedDayColor_value_type)) && (value_focusedDayColor_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_focusedDayColor_value_0 = value_focusedDayColor_value as Color + valueSerializer.writeInt32((value_focusedDayColor_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_focusedDayColor_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_focusedDayColor_value_1 = value_focusedDayColor_value as number + valueSerializer.writeNumber(value_focusedDayColor_value_1) + } + else if (((RuntimeType.STRING == value_focusedDayColor_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_focusedDayColor_value_2 = value_focusedDayColor_value as string + valueSerializer.writeString(value_focusedDayColor_value_2) + } + else if (isResource(value_focusedDayColor_value)) { + valueSerializer.writeInt8(3 as int32) + const value_focusedDayColor_value_3 = value_focusedDayColor_value as Resource + valueSerializer.writeResource(value_focusedDayColor_value_3) + } + } + const value_focusedLunarColor = value.focusedLunarColor + let value_focusedLunarColor_type = RuntimeType.UNDEFINED + if (value_focusedLunarColor != undefined) { + value_focusedLunarColor_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_focusedLunarColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_focusedLunarColor_type)) { + const value_focusedLunarColor_value = value_focusedLunarColor! + let value_focusedLunarColor_value_type = RuntimeType.UNDEFINED + value_focusedLunarColor_value_type = runtimeType(value_focusedLunarColor_value) + if (((RuntimeType.OBJECT) == (value_focusedLunarColor_value_type)) && (value_focusedLunarColor_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_focusedLunarColor_value_0 = value_focusedLunarColor_value as Color + valueSerializer.writeInt32((value_focusedLunarColor_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_focusedLunarColor_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_focusedLunarColor_value_1 = value_focusedLunarColor_value as number + valueSerializer.writeNumber(value_focusedLunarColor_value_1) + } + else if (((RuntimeType.STRING == value_focusedLunarColor_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_focusedLunarColor_value_2 = value_focusedLunarColor_value as string + valueSerializer.writeString(value_focusedLunarColor_value_2) + } + else if (isResource(value_focusedLunarColor_value)) { + valueSerializer.writeInt8(3 as int32) + const value_focusedLunarColor_value_3 = value_focusedLunarColor_value as Resource + valueSerializer.writeResource(value_focusedLunarColor_value_3) + } + } + const value_focusedAreaBackgroundColor = value.focusedAreaBackgroundColor + let value_focusedAreaBackgroundColor_type = RuntimeType.UNDEFINED + if (value_focusedAreaBackgroundColor != undefined) { + value_focusedAreaBackgroundColor_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_focusedAreaBackgroundColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_focusedAreaBackgroundColor_type)) { + const value_focusedAreaBackgroundColor_value = value_focusedAreaBackgroundColor! + let value_focusedAreaBackgroundColor_value_type = RuntimeType.UNDEFINED + value_focusedAreaBackgroundColor_value_type = runtimeType(value_focusedAreaBackgroundColor_value) + if (((RuntimeType.OBJECT) == (value_focusedAreaBackgroundColor_value_type)) && (value_focusedAreaBackgroundColor_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_focusedAreaBackgroundColor_value_0 = value_focusedAreaBackgroundColor_value as Color + valueSerializer.writeInt32((value_focusedAreaBackgroundColor_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_focusedAreaBackgroundColor_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_focusedAreaBackgroundColor_value_1 = value_focusedAreaBackgroundColor_value as number + valueSerializer.writeNumber(value_focusedAreaBackgroundColor_value_1) + } + else if (((RuntimeType.STRING == value_focusedAreaBackgroundColor_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_focusedAreaBackgroundColor_value_2 = value_focusedAreaBackgroundColor_value as string + valueSerializer.writeString(value_focusedAreaBackgroundColor_value_2) + } + else if (isResource(value_focusedAreaBackgroundColor_value)) { + valueSerializer.writeInt8(3 as int32) + const value_focusedAreaBackgroundColor_value_3 = value_focusedAreaBackgroundColor_value as Resource + valueSerializer.writeResource(value_focusedAreaBackgroundColor_value_3) + } + } + const value_focusedAreaRadius = value.focusedAreaRadius + let value_focusedAreaRadius_type = RuntimeType.UNDEFINED + if (value_focusedAreaRadius != undefined) { + value_focusedAreaRadius_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_focusedAreaRadius_type as int32) + if ((RuntimeType.UNDEFINED) != (value_focusedAreaRadius_type)) { + const value_focusedAreaRadius_value = value_focusedAreaRadius! + valueSerializer.writeNumber(value_focusedAreaRadius_value) + } + } + writeNonCurrentDayStyle(value: NonCurrentDayStyle): void { + let valueSerializer = this + const value_nonCurrentMonthDayColor = value.nonCurrentMonthDayColor + let value_nonCurrentMonthDayColor_type = RuntimeType.UNDEFINED + if (value_nonCurrentMonthDayColor != undefined) { + value_nonCurrentMonthDayColor_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_nonCurrentMonthDayColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_nonCurrentMonthDayColor_type)) { + const value_nonCurrentMonthDayColor_value = value_nonCurrentMonthDayColor! + let value_nonCurrentMonthDayColor_value_type = RuntimeType.UNDEFINED + value_nonCurrentMonthDayColor_value_type = runtimeType(value_nonCurrentMonthDayColor_value) + if (((RuntimeType.OBJECT) == (value_nonCurrentMonthDayColor_value_type)) && (value_nonCurrentMonthDayColor_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_nonCurrentMonthDayColor_value_0 = value_nonCurrentMonthDayColor_value as Color + valueSerializer.writeInt32((value_nonCurrentMonthDayColor_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_nonCurrentMonthDayColor_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_nonCurrentMonthDayColor_value_1 = value_nonCurrentMonthDayColor_value as number + valueSerializer.writeNumber(value_nonCurrentMonthDayColor_value_1) + } + else if (((RuntimeType.STRING == value_nonCurrentMonthDayColor_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_nonCurrentMonthDayColor_value_2 = value_nonCurrentMonthDayColor_value as string + valueSerializer.writeString(value_nonCurrentMonthDayColor_value_2) + } + else if (isResource(value_nonCurrentMonthDayColor_value)) { + valueSerializer.writeInt8(3 as int32) + const value_nonCurrentMonthDayColor_value_3 = value_nonCurrentMonthDayColor_value as Resource + valueSerializer.writeResource(value_nonCurrentMonthDayColor_value_3) + } + } + const value_nonCurrentMonthLunarColor = value.nonCurrentMonthLunarColor + let value_nonCurrentMonthLunarColor_type = RuntimeType.UNDEFINED + if (value_nonCurrentMonthLunarColor != undefined) { + value_nonCurrentMonthLunarColor_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_nonCurrentMonthLunarColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_nonCurrentMonthLunarColor_type)) { + const value_nonCurrentMonthLunarColor_value = value_nonCurrentMonthLunarColor! + let value_nonCurrentMonthLunarColor_value_type = RuntimeType.UNDEFINED + value_nonCurrentMonthLunarColor_value_type = runtimeType(value_nonCurrentMonthLunarColor_value) + if (((RuntimeType.OBJECT) == (value_nonCurrentMonthLunarColor_value_type)) && (value_nonCurrentMonthLunarColor_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_nonCurrentMonthLunarColor_value_0 = value_nonCurrentMonthLunarColor_value as Color + valueSerializer.writeInt32((value_nonCurrentMonthLunarColor_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_nonCurrentMonthLunarColor_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_nonCurrentMonthLunarColor_value_1 = value_nonCurrentMonthLunarColor_value as number + valueSerializer.writeNumber(value_nonCurrentMonthLunarColor_value_1) + } + else if (((RuntimeType.STRING == value_nonCurrentMonthLunarColor_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_nonCurrentMonthLunarColor_value_2 = value_nonCurrentMonthLunarColor_value as string + valueSerializer.writeString(value_nonCurrentMonthLunarColor_value_2) + } + else if (isResource(value_nonCurrentMonthLunarColor_value)) { + valueSerializer.writeInt8(3 as int32) + const value_nonCurrentMonthLunarColor_value_3 = value_nonCurrentMonthLunarColor_value as Resource + valueSerializer.writeResource(value_nonCurrentMonthLunarColor_value_3) + } + } + const value_nonCurrentMonthWorkDayMarkColor = value.nonCurrentMonthWorkDayMarkColor + let value_nonCurrentMonthWorkDayMarkColor_type = RuntimeType.UNDEFINED + if (value_nonCurrentMonthWorkDayMarkColor != undefined) { + value_nonCurrentMonthWorkDayMarkColor_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_nonCurrentMonthWorkDayMarkColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_nonCurrentMonthWorkDayMarkColor_type)) { + const value_nonCurrentMonthWorkDayMarkColor_value = value_nonCurrentMonthWorkDayMarkColor! + let value_nonCurrentMonthWorkDayMarkColor_value_type = RuntimeType.UNDEFINED + value_nonCurrentMonthWorkDayMarkColor_value_type = runtimeType(value_nonCurrentMonthWorkDayMarkColor_value) + if (((RuntimeType.OBJECT) == (value_nonCurrentMonthWorkDayMarkColor_value_type)) && (value_nonCurrentMonthWorkDayMarkColor_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_nonCurrentMonthWorkDayMarkColor_value_0 = value_nonCurrentMonthWorkDayMarkColor_value as Color + valueSerializer.writeInt32((value_nonCurrentMonthWorkDayMarkColor_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_nonCurrentMonthWorkDayMarkColor_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_nonCurrentMonthWorkDayMarkColor_value_1 = value_nonCurrentMonthWorkDayMarkColor_value as number + valueSerializer.writeNumber(value_nonCurrentMonthWorkDayMarkColor_value_1) + } + else if (((RuntimeType.STRING == value_nonCurrentMonthWorkDayMarkColor_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_nonCurrentMonthWorkDayMarkColor_value_2 = value_nonCurrentMonthWorkDayMarkColor_value as string + valueSerializer.writeString(value_nonCurrentMonthWorkDayMarkColor_value_2) + } + else if (isResource(value_nonCurrentMonthWorkDayMarkColor_value)) { + valueSerializer.writeInt8(3 as int32) + const value_nonCurrentMonthWorkDayMarkColor_value_3 = value_nonCurrentMonthWorkDayMarkColor_value as Resource + valueSerializer.writeResource(value_nonCurrentMonthWorkDayMarkColor_value_3) + } + } + const value_nonCurrentMonthOffDayMarkColor = value.nonCurrentMonthOffDayMarkColor + let value_nonCurrentMonthOffDayMarkColor_type = RuntimeType.UNDEFINED + if (value_nonCurrentMonthOffDayMarkColor != undefined) { + value_nonCurrentMonthOffDayMarkColor_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_nonCurrentMonthOffDayMarkColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_nonCurrentMonthOffDayMarkColor_type)) { + const value_nonCurrentMonthOffDayMarkColor_value = value_nonCurrentMonthOffDayMarkColor! + let value_nonCurrentMonthOffDayMarkColor_value_type = RuntimeType.UNDEFINED + value_nonCurrentMonthOffDayMarkColor_value_type = runtimeType(value_nonCurrentMonthOffDayMarkColor_value) + if (((RuntimeType.OBJECT) == (value_nonCurrentMonthOffDayMarkColor_value_type)) && (value_nonCurrentMonthOffDayMarkColor_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_nonCurrentMonthOffDayMarkColor_value_0 = value_nonCurrentMonthOffDayMarkColor_value as Color + valueSerializer.writeInt32((value_nonCurrentMonthOffDayMarkColor_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_nonCurrentMonthOffDayMarkColor_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_nonCurrentMonthOffDayMarkColor_value_1 = value_nonCurrentMonthOffDayMarkColor_value as number + valueSerializer.writeNumber(value_nonCurrentMonthOffDayMarkColor_value_1) + } + else if (((RuntimeType.STRING == value_nonCurrentMonthOffDayMarkColor_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_nonCurrentMonthOffDayMarkColor_value_2 = value_nonCurrentMonthOffDayMarkColor_value as string + valueSerializer.writeString(value_nonCurrentMonthOffDayMarkColor_value_2) + } + else if (isResource(value_nonCurrentMonthOffDayMarkColor_value)) { + valueSerializer.writeInt8(3 as int32) + const value_nonCurrentMonthOffDayMarkColor_value_3 = value_nonCurrentMonthOffDayMarkColor_value as Resource + valueSerializer.writeResource(value_nonCurrentMonthOffDayMarkColor_value_3) + } + } + } + writeCurrentDayStyle(value: CurrentDayStyle): void { + let valueSerializer = this + const value_dayColor = value.dayColor + let value_dayColor_type = RuntimeType.UNDEFINED + if (value_dayColor != undefined) { + value_dayColor_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_dayColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_dayColor_type)) { + const value_dayColor_value = value_dayColor! + let value_dayColor_value_type = RuntimeType.UNDEFINED + value_dayColor_value_type = runtimeType(value_dayColor_value) + if (((RuntimeType.OBJECT) == (value_dayColor_value_type)) && (value_dayColor_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_dayColor_value_0 = value_dayColor_value as Color + valueSerializer.writeInt32((value_dayColor_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_dayColor_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_dayColor_value_1 = value_dayColor_value as number + valueSerializer.writeNumber(value_dayColor_value_1) + } + else if (((RuntimeType.STRING == value_dayColor_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_dayColor_value_2 = value_dayColor_value as string + valueSerializer.writeString(value_dayColor_value_2) + } + else if (isResource(value_dayColor_value)) { + valueSerializer.writeInt8(3 as int32) + const value_dayColor_value_3 = value_dayColor_value as Resource + valueSerializer.writeResource(value_dayColor_value_3) + } + } + const value_lunarColor = value.lunarColor + let value_lunarColor_type = RuntimeType.UNDEFINED + if (value_lunarColor != undefined) { + value_lunarColor_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_lunarColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_lunarColor_type)) { + const value_lunarColor_value = value_lunarColor! + let value_lunarColor_value_type = RuntimeType.UNDEFINED + value_lunarColor_value_type = runtimeType(value_lunarColor_value) + if (((RuntimeType.OBJECT) == (value_lunarColor_value_type)) && (value_lunarColor_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_lunarColor_value_0 = value_lunarColor_value as Color + valueSerializer.writeInt32((value_lunarColor_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_lunarColor_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_lunarColor_value_1 = value_lunarColor_value as number + valueSerializer.writeNumber(value_lunarColor_value_1) + } + else if (((RuntimeType.STRING == value_lunarColor_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_lunarColor_value_2 = value_lunarColor_value as string + valueSerializer.writeString(value_lunarColor_value_2) + } + else if (isResource(value_lunarColor_value)) { + valueSerializer.writeInt8(3 as int32) + const value_lunarColor_value_3 = value_lunarColor_value as Resource + valueSerializer.writeResource(value_lunarColor_value_3) + } + } + const value_markLunarColor = value.markLunarColor + let value_markLunarColor_type = RuntimeType.UNDEFINED + if (value_markLunarColor != undefined) { + value_markLunarColor_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_markLunarColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_markLunarColor_type)) { + const value_markLunarColor_value = value_markLunarColor! + let value_markLunarColor_value_type = RuntimeType.UNDEFINED + value_markLunarColor_value_type = runtimeType(value_markLunarColor_value) + if (((RuntimeType.OBJECT) == (value_markLunarColor_value_type)) && (value_markLunarColor_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_markLunarColor_value_0 = value_markLunarColor_value as Color + valueSerializer.writeInt32((value_markLunarColor_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_markLunarColor_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_markLunarColor_value_1 = value_markLunarColor_value as number + valueSerializer.writeNumber(value_markLunarColor_value_1) + } + else if (((RuntimeType.STRING == value_markLunarColor_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_markLunarColor_value_2 = value_markLunarColor_value as string + valueSerializer.writeString(value_markLunarColor_value_2) + } + else if (isResource(value_markLunarColor_value)) { + valueSerializer.writeInt8(3 as int32) + const value_markLunarColor_value_3 = value_markLunarColor_value as Resource + valueSerializer.writeResource(value_markLunarColor_value_3) + } + } + const value_dayFontSize = value.dayFontSize + let value_dayFontSize_type = RuntimeType.UNDEFINED + if (value_dayFontSize != undefined) { + value_dayFontSize_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_dayFontSize_type as int32) + if ((RuntimeType.UNDEFINED) != (value_dayFontSize_type)) { + const value_dayFontSize_value = value_dayFontSize! + valueSerializer.writeNumber(value_dayFontSize_value) + } + const value_lunarDayFontSize = value.lunarDayFontSize + let value_lunarDayFontSize_type = RuntimeType.UNDEFINED + if (value_lunarDayFontSize != undefined) { + value_lunarDayFontSize_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_lunarDayFontSize_type as int32) + if ((RuntimeType.UNDEFINED) != (value_lunarDayFontSize_type)) { + const value_lunarDayFontSize_value = value_lunarDayFontSize! + valueSerializer.writeNumber(value_lunarDayFontSize_value) + } + const value_dayHeight = value.dayHeight + let value_dayHeight_type = RuntimeType.UNDEFINED + if (value_dayHeight != undefined) { + value_dayHeight_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_dayHeight_type as int32) + if ((RuntimeType.UNDEFINED) != (value_dayHeight_type)) { + const value_dayHeight_value = value_dayHeight! + valueSerializer.writeNumber(value_dayHeight_value) + } + const value_dayWidth = value.dayWidth + let value_dayWidth_type = RuntimeType.UNDEFINED + if (value_dayWidth != undefined) { + value_dayWidth_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_dayWidth_type as int32) + if ((RuntimeType.UNDEFINED) != (value_dayWidth_type)) { + const value_dayWidth_value = value_dayWidth! + valueSerializer.writeNumber(value_dayWidth_value) + } + const value_gregorianCalendarHeight = value.gregorianCalendarHeight + let value_gregorianCalendarHeight_type = RuntimeType.UNDEFINED + if (value_gregorianCalendarHeight != undefined) { + value_gregorianCalendarHeight_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_gregorianCalendarHeight_type as int32) + if ((RuntimeType.UNDEFINED) != (value_gregorianCalendarHeight_type)) { + const value_gregorianCalendarHeight_value = value_gregorianCalendarHeight! + valueSerializer.writeNumber(value_gregorianCalendarHeight_value) + } + const value_dayYAxisOffset = value.dayYAxisOffset + let value_dayYAxisOffset_type = RuntimeType.UNDEFINED + if (value_dayYAxisOffset != undefined) { + value_dayYAxisOffset_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_dayYAxisOffset_type as int32) + if ((RuntimeType.UNDEFINED) != (value_dayYAxisOffset_type)) { + const value_dayYAxisOffset_value = value_dayYAxisOffset! + valueSerializer.writeNumber(value_dayYAxisOffset_value) + } + const value_lunarDayYAxisOffset = value.lunarDayYAxisOffset + let value_lunarDayYAxisOffset_type = RuntimeType.UNDEFINED + if (value_lunarDayYAxisOffset != undefined) { + value_lunarDayYAxisOffset_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_lunarDayYAxisOffset_type as int32) + if ((RuntimeType.UNDEFINED) != (value_lunarDayYAxisOffset_type)) { + const value_lunarDayYAxisOffset_value = value_lunarDayYAxisOffset! + valueSerializer.writeNumber(value_lunarDayYAxisOffset_value) + } + const value_underscoreXAxisOffset = value.underscoreXAxisOffset + let value_underscoreXAxisOffset_type = RuntimeType.UNDEFINED + if (value_underscoreXAxisOffset != undefined) { + value_underscoreXAxisOffset_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_underscoreXAxisOffset_type as int32) + if ((RuntimeType.UNDEFINED) != (value_underscoreXAxisOffset_type)) { + const value_underscoreXAxisOffset_value = value_underscoreXAxisOffset! + valueSerializer.writeNumber(value_underscoreXAxisOffset_value) + } + const value_underscoreYAxisOffset = value.underscoreYAxisOffset + let value_underscoreYAxisOffset_type = RuntimeType.UNDEFINED + if (value_underscoreYAxisOffset != undefined) { + value_underscoreYAxisOffset_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_underscoreYAxisOffset_type as int32) + if ((RuntimeType.UNDEFINED) != (value_underscoreYAxisOffset_type)) { + const value_underscoreYAxisOffset_value = value_underscoreYAxisOffset! + valueSerializer.writeNumber(value_underscoreYAxisOffset_value) + } + const value_scheduleMarkerXAxisOffset = value.scheduleMarkerXAxisOffset + let value_scheduleMarkerXAxisOffset_type = RuntimeType.UNDEFINED + if (value_scheduleMarkerXAxisOffset != undefined) { + value_scheduleMarkerXAxisOffset_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_scheduleMarkerXAxisOffset_type as int32) + if ((RuntimeType.UNDEFINED) != (value_scheduleMarkerXAxisOffset_type)) { + const value_scheduleMarkerXAxisOffset_value = value_scheduleMarkerXAxisOffset! + valueSerializer.writeNumber(value_scheduleMarkerXAxisOffset_value) + } + const value_scheduleMarkerYAxisOffset = value.scheduleMarkerYAxisOffset + let value_scheduleMarkerYAxisOffset_type = RuntimeType.UNDEFINED + if (value_scheduleMarkerYAxisOffset != undefined) { + value_scheduleMarkerYAxisOffset_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_scheduleMarkerYAxisOffset_type as int32) + if ((RuntimeType.UNDEFINED) != (value_scheduleMarkerYAxisOffset_type)) { + const value_scheduleMarkerYAxisOffset_value = value_scheduleMarkerYAxisOffset! + valueSerializer.writeNumber(value_scheduleMarkerYAxisOffset_value) + } + const value_colSpace = value.colSpace + let value_colSpace_type = RuntimeType.UNDEFINED + if (value_colSpace != undefined) { + value_colSpace_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_colSpace_type as int32) + if ((RuntimeType.UNDEFINED) != (value_colSpace_type)) { + const value_colSpace_value = value_colSpace! + valueSerializer.writeNumber(value_colSpace_value) + } + const value_dailyFiveRowSpace = value.dailyFiveRowSpace + let value_dailyFiveRowSpace_type = RuntimeType.UNDEFINED + if (value_dailyFiveRowSpace != undefined) { + value_dailyFiveRowSpace_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_dailyFiveRowSpace_type as int32) + if ((RuntimeType.UNDEFINED) != (value_dailyFiveRowSpace_type)) { + const value_dailyFiveRowSpace_value = value_dailyFiveRowSpace! + valueSerializer.writeNumber(value_dailyFiveRowSpace_value) + } + const value_dailySixRowSpace = value.dailySixRowSpace + let value_dailySixRowSpace_type = RuntimeType.UNDEFINED + if (value_dailySixRowSpace != undefined) { + value_dailySixRowSpace_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_dailySixRowSpace_type as int32) + if ((RuntimeType.UNDEFINED) != (value_dailySixRowSpace_type)) { + const value_dailySixRowSpace_value = value_dailySixRowSpace! + valueSerializer.writeNumber(value_dailySixRowSpace_value) + } + const value_lunarHeight = value.lunarHeight + let value_lunarHeight_type = RuntimeType.UNDEFINED + if (value_lunarHeight != undefined) { + value_lunarHeight_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_lunarHeight_type as int32) + if ((RuntimeType.UNDEFINED) != (value_lunarHeight_type)) { + const value_lunarHeight_value = value_lunarHeight! + valueSerializer.writeNumber(value_lunarHeight_value) + } + const value_underscoreWidth = value.underscoreWidth + let value_underscoreWidth_type = RuntimeType.UNDEFINED + if (value_underscoreWidth != undefined) { + value_underscoreWidth_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_underscoreWidth_type as int32) + if ((RuntimeType.UNDEFINED) != (value_underscoreWidth_type)) { + const value_underscoreWidth_value = value_underscoreWidth! + valueSerializer.writeNumber(value_underscoreWidth_value) + } + const value_underscoreLength = value.underscoreLength + let value_underscoreLength_type = RuntimeType.UNDEFINED + if (value_underscoreLength != undefined) { + value_underscoreLength_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_underscoreLength_type as int32) + if ((RuntimeType.UNDEFINED) != (value_underscoreLength_type)) { + const value_underscoreLength_value = value_underscoreLength! + valueSerializer.writeNumber(value_underscoreLength_value) + } + const value_scheduleMarkerRadius = value.scheduleMarkerRadius + let value_scheduleMarkerRadius_type = RuntimeType.UNDEFINED + if (value_scheduleMarkerRadius != undefined) { + value_scheduleMarkerRadius_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_scheduleMarkerRadius_type as int32) + if ((RuntimeType.UNDEFINED) != (value_scheduleMarkerRadius_type)) { + const value_scheduleMarkerRadius_value = value_scheduleMarkerRadius! + valueSerializer.writeNumber(value_scheduleMarkerRadius_value) + } + const value_boundaryRowOffset = value.boundaryRowOffset + let value_boundaryRowOffset_type = RuntimeType.UNDEFINED + if (value_boundaryRowOffset != undefined) { + value_boundaryRowOffset_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_boundaryRowOffset_type as int32) + if ((RuntimeType.UNDEFINED) != (value_boundaryRowOffset_type)) { + const value_boundaryRowOffset_value = value_boundaryRowOffset! + valueSerializer.writeNumber(value_boundaryRowOffset_value) + } + const value_boundaryColOffset = value.boundaryColOffset + let value_boundaryColOffset_type = RuntimeType.UNDEFINED + if (value_boundaryColOffset != undefined) { + value_boundaryColOffset_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_boundaryColOffset_type as int32) + if ((RuntimeType.UNDEFINED) != (value_boundaryColOffset_type)) { + const value_boundaryColOffset_value = value_boundaryColOffset! + valueSerializer.writeNumber(value_boundaryColOffset_value) + } + } + writeCalendarDay(value: CalendarDay): void { + let valueSerializer = this + const value_index = value.index + valueSerializer.writeNumber(value_index) + const value_lunarMonth = value.lunarMonth + valueSerializer.writeString(value_lunarMonth) + const value_lunarDay = value.lunarDay + valueSerializer.writeString(value_lunarDay) + const value_dayMark = value.dayMark + valueSerializer.writeString(value_dayMark) + const value_dayMarkValue = value.dayMarkValue + valueSerializer.writeString(value_dayMarkValue) + const value_year = value.year + valueSerializer.writeNumber(value_year) + const value_month = value.month + valueSerializer.writeNumber(value_month) + const value_day = value.day + valueSerializer.writeNumber(value_day) + const value_isFirstOfLunar = value.isFirstOfLunar + valueSerializer.writeBoolean(value_isFirstOfLunar) + const value_hasSchedule = value.hasSchedule + valueSerializer.writeBoolean(value_hasSchedule) + const value_markLunarDay = value.markLunarDay + valueSerializer.writeBoolean(value_markLunarDay) + } + writeButtonOptions(value: ButtonOptions): void { + let valueSerializer = this + const value_type = value.type + let value_type_type = RuntimeType.UNDEFINED + if (value_type != undefined) { + value_type_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_type_type as int32) + if ((RuntimeType.UNDEFINED) != (value_type_type)) { + const value_type_value = value_type! + valueSerializer.writeInt32((value_type_value.value as int32)) + } + const value_stateEffect = value.stateEffect + let value_stateEffect_type = RuntimeType.UNDEFINED + if (value_stateEffect != undefined) { + value_stateEffect_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_stateEffect_type as int32) + if ((RuntimeType.UNDEFINED) != (value_stateEffect_type)) { + const value_stateEffect_value = value_stateEffect! + valueSerializer.writeBoolean(value_stateEffect_value) + } + const value_buttonStyle = value.buttonStyle + let value_buttonStyle_type = RuntimeType.UNDEFINED + if (value_buttonStyle != undefined) { + value_buttonStyle_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_buttonStyle_type as int32) + if ((RuntimeType.UNDEFINED) != (value_buttonStyle_type)) { + const value_buttonStyle_value = value_buttonStyle! + valueSerializer.writeInt32((value_buttonStyle_value.value as int32)) + } + const value_controlSize = value.controlSize + let value_controlSize_type = RuntimeType.UNDEFINED + if (value_controlSize != undefined) { + value_controlSize_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_controlSize_type as int32) + if ((RuntimeType.UNDEFINED) != (value_controlSize_type)) { + const value_controlSize_value = value_controlSize! + valueSerializer.writeInt32((value_controlSize_value.ordinal as int32)) + } + const value_role = value.role + let value_role_type = RuntimeType.UNDEFINED + if (value_role != undefined) { + value_role_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_role_type as int32) + if ((RuntimeType.UNDEFINED) != (value_role_type)) { + const value_role_value = value_role! + valueSerializer.writeInt32((value_role_value.value as int32)) + } + } + writeBadgeParamWithString(value: BadgeParamWithString): void { + let valueSerializer = this + const value_position = value.position + let value_position_type = RuntimeType.UNDEFINED + if (value_position != undefined) { + value_position_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_position_type as int32) + if ((RuntimeType.UNDEFINED) != (value_position_type)) { + const value_position_value = value_position! + let value_position_value_type = RuntimeType.UNDEFINED + value_position_value_type = runtimeType(value_position_value) + if (((RuntimeType.OBJECT) == (value_position_value_type)) && (value_position_value instanceof BadgePosition)) { + valueSerializer.writeInt8(0 as int32) + const value_position_value_0 = value_position_value as BadgePosition + valueSerializer.writeInt32((value_position_value_0.value as int32)) + } + else if (TypeChecker.isPosition(value_position_value, false, false)) { + valueSerializer.writeInt8(1 as int32) + const value_position_value_1 = value_position_value as Position + valueSerializer.writePosition(value_position_value_1) + } + } + const value_style = value.style + valueSerializer.writeBadgeStyle(value_style) + const value_value = value.value + valueSerializer.writeString(value_value) + } + writeBadgeParamWithNumber(value: BadgeParamWithNumber): void { + let valueSerializer = this + const value_position = value.position + let value_position_type = RuntimeType.UNDEFINED + if (value_position != undefined) { + value_position_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_position_type as int32) + if ((RuntimeType.UNDEFINED) != (value_position_type)) { + const value_position_value = value_position! + let value_position_value_type = RuntimeType.UNDEFINED + value_position_value_type = runtimeType(value_position_value) + if (((RuntimeType.OBJECT) == (value_position_value_type)) && (value_position_value instanceof BadgePosition)) { + valueSerializer.writeInt8(0 as int32) + const value_position_value_0 = value_position_value as BadgePosition + valueSerializer.writeInt32((value_position_value_0.value as int32)) + } + else if (TypeChecker.isPosition(value_position_value, false, false)) { + valueSerializer.writeInt8(1 as int32) + const value_position_value_1 = value_position_value as Position + valueSerializer.writePosition(value_position_value_1) + } + } + const value_style = value.style + valueSerializer.writeBadgeStyle(value_style) + const value_count = value.count + valueSerializer.writeNumber(value_count) + const value_maxCount = value.maxCount + let value_maxCount_type = RuntimeType.UNDEFINED + if (value_maxCount != undefined) { + value_maxCount_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_maxCount_type as int32) + if ((RuntimeType.UNDEFINED) != (value_maxCount_type)) { + const value_maxCount_value = value_maxCount! + valueSerializer.writeNumber(value_maxCount_value) + } + } + writeAlphabetIndexerOptions(value: AlphabetIndexerOptions): void { + let valueSerializer = this + const value_arrayValue = value.arrayValue + valueSerializer.writeInt8(runtimeType(value_arrayValue) as int32) + valueSerializer.writeInt32(value_arrayValue.length as int32) + for (let i = 0; i < value_arrayValue.length; i++) { + const value_arrayValue_element = value_arrayValue[i] + valueSerializer.writeString(value_arrayValue_element) + } + const value_selected = value.selected + valueSerializer.writeNumber(value_selected) + } + writeBackgroundBrightnessOptions(value: BackgroundBrightnessOptions): void { + let valueSerializer = this + const value_rate = value.rate + valueSerializer.writeNumber(value_rate) + const value_lightUpDegree = value.lightUpDegree + valueSerializer.writeNumber(value_lightUpDegree) + } + writePixelStretchEffectOptions(value: PixelStretchEffectOptions): void { + let valueSerializer = this + const value_top = value.top + let value_top_type = RuntimeType.UNDEFINED + if (value_top != undefined) { + value_top_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_top_type as int32) + if ((RuntimeType.UNDEFINED) != (value_top_type)) { + const value_top_value = value_top! + valueSerializer.writeLength(value_top_value); + } + const value_bottom = value.bottom + let value_bottom_type = RuntimeType.UNDEFINED + if (value_bottom != undefined) { + value_bottom_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_bottom_type as int32) + if ((RuntimeType.UNDEFINED) != (value_bottom_type)) { + const value_bottom_value = value_bottom! + valueSerializer.writeLength(value_bottom_value); + } + const value_left = value.left + let value_left_type = RuntimeType.UNDEFINED + if (value_left != undefined) { + value_left_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_left_type as int32) + if ((RuntimeType.UNDEFINED) != (value_left_type)) { + const value_left_value = value_left! + valueSerializer.writeLength(value_left_value); + } + const value_right = value.right + let value_right_type = RuntimeType.UNDEFINED + if (value_right != undefined) { + value_right_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_right_type as int32) + if ((RuntimeType.UNDEFINED) != (value_right_type)) { + const value_right_value = value_right! + valueSerializer.writeLength(value_right_value); + } + } + writeStateStyles(value: StateStyles): void { + let valueSerializer = this + const value_normal = value.normal + let value_normal_type = RuntimeType.UNDEFINED + if (value_normal != undefined) { + value_normal_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_normal_type as int32) + if ((RuntimeType.UNDEFINED) != (value_normal_type)) { + const value_normal_value = value_normal! + valueSerializer.writeCustomObject("Any", value_normal_value) + } + const value_pressed = value.pressed + let value_pressed_type = RuntimeType.UNDEFINED + if (value_pressed != undefined) { + value_pressed_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_pressed_type as int32) + if ((RuntimeType.UNDEFINED) != (value_pressed_type)) { + const value_pressed_value = value_pressed! + valueSerializer.writeCustomObject("Any", value_pressed_value) + } + const value_disabled = value.disabled + let value_disabled_type = RuntimeType.UNDEFINED + if (value_disabled != undefined) { + value_disabled_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_disabled_type as int32) + if ((RuntimeType.UNDEFINED) != (value_disabled_type)) { + const value_disabled_value = value_disabled! + valueSerializer.writeCustomObject("Any", value_disabled_value) + } + const value_focused = value.focused + let value_focused_type = RuntimeType.UNDEFINED + if (value_focused != undefined) { + value_focused_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_focused_type as int32) + if ((RuntimeType.UNDEFINED) != (value_focused_type)) { + const value_focused_value = value_focused! + valueSerializer.writeCustomObject("Any", value_focused_value) + } + const value_clicked = value.clicked + let value_clicked_type = RuntimeType.UNDEFINED + if (value_clicked != undefined) { + value_clicked_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_clicked_type as int32) + if ((RuntimeType.UNDEFINED) != (value_clicked_type)) { + const value_clicked_value = value_clicked! + valueSerializer.writeCustomObject("Any", value_clicked_value) + } + const value_selected = value.selected + let value_selected_type = RuntimeType.UNDEFINED + if (value_selected != undefined) { + value_selected_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_selected_type as int32) + if ((RuntimeType.UNDEFINED) != (value_selected_type)) { + const value_selected_value = value_selected! + valueSerializer.writeCustomObject("Object", value_selected_value) + } + } + writeSheetOptions(value: SheetOptions): void { + let valueSerializer = this + const value_backgroundColor = value.backgroundColor + let value_backgroundColor_type = RuntimeType.UNDEFINED + if (value_backgroundColor != undefined) { + value_backgroundColor_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_backgroundColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_backgroundColor_type)) { + const value_backgroundColor_value = value_backgroundColor! + let value_backgroundColor_value_type = RuntimeType.UNDEFINED + value_backgroundColor_value_type = runtimeType(value_backgroundColor_value) + if (((RuntimeType.OBJECT) == (value_backgroundColor_value_type)) && (value_backgroundColor_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_backgroundColor_value_0 = value_backgroundColor_value as Color + valueSerializer.writeInt32((value_backgroundColor_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_backgroundColor_value_1 = value_backgroundColor_value as number + valueSerializer.writeNumber(value_backgroundColor_value_1) + } + else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_backgroundColor_value_2 = value_backgroundColor_value as string + valueSerializer.writeString(value_backgroundColor_value_2) + } + else if (isResource(value_backgroundColor_value)) { + valueSerializer.writeInt8(3 as int32) + const value_backgroundColor_value_3 = value_backgroundColor_value as Resource + valueSerializer.writeResource(value_backgroundColor_value_3) + } + } + const value_onAppear = value.onAppear + let value_onAppear_type = RuntimeType.UNDEFINED + if (value_onAppear != undefined) { + value_onAppear_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_onAppear_type as int32) + if ((RuntimeType.UNDEFINED) != (value_onAppear_type)) { + const value_onAppear_value = value_onAppear! + valueSerializer.writeFunction(value_onAppear_value) + } + const value_onDisappear = value.onDisappear + let value_onDisappear_type = RuntimeType.UNDEFINED + if (value_onDisappear != undefined) { + value_onDisappear_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_onDisappear_type as int32) + if ((RuntimeType.UNDEFINED) != (value_onDisappear_type)) { + const value_onDisappear_value = value_onDisappear! + valueSerializer.writeFunction(value_onDisappear_value) + } + const value_onWillAppear = value.onWillAppear + let value_onWillAppear_type = RuntimeType.UNDEFINED + if (value_onWillAppear != undefined) { + value_onWillAppear_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_onWillAppear_type as int32) + if ((RuntimeType.UNDEFINED) != (value_onWillAppear_type)) { + const value_onWillAppear_value = value_onWillAppear! + valueSerializer.writeFunction(value_onWillAppear_value) + } + const value_onWillDisappear = value.onWillDisappear + let value_onWillDisappear_type = RuntimeType.UNDEFINED + if (value_onWillDisappear != undefined) { + value_onWillDisappear_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_onWillDisappear_type as int32) + if ((RuntimeType.UNDEFINED) != (value_onWillDisappear_type)) { + const value_onWillDisappear_value = value_onWillDisappear! + valueSerializer.writeFunction(value_onWillDisappear_value) + } + const value_height = value.height + let value_height_type = RuntimeType.UNDEFINED + if (value_height != undefined) { + value_height_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_height_type as int32) + if ((RuntimeType.UNDEFINED) != (value_height_type)) { + const value_height_value = value_height! + let value_height_value_type = RuntimeType.UNDEFINED + value_height_value_type = runtimeType(value_height_value) + if (((RuntimeType.OBJECT) == (value_height_value_type)) && (value_height_value instanceof SheetSize)) { + valueSerializer.writeInt8(0 as int32) + const value_height_value_0 = value_height_value as SheetSize + valueSerializer.writeInt32((value_height_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER) == (value_height_value_type)) || ((RuntimeType.STRING) == (value_height_value_type)) || (((RuntimeType.OBJECT) == (value_height_value_type)) && (isResource(value_height_value)))) { + valueSerializer.writeInt8(1 as int32) + const value_height_value_1 = value_height_value as Length + valueSerializer.writeLength(value_height_value_1); + } + } + const value_dragBar = value.dragBar + let value_dragBar_type = RuntimeType.UNDEFINED + if (value_dragBar != undefined) { + value_dragBar_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_dragBar_type as int32) + if ((RuntimeType.UNDEFINED) != (value_dragBar_type)) { + const value_dragBar_value = value_dragBar! + valueSerializer.writeBoolean(value_dragBar_value) + } + const value_maskColor = value.maskColor + let value_maskColor_type = RuntimeType.UNDEFINED + if (value_maskColor != undefined) { + value_maskColor_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_maskColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_maskColor_type)) { + const value_maskColor_value = value_maskColor! + let value_maskColor_value_type = RuntimeType.UNDEFINED + value_maskColor_value_type = runtimeType(value_maskColor_value) + if (((RuntimeType.OBJECT) == (value_maskColor_value_type)) && (value_maskColor_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_maskColor_value_0 = value_maskColor_value as Color + valueSerializer.writeInt32((value_maskColor_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_maskColor_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_maskColor_value_1 = value_maskColor_value as number + valueSerializer.writeNumber(value_maskColor_value_1) + } + else if (((RuntimeType.STRING == value_maskColor_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_maskColor_value_2 = value_maskColor_value as string + valueSerializer.writeString(value_maskColor_value_2) + } + else if (isResource(value_maskColor_value)) { + valueSerializer.writeInt8(3 as int32) + const value_maskColor_value_3 = value_maskColor_value as Resource + valueSerializer.writeResource(value_maskColor_value_3) + } + } + const value_detents = value.detents + let value_detents_type = RuntimeType.UNDEFINED + if (value_detents != undefined) { + value_detents_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_detents_type as int32) + if ((RuntimeType.UNDEFINED) != (value_detents_type)) { + const value_detents_value = value_detents! + valueSerializer.writeInt8(runtimeType(value_detents_value) as int32) + const value_detents_value_0 = value_detents_value[0] + let value_detents_value_0_type = RuntimeType.UNDEFINED + value_detents_value_0_type = runtimeType(value_detents_value_0) + if (((RuntimeType.OBJECT) == (value_detents_value_0_type)) && (value_detents_value_0 instanceof SheetSize)) { + valueSerializer.writeInt8(0 as int32) + const value_detents_value_0_0 = value_detents_value_0 as SheetSize + valueSerializer.writeInt32((value_detents_value_0_0.value as int32)) + } + else if (((RuntimeType.NUMBER) == (value_detents_value_0_type)) || ((RuntimeType.STRING) == (value_detents_value_0_type)) || (((RuntimeType.OBJECT) == (value_detents_value_0_type)) && (isResource(value_detents_value_0)))) { + valueSerializer.writeInt8(1 as int32) + const value_detents_value_0_1 = value_detents_value_0 as Length + valueSerializer.writeLength(value_detents_value_0_1); + } + const value_detents_value_1 = value_detents_value[1] + let value_detents_value_1_type = RuntimeType.UNDEFINED + if (value_detents_value_1 != undefined) { + value_detents_value_1_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_detents_value_1_type as int32) + if ((RuntimeType.UNDEFINED) != (value_detents_value_1_type)) { + const value_detents_value_1_value = value_detents_value_1! + let value_detents_value_1_value_type = RuntimeType.UNDEFINED + value_detents_value_1_value_type = runtimeType(value_detents_value_1_value) + if (((RuntimeType.OBJECT) == (value_detents_value_1_value_type)) && (value_detents_value_1_value instanceof SheetSize)) { + valueSerializer.writeInt8(0 as int32) + const value_detents_value_1_value_0 = value_detents_value_1_value as SheetSize + valueSerializer.writeInt32((value_detents_value_1_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER) == (value_detents_value_1_value_type)) || ((RuntimeType.STRING) == (value_detents_value_1_value_type)) || (((RuntimeType.OBJECT) == (value_detents_value_1_value_type)) && (isResource(value_detents_value_1_value)))) { + valueSerializer.writeInt8(1 as int32) + const value_detents_value_1_value_1 = value_detents_value_1_value as Length + valueSerializer.writeLength(value_detents_value_1_value_1); + } + } + const value_detents_value_2 = value_detents_value[2] + let value_detents_value_2_type = RuntimeType.UNDEFINED + if (value_detents_value_2 != undefined) { + value_detents_value_2_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_detents_value_2_type as int32) + if ((RuntimeType.UNDEFINED) != (value_detents_value_2_type)) { + const value_detents_value_2_value = value_detents_value_2! + let value_detents_value_2_value_type = RuntimeType.UNDEFINED + value_detents_value_2_value_type = runtimeType(value_detents_value_2_value) + if (((RuntimeType.OBJECT) == (value_detents_value_2_value_type)) && (value_detents_value_2_value instanceof SheetSize)) { + valueSerializer.writeInt8(0 as int32) + const value_detents_value_2_value_0 = value_detents_value_2_value as SheetSize + valueSerializer.writeInt32((value_detents_value_2_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER) == (value_detents_value_2_value_type)) || ((RuntimeType.STRING) == (value_detents_value_2_value_type)) || (((RuntimeType.OBJECT) == (value_detents_value_2_value_type)) && (isResource(value_detents_value_2_value)))) { + valueSerializer.writeInt8(1 as int32) + const value_detents_value_2_value_1 = value_detents_value_2_value as Length + valueSerializer.writeLength(value_detents_value_2_value_1); + } + } + } + const value_blurStyle = value.blurStyle + let value_blurStyle_type = RuntimeType.UNDEFINED + if (value_blurStyle != undefined) { + value_blurStyle_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_blurStyle_type as int32) + if ((RuntimeType.UNDEFINED) != (value_blurStyle_type)) { + const value_blurStyle_value = value_blurStyle! + valueSerializer.writeInt32((value_blurStyle_value.value as int32)) + } + const value_showClose = value.showClose + let value_showClose_type = RuntimeType.UNDEFINED + if (value_showClose != undefined) { + value_showClose_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_showClose_type as int32) + if ((RuntimeType.UNDEFINED) != (value_showClose_type)) { + const value_showClose_value = value_showClose! + let value_showClose_value_type = RuntimeType.UNDEFINED + value_showClose_value_type = runtimeType(value_showClose_value) + if (((RuntimeType.BOOLEAN == value_showClose_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_showClose_value_0 = value_showClose_value as boolean + valueSerializer.writeBoolean(value_showClose_value_0) + } + else if (((RuntimeType.OBJECT == value_showClose_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_showClose_value_1 = value_showClose_value as Resource + valueSerializer.writeResource(value_showClose_value_1) + } + } + const value_preferType = value.preferType + let value_preferType_type = RuntimeType.UNDEFINED + if (value_preferType != undefined) { + value_preferType_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_preferType_type as int32) + if ((RuntimeType.UNDEFINED) != (value_preferType_type)) { + const value_preferType_value = value_preferType! + valueSerializer.writeInt32((value_preferType_value.value as int32)) + } + const value_title = value.title + let value_title_type = RuntimeType.UNDEFINED + if (value_title != undefined) { + value_title_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_title_type as int32) + if ((RuntimeType.UNDEFINED) != (value_title_type)) { + const value_title_value = value_title! + let value_title_value_type = RuntimeType.UNDEFINED + value_title_value_type = runtimeType(value_title_value) + if (((RuntimeType.OBJECT == value_title_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_title_value_0 = value_title_value as SheetTitleOptions + valueSerializer.writeSheetTitleOptions(value_title_value_0) + } + else if (((RuntimeType.FUNCTION == value_title_value_type)) || ((RuntimeType.UNDEFINED == value_title_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_title_value_1 = value_title_value as CustomBuilder + let value_title_value_1_type = RuntimeType.UNDEFINED + value_title_value_1_type = runtimeType(value_title_value_1) + if (((RuntimeType.FUNCTION == value_title_value_1_type))) { + valueSerializer.writeInt8(0 as int32) + const value_title_value_1_0 = value_title_value_1 as Object + valueSerializer.writeFunction(value_title_value_1_0) + } + else if (((RuntimeType.UNDEFINED == value_title_value_1_type))) { + valueSerializer.writeInt8(1 as int32) + } + } + } + const value_shouldDismiss = value.shouldDismiss + let value_shouldDismiss_type = RuntimeType.UNDEFINED + if (value_shouldDismiss != undefined) { + value_shouldDismiss_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_shouldDismiss_type as int32) + if ((RuntimeType.UNDEFINED) != (value_shouldDismiss_type)) { + const value_shouldDismiss_value = value_shouldDismiss! + valueSerializer.writeFunction(value_shouldDismiss_value) + } + const value_onWillDismiss = value.onWillDismiss + let value_onWillDismiss_type = RuntimeType.UNDEFINED + if (value_onWillDismiss != undefined) { + value_onWillDismiss_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_onWillDismiss_type as int32) + if ((RuntimeType.UNDEFINED) != (value_onWillDismiss_type)) { + const value_onWillDismiss_value = value_onWillDismiss! + valueSerializer.writeFunction(value_onWillDismiss_value) + } + const value_onWillSpringBackWhenDismiss = value.onWillSpringBackWhenDismiss + let value_onWillSpringBackWhenDismiss_type = RuntimeType.UNDEFINED + if (value_onWillSpringBackWhenDismiss != undefined) { + value_onWillSpringBackWhenDismiss_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_onWillSpringBackWhenDismiss_type as int32) + if ((RuntimeType.UNDEFINED) != (value_onWillSpringBackWhenDismiss_type)) { + const value_onWillSpringBackWhenDismiss_value = value_onWillSpringBackWhenDismiss! + valueSerializer.writeFunction(value_onWillSpringBackWhenDismiss_value) + } + const value_enableOutsideInteractive = value.enableOutsideInteractive + let value_enableOutsideInteractive_type = RuntimeType.UNDEFINED + if (value_enableOutsideInteractive != undefined) { + value_enableOutsideInteractive_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_enableOutsideInteractive_type as int32) + if ((RuntimeType.UNDEFINED) != (value_enableOutsideInteractive_type)) { + const value_enableOutsideInteractive_value = value_enableOutsideInteractive! + valueSerializer.writeBoolean(value_enableOutsideInteractive_value) + } + const value_width = value.width + let value_width_type = RuntimeType.UNDEFINED + if (value_width != undefined) { + value_width_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_width_type as int32) + if ((RuntimeType.UNDEFINED) != (value_width_type)) { + const value_width_value = value_width! + valueSerializer.writeLength(value_width_value); + } + const value_borderWidth = value.borderWidth + let value_borderWidth_type = RuntimeType.UNDEFINED + if (value_borderWidth != undefined) { + value_borderWidth_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_borderWidth_type as int32) + if ((RuntimeType.UNDEFINED) != (value_borderWidth_type)) { + const value_borderWidth_value = value_borderWidth! + let value_borderWidth_value_type = RuntimeType.UNDEFINED + value_borderWidth_value_type = runtimeType(value_borderWidth_value) + if (((RuntimeType.NUMBER) == (value_borderWidth_value_type)) || ((RuntimeType.STRING) == (value_borderWidth_value_type)) || (((RuntimeType.OBJECT) == (value_borderWidth_value_type)) && (isResource(value_borderWidth_value)))) { + valueSerializer.writeInt8(0 as int32) + const value_borderWidth_value_0 = value_borderWidth_value as Dimension + valueSerializer.writeLength(value_borderWidth_value_0); + } + else if (TypeChecker.isEdgeWidths(value_borderWidth_value, true, false, true, false)) { + valueSerializer.writeInt8(1 as int32) + const value_borderWidth_value_1 = value_borderWidth_value as EdgeWidths + const value_borderWidth_value_1_top = value_borderWidth_value_1.top + let value_borderWidth_value_1_top_type = RuntimeType.UNDEFINED + if (value_borderWidth_value_1_top != undefined) { + value_borderWidth_value_1_top_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_borderWidth_value_1_top_type as int32) + if ((RuntimeType.UNDEFINED) != (value_borderWidth_value_1_top_type)) { + const value_borderWidth_value_1_top_value = value_borderWidth_value_1_top! + valueSerializer.writeLength(value_borderWidth_value_1_top_value); + } + const value_borderWidth_value_1_right = value_borderWidth_value_1.right + let value_borderWidth_value_1_right_type = RuntimeType.UNDEFINED + if (value_borderWidth_value_1_right != undefined) { + value_borderWidth_value_1_right_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_borderWidth_value_1_right_type as int32) + if ((RuntimeType.UNDEFINED) != (value_borderWidth_value_1_right_type)) { + const value_borderWidth_value_1_right_value = value_borderWidth_value_1_right! + valueSerializer.writeLength(value_borderWidth_value_1_right_value); + } + const value_borderWidth_value_1_bottom = value_borderWidth_value_1.bottom + let value_borderWidth_value_1_bottom_type = RuntimeType.UNDEFINED + if (value_borderWidth_value_1_bottom != undefined) { + value_borderWidth_value_1_bottom_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_borderWidth_value_1_bottom_type as int32) + if ((RuntimeType.UNDEFINED) != (value_borderWidth_value_1_bottom_type)) { + const value_borderWidth_value_1_bottom_value = value_borderWidth_value_1_bottom! + valueSerializer.writeLength(value_borderWidth_value_1_bottom_value); + } + const value_borderWidth_value_1_left = value_borderWidth_value_1.left + let value_borderWidth_value_1_left_type = RuntimeType.UNDEFINED + if (value_borderWidth_value_1_left != undefined) { + value_borderWidth_value_1_left_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_borderWidth_value_1_left_type as int32) + if ((RuntimeType.UNDEFINED) != (value_borderWidth_value_1_left_type)) { + const value_borderWidth_value_1_left_value = value_borderWidth_value_1_left! + valueSerializer.writeLength(value_borderWidth_value_1_left_value); + } + } + else if (TypeChecker.isLocalizedEdgeWidths(value_borderWidth_value, true, false, true, false)) { + valueSerializer.writeInt8(2 as int32) + const value_borderWidth_value_2 = value_borderWidth_value as LocalizedEdgeWidths + valueSerializer.writeLocalizedEdgeWidths(value_borderWidth_value_2) + } + } + const value_borderColor = value.borderColor + let value_borderColor_type = RuntimeType.UNDEFINED + if (value_borderColor != undefined) { + value_borderColor_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_borderColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_borderColor_type)) { + const value_borderColor_value = value_borderColor! + let value_borderColor_value_type = RuntimeType.UNDEFINED + value_borderColor_value_type = runtimeType(value_borderColor_value) + if (TypeChecker.isEdgeColors(value_borderColor_value, true, false, true, false)) { + valueSerializer.writeInt8(1 as int32) + const value_borderColor_value_1 = value_borderColor_value as EdgeColors + const value_borderColor_value_1_top = value_borderColor_value_1.top + let value_borderColor_value_1_top_type = RuntimeType.UNDEFINED + if (value_borderColor_value_1_top != undefined) { + value_borderColor_value_1_top_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_borderColor_value_1_top_type as int32) + if ((RuntimeType.UNDEFINED) != (value_borderColor_value_1_top_type)) { + const value_borderColor_value_1_top_value = value_borderColor_value_1_top! + let value_borderColor_value_1_top_value_type = RuntimeType.UNDEFINED + value_borderColor_value_1_top_value_type = runtimeType(value_borderColor_value_1_top_value) + if (((RuntimeType.OBJECT) == (value_borderColor_value_1_top_value_type)) && (value_borderColor_value_1_top_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_borderColor_value_1_top_value_0 = value_borderColor_value_1_top_value as Color + valueSerializer.writeInt32((value_borderColor_value_1_top_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_borderColor_value_1_top_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_borderColor_value_1_top_value_1 = value_borderColor_value_1_top_value as number + valueSerializer.writeNumber(value_borderColor_value_1_top_value_1) + } + else if (((RuntimeType.STRING == value_borderColor_value_1_top_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_borderColor_value_1_top_value_2 = value_borderColor_value_1_top_value as string + valueSerializer.writeString(value_borderColor_value_1_top_value_2) + } + else if (isResource(value_borderColor_value_1_top_value)) { + valueSerializer.writeInt8(3 as int32) + const value_borderColor_value_1_top_value_3 = value_borderColor_value_1_top_value as Resource + valueSerializer.writeResource(value_borderColor_value_1_top_value_3) + } + } + const value_borderColor_value_1_right = value_borderColor_value_1.right + let value_borderColor_value_1_right_type = RuntimeType.UNDEFINED + if (value_borderColor_value_1_right != undefined) { + value_borderColor_value_1_right_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_borderColor_value_1_right_type as int32) + if ((RuntimeType.UNDEFINED) != (value_borderColor_value_1_right_type)) { + const value_borderColor_value_1_right_value = value_borderColor_value_1_right! + let value_borderColor_value_1_right_value_type = RuntimeType.UNDEFINED + value_borderColor_value_1_right_value_type = runtimeType(value_borderColor_value_1_right_value) + if (((RuntimeType.OBJECT) == (value_borderColor_value_1_right_value_type)) && (value_borderColor_value_1_right_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_borderColor_value_1_right_value_0 = value_borderColor_value_1_right_value as Color + valueSerializer.writeInt32((value_borderColor_value_1_right_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_borderColor_value_1_right_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_borderColor_value_1_right_value_1 = value_borderColor_value_1_right_value as number + valueSerializer.writeNumber(value_borderColor_value_1_right_value_1) + } + else if (((RuntimeType.STRING == value_borderColor_value_1_right_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_borderColor_value_1_right_value_2 = value_borderColor_value_1_right_value as string + valueSerializer.writeString(value_borderColor_value_1_right_value_2) + } + else if (isResource(value_borderColor_value_1_right_value)) { + valueSerializer.writeInt8(3 as int32) + const value_borderColor_value_1_right_value_3 = value_borderColor_value_1_right_value as Resource + valueSerializer.writeResource(value_borderColor_value_1_right_value_3) + } + } + const value_borderColor_value_1_bottom = value_borderColor_value_1.bottom + let value_borderColor_value_1_bottom_type = RuntimeType.UNDEFINED + if (value_borderColor_value_1_bottom != undefined) { + value_borderColor_value_1_bottom_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_borderColor_value_1_bottom_type as int32) + if ((RuntimeType.UNDEFINED) != (value_borderColor_value_1_bottom_type)) { + const value_borderColor_value_1_bottom_value = value_borderColor_value_1_bottom! + let value_borderColor_value_1_bottom_value_type = RuntimeType.UNDEFINED + value_borderColor_value_1_bottom_value_type = runtimeType(value_borderColor_value_1_bottom_value) + if (((RuntimeType.OBJECT) == (value_borderColor_value_1_bottom_value_type)) && (value_borderColor_value_1_bottom_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_borderColor_value_1_bottom_value_0 = value_borderColor_value_1_bottom_value as Color + valueSerializer.writeInt32((value_borderColor_value_1_bottom_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_borderColor_value_1_bottom_value_1 = value_borderColor_value_1_bottom_value as number + valueSerializer.writeNumber(value_borderColor_value_1_bottom_value_1) + } + else if (((RuntimeType.STRING == value_borderColor_value_1_bottom_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_borderColor_value_1_bottom_value_2 = value_borderColor_value_1_bottom_value as string + valueSerializer.writeString(value_borderColor_value_1_bottom_value_2) + } + else if (isResource(value_borderColor_value_1_bottom_value)) { + valueSerializer.writeInt8(3 as int32) + const value_borderColor_value_1_bottom_value_3 = value_borderColor_value_1_bottom_value as Resource + valueSerializer.writeResource(value_borderColor_value_1_bottom_value_3) + } + } + const value_borderColor_value_1_left = value_borderColor_value_1.left + let value_borderColor_value_1_left_type = RuntimeType.UNDEFINED + if (value_borderColor_value_1_left != undefined) { + value_borderColor_value_1_left_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_borderColor_value_1_left_type as int32) + if ((RuntimeType.UNDEFINED) != (value_borderColor_value_1_left_type)) { + const value_borderColor_value_1_left_value = value_borderColor_value_1_left! + let value_borderColor_value_1_left_value_type = RuntimeType.UNDEFINED + value_borderColor_value_1_left_value_type = runtimeType(value_borderColor_value_1_left_value) + if (((RuntimeType.OBJECT) == (value_borderColor_value_1_left_value_type)) && (value_borderColor_value_1_left_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_borderColor_value_1_left_value_0 = value_borderColor_value_1_left_value as Color + valueSerializer.writeInt32((value_borderColor_value_1_left_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_borderColor_value_1_left_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_borderColor_value_1_left_value_1 = value_borderColor_value_1_left_value as number + valueSerializer.writeNumber(value_borderColor_value_1_left_value_1) + } + else if (((RuntimeType.STRING == value_borderColor_value_1_left_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_borderColor_value_1_left_value_2 = value_borderColor_value_1_left_value as string + valueSerializer.writeString(value_borderColor_value_1_left_value_2) + } + else if (isResource(value_borderColor_value_1_left_value)) { + valueSerializer.writeInt8(3 as int32) + const value_borderColor_value_1_left_value_3 = value_borderColor_value_1_left_value as Resource + valueSerializer.writeResource(value_borderColor_value_1_left_value_3) + } + } } - } - else if (TypeChecker.isTextCascadePickerRangeContentBracketsArray(value_range)) { - valueSerializer.writeInt8(4 as int32) - const value_range_4 = value_range as TextCascadePickerRangeContent[] - valueSerializer.writeInt8(runtimeType(value_range_4) as int32) - valueSerializer.writeInt32(value_range_4.length as int32) - for (let i = 0; i < value_range_4.length; i++) { - const value_range_4_element = value_range_4[i] - valueSerializer.writeTextCascadePickerRangeContent(value_range_4_element) + else if (TypeChecker.isLocalizedEdgeColors(value_borderColor_value, true, false, true, false)) { + valueSerializer.writeInt8(2 as int32) + const value_borderColor_value_2 = value_borderColor_value as LocalizedEdgeColors + valueSerializer.writeLocalizedEdgeColors(value_borderColor_value_2) } - } - const value_value = value.value - let value_value_type = RuntimeType.UNDEFINED - if (value_value != undefined) { - value_value_type = RuntimeType.OBJECT - } - valueSerializer.writeInt8(value_value_type as int32) - if ((RuntimeType.UNDEFINED) != (value_value_type)) { - const value_value_value = value_value! - let value_value_value_type = RuntimeType.UNDEFINED - value_value_value_type = runtimeType(value_value_value) - if (((RuntimeType.STRING == value_value_value_type))) { + else if (((RuntimeType.OBJECT == value_borderColor_value_type)) || ((RuntimeType.NUMBER == value_borderColor_value_type)) || ((RuntimeType.STRING == value_borderColor_value_type)) || ((RuntimeType.OBJECT == value_borderColor_value_type))) { valueSerializer.writeInt8(0 as int32) - const value_value_value_0 = value_value_value as string - valueSerializer.writeString(value_value_value_0) - } - else if (((RuntimeType.OBJECT == value_value_value_type))) { - valueSerializer.writeInt8(1 as int32) - const value_value_value_1 = value_value_value as string[] - valueSerializer.writeInt8(runtimeType(value_value_value_1) as int32) - valueSerializer.writeInt32(value_value_value_1.length as int32) - for (let i = 0; i < value_value_value_1.length; i++) { - const value_value_value_1_element = value_value_value_1[i] - valueSerializer.writeString(value_value_value_1_element) + const value_borderColor_value_0 = value_borderColor_value as ResourceColor + let value_borderColor_value_0_type = RuntimeType.UNDEFINED + value_borderColor_value_0_type = runtimeType(value_borderColor_value_0) + if (((RuntimeType.OBJECT) == (value_borderColor_value_0_type)) && (value_borderColor_value_0 instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_borderColor_value_0_0 = value_borderColor_value_0 as Color + valueSerializer.writeInt32((value_borderColor_value_0_0.value as int32)) } - } - } - const value_selected = value.selected - let value_selected_type = RuntimeType.UNDEFINED - if (value_selected != undefined) { - value_selected_type = RuntimeType.OBJECT - } - valueSerializer.writeInt8(value_selected_type as int32) - if ((RuntimeType.UNDEFINED) != (value_selected_type)) { - const value_selected_value = value_selected! - let value_selected_value_type = RuntimeType.UNDEFINED - value_selected_value_type = runtimeType(value_selected_value) - if (((RuntimeType.NUMBER == value_selected_value_type))) { - valueSerializer.writeInt8(0 as int32) - const value_selected_value_0 = value_selected_value as number - valueSerializer.writeNumber(value_selected_value_0) - } - else if (((RuntimeType.OBJECT == value_selected_value_type))) { - valueSerializer.writeInt8(1 as int32) - const value_selected_value_1 = value_selected_value as number[] - valueSerializer.writeInt8(runtimeType(value_selected_value_1) as int32) - valueSerializer.writeInt32(value_selected_value_1.length as int32) - for (let i = 0; i < value_selected_value_1.length; i++) { - const value_selected_value_1_element = value_selected_value_1[i] - valueSerializer.writeNumber(value_selected_value_1_element) + else if (((RuntimeType.NUMBER == value_borderColor_value_0_type))) { + valueSerializer.writeInt8(1 as int32) + const value_borderColor_value_0_1 = value_borderColor_value_0 as number + valueSerializer.writeNumber(value_borderColor_value_0_1) + } + else if (((RuntimeType.STRING == value_borderColor_value_0_type))) { + valueSerializer.writeInt8(2 as int32) + const value_borderColor_value_0_2 = value_borderColor_value_0 as string + valueSerializer.writeString(value_borderColor_value_0_2) + } + else if (isResource(value_borderColor_value_0)) { + valueSerializer.writeInt8(3 as int32) + const value_borderColor_value_0_3 = value_borderColor_value_0 as Resource + valueSerializer.writeResource(value_borderColor_value_0_3) } } } - } - writeTextInputOptions(value: TextInputOptions): void { - let valueSerializer = this - const value_placeholder = value.placeholder - let value_placeholder_type = RuntimeType.UNDEFINED - if (value_placeholder != undefined) { - value_placeholder_type = RuntimeType.OBJECT + const value_borderStyle = value.borderStyle + let value_borderStyle_type = RuntimeType.UNDEFINED + if (value_borderStyle != undefined) { + value_borderStyle_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_placeholder_type as int32) - if ((RuntimeType.UNDEFINED) != (value_placeholder_type)) { - const value_placeholder_value = value_placeholder! - let value_placeholder_value_type = RuntimeType.UNDEFINED - value_placeholder_value_type = runtimeType(value_placeholder_value) - if (((RuntimeType.STRING == value_placeholder_value_type))) { + valueSerializer.writeInt8(value_borderStyle_type as int32) + if ((RuntimeType.UNDEFINED) != (value_borderStyle_type)) { + const value_borderStyle_value = value_borderStyle! + let value_borderStyle_value_type = RuntimeType.UNDEFINED + value_borderStyle_value_type = runtimeType(value_borderStyle_value) + if (((RuntimeType.OBJECT) == (value_borderStyle_value_type)) && (value_borderStyle_value instanceof BorderStyle)) { valueSerializer.writeInt8(0 as int32) - const value_placeholder_value_0 = value_placeholder_value as string - valueSerializer.writeString(value_placeholder_value_0) + const value_borderStyle_value_0 = value_borderStyle_value as BorderStyle + valueSerializer.writeInt32((value_borderStyle_value_0.value as int32)) } - else if (((RuntimeType.OBJECT == value_placeholder_value_type))) { + else if (TypeChecker.isEdgeStyles(value_borderStyle_value, false, false, false, false)) { valueSerializer.writeInt8(1 as int32) - const value_placeholder_value_1 = value_placeholder_value as Resource - valueSerializer.writeResource(value_placeholder_value_1) + const value_borderStyle_value_1 = value_borderStyle_value as EdgeStyles + const value_borderStyle_value_1_top = value_borderStyle_value_1.top + let value_borderStyle_value_1_top_type = RuntimeType.UNDEFINED + if (value_borderStyle_value_1_top != undefined) { + value_borderStyle_value_1_top_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_borderStyle_value_1_top_type as int32) + if ((RuntimeType.UNDEFINED) != (value_borderStyle_value_1_top_type)) { + const value_borderStyle_value_1_top_value = value_borderStyle_value_1_top! + valueSerializer.writeInt32((value_borderStyle_value_1_top_value.value as int32)) + } + const value_borderStyle_value_1_right = value_borderStyle_value_1.right + let value_borderStyle_value_1_right_type = RuntimeType.UNDEFINED + if (value_borderStyle_value_1_right != undefined) { + value_borderStyle_value_1_right_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_borderStyle_value_1_right_type as int32) + if ((RuntimeType.UNDEFINED) != (value_borderStyle_value_1_right_type)) { + const value_borderStyle_value_1_right_value = value_borderStyle_value_1_right! + valueSerializer.writeInt32((value_borderStyle_value_1_right_value.value as int32)) + } + const value_borderStyle_value_1_bottom = value_borderStyle_value_1.bottom + let value_borderStyle_value_1_bottom_type = RuntimeType.UNDEFINED + if (value_borderStyle_value_1_bottom != undefined) { + value_borderStyle_value_1_bottom_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_borderStyle_value_1_bottom_type as int32) + if ((RuntimeType.UNDEFINED) != (value_borderStyle_value_1_bottom_type)) { + const value_borderStyle_value_1_bottom_value = value_borderStyle_value_1_bottom! + valueSerializer.writeInt32((value_borderStyle_value_1_bottom_value.value as int32)) + } + const value_borderStyle_value_1_left = value_borderStyle_value_1.left + let value_borderStyle_value_1_left_type = RuntimeType.UNDEFINED + if (value_borderStyle_value_1_left != undefined) { + value_borderStyle_value_1_left_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_borderStyle_value_1_left_type as int32) + if ((RuntimeType.UNDEFINED) != (value_borderStyle_value_1_left_type)) { + const value_borderStyle_value_1_left_value = value_borderStyle_value_1_left! + valueSerializer.writeInt32((value_borderStyle_value_1_left_value.value as int32)) + } } } - const value_text = value.text - let value_text_type = RuntimeType.UNDEFINED - if (value_text != undefined) { - value_text_type = RuntimeType.OBJECT + const value_shadow = value.shadow + let value_shadow_type = RuntimeType.UNDEFINED + if (value_shadow != undefined) { + value_shadow_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_text_type as int32) - if ((RuntimeType.UNDEFINED) != (value_text_type)) { - const value_text_value = value_text! - let value_text_value_type = RuntimeType.UNDEFINED - value_text_value_type = runtimeType(value_text_value) - if (((RuntimeType.STRING == value_text_value_type))) { + valueSerializer.writeInt8(value_shadow_type as int32) + if ((RuntimeType.UNDEFINED) != (value_shadow_type)) { + const value_shadow_value = value_shadow! + let value_shadow_value_type = RuntimeType.UNDEFINED + value_shadow_value_type = runtimeType(value_shadow_value) + if (TypeChecker.isShadowOptions(value_shadow_value, false, false, false, false, false, false)) { valueSerializer.writeInt8(0 as int32) - const value_text_value_0 = value_text_value as string - valueSerializer.writeString(value_text_value_0) + const value_shadow_value_0 = value_shadow_value as ShadowOptions + valueSerializer.writeShadowOptions(value_shadow_value_0) } - else if (((RuntimeType.OBJECT == value_text_value_type))) { + else if (((RuntimeType.OBJECT) == (value_shadow_value_type)) && (value_shadow_value instanceof ShadowStyle)) { valueSerializer.writeInt8(1 as int32) - const value_text_value_1 = value_text_value as Resource - valueSerializer.writeResource(value_text_value_1) - } - } - } - writeTextOptions(value: TextOptions): void { - let valueSerializer = this - const value_controller = value.controller - valueSerializer.writeMaterialized(value_controller) - } - writeClassWithConstructorAndFieldsDTS(value: ClassWithConstructorAndFieldsDTS): void { - let valueSerializer = this - const value_valNumber = value.valNumber - valueSerializer.writeNumber(value_valNumber) - const value_valBoolean = value.valBoolean - valueSerializer.writeBoolean(value_valBoolean) - } - writeClassWithConstructorDTS(value: ClassWithConstructorDTS): void { - } - writeClassDTS(value: ClassDTS): void { - let valueSerializer = this - const value_valBoolean = value.valBoolean - valueSerializer.writeBoolean(value_valBoolean) - } - writeArrayRefNumberInterfaceDTS(value: ArrayRefNumberInterfaceDTS): void { - let valueSerializer = this - const value_tuple = value.tuple - valueSerializer.writeInt8(runtimeType(value_tuple) as int32) - valueSerializer.writeInt32(value_tuple.length as int32) - for (let i = 0; i < value_tuple.length; i++) { - const value_tuple_element = value_tuple[i] - valueSerializer.writeNumber(value_tuple_element) - } - } - writeOptionInterfaceDTS(value: OptionInterfaceDTS): void { - let valueSerializer = this - const value_tuple = value.tuple - valueSerializer.writeInt8(runtimeType(value_tuple) as int32) - const value_tuple_0 = value_tuple[0] - let value_tuple_0_type = RuntimeType.UNDEFINED - if (value_tuple_0 != undefined) { - value_tuple_0_type = RuntimeType.OBJECT - } - valueSerializer.writeInt8(value_tuple_0_type as int32) - if ((RuntimeType.UNDEFINED) != (value_tuple_0_type)) { - const value_tuple_0_value = value_tuple_0! - valueSerializer.writeBoolean(value_tuple_0_value) - } - const value_tuple_1 = value_tuple[1] - let value_tuple_1_type = RuntimeType.UNDEFINED - if (value_tuple_1 != undefined) { - value_tuple_1_type = RuntimeType.OBJECT - } - valueSerializer.writeInt8(value_tuple_1_type as int32) - if ((RuntimeType.UNDEFINED) != (value_tuple_1_type)) { - const value_tuple_1_value = value_tuple_1! - valueSerializer.writeNumber(value_tuple_1_value) - } - } - writeTupleInterfaceDTS(value: TupleInterfaceDTS): void { - let valueSerializer = this - const value_tuple = value.tuple - valueSerializer.writeInt8(runtimeType(value_tuple) as int32) - const value_tuple_0 = value_tuple[0] - valueSerializer.writeNumber(value_tuple_0) - const value_tuple_1 = value_tuple[1] - valueSerializer.writeBoolean(value_tuple_1) - } - writeUnionOptionalInterfaceDTS(value: UnionOptionalInterfaceDTS): void { - let valueSerializer = this - const value_unionProp = value.unionProp - let value_unionProp_type = RuntimeType.UNDEFINED - value_unionProp_type = runtimeType(value_unionProp) - if (((RuntimeType.STRING == value_unionProp_type))) { - valueSerializer.writeInt8(0 as int32) - const value_unionProp_0 = value_unionProp as string - valueSerializer.writeString(value_unionProp_0) - } - else if (((RuntimeType.UNDEFINED == value_unionProp_type))) { - valueSerializer.writeInt8(1 as int32) - } - } - writeUnionInterfaceDTS(value: UnionInterfaceDTS): void { - let valueSerializer = this - const value_unionProp = value.unionProp - let value_unionProp_type = RuntimeType.UNDEFINED - value_unionProp_type = runtimeType(value_unionProp) - if (((RuntimeType.NUMBER == value_unionProp_type))) { - valueSerializer.writeInt8(0 as int32) - const value_unionProp_0 = value_unionProp as number - valueSerializer.writeNumber(value_unionProp_0) - } - else if (((RuntimeType.BOOLEAN == value_unionProp_type))) { - valueSerializer.writeInt8(1 as int32) - const value_unionProp_1 = value_unionProp as boolean - valueSerializer.writeBoolean(value_unionProp_1) - } - } - writeStringInterfaceDTS(value: StringInterfaceDTS): void { - let valueSerializer = this - const value_valString = value.valString - valueSerializer.writeString(value_valString) - } - writeNumberInterfaceDTS(value: NumberInterfaceDTS): void { - let valueSerializer = this - const value_valNumber = value.valNumber - valueSerializer.writeNumber(value_valNumber) - } - writeDotIndicator(value: DotIndicator): void { - let valueSerializer = this - const value__left = value._left - let value__left_type = RuntimeType.UNDEFINED - if (value__left != undefined) { - value__left_type = RuntimeType.OBJECT - } - valueSerializer.writeInt8(value__left_type as int32) - if ((RuntimeType.UNDEFINED) != (value__left_type)) { - const value__left_value = value__left! - valueSerializer.writeLength(value__left_value); - } - const value__top = value._top - let value__top_type = RuntimeType.UNDEFINED - if (value__top != undefined) { - value__top_type = RuntimeType.OBJECT - } - valueSerializer.writeInt8(value__top_type as int32) - if ((RuntimeType.UNDEFINED) != (value__top_type)) { - const value__top_value = value__top! - valueSerializer.writeLength(value__top_value); - } - const value__right = value._right - let value__right_type = RuntimeType.UNDEFINED - if (value__right != undefined) { - value__right_type = RuntimeType.OBJECT + const value_shadow_value_1 = value_shadow_value as ShadowStyle + valueSerializer.writeInt32((value_shadow_value_1.value as int32)) + } } - valueSerializer.writeInt8(value__right_type as int32) - if ((RuntimeType.UNDEFINED) != (value__right_type)) { - const value__right_value = value__right! - valueSerializer.writeLength(value__right_value); + const value_onHeightDidChange = value.onHeightDidChange + let value_onHeightDidChange_type = RuntimeType.UNDEFINED + if (value_onHeightDidChange != undefined) { + value_onHeightDidChange_type = RuntimeType.OBJECT } - const value__bottom = value._bottom - let value__bottom_type = RuntimeType.UNDEFINED - if (value__bottom != undefined) { - value__bottom_type = RuntimeType.OBJECT + valueSerializer.writeInt8(value_onHeightDidChange_type as int32) + if ((RuntimeType.UNDEFINED) != (value_onHeightDidChange_type)) { + const value_onHeightDidChange_value = value_onHeightDidChange! + valueSerializer.writeFunction(value_onHeightDidChange_value) } - valueSerializer.writeInt8(value__bottom_type as int32) - if ((RuntimeType.UNDEFINED) != (value__bottom_type)) { - const value__bottom_value = value__bottom! - valueSerializer.writeLength(value__bottom_value); + const value_mode = value.mode + let value_mode_type = RuntimeType.UNDEFINED + if (value_mode != undefined) { + value_mode_type = RuntimeType.OBJECT } - const value__start = value._start - let value__start_type = RuntimeType.UNDEFINED - if (value__start != undefined) { - value__start_type = RuntimeType.OBJECT + valueSerializer.writeInt8(value_mode_type as int32) + if ((RuntimeType.UNDEFINED) != (value_mode_type)) { + const value_mode_value = value_mode! + valueSerializer.writeInt32((value_mode_value.value as int32)) } - valueSerializer.writeInt8(value__start_type as int32) - if ((RuntimeType.UNDEFINED) != (value__start_type)) { - const value__start_value = value__start! - valueSerializer.writeCustomObject("LengthMetrics", value__start_value) + const value_scrollSizeMode = value.scrollSizeMode + let value_scrollSizeMode_type = RuntimeType.UNDEFINED + if (value_scrollSizeMode != undefined) { + value_scrollSizeMode_type = RuntimeType.OBJECT } - const value__end = value._end - let value__end_type = RuntimeType.UNDEFINED - if (value__end != undefined) { - value__end_type = RuntimeType.OBJECT + valueSerializer.writeInt8(value_scrollSizeMode_type as int32) + if ((RuntimeType.UNDEFINED) != (value_scrollSizeMode_type)) { + const value_scrollSizeMode_value = value_scrollSizeMode! + valueSerializer.writeInt32((value_scrollSizeMode_value.value as int32)) } - valueSerializer.writeInt8(value__end_type as int32) - if ((RuntimeType.UNDEFINED) != (value__end_type)) { - const value__end_value = value__end! - valueSerializer.writeCustomObject("LengthMetrics", value__end_value) + const value_onDetentsDidChange = value.onDetentsDidChange + let value_onDetentsDidChange_type = RuntimeType.UNDEFINED + if (value_onDetentsDidChange != undefined) { + value_onDetentsDidChange_type = RuntimeType.OBJECT } - const value__itemWidth = value._itemWidth - let value__itemWidth_type = RuntimeType.UNDEFINED - if (value__itemWidth != undefined) { - value__itemWidth_type = RuntimeType.OBJECT + valueSerializer.writeInt8(value_onDetentsDidChange_type as int32) + if ((RuntimeType.UNDEFINED) != (value_onDetentsDidChange_type)) { + const value_onDetentsDidChange_value = value_onDetentsDidChange! + valueSerializer.writeFunction(value_onDetentsDidChange_value) } - valueSerializer.writeInt8(value__itemWidth_type as int32) - if ((RuntimeType.UNDEFINED) != (value__itemWidth_type)) { - const value__itemWidth_value = value__itemWidth! - valueSerializer.writeLength(value__itemWidth_value); + const value_onWidthDidChange = value.onWidthDidChange + let value_onWidthDidChange_type = RuntimeType.UNDEFINED + if (value_onWidthDidChange != undefined) { + value_onWidthDidChange_type = RuntimeType.OBJECT } - const value__itemHeight = value._itemHeight - let value__itemHeight_type = RuntimeType.UNDEFINED - if (value__itemHeight != undefined) { - value__itemHeight_type = RuntimeType.OBJECT + valueSerializer.writeInt8(value_onWidthDidChange_type as int32) + if ((RuntimeType.UNDEFINED) != (value_onWidthDidChange_type)) { + const value_onWidthDidChange_value = value_onWidthDidChange! + valueSerializer.writeFunction(value_onWidthDidChange_value) } - valueSerializer.writeInt8(value__itemHeight_type as int32) - if ((RuntimeType.UNDEFINED) != (value__itemHeight_type)) { - const value__itemHeight_value = value__itemHeight! - valueSerializer.writeLength(value__itemHeight_value); + const value_onTypeDidChange = value.onTypeDidChange + let value_onTypeDidChange_type = RuntimeType.UNDEFINED + if (value_onTypeDidChange != undefined) { + value_onTypeDidChange_type = RuntimeType.OBJECT } - } - writeSelectOption(value: SelectOption): void { - let valueSerializer = this - const value_value = value.value - let value_value_type = RuntimeType.UNDEFINED - value_value_type = runtimeType(value_value) - if (((RuntimeType.STRING == value_value_type))) { - valueSerializer.writeInt8(0 as int32) - const value_value_0 = value_value as string - valueSerializer.writeString(value_value_0) + valueSerializer.writeInt8(value_onTypeDidChange_type as int32) + if ((RuntimeType.UNDEFINED) != (value_onTypeDidChange_type)) { + const value_onTypeDidChange_value = value_onTypeDidChange! + valueSerializer.writeFunction(value_onTypeDidChange_value) } - else if (((RuntimeType.OBJECT == value_value_type))) { - valueSerializer.writeInt8(1 as int32) - const value_value_1 = value_value as Resource - valueSerializer.writeResource(value_value_1) + const value_expandSafeAreaInEmbeddedMode = value.expandSafeAreaInEmbeddedMode + let value_expandSafeAreaInEmbeddedMode_type = RuntimeType.UNDEFINED + if (value_expandSafeAreaInEmbeddedMode != undefined) { + value_expandSafeAreaInEmbeddedMode_type = RuntimeType.OBJECT } - const value_icon = value.icon - let value_icon_type = RuntimeType.UNDEFINED - if (value_icon != undefined) { - value_icon_type = RuntimeType.OBJECT + valueSerializer.writeInt8(value_expandSafeAreaInEmbeddedMode_type as int32) + if ((RuntimeType.UNDEFINED) != (value_expandSafeAreaInEmbeddedMode_type)) { + const value_expandSafeAreaInEmbeddedMode_value = value_expandSafeAreaInEmbeddedMode! + valueSerializer.writeBoolean(value_expandSafeAreaInEmbeddedMode_value) } - valueSerializer.writeInt8(value_icon_type as int32) - if ((RuntimeType.UNDEFINED) != (value_icon_type)) { - const value_icon_value = value_icon! - let value_icon_value_type = RuntimeType.UNDEFINED - value_icon_value_type = runtimeType(value_icon_value) - if (((RuntimeType.STRING == value_icon_value_type))) { - valueSerializer.writeInt8(0 as int32) - const value_icon_value_0 = value_icon_value as string - valueSerializer.writeString(value_icon_value_0) - } - else if (((RuntimeType.OBJECT == value_icon_value_type))) { - valueSerializer.writeInt8(1 as int32) - const value_icon_value_1 = value_icon_value as Resource - valueSerializer.writeResource(value_icon_value_1) - } + const value_uiContext = value.uiContext + let value_uiContext_type = RuntimeType.UNDEFINED + if (value_uiContext != undefined) { + value_uiContext_type = RuntimeType.OBJECT } - const value_symbolIcon = value.symbolIcon - let value_symbolIcon_type = RuntimeType.UNDEFINED - if (value_symbolIcon != undefined) { - value_symbolIcon_type = RuntimeType.OBJECT + valueSerializer.writeInt8(value_uiContext_type as int32) + if ((RuntimeType.UNDEFINED) != (value_uiContext_type)) { + const value_uiContext_value = value_uiContext! + valueSerializer.writeCustomObject("UIContext", value_uiContext_value) } - valueSerializer.writeInt8(value_symbolIcon_type as int32) - if ((RuntimeType.UNDEFINED) != (value_symbolIcon_type)) { - const value_symbolIcon_value = value_symbolIcon! - valueSerializer.writeCustomObject("SymbolGlyphModifier", value_symbolIcon_value) + const value_keyboardAvoidMode = value.keyboardAvoidMode + let value_keyboardAvoidMode_type = RuntimeType.UNDEFINED + if (value_keyboardAvoidMode != undefined) { + value_keyboardAvoidMode_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_keyboardAvoidMode_type as int32) + if ((RuntimeType.UNDEFINED) != (value_keyboardAvoidMode_type)) { + const value_keyboardAvoidMode_value = value_keyboardAvoidMode! + valueSerializer.writeInt32((value_keyboardAvoidMode_value.value as int32)) } } - writeNavigationToolbarOptions(value: NavigationToolbarOptions): void { + writeContentCoverOptions(value: ContentCoverOptions): void { let valueSerializer = this const value_backgroundColor = value.backgroundColor let value_backgroundColor_type = RuntimeType.UNDEFINED @@ -2103,162 +15276,313 @@ export class Serializer extends SerializerBase { valueSerializer.writeResource(value_backgroundColor_value_3) } } - const value_backgroundBlurStyle = value.backgroundBlurStyle - let value_backgroundBlurStyle_type = RuntimeType.UNDEFINED - if (value_backgroundBlurStyle != undefined) { - value_backgroundBlurStyle_type = RuntimeType.OBJECT + const value_onAppear = value.onAppear + let value_onAppear_type = RuntimeType.UNDEFINED + if (value_onAppear != undefined) { + value_onAppear_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_backgroundBlurStyle_type as int32) - if ((RuntimeType.UNDEFINED) != (value_backgroundBlurStyle_type)) { - const value_backgroundBlurStyle_value = value_backgroundBlurStyle! - valueSerializer.writeInt32((value_backgroundBlurStyle_value.value as int32)) + valueSerializer.writeInt8(value_onAppear_type as int32) + if ((RuntimeType.UNDEFINED) != (value_onAppear_type)) { + const value_onAppear_value = value_onAppear! + valueSerializer.writeFunction(value_onAppear_value) } - } - writeToolbarItem(value: ToolbarItem): void { - let valueSerializer = this - const value_value = value.value - let value_value_type = RuntimeType.UNDEFINED - value_value_type = runtimeType(value_value) - if (((RuntimeType.STRING == value_value_type))) { - valueSerializer.writeInt8(0 as int32) - const value_value_0 = value_value as string - valueSerializer.writeString(value_value_0) + const value_onDisappear = value.onDisappear + let value_onDisappear_type = RuntimeType.UNDEFINED + if (value_onDisappear != undefined) { + value_onDisappear_type = RuntimeType.OBJECT } - else if (((RuntimeType.OBJECT == value_value_type))) { - valueSerializer.writeInt8(1 as int32) - const value_value_1 = value_value as Resource - valueSerializer.writeResource(value_value_1) + valueSerializer.writeInt8(value_onDisappear_type as int32) + if ((RuntimeType.UNDEFINED) != (value_onDisappear_type)) { + const value_onDisappear_value = value_onDisappear! + valueSerializer.writeFunction(value_onDisappear_value) } - const value_icon = value.icon - let value_icon_type = RuntimeType.UNDEFINED - if (value_icon != undefined) { - value_icon_type = RuntimeType.OBJECT + const value_onWillAppear = value.onWillAppear + let value_onWillAppear_type = RuntimeType.UNDEFINED + if (value_onWillAppear != undefined) { + value_onWillAppear_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_icon_type as int32) - if ((RuntimeType.UNDEFINED) != (value_icon_type)) { - const value_icon_value = value_icon! - let value_icon_value_type = RuntimeType.UNDEFINED - value_icon_value_type = runtimeType(value_icon_value) - if (((RuntimeType.STRING == value_icon_value_type))) { - valueSerializer.writeInt8(0 as int32) - const value_icon_value_0 = value_icon_value as string - valueSerializer.writeString(value_icon_value_0) - } - else if (((RuntimeType.OBJECT == value_icon_value_type))) { - valueSerializer.writeInt8(1 as int32) - const value_icon_value_1 = value_icon_value as Resource - valueSerializer.writeResource(value_icon_value_1) - } + valueSerializer.writeInt8(value_onWillAppear_type as int32) + if ((RuntimeType.UNDEFINED) != (value_onWillAppear_type)) { + const value_onWillAppear_value = value_onWillAppear! + valueSerializer.writeFunction(value_onWillAppear_value) } - const value_symbolIcon = value.symbolIcon - let value_symbolIcon_type = RuntimeType.UNDEFINED - if (value_symbolIcon != undefined) { - value_symbolIcon_type = RuntimeType.OBJECT + const value_onWillDisappear = value.onWillDisappear + let value_onWillDisappear_type = RuntimeType.UNDEFINED + if (value_onWillDisappear != undefined) { + value_onWillDisappear_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_symbolIcon_type as int32) - if ((RuntimeType.UNDEFINED) != (value_symbolIcon_type)) { - const value_symbolIcon_value = value_symbolIcon! - valueSerializer.writeCustomObject("SymbolGlyphModifier", value_symbolIcon_value) + valueSerializer.writeInt8(value_onWillDisappear_type as int32) + if ((RuntimeType.UNDEFINED) != (value_onWillDisappear_type)) { + const value_onWillDisappear_value = value_onWillDisappear! + valueSerializer.writeFunction(value_onWillDisappear_value) } - const value_action = value.action - let value_action_type = RuntimeType.UNDEFINED - if (value_action != undefined) { - value_action_type = RuntimeType.OBJECT + const value_modalTransition = value.modalTransition + let value_modalTransition_type = RuntimeType.UNDEFINED + if (value_modalTransition != undefined) { + value_modalTransition_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_action_type as int32) - if ((RuntimeType.UNDEFINED) != (value_action_type)) { - const value_action_value = value_action! - valueSerializer.writeFunction(value_action_value) + valueSerializer.writeInt8(value_modalTransition_type as int32) + if ((RuntimeType.UNDEFINED) != (value_modalTransition_type)) { + const value_modalTransition_value = value_modalTransition! + valueSerializer.writeInt32((value_modalTransition_value.value as int32)) } - const value_status = value.status - let value_status_type = RuntimeType.UNDEFINED - if (value_status != undefined) { - value_status_type = RuntimeType.OBJECT + const value_onWillDismiss = value.onWillDismiss + let value_onWillDismiss_type = RuntimeType.UNDEFINED + if (value_onWillDismiss != undefined) { + value_onWillDismiss_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_status_type as int32) - if ((RuntimeType.UNDEFINED) != (value_status_type)) { - const value_status_value = value_status! - valueSerializer.writeInt32((value_status_value.value as int32)) + valueSerializer.writeInt8(value_onWillDismiss_type as int32) + if ((RuntimeType.UNDEFINED) != (value_onWillDismiss_type)) { + const value_onWillDismiss_value = value_onWillDismiss! + valueSerializer.writeFunction(value_onWillDismiss_value) } - const value_activeIcon = value.activeIcon - let value_activeIcon_type = RuntimeType.UNDEFINED - if (value_activeIcon != undefined) { - value_activeIcon_type = RuntimeType.OBJECT + const value_transition = value.transition + let value_transition_type = RuntimeType.UNDEFINED + if (value_transition != undefined) { + value_transition_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_activeIcon_type as int32) - if ((RuntimeType.UNDEFINED) != (value_activeIcon_type)) { - const value_activeIcon_value = value_activeIcon! - let value_activeIcon_value_type = RuntimeType.UNDEFINED - value_activeIcon_value_type = runtimeType(value_activeIcon_value) - if (((RuntimeType.STRING == value_activeIcon_value_type))) { + valueSerializer.writeInt8(value_transition_type as int32) + if ((RuntimeType.UNDEFINED) != (value_transition_type)) { + const value_transition_value = value_transition! + valueSerializer.writeCustomObject("TransitionEffect", value_transition_value) + } + } + writeMenuOptions(value: MenuOptions): void { + let valueSerializer = this + const value_offset = value.offset + let value_offset_type = RuntimeType.UNDEFINED + if (value_offset != undefined) { + value_offset_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_offset_type as int32) + if ((RuntimeType.UNDEFINED) != (value_offset_type)) { + const value_offset_value = value_offset! + valueSerializer.writePosition(value_offset_value) + } + const value_placement = value.placement + let value_placement_type = RuntimeType.UNDEFINED + if (value_placement != undefined) { + value_placement_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_placement_type as int32) + if ((RuntimeType.UNDEFINED) != (value_placement_type)) { + const value_placement_value = value_placement! + valueSerializer.writeInt32((value_placement_value.value as int32)) + } + const value_enableArrow = value.enableArrow + let value_enableArrow_type = RuntimeType.UNDEFINED + if (value_enableArrow != undefined) { + value_enableArrow_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_enableArrow_type as int32) + if ((RuntimeType.UNDEFINED) != (value_enableArrow_type)) { + const value_enableArrow_value = value_enableArrow! + valueSerializer.writeBoolean(value_enableArrow_value) + } + const value_arrowOffset = value.arrowOffset + let value_arrowOffset_type = RuntimeType.UNDEFINED + if (value_arrowOffset != undefined) { + value_arrowOffset_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_arrowOffset_type as int32) + if ((RuntimeType.UNDEFINED) != (value_arrowOffset_type)) { + const value_arrowOffset_value = value_arrowOffset! + valueSerializer.writeLength(value_arrowOffset_value); + } + const value_preview = value.preview + let value_preview_type = RuntimeType.UNDEFINED + if (value_preview != undefined) { + value_preview_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_preview_type as int32) + if ((RuntimeType.UNDEFINED) != (value_preview_type)) { + const value_preview_value = value_preview! + let value_preview_value_type = RuntimeType.UNDEFINED + value_preview_value_type = runtimeType(value_preview_value) + if (((value_preview_value instanceof MenuPreviewMode))) { valueSerializer.writeInt8(0 as int32) - const value_activeIcon_value_0 = value_activeIcon_value as string - valueSerializer.writeString(value_activeIcon_value_0) + const value_preview_value_0 = value_preview_value as MenuPreviewMode + valueSerializer.writeInt32((value_preview_value_0.value as int32)) } - else if (((RuntimeType.OBJECT == value_activeIcon_value_type))) { + else if (((RuntimeType.FUNCTION == value_preview_value_type)) || ((RuntimeType.UNDEFINED == value_preview_value_type))) { valueSerializer.writeInt8(1 as int32) - const value_activeIcon_value_1 = value_activeIcon_value as Resource - valueSerializer.writeResource(value_activeIcon_value_1) + const value_preview_value_1 = value_preview_value as CustomBuilder + let value_preview_value_1_type = RuntimeType.UNDEFINED + value_preview_value_1_type = runtimeType(value_preview_value_1) + if (((RuntimeType.FUNCTION == value_preview_value_1_type))) { + valueSerializer.writeInt8(0 as int32) + const value_preview_value_1_0 = value_preview_value_1 as Object + valueSerializer.writeFunction(value_preview_value_1_0) + } + else if (((RuntimeType.UNDEFINED == value_preview_value_1_type))) { + valueSerializer.writeInt8(1 as int32) + } } } - const value_activeSymbolIcon = value.activeSymbolIcon - let value_activeSymbolIcon_type = RuntimeType.UNDEFINED - if (value_activeSymbolIcon != undefined) { - value_activeSymbolIcon_type = RuntimeType.OBJECT - } - valueSerializer.writeInt8(value_activeSymbolIcon_type as int32) - if ((RuntimeType.UNDEFINED) != (value_activeSymbolIcon_type)) { - const value_activeSymbolIcon_value = value_activeSymbolIcon! - valueSerializer.writeCustomObject("SymbolGlyphModifier", value_activeSymbolIcon_value) + const value_borderRadius = value.borderRadius + let value_borderRadius_type = RuntimeType.UNDEFINED + if (value_borderRadius != undefined) { + value_borderRadius_type = RuntimeType.OBJECT } - } - writeNavigationMenuItem(value: NavigationMenuItem): void { - let valueSerializer = this - const value_value = value.value - valueSerializer.writeString(value_value) - const value_icon = value.icon - let value_icon_type = RuntimeType.UNDEFINED - if (value_icon != undefined) { - value_icon_type = RuntimeType.OBJECT + valueSerializer.writeInt8(value_borderRadius_type as int32) + if ((RuntimeType.UNDEFINED) != (value_borderRadius_type)) { + const value_borderRadius_value = value_borderRadius! + let value_borderRadius_value_type = RuntimeType.UNDEFINED + value_borderRadius_value_type = runtimeType(value_borderRadius_value) + if (((RuntimeType.NUMBER) == (value_borderRadius_value_type)) || ((RuntimeType.STRING) == (value_borderRadius_value_type)) || (((RuntimeType.OBJECT) == (value_borderRadius_value_type)) && (isResource(value_borderRadius_value)))) { + valueSerializer.writeInt8(0 as int32) + const value_borderRadius_value_0 = value_borderRadius_value as Length + valueSerializer.writeLength(value_borderRadius_value_0); + } + else if (TypeChecker.isBorderRadiuses(value_borderRadius_value, false, false, false, false)) { + valueSerializer.writeInt8(1 as int32) + const value_borderRadius_value_1 = value_borderRadius_value as BorderRadiuses + const value_borderRadius_value_1_topLeft = value_borderRadius_value_1.topLeft + let value_borderRadius_value_1_topLeft_type = RuntimeType.UNDEFINED + if (value_borderRadius_value_1_topLeft != undefined) { + value_borderRadius_value_1_topLeft_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_borderRadius_value_1_topLeft_type as int32) + if ((RuntimeType.UNDEFINED) != (value_borderRadius_value_1_topLeft_type)) { + const value_borderRadius_value_1_topLeft_value = value_borderRadius_value_1_topLeft! + valueSerializer.writeLength(value_borderRadius_value_1_topLeft_value); + } + const value_borderRadius_value_1_topRight = value_borderRadius_value_1.topRight + let value_borderRadius_value_1_topRight_type = RuntimeType.UNDEFINED + if (value_borderRadius_value_1_topRight != undefined) { + value_borderRadius_value_1_topRight_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_borderRadius_value_1_topRight_type as int32) + if ((RuntimeType.UNDEFINED) != (value_borderRadius_value_1_topRight_type)) { + const value_borderRadius_value_1_topRight_value = value_borderRadius_value_1_topRight! + valueSerializer.writeLength(value_borderRadius_value_1_topRight_value); + } + const value_borderRadius_value_1_bottomLeft = value_borderRadius_value_1.bottomLeft + let value_borderRadius_value_1_bottomLeft_type = RuntimeType.UNDEFINED + if (value_borderRadius_value_1_bottomLeft != undefined) { + value_borderRadius_value_1_bottomLeft_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_borderRadius_value_1_bottomLeft_type as int32) + if ((RuntimeType.UNDEFINED) != (value_borderRadius_value_1_bottomLeft_type)) { + const value_borderRadius_value_1_bottomLeft_value = value_borderRadius_value_1_bottomLeft! + valueSerializer.writeLength(value_borderRadius_value_1_bottomLeft_value); + } + const value_borderRadius_value_1_bottomRight = value_borderRadius_value_1.bottomRight + let value_borderRadius_value_1_bottomRight_type = RuntimeType.UNDEFINED + if (value_borderRadius_value_1_bottomRight != undefined) { + value_borderRadius_value_1_bottomRight_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_borderRadius_value_1_bottomRight_type as int32) + if ((RuntimeType.UNDEFINED) != (value_borderRadius_value_1_bottomRight_type)) { + const value_borderRadius_value_1_bottomRight_value = value_borderRadius_value_1_bottomRight! + valueSerializer.writeLength(value_borderRadius_value_1_bottomRight_value); + } + } + else if (TypeChecker.isLocalizedBorderRadiuses(value_borderRadius_value, false, false, false, false)) { + valueSerializer.writeInt8(2 as int32) + const value_borderRadius_value_2 = value_borderRadius_value as LocalizedBorderRadiuses + valueSerializer.writeLocalizedBorderRadiuses(value_borderRadius_value_2) + } } - valueSerializer.writeInt8(value_icon_type as int32) - if ((RuntimeType.UNDEFINED) != (value_icon_type)) { - const value_icon_value = value_icon! - valueSerializer.writeString(value_icon_value) + const value_onAppear = value.onAppear + let value_onAppear_type = RuntimeType.UNDEFINED + if (value_onAppear != undefined) { + value_onAppear_type = RuntimeType.OBJECT } - const value_symbolIcon = value.symbolIcon - let value_symbolIcon_type = RuntimeType.UNDEFINED - if (value_symbolIcon != undefined) { - value_symbolIcon_type = RuntimeType.OBJECT + valueSerializer.writeInt8(value_onAppear_type as int32) + if ((RuntimeType.UNDEFINED) != (value_onAppear_type)) { + const value_onAppear_value = value_onAppear! + valueSerializer.writeFunction(value_onAppear_value) } - valueSerializer.writeInt8(value_symbolIcon_type as int32) - if ((RuntimeType.UNDEFINED) != (value_symbolIcon_type)) { - const value_symbolIcon_value = value_symbolIcon! - valueSerializer.writeCustomObject("SymbolGlyphModifier", value_symbolIcon_value) + const value_onDisappear = value.onDisappear + let value_onDisappear_type = RuntimeType.UNDEFINED + if (value_onDisappear != undefined) { + value_onDisappear_type = RuntimeType.OBJECT } - const value_isEnabled = value.isEnabled - let value_isEnabled_type = RuntimeType.UNDEFINED - if (value_isEnabled != undefined) { - value_isEnabled_type = RuntimeType.OBJECT + valueSerializer.writeInt8(value_onDisappear_type as int32) + if ((RuntimeType.UNDEFINED) != (value_onDisappear_type)) { + const value_onDisappear_value = value_onDisappear! + valueSerializer.writeFunction(value_onDisappear_value) } - valueSerializer.writeInt8(value_isEnabled_type as int32) - if ((RuntimeType.UNDEFINED) != (value_isEnabled_type)) { - const value_isEnabled_value = value_isEnabled! - valueSerializer.writeBoolean(value_isEnabled_value) + const value_aboutToAppear = value.aboutToAppear + let value_aboutToAppear_type = RuntimeType.UNDEFINED + if (value_aboutToAppear != undefined) { + value_aboutToAppear_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_aboutToAppear_type as int32) + if ((RuntimeType.UNDEFINED) != (value_aboutToAppear_type)) { + const value_aboutToAppear_value = value_aboutToAppear! + valueSerializer.writeFunction(value_aboutToAppear_value) + } + const value_aboutToDisappear = value.aboutToDisappear + let value_aboutToDisappear_type = RuntimeType.UNDEFINED + if (value_aboutToDisappear != undefined) { + value_aboutToDisappear_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_aboutToDisappear_type as int32) + if ((RuntimeType.UNDEFINED) != (value_aboutToDisappear_type)) { + const value_aboutToDisappear_value = value_aboutToDisappear! + valueSerializer.writeFunction(value_aboutToDisappear_value) + } + const value_layoutRegionMargin = value.layoutRegionMargin + let value_layoutRegionMargin_type = RuntimeType.UNDEFINED + if (value_layoutRegionMargin != undefined) { + value_layoutRegionMargin_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_layoutRegionMargin_type as int32) + if ((RuntimeType.UNDEFINED) != (value_layoutRegionMargin_type)) { + const value_layoutRegionMargin_value = value_layoutRegionMargin! + const value_layoutRegionMargin_value_top = value_layoutRegionMargin_value.top + let value_layoutRegionMargin_value_top_type = RuntimeType.UNDEFINED + if (value_layoutRegionMargin_value_top != undefined) { + value_layoutRegionMargin_value_top_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_layoutRegionMargin_value_top_type as int32) + if ((RuntimeType.UNDEFINED) != (value_layoutRegionMargin_value_top_type)) { + const value_layoutRegionMargin_value_top_value = value_layoutRegionMargin_value_top! + valueSerializer.writeLength(value_layoutRegionMargin_value_top_value); + } + const value_layoutRegionMargin_value_right = value_layoutRegionMargin_value.right + let value_layoutRegionMargin_value_right_type = RuntimeType.UNDEFINED + if (value_layoutRegionMargin_value_right != undefined) { + value_layoutRegionMargin_value_right_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_layoutRegionMargin_value_right_type as int32) + if ((RuntimeType.UNDEFINED) != (value_layoutRegionMargin_value_right_type)) { + const value_layoutRegionMargin_value_right_value = value_layoutRegionMargin_value_right! + valueSerializer.writeLength(value_layoutRegionMargin_value_right_value); + } + const value_layoutRegionMargin_value_bottom = value_layoutRegionMargin_value.bottom + let value_layoutRegionMargin_value_bottom_type = RuntimeType.UNDEFINED + if (value_layoutRegionMargin_value_bottom != undefined) { + value_layoutRegionMargin_value_bottom_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_layoutRegionMargin_value_bottom_type as int32) + if ((RuntimeType.UNDEFINED) != (value_layoutRegionMargin_value_bottom_type)) { + const value_layoutRegionMargin_value_bottom_value = value_layoutRegionMargin_value_bottom! + valueSerializer.writeLength(value_layoutRegionMargin_value_bottom_value); + } + const value_layoutRegionMargin_value_left = value_layoutRegionMargin_value.left + let value_layoutRegionMargin_value_left_type = RuntimeType.UNDEFINED + if (value_layoutRegionMargin_value_left != undefined) { + value_layoutRegionMargin_value_left_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_layoutRegionMargin_value_left_type as int32) + if ((RuntimeType.UNDEFINED) != (value_layoutRegionMargin_value_left_type)) { + const value_layoutRegionMargin_value_left_value = value_layoutRegionMargin_value_left! + valueSerializer.writeLength(value_layoutRegionMargin_value_left_value); + } } - const value_action = value.action - let value_action_type = RuntimeType.UNDEFINED - if (value_action != undefined) { - value_action_type = RuntimeType.OBJECT + const value_previewAnimationOptions = value.previewAnimationOptions + let value_previewAnimationOptions_type = RuntimeType.UNDEFINED + if (value_previewAnimationOptions != undefined) { + value_previewAnimationOptions_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_action_type as int32) - if ((RuntimeType.UNDEFINED) != (value_action_type)) { - const value_action_value = value_action! - valueSerializer.writeFunction(value_action_value) + valueSerializer.writeInt8(value_previewAnimationOptions_type as int32) + if ((RuntimeType.UNDEFINED) != (value_previewAnimationOptions_type)) { + const value_previewAnimationOptions_value = value_previewAnimationOptions! + valueSerializer.writeContextMenuAnimationOptions(value_previewAnimationOptions_value) } - } - writeNavigationTitleOptions(value: NavigationTitleOptions): void { - let valueSerializer = this const value_backgroundColor = value.backgroundColor let value_backgroundColor_type = RuntimeType.UNDEFINED if (value_backgroundColor != undefined) { @@ -2300,114 +15624,162 @@ export class Serializer extends SerializerBase { const value_backgroundBlurStyle_value = value_backgroundBlurStyle! valueSerializer.writeInt32((value_backgroundBlurStyle_value.value as int32)) } - const value_barStyle = value.barStyle - let value_barStyle_type = RuntimeType.UNDEFINED - if (value_barStyle != undefined) { - value_barStyle_type = RuntimeType.OBJECT - } - valueSerializer.writeInt8(value_barStyle_type as int32) - if ((RuntimeType.UNDEFINED) != (value_barStyle_type)) { - const value_barStyle_value = value_barStyle! - valueSerializer.writeInt32((value_barStyle_value.value as int32)) - } - const value_paddingStart = value.paddingStart - let value_paddingStart_type = RuntimeType.UNDEFINED - if (value_paddingStart != undefined) { - value_paddingStart_type = RuntimeType.OBJECT + const value_transition = value.transition + let value_transition_type = RuntimeType.UNDEFINED + if (value_transition != undefined) { + value_transition_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_paddingStart_type as int32) - if ((RuntimeType.UNDEFINED) != (value_paddingStart_type)) { - const value_paddingStart_value = value_paddingStart! - valueSerializer.writeCustomObject("LengthMetrics", value_paddingStart_value) + valueSerializer.writeInt8(value_transition_type as int32) + if ((RuntimeType.UNDEFINED) != (value_transition_type)) { + const value_transition_value = value_transition! + valueSerializer.writeCustomObject("TransitionEffect", value_transition_value) } - const value_paddingEnd = value.paddingEnd - let value_paddingEnd_type = RuntimeType.UNDEFINED - if (value_paddingEnd != undefined) { - value_paddingEnd_type = RuntimeType.OBJECT + const value_enableHoverMode = value.enableHoverMode + let value_enableHoverMode_type = RuntimeType.UNDEFINED + if (value_enableHoverMode != undefined) { + value_enableHoverMode_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_paddingEnd_type as int32) - if ((RuntimeType.UNDEFINED) != (value_paddingEnd_type)) { - const value_paddingEnd_value = value_paddingEnd! - valueSerializer.writeCustomObject("LengthMetrics", value_paddingEnd_value) + valueSerializer.writeInt8(value_enableHoverMode_type as int32) + if ((RuntimeType.UNDEFINED) != (value_enableHoverMode_type)) { + const value_enableHoverMode_value = value_enableHoverMode! + valueSerializer.writeBoolean(value_enableHoverMode_value) } - } - writeGridContainerOptions(value: GridContainerOptions): void { - let valueSerializer = this - const value_columns = value.columns - let value_columns_type = RuntimeType.UNDEFINED - if (value_columns != undefined) { - value_columns_type = RuntimeType.OBJECT + const value_title = value.title + let value_title_type = RuntimeType.UNDEFINED + if (value_title != undefined) { + value_title_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_columns_type as int32) - if ((RuntimeType.UNDEFINED) != (value_columns_type)) { - const value_columns_value = value_columns! - let value_columns_value_type = RuntimeType.UNDEFINED - value_columns_value_type = runtimeType(value_columns_value) - if (((RuntimeType.NUMBER == value_columns_value_type))) { + valueSerializer.writeInt8(value_title_type as int32) + if ((RuntimeType.UNDEFINED) != (value_title_type)) { + const value_title_value = value_title! + let value_title_value_type = RuntimeType.UNDEFINED + value_title_value_type = runtimeType(value_title_value) + if (((RuntimeType.STRING == value_title_value_type))) { valueSerializer.writeInt8(0 as int32) - const value_columns_value_0 = value_columns_value as number - valueSerializer.writeNumber(value_columns_value_0) + const value_title_value_0 = value_title_value as string + valueSerializer.writeString(value_title_value_0) } - else if (((value_columns_value instanceof LITERAL_Auto))) { + else if (((RuntimeType.OBJECT == value_title_value_type))) { valueSerializer.writeInt8(1 as int32) - const value_columns_value_1 = value_columns_value.toString() as string - valueSerializer.writeString(value_columns_value_1) + const value_title_value_1 = value_title_value as Resource + valueSerializer.writeResource(value_title_value_1) } } - const value_sizeType = value.sizeType - let value_sizeType_type = RuntimeType.UNDEFINED - if (value_sizeType != undefined) { - value_sizeType_type = RuntimeType.OBJECT + const value_showInSubWindow = value.showInSubWindow + let value_showInSubWindow_type = RuntimeType.UNDEFINED + if (value_showInSubWindow != undefined) { + value_showInSubWindow_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_sizeType_type as int32) - if ((RuntimeType.UNDEFINED) != (value_sizeType_type)) { - const value_sizeType_value = value_sizeType! - valueSerializer.writeInt32((value_sizeType_value.value as int32)) + valueSerializer.writeInt8(value_showInSubWindow_type as int32) + if ((RuntimeType.UNDEFINED) != (value_showInSubWindow_type)) { + const value_showInSubWindow_value = value_showInSubWindow! + valueSerializer.writeBoolean(value_showInSubWindow_value) } - const value_gutter = value.gutter - let value_gutter_type = RuntimeType.UNDEFINED - if (value_gutter != undefined) { - value_gutter_type = RuntimeType.OBJECT + } + writeMenuElement(value: MenuElement): void { + let valueSerializer = this + const value_value = value.value + let value_value_type = RuntimeType.UNDEFINED + value_value_type = runtimeType(value_value) + if (((RuntimeType.STRING == value_value_type))) { + valueSerializer.writeInt8(0 as int32) + const value_value_0 = value_value as string + valueSerializer.writeString(value_value_0) } - valueSerializer.writeInt8(value_gutter_type as int32) - if ((RuntimeType.UNDEFINED) != (value_gutter_type)) { - const value_gutter_value = value_gutter! - let value_gutter_value_type = RuntimeType.UNDEFINED - value_gutter_value_type = runtimeType(value_gutter_value) - if (((RuntimeType.NUMBER == value_gutter_value_type))) { - valueSerializer.writeInt8(0 as int32) - const value_gutter_value_0 = value_gutter_value as number - valueSerializer.writeNumber(value_gutter_value_0) - } - else if (((RuntimeType.STRING == value_gutter_value_type))) { - valueSerializer.writeInt8(1 as int32) - const value_gutter_value_1 = value_gutter_value as string - valueSerializer.writeString(value_gutter_value_1) - } + else if (((RuntimeType.OBJECT == value_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_value_1 = value_value as Resource + valueSerializer.writeResource(value_value_1) } - const value_margin = value.margin - let value_margin_type = RuntimeType.UNDEFINED - if (value_margin != undefined) { - value_margin_type = RuntimeType.OBJECT + const value_icon = value.icon + let value_icon_type = RuntimeType.UNDEFINED + if (value_icon != undefined) { + value_icon_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_margin_type as int32) - if ((RuntimeType.UNDEFINED) != (value_margin_type)) { - const value_margin_value = value_margin! - let value_margin_value_type = RuntimeType.UNDEFINED - value_margin_value_type = runtimeType(value_margin_value) - if (((RuntimeType.NUMBER == value_margin_value_type))) { + valueSerializer.writeInt8(value_icon_type as int32) + if ((RuntimeType.UNDEFINED) != (value_icon_type)) { + const value_icon_value = value_icon! + let value_icon_value_type = RuntimeType.UNDEFINED + value_icon_value_type = runtimeType(value_icon_value) + if (((RuntimeType.STRING == value_icon_value_type))) { valueSerializer.writeInt8(0 as int32) - const value_margin_value_0 = value_margin_value as number - valueSerializer.writeNumber(value_margin_value_0) + const value_icon_value_0 = value_icon_value as string + valueSerializer.writeString(value_icon_value_0) } - else if (((RuntimeType.STRING == value_margin_value_type))) { + else if (((RuntimeType.OBJECT == value_icon_value_type))) { valueSerializer.writeInt8(1 as int32) - const value_margin_value_1 = value_margin_value as string - valueSerializer.writeString(value_margin_value_1) + const value_icon_value_1 = value_icon_value as Resource + valueSerializer.writeResource(value_icon_value_1) } } + const value_symbolIcon = value.symbolIcon + let value_symbolIcon_type = RuntimeType.UNDEFINED + if (value_symbolIcon != undefined) { + value_symbolIcon_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_symbolIcon_type as int32) + if ((RuntimeType.UNDEFINED) != (value_symbolIcon_type)) { + const value_symbolIcon_value = value_symbolIcon! + valueSerializer.writeCustomObject("SymbolGlyphModifier", value_symbolIcon_value) + } + const value_enabled = value.enabled + let value_enabled_type = RuntimeType.UNDEFINED + if (value_enabled != undefined) { + value_enabled_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_enabled_type as int32) + if ((RuntimeType.UNDEFINED) != (value_enabled_type)) { + const value_enabled_value = value_enabled! + valueSerializer.writeBoolean(value_enabled_value) + } + const value_action = value.action + valueSerializer.writeFunction(value_action) + } + writeGeometryTransitionOptions(value: GeometryTransitionOptions): void { + let valueSerializer = this + const value_follow = value.follow + let value_follow_type = RuntimeType.UNDEFINED + if (value_follow != undefined) { + value_follow_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_follow_type as int32) + if ((RuntimeType.UNDEFINED) != (value_follow_type)) { + const value_follow_value = value_follow! + valueSerializer.writeBoolean(value_follow_value) + } + const value_hierarchyStrategy = value.hierarchyStrategy + let value_hierarchyStrategy_type = RuntimeType.UNDEFINED + if (value_hierarchyStrategy != undefined) { + value_hierarchyStrategy_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_hierarchyStrategy_type as int32) + if ((RuntimeType.UNDEFINED) != (value_hierarchyStrategy_type)) { + const value_hierarchyStrategy_value = value_hierarchyStrategy! + valueSerializer.writeInt32((value_hierarchyStrategy_value.value as int32)) + } } - writeBorderOptions(value: BorderOptions): void { + writeOverlayOptions(value: OverlayOptions): void { + let valueSerializer = this + const value_align = value.align + let value_align_type = RuntimeType.UNDEFINED + if (value_align != undefined) { + value_align_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_align_type as int32) + if ((RuntimeType.UNDEFINED) != (value_align_type)) { + const value_align_value = value_align! + valueSerializer.writeInt32((value_align_value.value as int32)) + } + const value_offset = value.offset + let value_offset_type = RuntimeType.UNDEFINED + if (value_offset != undefined) { + value_offset_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_offset_type as int32) + if ((RuntimeType.UNDEFINED) != (value_offset_type)) { + const value_offset_value = value_offset! + valueSerializer.writeOverlayOffset(value_offset_value) + } } writeDragInteractionOptions(value: DragInteractionOptions): void { let valueSerializer = this @@ -2492,401 +15864,1013 @@ export class Serializer extends SerializerBase { } } } - writeBackgroundBlurStyleOptions(value: BackgroundBlurStyleOptions): void { + writeLocalizedAlignRuleOptions(value: LocalizedAlignRuleOptions): void { let valueSerializer = this - const value_colorMode = value.colorMode - let value_colorMode_type = RuntimeType.UNDEFINED - if (value_colorMode != undefined) { - value_colorMode_type = RuntimeType.OBJECT + const value_start = value.start + let value_start_type = RuntimeType.UNDEFINED + if (value_start != undefined) { + value_start_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_colorMode_type as int32) - if ((RuntimeType.UNDEFINED) != (value_colorMode_type)) { - const value_colorMode_value = value_colorMode! - valueSerializer.writeInt32((value_colorMode_value.value as int32)) + valueSerializer.writeInt8(value_start_type as int32) + if ((RuntimeType.UNDEFINED) != (value_start_type)) { + const value_start_value = value_start! + valueSerializer.writeLocalizedHorizontalAlignParam(value_start_value) } - const value_adaptiveColor = value.adaptiveColor - let value_adaptiveColor_type = RuntimeType.UNDEFINED - if (value_adaptiveColor != undefined) { - value_adaptiveColor_type = RuntimeType.OBJECT + const value_end = value.end + let value_end_type = RuntimeType.UNDEFINED + if (value_end != undefined) { + value_end_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_adaptiveColor_type as int32) - if ((RuntimeType.UNDEFINED) != (value_adaptiveColor_type)) { - const value_adaptiveColor_value = value_adaptiveColor! - valueSerializer.writeInt32((value_adaptiveColor_value.value as int32)) + valueSerializer.writeInt8(value_end_type as int32) + if ((RuntimeType.UNDEFINED) != (value_end_type)) { + const value_end_value = value_end! + valueSerializer.writeLocalizedHorizontalAlignParam(value_end_value) } - const value_scale = value.scale - let value_scale_type = RuntimeType.UNDEFINED - if (value_scale != undefined) { - value_scale_type = RuntimeType.OBJECT + const value_middle = value.middle + let value_middle_type = RuntimeType.UNDEFINED + if (value_middle != undefined) { + value_middle_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_scale_type as int32) - if ((RuntimeType.UNDEFINED) != (value_scale_type)) { - const value_scale_value = value_scale! - valueSerializer.writeNumber(value_scale_value) + valueSerializer.writeInt8(value_middle_type as int32) + if ((RuntimeType.UNDEFINED) != (value_middle_type)) { + const value_middle_value = value_middle! + valueSerializer.writeLocalizedHorizontalAlignParam(value_middle_value) } - const value_blurOptions = value.blurOptions - let value_blurOptions_type = RuntimeType.UNDEFINED - if (value_blurOptions != undefined) { - value_blurOptions_type = RuntimeType.OBJECT + const value_top = value.top + let value_top_type = RuntimeType.UNDEFINED + if (value_top != undefined) { + value_top_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_blurOptions_type as int32) - if ((RuntimeType.UNDEFINED) != (value_blurOptions_type)) { - const value_blurOptions_value = value_blurOptions! - valueSerializer.writeBlurOptions(value_blurOptions_value) + valueSerializer.writeInt8(value_top_type as int32) + if ((RuntimeType.UNDEFINED) != (value_top_type)) { + const value_top_value = value_top! + valueSerializer.writeLocalizedVerticalAlignParam(value_top_value) } - const value_policy = value.policy - let value_policy_type = RuntimeType.UNDEFINED - if (value_policy != undefined) { - value_policy_type = RuntimeType.OBJECT + const value_bottom = value.bottom + let value_bottom_type = RuntimeType.UNDEFINED + if (value_bottom != undefined) { + value_bottom_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_policy_type as int32) - if ((RuntimeType.UNDEFINED) != (value_policy_type)) { - const value_policy_value = value_policy! - valueSerializer.writeInt32((value_policy_value.value as int32)) + valueSerializer.writeInt8(value_bottom_type as int32) + if ((RuntimeType.UNDEFINED) != (value_bottom_type)) { + const value_bottom_value = value_bottom! + valueSerializer.writeLocalizedVerticalAlignParam(value_bottom_value) } - const value_inactiveColor = value.inactiveColor - let value_inactiveColor_type = RuntimeType.UNDEFINED - if (value_inactiveColor != undefined) { - value_inactiveColor_type = RuntimeType.OBJECT + const value_center = value.center + let value_center_type = RuntimeType.UNDEFINED + if (value_center != undefined) { + value_center_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_inactiveColor_type as int32) - if ((RuntimeType.UNDEFINED) != (value_inactiveColor_type)) { - const value_inactiveColor_value = value_inactiveColor! - let value_inactiveColor_value_type = RuntimeType.UNDEFINED - value_inactiveColor_value_type = runtimeType(value_inactiveColor_value) - if (((RuntimeType.OBJECT) == (value_inactiveColor_value_type)) && (value_inactiveColor_value instanceof Color)) { - valueSerializer.writeInt8(0 as int32) - const value_inactiveColor_value_0 = value_inactiveColor_value as Color - valueSerializer.writeInt32((value_inactiveColor_value_0.value as int32)) - } - else if (((RuntimeType.NUMBER == value_inactiveColor_value_type))) { - valueSerializer.writeInt8(1 as int32) - const value_inactiveColor_value_1 = value_inactiveColor_value as number - valueSerializer.writeNumber(value_inactiveColor_value_1) - } - else if (((RuntimeType.STRING == value_inactiveColor_value_type))) { - valueSerializer.writeInt8(2 as int32) - const value_inactiveColor_value_2 = value_inactiveColor_value as string - valueSerializer.writeString(value_inactiveColor_value_2) - } - else if (isResource(value_inactiveColor_value)) { - valueSerializer.writeInt8(3 as int32) - const value_inactiveColor_value_3 = value_inactiveColor_value as Resource - valueSerializer.writeResource(value_inactiveColor_value_3) - } + valueSerializer.writeInt8(value_center_type as int32) + if ((RuntimeType.UNDEFINED) != (value_center_type)) { + const value_center_value = value_center! + valueSerializer.writeLocalizedVerticalAlignParam(value_center_value) + } + const value_bias = value.bias + let value_bias_type = RuntimeType.UNDEFINED + if (value_bias != undefined) { + value_bias_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_bias_type as int32) + if ((RuntimeType.UNDEFINED) != (value_bias_type)) { + const value_bias_value = value_bias! + valueSerializer.writeBias(value_bias_value) } } - writeSheetOptions(value: SheetOptions): void { + writeAlignRuleOption(value: AlignRuleOption): void { let valueSerializer = this - const value_backgroundColor = value.backgroundColor - let value_backgroundColor_type = RuntimeType.UNDEFINED - if (value_backgroundColor != undefined) { - value_backgroundColor_type = RuntimeType.OBJECT + const value_left = value.left + let value_left_type = RuntimeType.UNDEFINED + if (value_left != undefined) { + value_left_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_left_type as int32) + if ((RuntimeType.UNDEFINED) != (value_left_type)) { + const value_left_value = value_left! + const value_left_value_anchor = value_left_value.anchor + valueSerializer.writeString(value_left_value_anchor) + const value_left_value_align = value_left_value.align + valueSerializer.writeInt32((value_left_value_align.value as int32)) + } + const value_right = value.right + let value_right_type = RuntimeType.UNDEFINED + if (value_right != undefined) { + value_right_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_right_type as int32) + if ((RuntimeType.UNDEFINED) != (value_right_type)) { + const value_right_value = value_right! + const value_right_value_anchor = value_right_value.anchor + valueSerializer.writeString(value_right_value_anchor) + const value_right_value_align = value_right_value.align + valueSerializer.writeInt32((value_right_value_align.value as int32)) + } + const value_middle = value.middle + let value_middle_type = RuntimeType.UNDEFINED + if (value_middle != undefined) { + value_middle_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_middle_type as int32) + if ((RuntimeType.UNDEFINED) != (value_middle_type)) { + const value_middle_value = value_middle! + const value_middle_value_anchor = value_middle_value.anchor + valueSerializer.writeString(value_middle_value_anchor) + const value_middle_value_align = value_middle_value.align + valueSerializer.writeInt32((value_middle_value_align.value as int32)) } - valueSerializer.writeInt8(value_backgroundColor_type as int32) - if ((RuntimeType.UNDEFINED) != (value_backgroundColor_type)) { - const value_backgroundColor_value = value_backgroundColor! - let value_backgroundColor_value_type = RuntimeType.UNDEFINED - value_backgroundColor_value_type = runtimeType(value_backgroundColor_value) - if (((RuntimeType.OBJECT) == (value_backgroundColor_value_type)) && (value_backgroundColor_value instanceof Color)) { + const value_top = value.top + let value_top_type = RuntimeType.UNDEFINED + if (value_top != undefined) { + value_top_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_top_type as int32) + if ((RuntimeType.UNDEFINED) != (value_top_type)) { + const value_top_value = value_top! + const value_top_value_anchor = value_top_value.anchor + valueSerializer.writeString(value_top_value_anchor) + const value_top_value_align = value_top_value.align + valueSerializer.writeInt32((value_top_value_align.value as int32)) + } + const value_bottom = value.bottom + let value_bottom_type = RuntimeType.UNDEFINED + if (value_bottom != undefined) { + value_bottom_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_bottom_type as int32) + if ((RuntimeType.UNDEFINED) != (value_bottom_type)) { + const value_bottom_value = value_bottom! + const value_bottom_value_anchor = value_bottom_value.anchor + valueSerializer.writeString(value_bottom_value_anchor) + const value_bottom_value_align = value_bottom_value.align + valueSerializer.writeInt32((value_bottom_value_align.value as int32)) + } + const value_center = value.center + let value_center_type = RuntimeType.UNDEFINED + if (value_center != undefined) { + value_center_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_center_type as int32) + if ((RuntimeType.UNDEFINED) != (value_center_type)) { + const value_center_value = value_center! + const value_center_value_anchor = value_center_value.anchor + valueSerializer.writeString(value_center_value_anchor) + const value_center_value_align = value_center_value.align + valueSerializer.writeInt32((value_center_value_align.value as int32)) + } + const value_bias = value.bias + let value_bias_type = RuntimeType.UNDEFINED + if (value_bias != undefined) { + value_bias_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_bias_type as int32) + if ((RuntimeType.UNDEFINED) != (value_bias_type)) { + const value_bias_value = value_bias! + valueSerializer.writeBias(value_bias_value) + } + } + writesharedTransitionOptions(value: sharedTransitionOptions): void { + let valueSerializer = this + const value_duration = value.duration + let value_duration_type = RuntimeType.UNDEFINED + if (value_duration != undefined) { + value_duration_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_duration_type as int32) + if ((RuntimeType.UNDEFINED) != (value_duration_type)) { + const value_duration_value = value_duration! + valueSerializer.writeNumber(value_duration_value) + } + const value_curve = value.curve + let value_curve_type = RuntimeType.UNDEFINED + if (value_curve != undefined) { + value_curve_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_curve_type as int32) + if ((RuntimeType.UNDEFINED) != (value_curve_type)) { + const value_curve_value = value_curve! + let value_curve_value_type = RuntimeType.UNDEFINED + value_curve_value_type = runtimeType(value_curve_value) + if (((RuntimeType.OBJECT) == (value_curve_value_type)) && (value_curve_value instanceof Curve)) { valueSerializer.writeInt8(0 as int32) - const value_backgroundColor_value_0 = value_backgroundColor_value as Color - valueSerializer.writeInt32((value_backgroundColor_value_0.value as int32)) + const value_curve_value_0 = value_curve_value as Curve + valueSerializer.writeInt32((value_curve_value_0.value as int32)) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (((RuntimeType.STRING == value_curve_value_type))) { valueSerializer.writeInt8(1 as int32) - const value_backgroundColor_value_1 = value_backgroundColor_value as number - valueSerializer.writeNumber(value_backgroundColor_value_1) + const value_curve_value_1 = value_curve_value as string + valueSerializer.writeString(value_curve_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (((RuntimeType.OBJECT) == (value_curve_value_type)) && (value_curve_value instanceof ICurve)) { valueSerializer.writeInt8(2 as int32) - const value_backgroundColor_value_2 = value_backgroundColor_value as string - valueSerializer.writeString(value_backgroundColor_value_2) - } - else if (isResource(value_backgroundColor_value)) { - valueSerializer.writeInt8(3 as int32) - const value_backgroundColor_value_3 = value_backgroundColor_value as Resource - valueSerializer.writeResource(value_backgroundColor_value_3) + const value_curve_value_2 = value_curve_value as ICurve + valueSerializer.writeMaterialized(value_curve_value_2) } } - const value_onAppear = value.onAppear - let value_onAppear_type = RuntimeType.UNDEFINED - if (value_onAppear != undefined) { - value_onAppear_type = RuntimeType.OBJECT + const value_delay = value.delay + let value_delay_type = RuntimeType.UNDEFINED + if (value_delay != undefined) { + value_delay_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_onAppear_type as int32) - if ((RuntimeType.UNDEFINED) != (value_onAppear_type)) { - const value_onAppear_value = value_onAppear! - valueSerializer.writeFunction(value_onAppear_value) + valueSerializer.writeInt8(value_delay_type as int32) + if ((RuntimeType.UNDEFINED) != (value_delay_type)) { + const value_delay_value = value_delay! + valueSerializer.writeNumber(value_delay_value) } - const value_onDisappear = value.onDisappear - let value_onDisappear_type = RuntimeType.UNDEFINED - if (value_onDisappear != undefined) { - value_onDisappear_type = RuntimeType.OBJECT + const value_motionPath = value.motionPath + let value_motionPath_type = RuntimeType.UNDEFINED + if (value_motionPath != undefined) { + value_motionPath_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_onDisappear_type as int32) - if ((RuntimeType.UNDEFINED) != (value_onDisappear_type)) { - const value_onDisappear_value = value_onDisappear! - valueSerializer.writeFunction(value_onDisappear_value) + valueSerializer.writeInt8(value_motionPath_type as int32) + if ((RuntimeType.UNDEFINED) != (value_motionPath_type)) { + const value_motionPath_value = value_motionPath! + valueSerializer.writeMotionPathOptions(value_motionPath_value) } - const value_onWillAppear = value.onWillAppear - let value_onWillAppear_type = RuntimeType.UNDEFINED - if (value_onWillAppear != undefined) { - value_onWillAppear_type = RuntimeType.OBJECT + const value_zIndex = value.zIndex + let value_zIndex_type = RuntimeType.UNDEFINED + if (value_zIndex != undefined) { + value_zIndex_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_onWillAppear_type as int32) - if ((RuntimeType.UNDEFINED) != (value_onWillAppear_type)) { - const value_onWillAppear_value = value_onWillAppear! - valueSerializer.writeFunction(value_onWillAppear_value) + valueSerializer.writeInt8(value_zIndex_type as int32) + if ((RuntimeType.UNDEFINED) != (value_zIndex_type)) { + const value_zIndex_value = value_zIndex! + valueSerializer.writeNumber(value_zIndex_value) } - const value_onWillDisappear = value.onWillDisappear - let value_onWillDisappear_type = RuntimeType.UNDEFINED - if (value_onWillDisappear != undefined) { - value_onWillDisappear_type = RuntimeType.OBJECT + const value_type = value.type + let value_type_type = RuntimeType.UNDEFINED + if (value_type != undefined) { + value_type_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_onWillDisappear_type as int32) - if ((RuntimeType.UNDEFINED) != (value_onWillDisappear_type)) { - const value_onWillDisappear_value = value_onWillDisappear! - valueSerializer.writeFunction(value_onWillDisappear_value) + valueSerializer.writeInt8(value_type_type as int32) + if ((RuntimeType.UNDEFINED) != (value_type_type)) { + const value_type_value = value_type! + valueSerializer.writeInt32((value_type_value.value as int32)) } - const value_height = value.height - let value_height_type = RuntimeType.UNDEFINED - if (value_height != undefined) { - value_height_type = RuntimeType.OBJECT + } + writeMotionBlurOptions(value: MotionBlurOptions): void { + let valueSerializer = this + const value_radius = value.radius + valueSerializer.writeNumber(value_radius) + const value_anchor = value.anchor + valueSerializer.writeMotionBlurAnchor(value_anchor) + } + writeLinearGradientBlurOptions(value: LinearGradientBlurOptions): void { + let valueSerializer = this + const value_fractionStops = value.fractionStops + valueSerializer.writeInt8(runtimeType(value_fractionStops) as int32) + valueSerializer.writeInt32(value_fractionStops.length as int32) + for (let i = 0; i < value_fractionStops.length; i++) { + const value_fractionStops_element = value_fractionStops[i] + valueSerializer.writeInt8(runtimeType(value_fractionStops_element) as int32) + const value_fractionStops_element_0 = value_fractionStops_element[0] + valueSerializer.writeNumber(value_fractionStops_element_0) + const value_fractionStops_element_1 = value_fractionStops_element[1] + valueSerializer.writeNumber(value_fractionStops_element_1) + } + const value_direction = value.direction + valueSerializer.writeInt32((value_direction.value as int32)) + } + writeAnimateParam(value: AnimateParam): void { + let valueSerializer = this + const value_duration = value.duration + let value_duration_type = RuntimeType.UNDEFINED + if (value_duration != undefined) { + value_duration_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_height_type as int32) - if ((RuntimeType.UNDEFINED) != (value_height_type)) { - const value_height_value = value_height! - let value_height_value_type = RuntimeType.UNDEFINED - value_height_value_type = runtimeType(value_height_value) - if (((RuntimeType.OBJECT) == (value_height_value_type)) && (value_height_value instanceof SheetSize)) { + valueSerializer.writeInt8(value_duration_type as int32) + if ((RuntimeType.UNDEFINED) != (value_duration_type)) { + const value_duration_value = value_duration! + valueSerializer.writeNumber(value_duration_value) + } + const value_tempo = value.tempo + let value_tempo_type = RuntimeType.UNDEFINED + if (value_tempo != undefined) { + value_tempo_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_tempo_type as int32) + if ((RuntimeType.UNDEFINED) != (value_tempo_type)) { + const value_tempo_value = value_tempo! + valueSerializer.writeNumber(value_tempo_value) + } + const value_curve = value.curve + let value_curve_type = RuntimeType.UNDEFINED + if (value_curve != undefined) { + value_curve_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_curve_type as int32) + if ((RuntimeType.UNDEFINED) != (value_curve_type)) { + const value_curve_value = value_curve! + let value_curve_value_type = RuntimeType.UNDEFINED + value_curve_value_type = runtimeType(value_curve_value) + if (((RuntimeType.OBJECT) == (value_curve_value_type)) && (value_curve_value instanceof Curve)) { valueSerializer.writeInt8(0 as int32) - const value_height_value_0 = value_height_value as SheetSize - valueSerializer.writeInt32((value_height_value_0.value as int32)) + const value_curve_value_0 = value_curve_value as Curve + valueSerializer.writeInt32((value_curve_value_0.value as int32)) } - else if (((RuntimeType.NUMBER) == (value_height_value_type)) || ((RuntimeType.STRING) == (value_height_value_type)) || (((RuntimeType.OBJECT) == (value_height_value_type)) && (isResource(value_height_value)))) { + else if (((RuntimeType.STRING == value_curve_value_type))) { valueSerializer.writeInt8(1 as int32) - const value_height_value_1 = value_height_value as Length - valueSerializer.writeLength(value_height_value_1); + const value_curve_value_1 = value_curve_value as string + valueSerializer.writeString(value_curve_value_1) + } + else if (((RuntimeType.OBJECT) == (value_curve_value_type)) && (value_curve_value instanceof ICurve)) { + valueSerializer.writeInt8(2 as int32) + const value_curve_value_2 = value_curve_value as ICurve + valueSerializer.writeMaterialized(value_curve_value_2) } } - const value_dragBar = value.dragBar - let value_dragBar_type = RuntimeType.UNDEFINED - if (value_dragBar != undefined) { - value_dragBar_type = RuntimeType.OBJECT + const value_delay = value.delay + let value_delay_type = RuntimeType.UNDEFINED + if (value_delay != undefined) { + value_delay_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_delay_type as int32) + if ((RuntimeType.UNDEFINED) != (value_delay_type)) { + const value_delay_value = value_delay! + valueSerializer.writeNumber(value_delay_value) + } + const value_iterations = value.iterations + let value_iterations_type = RuntimeType.UNDEFINED + if (value_iterations != undefined) { + value_iterations_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_iterations_type as int32) + if ((RuntimeType.UNDEFINED) != (value_iterations_type)) { + const value_iterations_value = value_iterations! + valueSerializer.writeNumber(value_iterations_value) + } + const value_playMode = value.playMode + let value_playMode_type = RuntimeType.UNDEFINED + if (value_playMode != undefined) { + value_playMode_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_playMode_type as int32) + if ((RuntimeType.UNDEFINED) != (value_playMode_type)) { + const value_playMode_value = value_playMode! + valueSerializer.writeInt32((value_playMode_value.value as int32)) + } + const value_onFinish = value.onFinish + let value_onFinish_type = RuntimeType.UNDEFINED + if (value_onFinish != undefined) { + value_onFinish_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_onFinish_type as int32) + if ((RuntimeType.UNDEFINED) != (value_onFinish_type)) { + const value_onFinish_value = value_onFinish! + valueSerializer.writeFunction(value_onFinish_value) + } + const value_finishCallbackType = value.finishCallbackType + let value_finishCallbackType_type = RuntimeType.UNDEFINED + if (value_finishCallbackType != undefined) { + value_finishCallbackType_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_finishCallbackType_type as int32) + if ((RuntimeType.UNDEFINED) != (value_finishCallbackType_type)) { + const value_finishCallbackType_value = value_finishCallbackType! + valueSerializer.writeInt32((value_finishCallbackType_value.value as int32)) + } + const value_expectedFrameRateRange = value.expectedFrameRateRange + let value_expectedFrameRateRange_type = RuntimeType.UNDEFINED + if (value_expectedFrameRateRange != undefined) { + value_expectedFrameRateRange_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_expectedFrameRateRange_type as int32) + if ((RuntimeType.UNDEFINED) != (value_expectedFrameRateRange_type)) { + const value_expectedFrameRateRange_value = value_expectedFrameRateRange! + valueSerializer.writeExpectedFrameRateRange(value_expectedFrameRateRange_value) } - valueSerializer.writeInt8(value_dragBar_type as int32) - if ((RuntimeType.UNDEFINED) != (value_dragBar_type)) { - const value_dragBar_value = value_dragBar! - valueSerializer.writeBoolean(value_dragBar_value) + } + writeFocusBoxStyle(value: FocusBoxStyle): void { + let valueSerializer = this + const value_margin = value.margin + let value_margin_type = RuntimeType.UNDEFINED + if (value_margin != undefined) { + value_margin_type = RuntimeType.OBJECT } - const value_maskColor = value.maskColor - let value_maskColor_type = RuntimeType.UNDEFINED - if (value_maskColor != undefined) { - value_maskColor_type = RuntimeType.OBJECT + valueSerializer.writeInt8(value_margin_type as int32) + if ((RuntimeType.UNDEFINED) != (value_margin_type)) { + const value_margin_value = value_margin! + valueSerializer.writeCustomObject("LengthMetrics", value_margin_value) } - valueSerializer.writeInt8(value_maskColor_type as int32) - if ((RuntimeType.UNDEFINED) != (value_maskColor_type)) { - const value_maskColor_value = value_maskColor! - let value_maskColor_value_type = RuntimeType.UNDEFINED - value_maskColor_value_type = runtimeType(value_maskColor_value) - if (((RuntimeType.OBJECT) == (value_maskColor_value_type)) && (value_maskColor_value instanceof Color)) { + const value_strokeColor = value.strokeColor + let value_strokeColor_type = RuntimeType.UNDEFINED + if (value_strokeColor != undefined) { + value_strokeColor_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_strokeColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_strokeColor_type)) { + const value_strokeColor_value = value_strokeColor! + valueSerializer.writeCustomObject("ColorMetrics", value_strokeColor_value) + } + const value_strokeWidth = value.strokeWidth + let value_strokeWidth_type = RuntimeType.UNDEFINED + if (value_strokeWidth != undefined) { + value_strokeWidth_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_strokeWidth_type as int32) + if ((RuntimeType.UNDEFINED) != (value_strokeWidth_type)) { + const value_strokeWidth_value = value_strokeWidth! + valueSerializer.writeCustomObject("LengthMetrics", value_strokeWidth_value) + } + } + writeOutlineOptions(value: OutlineOptions): void { + let valueSerializer = this + const value_width = value.width + let value_width_type = RuntimeType.UNDEFINED + if (value_width != undefined) { + value_width_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_width_type as int32) + if ((RuntimeType.UNDEFINED) != (value_width_type)) { + const value_width_value = value_width! + let value_width_value_type = RuntimeType.UNDEFINED + value_width_value_type = runtimeType(value_width_value) + if (TypeChecker.isEdgeOutlineWidths(value_width_value, false, false, false, false)) { valueSerializer.writeInt8(0 as int32) - const value_maskColor_value_0 = value_maskColor_value as Color - valueSerializer.writeInt32((value_maskColor_value_0.value as int32)) + const value_width_value_0 = value_width_value as EdgeOutlineWidths + const value_width_value_0_top = value_width_value_0.top + let value_width_value_0_top_type = RuntimeType.UNDEFINED + if (value_width_value_0_top != undefined) { + value_width_value_0_top_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_width_value_0_top_type as int32) + if ((RuntimeType.UNDEFINED) != (value_width_value_0_top_type)) { + const value_width_value_0_top_value = value_width_value_0_top! + valueSerializer.writeLength(value_width_value_0_top_value); + } + const value_width_value_0_right = value_width_value_0.right + let value_width_value_0_right_type = RuntimeType.UNDEFINED + if (value_width_value_0_right != undefined) { + value_width_value_0_right_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_width_value_0_right_type as int32) + if ((RuntimeType.UNDEFINED) != (value_width_value_0_right_type)) { + const value_width_value_0_right_value = value_width_value_0_right! + valueSerializer.writeLength(value_width_value_0_right_value); + } + const value_width_value_0_bottom = value_width_value_0.bottom + let value_width_value_0_bottom_type = RuntimeType.UNDEFINED + if (value_width_value_0_bottom != undefined) { + value_width_value_0_bottom_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_width_value_0_bottom_type as int32) + if ((RuntimeType.UNDEFINED) != (value_width_value_0_bottom_type)) { + const value_width_value_0_bottom_value = value_width_value_0_bottom! + valueSerializer.writeLength(value_width_value_0_bottom_value); + } + const value_width_value_0_left = value_width_value_0.left + let value_width_value_0_left_type = RuntimeType.UNDEFINED + if (value_width_value_0_left != undefined) { + value_width_value_0_left_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_width_value_0_left_type as int32) + if ((RuntimeType.UNDEFINED) != (value_width_value_0_left_type)) { + const value_width_value_0_left_value = value_width_value_0_left! + valueSerializer.writeLength(value_width_value_0_left_value); + } } - else if (((RuntimeType.NUMBER == value_maskColor_value_type))) { + else if (((RuntimeType.NUMBER) == (value_width_value_type)) || ((RuntimeType.STRING) == (value_width_value_type)) || (((RuntimeType.OBJECT) == (value_width_value_type)) && (isResource(value_width_value)))) { valueSerializer.writeInt8(1 as int32) - const value_maskColor_value_1 = value_maskColor_value as number - valueSerializer.writeNumber(value_maskColor_value_1) - } - else if (((RuntimeType.STRING == value_maskColor_value_type))) { - valueSerializer.writeInt8(2 as int32) - const value_maskColor_value_2 = value_maskColor_value as string - valueSerializer.writeString(value_maskColor_value_2) - } - else if (isResource(value_maskColor_value)) { - valueSerializer.writeInt8(3 as int32) - const value_maskColor_value_3 = value_maskColor_value as Resource - valueSerializer.writeResource(value_maskColor_value_3) + const value_width_value_1 = value_width_value as Dimension + valueSerializer.writeLength(value_width_value_1); } } - const value_detents = value.detents - let value_detents_type = RuntimeType.UNDEFINED - if (value_detents != undefined) { - value_detents_type = RuntimeType.OBJECT + const value_color = value.color + let value_color_type = RuntimeType.UNDEFINED + if (value_color != undefined) { + value_color_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_detents_type as int32) - if ((RuntimeType.UNDEFINED) != (value_detents_type)) { - const value_detents_value = value_detents! - valueSerializer.writeInt8(runtimeType(value_detents_value) as int32) - const value_detents_value_0 = value_detents_value[0] - let value_detents_value_0_type = RuntimeType.UNDEFINED - value_detents_value_0_type = runtimeType(value_detents_value_0) - if (((RuntimeType.OBJECT) == (value_detents_value_0_type)) && (value_detents_value_0 instanceof SheetSize)) { + valueSerializer.writeInt8(value_color_type as int32) + if ((RuntimeType.UNDEFINED) != (value_color_type)) { + const value_color_value = value_color! + let value_color_value_type = RuntimeType.UNDEFINED + value_color_value_type = runtimeType(value_color_value) + if (TypeChecker.isEdgeColors(value_color_value, true, false, true, false)) { valueSerializer.writeInt8(0 as int32) - const value_detents_value_0_0 = value_detents_value_0 as SheetSize - valueSerializer.writeInt32((value_detents_value_0_0.value as int32)) - } - else if (((RuntimeType.NUMBER) == (value_detents_value_0_type)) || ((RuntimeType.STRING) == (value_detents_value_0_type)) || (((RuntimeType.OBJECT) == (value_detents_value_0_type)) && (isResource(value_detents_value_0)))) { - valueSerializer.writeInt8(1 as int32) - const value_detents_value_0_1 = value_detents_value_0 as Length - valueSerializer.writeLength(value_detents_value_0_1); + const value_color_value_0 = value_color_value as EdgeColors + const value_color_value_0_top = value_color_value_0.top + let value_color_value_0_top_type = RuntimeType.UNDEFINED + if (value_color_value_0_top != undefined) { + value_color_value_0_top_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_color_value_0_top_type as int32) + if ((RuntimeType.UNDEFINED) != (value_color_value_0_top_type)) { + const value_color_value_0_top_value = value_color_value_0_top! + let value_color_value_0_top_value_type = RuntimeType.UNDEFINED + value_color_value_0_top_value_type = runtimeType(value_color_value_0_top_value) + if (((RuntimeType.OBJECT) == (value_color_value_0_top_value_type)) && (value_color_value_0_top_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_color_value_0_top_value_0 = value_color_value_0_top_value as Color + valueSerializer.writeInt32((value_color_value_0_top_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_color_value_0_top_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_color_value_0_top_value_1 = value_color_value_0_top_value as number + valueSerializer.writeNumber(value_color_value_0_top_value_1) + } + else if (((RuntimeType.STRING == value_color_value_0_top_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_color_value_0_top_value_2 = value_color_value_0_top_value as string + valueSerializer.writeString(value_color_value_0_top_value_2) + } + else if (isResource(value_color_value_0_top_value)) { + valueSerializer.writeInt8(3 as int32) + const value_color_value_0_top_value_3 = value_color_value_0_top_value as Resource + valueSerializer.writeResource(value_color_value_0_top_value_3) + } + } + const value_color_value_0_right = value_color_value_0.right + let value_color_value_0_right_type = RuntimeType.UNDEFINED + if (value_color_value_0_right != undefined) { + value_color_value_0_right_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_color_value_0_right_type as int32) + if ((RuntimeType.UNDEFINED) != (value_color_value_0_right_type)) { + const value_color_value_0_right_value = value_color_value_0_right! + let value_color_value_0_right_value_type = RuntimeType.UNDEFINED + value_color_value_0_right_value_type = runtimeType(value_color_value_0_right_value) + if (((RuntimeType.OBJECT) == (value_color_value_0_right_value_type)) && (value_color_value_0_right_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_color_value_0_right_value_0 = value_color_value_0_right_value as Color + valueSerializer.writeInt32((value_color_value_0_right_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_color_value_0_right_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_color_value_0_right_value_1 = value_color_value_0_right_value as number + valueSerializer.writeNumber(value_color_value_0_right_value_1) + } + else if (((RuntimeType.STRING == value_color_value_0_right_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_color_value_0_right_value_2 = value_color_value_0_right_value as string + valueSerializer.writeString(value_color_value_0_right_value_2) + } + else if (isResource(value_color_value_0_right_value)) { + valueSerializer.writeInt8(3 as int32) + const value_color_value_0_right_value_3 = value_color_value_0_right_value as Resource + valueSerializer.writeResource(value_color_value_0_right_value_3) + } + } + const value_color_value_0_bottom = value_color_value_0.bottom + let value_color_value_0_bottom_type = RuntimeType.UNDEFINED + if (value_color_value_0_bottom != undefined) { + value_color_value_0_bottom_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_color_value_0_bottom_type as int32) + if ((RuntimeType.UNDEFINED) != (value_color_value_0_bottom_type)) { + const value_color_value_0_bottom_value = value_color_value_0_bottom! + let value_color_value_0_bottom_value_type = RuntimeType.UNDEFINED + value_color_value_0_bottom_value_type = runtimeType(value_color_value_0_bottom_value) + if (((RuntimeType.OBJECT) == (value_color_value_0_bottom_value_type)) && (value_color_value_0_bottom_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_color_value_0_bottom_value_0 = value_color_value_0_bottom_value as Color + valueSerializer.writeInt32((value_color_value_0_bottom_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_color_value_0_bottom_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_color_value_0_bottom_value_1 = value_color_value_0_bottom_value as number + valueSerializer.writeNumber(value_color_value_0_bottom_value_1) + } + else if (((RuntimeType.STRING == value_color_value_0_bottom_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_color_value_0_bottom_value_2 = value_color_value_0_bottom_value as string + valueSerializer.writeString(value_color_value_0_bottom_value_2) + } + else if (isResource(value_color_value_0_bottom_value)) { + valueSerializer.writeInt8(3 as int32) + const value_color_value_0_bottom_value_3 = value_color_value_0_bottom_value as Resource + valueSerializer.writeResource(value_color_value_0_bottom_value_3) + } + } + const value_color_value_0_left = value_color_value_0.left + let value_color_value_0_left_type = RuntimeType.UNDEFINED + if (value_color_value_0_left != undefined) { + value_color_value_0_left_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_color_value_0_left_type as int32) + if ((RuntimeType.UNDEFINED) != (value_color_value_0_left_type)) { + const value_color_value_0_left_value = value_color_value_0_left! + let value_color_value_0_left_value_type = RuntimeType.UNDEFINED + value_color_value_0_left_value_type = runtimeType(value_color_value_0_left_value) + if (((RuntimeType.OBJECT) == (value_color_value_0_left_value_type)) && (value_color_value_0_left_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_color_value_0_left_value_0 = value_color_value_0_left_value as Color + valueSerializer.writeInt32((value_color_value_0_left_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_color_value_0_left_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_color_value_0_left_value_1 = value_color_value_0_left_value as number + valueSerializer.writeNumber(value_color_value_0_left_value_1) + } + else if (((RuntimeType.STRING == value_color_value_0_left_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_color_value_0_left_value_2 = value_color_value_0_left_value as string + valueSerializer.writeString(value_color_value_0_left_value_2) + } + else if (isResource(value_color_value_0_left_value)) { + valueSerializer.writeInt8(3 as int32) + const value_color_value_0_left_value_3 = value_color_value_0_left_value as Resource + valueSerializer.writeResource(value_color_value_0_left_value_3) + } + } } - const value_detents_value_1 = value_detents_value[1] - let value_detents_value_1_type = RuntimeType.UNDEFINED - if (value_detents_value_1 != undefined) { - value_detents_value_1_type = RuntimeType.OBJECT + else if (TypeChecker.isLocalizedEdgeColors(value_color_value, true, false, true, false)) { + valueSerializer.writeInt8(2 as int32) + const value_color_value_2 = value_color_value as LocalizedEdgeColors + valueSerializer.writeLocalizedEdgeColors(value_color_value_2) } - valueSerializer.writeInt8(value_detents_value_1_type as int32) - if ((RuntimeType.UNDEFINED) != (value_detents_value_1_type)) { - const value_detents_value_1_value = value_detents_value_1! - let value_detents_value_1_value_type = RuntimeType.UNDEFINED - value_detents_value_1_value_type = runtimeType(value_detents_value_1_value) - if (((RuntimeType.OBJECT) == (value_detents_value_1_value_type)) && (value_detents_value_1_value instanceof SheetSize)) { + else if (((RuntimeType.OBJECT == value_color_value_type)) || ((RuntimeType.NUMBER == value_color_value_type)) || ((RuntimeType.STRING == value_color_value_type)) || ((RuntimeType.OBJECT == value_color_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_color_value_1 = value_color_value as ResourceColor + let value_color_value_1_type = RuntimeType.UNDEFINED + value_color_value_1_type = runtimeType(value_color_value_1) + if (((RuntimeType.OBJECT) == (value_color_value_1_type)) && (value_color_value_1 instanceof Color)) { valueSerializer.writeInt8(0 as int32) - const value_detents_value_1_value_0 = value_detents_value_1_value as SheetSize - valueSerializer.writeInt32((value_detents_value_1_value_0.value as int32)) + const value_color_value_1_0 = value_color_value_1 as Color + valueSerializer.writeInt32((value_color_value_1_0.value as int32)) } - else if (((RuntimeType.NUMBER) == (value_detents_value_1_value_type)) || ((RuntimeType.STRING) == (value_detents_value_1_value_type)) || (((RuntimeType.OBJECT) == (value_detents_value_1_value_type)) && (isResource(value_detents_value_1_value)))) { + else if (((RuntimeType.NUMBER == value_color_value_1_type))) { valueSerializer.writeInt8(1 as int32) - const value_detents_value_1_value_1 = value_detents_value_1_value as Length - valueSerializer.writeLength(value_detents_value_1_value_1); + const value_color_value_1_1 = value_color_value_1 as number + valueSerializer.writeNumber(value_color_value_1_1) + } + else if (((RuntimeType.STRING == value_color_value_1_type))) { + valueSerializer.writeInt8(2 as int32) + const value_color_value_1_2 = value_color_value_1 as string + valueSerializer.writeString(value_color_value_1_2) + } + else if (isResource(value_color_value_1)) { + valueSerializer.writeInt8(3 as int32) + const value_color_value_1_3 = value_color_value_1 as Resource + valueSerializer.writeResource(value_color_value_1_3) } } - const value_detents_value_2 = value_detents_value[2] - let value_detents_value_2_type = RuntimeType.UNDEFINED - if (value_detents_value_2 != undefined) { - value_detents_value_2_type = RuntimeType.OBJECT - } - valueSerializer.writeInt8(value_detents_value_2_type as int32) - if ((RuntimeType.UNDEFINED) != (value_detents_value_2_type)) { - const value_detents_value_2_value = value_detents_value_2! - let value_detents_value_2_value_type = RuntimeType.UNDEFINED - value_detents_value_2_value_type = runtimeType(value_detents_value_2_value) - if (((RuntimeType.OBJECT) == (value_detents_value_2_value_type)) && (value_detents_value_2_value instanceof SheetSize)) { - valueSerializer.writeInt8(0 as int32) - const value_detents_value_2_value_0 = value_detents_value_2_value as SheetSize - valueSerializer.writeInt32((value_detents_value_2_value_0.value as int32)) + } + const value_radius = value.radius + let value_radius_type = RuntimeType.UNDEFINED + if (value_radius != undefined) { + value_radius_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_radius_type as int32) + if ((RuntimeType.UNDEFINED) != (value_radius_type)) { + const value_radius_value = value_radius! + let value_radius_value_type = RuntimeType.UNDEFINED + value_radius_value_type = runtimeType(value_radius_value) + if (TypeChecker.isOutlineRadiuses(value_radius_value, false, false, false, false)) { + valueSerializer.writeInt8(0 as int32) + const value_radius_value_0 = value_radius_value as OutlineRadiuses + const value_radius_value_0_topLeft = value_radius_value_0.topLeft + let value_radius_value_0_topLeft_type = RuntimeType.UNDEFINED + if (value_radius_value_0_topLeft != undefined) { + value_radius_value_0_topLeft_type = RuntimeType.OBJECT } - else if (((RuntimeType.NUMBER) == (value_detents_value_2_value_type)) || ((RuntimeType.STRING) == (value_detents_value_2_value_type)) || (((RuntimeType.OBJECT) == (value_detents_value_2_value_type)) && (isResource(value_detents_value_2_value)))) { - valueSerializer.writeInt8(1 as int32) - const value_detents_value_2_value_1 = value_detents_value_2_value as Length - valueSerializer.writeLength(value_detents_value_2_value_1); + valueSerializer.writeInt8(value_radius_value_0_topLeft_type as int32) + if ((RuntimeType.UNDEFINED) != (value_radius_value_0_topLeft_type)) { + const value_radius_value_0_topLeft_value = value_radius_value_0_topLeft! + valueSerializer.writeLength(value_radius_value_0_topLeft_value); + } + const value_radius_value_0_topRight = value_radius_value_0.topRight + let value_radius_value_0_topRight_type = RuntimeType.UNDEFINED + if (value_radius_value_0_topRight != undefined) { + value_radius_value_0_topRight_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_radius_value_0_topRight_type as int32) + if ((RuntimeType.UNDEFINED) != (value_radius_value_0_topRight_type)) { + const value_radius_value_0_topRight_value = value_radius_value_0_topRight! + valueSerializer.writeLength(value_radius_value_0_topRight_value); + } + const value_radius_value_0_bottomLeft = value_radius_value_0.bottomLeft + let value_radius_value_0_bottomLeft_type = RuntimeType.UNDEFINED + if (value_radius_value_0_bottomLeft != undefined) { + value_radius_value_0_bottomLeft_type = RuntimeType.OBJECT } + valueSerializer.writeInt8(value_radius_value_0_bottomLeft_type as int32) + if ((RuntimeType.UNDEFINED) != (value_radius_value_0_bottomLeft_type)) { + const value_radius_value_0_bottomLeft_value = value_radius_value_0_bottomLeft! + valueSerializer.writeLength(value_radius_value_0_bottomLeft_value); + } + const value_radius_value_0_bottomRight = value_radius_value_0.bottomRight + let value_radius_value_0_bottomRight_type = RuntimeType.UNDEFINED + if (value_radius_value_0_bottomRight != undefined) { + value_radius_value_0_bottomRight_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_radius_value_0_bottomRight_type as int32) + if ((RuntimeType.UNDEFINED) != (value_radius_value_0_bottomRight_type)) { + const value_radius_value_0_bottomRight_value = value_radius_value_0_bottomRight! + valueSerializer.writeLength(value_radius_value_0_bottomRight_value); + } + } + else if (((RuntimeType.NUMBER) == (value_radius_value_type)) || ((RuntimeType.STRING) == (value_radius_value_type)) || (((RuntimeType.OBJECT) == (value_radius_value_type)) && (isResource(value_radius_value)))) { + valueSerializer.writeInt8(1 as int32) + const value_radius_value_1 = value_radius_value as Dimension + valueSerializer.writeLength(value_radius_value_1); } } - const value_blurStyle = value.blurStyle - let value_blurStyle_type = RuntimeType.UNDEFINED - if (value_blurStyle != undefined) { - value_blurStyle_type = RuntimeType.OBJECT + const value_style = value.style + let value_style_type = RuntimeType.UNDEFINED + if (value_style != undefined) { + value_style_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_blurStyle_type as int32) - if ((RuntimeType.UNDEFINED) != (value_blurStyle_type)) { - const value_blurStyle_value = value_blurStyle! - valueSerializer.writeInt32((value_blurStyle_value.value as int32)) + valueSerializer.writeInt8(value_style_type as int32) + if ((RuntimeType.UNDEFINED) != (value_style_type)) { + const value_style_value = value_style! + let value_style_value_type = RuntimeType.UNDEFINED + value_style_value_type = runtimeType(value_style_value) + if (TypeChecker.isEdgeOutlineStyles(value_style_value, false, false, false, false)) { + valueSerializer.writeInt8(0 as int32) + const value_style_value_0 = value_style_value as EdgeOutlineStyles + const value_style_value_0_top = value_style_value_0.top + let value_style_value_0_top_type = RuntimeType.UNDEFINED + if (value_style_value_0_top != undefined) { + value_style_value_0_top_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_style_value_0_top_type as int32) + if ((RuntimeType.UNDEFINED) != (value_style_value_0_top_type)) { + const value_style_value_0_top_value = value_style_value_0_top! + valueSerializer.writeInt32((value_style_value_0_top_value.value as int32)) + } + const value_style_value_0_right = value_style_value_0.right + let value_style_value_0_right_type = RuntimeType.UNDEFINED + if (value_style_value_0_right != undefined) { + value_style_value_0_right_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_style_value_0_right_type as int32) + if ((RuntimeType.UNDEFINED) != (value_style_value_0_right_type)) { + const value_style_value_0_right_value = value_style_value_0_right! + valueSerializer.writeInt32((value_style_value_0_right_value.value as int32)) + } + const value_style_value_0_bottom = value_style_value_0.bottom + let value_style_value_0_bottom_type = RuntimeType.UNDEFINED + if (value_style_value_0_bottom != undefined) { + value_style_value_0_bottom_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_style_value_0_bottom_type as int32) + if ((RuntimeType.UNDEFINED) != (value_style_value_0_bottom_type)) { + const value_style_value_0_bottom_value = value_style_value_0_bottom! + valueSerializer.writeInt32((value_style_value_0_bottom_value.value as int32)) + } + const value_style_value_0_left = value_style_value_0.left + let value_style_value_0_left_type = RuntimeType.UNDEFINED + if (value_style_value_0_left != undefined) { + value_style_value_0_left_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_style_value_0_left_type as int32) + if ((RuntimeType.UNDEFINED) != (value_style_value_0_left_type)) { + const value_style_value_0_left_value = value_style_value_0_left! + valueSerializer.writeInt32((value_style_value_0_left_value.value as int32)) + } + } + else if (((RuntimeType.OBJECT) == (value_style_value_type)) && (value_style_value instanceof OutlineStyle)) { + valueSerializer.writeInt8(1 as int32) + const value_style_value_1 = value_style_value as OutlineStyle + valueSerializer.writeInt32((value_style_value_1.value as int32)) + } } - const value_showClose = value.showClose - let value_showClose_type = RuntimeType.UNDEFINED - if (value_showClose != undefined) { - value_showClose_type = RuntimeType.OBJECT + } + writeBorderImageOption(value: BorderImageOption): void { + let valueSerializer = this + const value_slice = value.slice + let value_slice_type = RuntimeType.UNDEFINED + if (value_slice != undefined) { + value_slice_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_slice_type as int32) + if ((RuntimeType.UNDEFINED) != (value_slice_type)) { + const value_slice_value = value_slice! + let value_slice_value_type = RuntimeType.UNDEFINED + value_slice_value_type = runtimeType(value_slice_value) + if (((RuntimeType.NUMBER) == (value_slice_value_type)) || ((RuntimeType.STRING) == (value_slice_value_type)) || (((RuntimeType.OBJECT) == (value_slice_value_type)) && (isResource(value_slice_value)))) { + valueSerializer.writeInt8(0 as int32) + const value_slice_value_0 = value_slice_value as Length + valueSerializer.writeLength(value_slice_value_0); + } + else if (TypeChecker.isEdgeWidths(value_slice_value, true, false, true, false)) { + valueSerializer.writeInt8(1 as int32) + const value_slice_value_1 = value_slice_value as EdgeWidths + const value_slice_value_1_top = value_slice_value_1.top + let value_slice_value_1_top_type = RuntimeType.UNDEFINED + if (value_slice_value_1_top != undefined) { + value_slice_value_1_top_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_slice_value_1_top_type as int32) + if ((RuntimeType.UNDEFINED) != (value_slice_value_1_top_type)) { + const value_slice_value_1_top_value = value_slice_value_1_top! + valueSerializer.writeLength(value_slice_value_1_top_value); + } + const value_slice_value_1_right = value_slice_value_1.right + let value_slice_value_1_right_type = RuntimeType.UNDEFINED + if (value_slice_value_1_right != undefined) { + value_slice_value_1_right_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_slice_value_1_right_type as int32) + if ((RuntimeType.UNDEFINED) != (value_slice_value_1_right_type)) { + const value_slice_value_1_right_value = value_slice_value_1_right! + valueSerializer.writeLength(value_slice_value_1_right_value); + } + const value_slice_value_1_bottom = value_slice_value_1.bottom + let value_slice_value_1_bottom_type = RuntimeType.UNDEFINED + if (value_slice_value_1_bottom != undefined) { + value_slice_value_1_bottom_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_slice_value_1_bottom_type as int32) + if ((RuntimeType.UNDEFINED) != (value_slice_value_1_bottom_type)) { + const value_slice_value_1_bottom_value = value_slice_value_1_bottom! + valueSerializer.writeLength(value_slice_value_1_bottom_value); + } + const value_slice_value_1_left = value_slice_value_1.left + let value_slice_value_1_left_type = RuntimeType.UNDEFINED + if (value_slice_value_1_left != undefined) { + value_slice_value_1_left_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_slice_value_1_left_type as int32) + if ((RuntimeType.UNDEFINED) != (value_slice_value_1_left_type)) { + const value_slice_value_1_left_value = value_slice_value_1_left! + valueSerializer.writeLength(value_slice_value_1_left_value); + } + } + else if (TypeChecker.isLocalizedEdgeWidths(value_slice_value, true, false, true, false)) { + valueSerializer.writeInt8(2 as int32) + const value_slice_value_2 = value_slice_value as LocalizedEdgeWidths + valueSerializer.writeLocalizedEdgeWidths(value_slice_value_2) + } } - valueSerializer.writeInt8(value_showClose_type as int32) - if ((RuntimeType.UNDEFINED) != (value_showClose_type)) { - const value_showClose_value = value_showClose! - let value_showClose_value_type = RuntimeType.UNDEFINED - value_showClose_value_type = runtimeType(value_showClose_value) - if (((RuntimeType.BOOLEAN == value_showClose_value_type))) { + const value_repeat = value.repeat + let value_repeat_type = RuntimeType.UNDEFINED + if (value_repeat != undefined) { + value_repeat_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_repeat_type as int32) + if ((RuntimeType.UNDEFINED) != (value_repeat_type)) { + const value_repeat_value = value_repeat! + valueSerializer.writeInt32((value_repeat_value.value as int32)) + } + const value_source = value.source + let value_source_type = RuntimeType.UNDEFINED + if (value_source != undefined) { + value_source_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_source_type as int32) + if ((RuntimeType.UNDEFINED) != (value_source_type)) { + const value_source_value = value_source! + let value_source_value_type = RuntimeType.UNDEFINED + value_source_value_type = runtimeType(value_source_value) + if (((RuntimeType.STRING == value_source_value_type))) { valueSerializer.writeInt8(0 as int32) - const value_showClose_value_0 = value_showClose_value as boolean - valueSerializer.writeBoolean(value_showClose_value_0) + const value_source_value_0 = value_source_value as string + valueSerializer.writeString(value_source_value_0) } - else if (((RuntimeType.OBJECT == value_showClose_value_type))) { + else if (isResource(value_source_value)) { valueSerializer.writeInt8(1 as int32) - const value_showClose_value_1 = value_showClose_value as Resource - valueSerializer.writeResource(value_showClose_value_1) + const value_source_value_1 = value_source_value as Resource + valueSerializer.writeResource(value_source_value_1) + } + else if (((RuntimeType.OBJECT) == (value_source_value_type)) && (value_source_value instanceof LinearGradient)) { + valueSerializer.writeInt8(2 as int32) + const value_source_value_2 = value_source_value as Object + valueSerializer.writeCustomObject("LinearGradient", value_source_value_2) } } - const value_preferType = value.preferType - let value_preferType_type = RuntimeType.UNDEFINED - if (value_preferType != undefined) { - value_preferType_type = RuntimeType.OBJECT - } - valueSerializer.writeInt8(value_preferType_type as int32) - if ((RuntimeType.UNDEFINED) != (value_preferType_type)) { - const value_preferType_value = value_preferType! - valueSerializer.writeInt32((value_preferType_value.value as int32)) - } - const value_title = value.title - let value_title_type = RuntimeType.UNDEFINED - if (value_title != undefined) { - value_title_type = RuntimeType.OBJECT + const value_width = value.width + let value_width_type = RuntimeType.UNDEFINED + if (value_width != undefined) { + value_width_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_title_type as int32) - if ((RuntimeType.UNDEFINED) != (value_title_type)) { - const value_title_value = value_title! - let value_title_value_type = RuntimeType.UNDEFINED - value_title_value_type = runtimeType(value_title_value) - if (((RuntimeType.OBJECT == value_title_value_type))) { + valueSerializer.writeInt8(value_width_type as int32) + if ((RuntimeType.UNDEFINED) != (value_width_type)) { + const value_width_value = value_width! + let value_width_value_type = RuntimeType.UNDEFINED + value_width_value_type = runtimeType(value_width_value) + if (((RuntimeType.NUMBER) == (value_width_value_type)) || ((RuntimeType.STRING) == (value_width_value_type)) || (((RuntimeType.OBJECT) == (value_width_value_type)) && (isResource(value_width_value)))) { valueSerializer.writeInt8(0 as int32) - const value_title_value_0 = value_title_value as SheetTitleOptions - valueSerializer.writeSheetTitleOptions(value_title_value_0) + const value_width_value_0 = value_width_value as Length + valueSerializer.writeLength(value_width_value_0); } - else if (((RuntimeType.FUNCTION == value_title_value_type)) || ((RuntimeType.UNDEFINED == value_title_value_type))) { + else if (TypeChecker.isEdgeWidths(value_width_value, true, false, true, false)) { valueSerializer.writeInt8(1 as int32) - const value_title_value_1 = value_title_value as CustomBuilder - let value_title_value_1_type = RuntimeType.UNDEFINED - value_title_value_1_type = runtimeType(value_title_value_1) - if (((RuntimeType.FUNCTION == value_title_value_1_type))) { - valueSerializer.writeInt8(0 as int32) - const value_title_value_1_0 = value_title_value_1 as Object - valueSerializer.writeFunction(value_title_value_1_0) + const value_width_value_1 = value_width_value as EdgeWidths + const value_width_value_1_top = value_width_value_1.top + let value_width_value_1_top_type = RuntimeType.UNDEFINED + if (value_width_value_1_top != undefined) { + value_width_value_1_top_type = RuntimeType.OBJECT } - else if (((RuntimeType.UNDEFINED == value_title_value_1_type))) { - valueSerializer.writeInt8(1 as int32) + valueSerializer.writeInt8(value_width_value_1_top_type as int32) + if ((RuntimeType.UNDEFINED) != (value_width_value_1_top_type)) { + const value_width_value_1_top_value = value_width_value_1_top! + valueSerializer.writeLength(value_width_value_1_top_value); + } + const value_width_value_1_right = value_width_value_1.right + let value_width_value_1_right_type = RuntimeType.UNDEFINED + if (value_width_value_1_right != undefined) { + value_width_value_1_right_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_width_value_1_right_type as int32) + if ((RuntimeType.UNDEFINED) != (value_width_value_1_right_type)) { + const value_width_value_1_right_value = value_width_value_1_right! + valueSerializer.writeLength(value_width_value_1_right_value); + } + const value_width_value_1_bottom = value_width_value_1.bottom + let value_width_value_1_bottom_type = RuntimeType.UNDEFINED + if (value_width_value_1_bottom != undefined) { + value_width_value_1_bottom_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_width_value_1_bottom_type as int32) + if ((RuntimeType.UNDEFINED) != (value_width_value_1_bottom_type)) { + const value_width_value_1_bottom_value = value_width_value_1_bottom! + valueSerializer.writeLength(value_width_value_1_bottom_value); + } + const value_width_value_1_left = value_width_value_1.left + let value_width_value_1_left_type = RuntimeType.UNDEFINED + if (value_width_value_1_left != undefined) { + value_width_value_1_left_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_width_value_1_left_type as int32) + if ((RuntimeType.UNDEFINED) != (value_width_value_1_left_type)) { + const value_width_value_1_left_value = value_width_value_1_left! + valueSerializer.writeLength(value_width_value_1_left_value); } } + else if (TypeChecker.isLocalizedEdgeWidths(value_width_value, true, false, true, false)) { + valueSerializer.writeInt8(2 as int32) + const value_width_value_2 = value_width_value as LocalizedEdgeWidths + valueSerializer.writeLocalizedEdgeWidths(value_width_value_2) + } } - const value_shouldDismiss = value.shouldDismiss - let value_shouldDismiss_type = RuntimeType.UNDEFINED - if (value_shouldDismiss != undefined) { - value_shouldDismiss_type = RuntimeType.OBJECT - } - valueSerializer.writeInt8(value_shouldDismiss_type as int32) - if ((RuntimeType.UNDEFINED) != (value_shouldDismiss_type)) { - const value_shouldDismiss_value = value_shouldDismiss! - valueSerializer.writeFunction(value_shouldDismiss_value) - } - const value_onWillDismiss = value.onWillDismiss - let value_onWillDismiss_type = RuntimeType.UNDEFINED - if (value_onWillDismiss != undefined) { - value_onWillDismiss_type = RuntimeType.OBJECT - } - valueSerializer.writeInt8(value_onWillDismiss_type as int32) - if ((RuntimeType.UNDEFINED) != (value_onWillDismiss_type)) { - const value_onWillDismiss_value = value_onWillDismiss! - valueSerializer.writeFunction(value_onWillDismiss_value) - } - const value_onWillSpringBackWhenDismiss = value.onWillSpringBackWhenDismiss - let value_onWillSpringBackWhenDismiss_type = RuntimeType.UNDEFINED - if (value_onWillSpringBackWhenDismiss != undefined) { - value_onWillSpringBackWhenDismiss_type = RuntimeType.OBJECT - } - valueSerializer.writeInt8(value_onWillSpringBackWhenDismiss_type as int32) - if ((RuntimeType.UNDEFINED) != (value_onWillSpringBackWhenDismiss_type)) { - const value_onWillSpringBackWhenDismiss_value = value_onWillSpringBackWhenDismiss! - valueSerializer.writeFunction(value_onWillSpringBackWhenDismiss_value) + const value_outset = value.outset + let value_outset_type = RuntimeType.UNDEFINED + if (value_outset != undefined) { + value_outset_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_outset_type as int32) + if ((RuntimeType.UNDEFINED) != (value_outset_type)) { + const value_outset_value = value_outset! + let value_outset_value_type = RuntimeType.UNDEFINED + value_outset_value_type = runtimeType(value_outset_value) + if (((RuntimeType.NUMBER) == (value_outset_value_type)) || ((RuntimeType.STRING) == (value_outset_value_type)) || (((RuntimeType.OBJECT) == (value_outset_value_type)) && (isResource(value_outset_value)))) { + valueSerializer.writeInt8(0 as int32) + const value_outset_value_0 = value_outset_value as Length + valueSerializer.writeLength(value_outset_value_0); + } + else if (TypeChecker.isEdgeWidths(value_outset_value, true, false, true, false)) { + valueSerializer.writeInt8(1 as int32) + const value_outset_value_1 = value_outset_value as EdgeWidths + const value_outset_value_1_top = value_outset_value_1.top + let value_outset_value_1_top_type = RuntimeType.UNDEFINED + if (value_outset_value_1_top != undefined) { + value_outset_value_1_top_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_outset_value_1_top_type as int32) + if ((RuntimeType.UNDEFINED) != (value_outset_value_1_top_type)) { + const value_outset_value_1_top_value = value_outset_value_1_top! + valueSerializer.writeLength(value_outset_value_1_top_value); + } + const value_outset_value_1_right = value_outset_value_1.right + let value_outset_value_1_right_type = RuntimeType.UNDEFINED + if (value_outset_value_1_right != undefined) { + value_outset_value_1_right_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_outset_value_1_right_type as int32) + if ((RuntimeType.UNDEFINED) != (value_outset_value_1_right_type)) { + const value_outset_value_1_right_value = value_outset_value_1_right! + valueSerializer.writeLength(value_outset_value_1_right_value); + } + const value_outset_value_1_bottom = value_outset_value_1.bottom + let value_outset_value_1_bottom_type = RuntimeType.UNDEFINED + if (value_outset_value_1_bottom != undefined) { + value_outset_value_1_bottom_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_outset_value_1_bottom_type as int32) + if ((RuntimeType.UNDEFINED) != (value_outset_value_1_bottom_type)) { + const value_outset_value_1_bottom_value = value_outset_value_1_bottom! + valueSerializer.writeLength(value_outset_value_1_bottom_value); + } + const value_outset_value_1_left = value_outset_value_1.left + let value_outset_value_1_left_type = RuntimeType.UNDEFINED + if (value_outset_value_1_left != undefined) { + value_outset_value_1_left_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_outset_value_1_left_type as int32) + if ((RuntimeType.UNDEFINED) != (value_outset_value_1_left_type)) { + const value_outset_value_1_left_value = value_outset_value_1_left! + valueSerializer.writeLength(value_outset_value_1_left_value); + } + } + else if (TypeChecker.isLocalizedEdgeWidths(value_outset_value, true, false, true, false)) { + valueSerializer.writeInt8(2 as int32) + const value_outset_value_2 = value_outset_value as LocalizedEdgeWidths + valueSerializer.writeLocalizedEdgeWidths(value_outset_value_2) + } } - const value_enableOutsideInteractive = value.enableOutsideInteractive - let value_enableOutsideInteractive_type = RuntimeType.UNDEFINED - if (value_enableOutsideInteractive != undefined) { - value_enableOutsideInteractive_type = RuntimeType.OBJECT + const value_fill = value.fill + let value_fill_type = RuntimeType.UNDEFINED + if (value_fill != undefined) { + value_fill_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_enableOutsideInteractive_type as int32) - if ((RuntimeType.UNDEFINED) != (value_enableOutsideInteractive_type)) { - const value_enableOutsideInteractive_value = value_enableOutsideInteractive! - valueSerializer.writeBoolean(value_enableOutsideInteractive_value) + valueSerializer.writeInt8(value_fill_type as int32) + if ((RuntimeType.UNDEFINED) != (value_fill_type)) { + const value_fill_value = value_fill! + valueSerializer.writeBoolean(value_fill_value) } + } + writeBorderOptions(value: BorderOptions): void { + let valueSerializer = this const value_width = value.width let value_width_type = RuntimeType.UNDEFINED if (value_width != undefined) { @@ -2895,426 +16879,904 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt8(value_width_type as int32) if ((RuntimeType.UNDEFINED) != (value_width_type)) { const value_width_value = value_width! - valueSerializer.writeLength(value_width_value); - } - const value_borderWidth = value.borderWidth - let value_borderWidth_type = RuntimeType.UNDEFINED - if (value_borderWidth != undefined) { - value_borderWidth_type = RuntimeType.OBJECT - } - valueSerializer.writeInt8(value_borderWidth_type as int32) - if ((RuntimeType.UNDEFINED) != (value_borderWidth_type)) { - const value_borderWidth_value = value_borderWidth! - let value_borderWidth_value_type = RuntimeType.UNDEFINED - value_borderWidth_value_type = runtimeType(value_borderWidth_value) - if (((RuntimeType.NUMBER) == (value_borderWidth_value_type)) || ((RuntimeType.STRING) == (value_borderWidth_value_type)) || (((RuntimeType.OBJECT) == (value_borderWidth_value_type)) && (isResource(value_borderWidth_value)))) { + let value_width_value_type = RuntimeType.UNDEFINED + value_width_value_type = runtimeType(value_width_value) + if (TypeChecker.isEdgeWidths(value_width_value, true, false, true, false)) { valueSerializer.writeInt8(0 as int32) - const value_borderWidth_value_0 = value_borderWidth_value as Dimension - valueSerializer.writeLength(value_borderWidth_value_0); - } - else if (TypeChecker.isEdgeWidths(value_borderWidth_value, true, false, true, false)) { - valueSerializer.writeInt8(1 as int32) - const value_borderWidth_value_1 = value_borderWidth_value as EdgeWidths - const value_borderWidth_value_1_top = value_borderWidth_value_1.top - let value_borderWidth_value_1_top_type = RuntimeType.UNDEFINED - if (value_borderWidth_value_1_top != undefined) { - value_borderWidth_value_1_top_type = RuntimeType.OBJECT + const value_width_value_0 = value_width_value as EdgeWidths + const value_width_value_0_top = value_width_value_0.top + let value_width_value_0_top_type = RuntimeType.UNDEFINED + if (value_width_value_0_top != undefined) { + value_width_value_0_top_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_borderWidth_value_1_top_type as int32) - if ((RuntimeType.UNDEFINED) != (value_borderWidth_value_1_top_type)) { - const value_borderWidth_value_1_top_value = value_borderWidth_value_1_top! - valueSerializer.writeLength(value_borderWidth_value_1_top_value); + valueSerializer.writeInt8(value_width_value_0_top_type as int32) + if ((RuntimeType.UNDEFINED) != (value_width_value_0_top_type)) { + const value_width_value_0_top_value = value_width_value_0_top! + valueSerializer.writeLength(value_width_value_0_top_value); } - const value_borderWidth_value_1_right = value_borderWidth_value_1.right - let value_borderWidth_value_1_right_type = RuntimeType.UNDEFINED - if (value_borderWidth_value_1_right != undefined) { - value_borderWidth_value_1_right_type = RuntimeType.OBJECT + const value_width_value_0_right = value_width_value_0.right + let value_width_value_0_right_type = RuntimeType.UNDEFINED + if (value_width_value_0_right != undefined) { + value_width_value_0_right_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_borderWidth_value_1_right_type as int32) - if ((RuntimeType.UNDEFINED) != (value_borderWidth_value_1_right_type)) { - const value_borderWidth_value_1_right_value = value_borderWidth_value_1_right! - valueSerializer.writeLength(value_borderWidth_value_1_right_value); + valueSerializer.writeInt8(value_width_value_0_right_type as int32) + if ((RuntimeType.UNDEFINED) != (value_width_value_0_right_type)) { + const value_width_value_0_right_value = value_width_value_0_right! + valueSerializer.writeLength(value_width_value_0_right_value); } - const value_borderWidth_value_1_bottom = value_borderWidth_value_1.bottom - let value_borderWidth_value_1_bottom_type = RuntimeType.UNDEFINED - if (value_borderWidth_value_1_bottom != undefined) { - value_borderWidth_value_1_bottom_type = RuntimeType.OBJECT + const value_width_value_0_bottom = value_width_value_0.bottom + let value_width_value_0_bottom_type = RuntimeType.UNDEFINED + if (value_width_value_0_bottom != undefined) { + value_width_value_0_bottom_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_borderWidth_value_1_bottom_type as int32) - if ((RuntimeType.UNDEFINED) != (value_borderWidth_value_1_bottom_type)) { - const value_borderWidth_value_1_bottom_value = value_borderWidth_value_1_bottom! - valueSerializer.writeLength(value_borderWidth_value_1_bottom_value); + valueSerializer.writeInt8(value_width_value_0_bottom_type as int32) + if ((RuntimeType.UNDEFINED) != (value_width_value_0_bottom_type)) { + const value_width_value_0_bottom_value = value_width_value_0_bottom! + valueSerializer.writeLength(value_width_value_0_bottom_value); } - const value_borderWidth_value_1_left = value_borderWidth_value_1.left - let value_borderWidth_value_1_left_type = RuntimeType.UNDEFINED - if (value_borderWidth_value_1_left != undefined) { - value_borderWidth_value_1_left_type = RuntimeType.OBJECT + const value_width_value_0_left = value_width_value_0.left + let value_width_value_0_left_type = RuntimeType.UNDEFINED + if (value_width_value_0_left != undefined) { + value_width_value_0_left_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_borderWidth_value_1_left_type as int32) - if ((RuntimeType.UNDEFINED) != (value_borderWidth_value_1_left_type)) { - const value_borderWidth_value_1_left_value = value_borderWidth_value_1_left! - valueSerializer.writeLength(value_borderWidth_value_1_left_value); + valueSerializer.writeInt8(value_width_value_0_left_type as int32) + if ((RuntimeType.UNDEFINED) != (value_width_value_0_left_type)) { + const value_width_value_0_left_value = value_width_value_0_left! + valueSerializer.writeLength(value_width_value_0_left_value); } } - else if (TypeChecker.isLocalizedEdgeWidths(value_borderWidth_value, true, false, true, false)) { + else if (((RuntimeType.NUMBER) == (value_width_value_type)) || ((RuntimeType.STRING) == (value_width_value_type)) || (((RuntimeType.OBJECT) == (value_width_value_type)) && (isResource(value_width_value)))) { + valueSerializer.writeInt8(1 as int32) + const value_width_value_1 = value_width_value as Length + valueSerializer.writeLength(value_width_value_1); + } + else if (TypeChecker.isLocalizedEdgeWidths(value_width_value, true, false, true, false)) { valueSerializer.writeInt8(2 as int32) - const value_borderWidth_value_2 = value_borderWidth_value as LocalizedEdgeWidths - valueSerializer.writeLocalizedEdgeWidths(value_borderWidth_value_2) + const value_width_value_2 = value_width_value as LocalizedEdgeWidths + valueSerializer.writeLocalizedEdgeWidths(value_width_value_2) } } - const value_borderColor = value.borderColor - let value_borderColor_type = RuntimeType.UNDEFINED - if (value_borderColor != undefined) { - value_borderColor_type = RuntimeType.OBJECT + const value_color = value.color + let value_color_type = RuntimeType.UNDEFINED + if (value_color != undefined) { + value_color_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_borderColor_type as int32) - if ((RuntimeType.UNDEFINED) != (value_borderColor_type)) { - const value_borderColor_value = value_borderColor! - let value_borderColor_value_type = RuntimeType.UNDEFINED - value_borderColor_value_type = runtimeType(value_borderColor_value) - if (TypeChecker.isEdgeColors(value_borderColor_value, true, false, true, false)) { - valueSerializer.writeInt8(1 as int32) - const value_borderColor_value_1 = value_borderColor_value as EdgeColors - const value_borderColor_value_1_top = value_borderColor_value_1.top - let value_borderColor_value_1_top_type = RuntimeType.UNDEFINED - if (value_borderColor_value_1_top != undefined) { - value_borderColor_value_1_top_type = RuntimeType.OBJECT + valueSerializer.writeInt8(value_color_type as int32) + if ((RuntimeType.UNDEFINED) != (value_color_type)) { + const value_color_value = value_color! + let value_color_value_type = RuntimeType.UNDEFINED + value_color_value_type = runtimeType(value_color_value) + if (TypeChecker.isEdgeColors(value_color_value, true, false, true, false)) { + valueSerializer.writeInt8(0 as int32) + const value_color_value_0 = value_color_value as EdgeColors + const value_color_value_0_top = value_color_value_0.top + let value_color_value_0_top_type = RuntimeType.UNDEFINED + if (value_color_value_0_top != undefined) { + value_color_value_0_top_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_borderColor_value_1_top_type as int32) - if ((RuntimeType.UNDEFINED) != (value_borderColor_value_1_top_type)) { - const value_borderColor_value_1_top_value = value_borderColor_value_1_top! - let value_borderColor_value_1_top_value_type = RuntimeType.UNDEFINED - value_borderColor_value_1_top_value_type = runtimeType(value_borderColor_value_1_top_value) - if (((RuntimeType.OBJECT) == (value_borderColor_value_1_top_value_type)) && (value_borderColor_value_1_top_value instanceof Color)) { + valueSerializer.writeInt8(value_color_value_0_top_type as int32) + if ((RuntimeType.UNDEFINED) != (value_color_value_0_top_type)) { + const value_color_value_0_top_value = value_color_value_0_top! + let value_color_value_0_top_value_type = RuntimeType.UNDEFINED + value_color_value_0_top_value_type = runtimeType(value_color_value_0_top_value) + if (((RuntimeType.OBJECT) == (value_color_value_0_top_value_type)) && (value_color_value_0_top_value instanceof Color)) { valueSerializer.writeInt8(0 as int32) - const value_borderColor_value_1_top_value_0 = value_borderColor_value_1_top_value as Color - valueSerializer.writeInt32((value_borderColor_value_1_top_value_0.value as int32)) + const value_color_value_0_top_value_0 = value_color_value_0_top_value as Color + valueSerializer.writeInt32((value_color_value_0_top_value_0.value as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_top_value_type))) { + else if (((RuntimeType.NUMBER == value_color_value_0_top_value_type))) { valueSerializer.writeInt8(1 as int32) - const value_borderColor_value_1_top_value_1 = value_borderColor_value_1_top_value as number - valueSerializer.writeNumber(value_borderColor_value_1_top_value_1) + const value_color_value_0_top_value_1 = value_color_value_0_top_value as number + valueSerializer.writeNumber(value_color_value_0_top_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_top_value_type))) { + else if (((RuntimeType.STRING == value_color_value_0_top_value_type))) { valueSerializer.writeInt8(2 as int32) - const value_borderColor_value_1_top_value_2 = value_borderColor_value_1_top_value as string - valueSerializer.writeString(value_borderColor_value_1_top_value_2) + const value_color_value_0_top_value_2 = value_color_value_0_top_value as string + valueSerializer.writeString(value_color_value_0_top_value_2) } - else if (isResource(value_borderColor_value_1_top_value)) { + else if (isResource(value_color_value_0_top_value)) { valueSerializer.writeInt8(3 as int32) - const value_borderColor_value_1_top_value_3 = value_borderColor_value_1_top_value as Resource - valueSerializer.writeResource(value_borderColor_value_1_top_value_3) + const value_color_value_0_top_value_3 = value_color_value_0_top_value as Resource + valueSerializer.writeResource(value_color_value_0_top_value_3) } } - const value_borderColor_value_1_right = value_borderColor_value_1.right - let value_borderColor_value_1_right_type = RuntimeType.UNDEFINED - if (value_borderColor_value_1_right != undefined) { - value_borderColor_value_1_right_type = RuntimeType.OBJECT + const value_color_value_0_right = value_color_value_0.right + let value_color_value_0_right_type = RuntimeType.UNDEFINED + if (value_color_value_0_right != undefined) { + value_color_value_0_right_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_borderColor_value_1_right_type as int32) - if ((RuntimeType.UNDEFINED) != (value_borderColor_value_1_right_type)) { - const value_borderColor_value_1_right_value = value_borderColor_value_1_right! - let value_borderColor_value_1_right_value_type = RuntimeType.UNDEFINED - value_borderColor_value_1_right_value_type = runtimeType(value_borderColor_value_1_right_value) - if (((RuntimeType.OBJECT) == (value_borderColor_value_1_right_value_type)) && (value_borderColor_value_1_right_value instanceof Color)) { + valueSerializer.writeInt8(value_color_value_0_right_type as int32) + if ((RuntimeType.UNDEFINED) != (value_color_value_0_right_type)) { + const value_color_value_0_right_value = value_color_value_0_right! + let value_color_value_0_right_value_type = RuntimeType.UNDEFINED + value_color_value_0_right_value_type = runtimeType(value_color_value_0_right_value) + if (((RuntimeType.OBJECT) == (value_color_value_0_right_value_type)) && (value_color_value_0_right_value instanceof Color)) { valueSerializer.writeInt8(0 as int32) - const value_borderColor_value_1_right_value_0 = value_borderColor_value_1_right_value as Color - valueSerializer.writeInt32((value_borderColor_value_1_right_value_0.value as int32)) + const value_color_value_0_right_value_0 = value_color_value_0_right_value as Color + valueSerializer.writeInt32((value_color_value_0_right_value_0.value as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_right_value_type))) { + else if (((RuntimeType.NUMBER == value_color_value_0_right_value_type))) { valueSerializer.writeInt8(1 as int32) - const value_borderColor_value_1_right_value_1 = value_borderColor_value_1_right_value as number - valueSerializer.writeNumber(value_borderColor_value_1_right_value_1) + const value_color_value_0_right_value_1 = value_color_value_0_right_value as number + valueSerializer.writeNumber(value_color_value_0_right_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_right_value_type))) { + else if (((RuntimeType.STRING == value_color_value_0_right_value_type))) { valueSerializer.writeInt8(2 as int32) - const value_borderColor_value_1_right_value_2 = value_borderColor_value_1_right_value as string - valueSerializer.writeString(value_borderColor_value_1_right_value_2) + const value_color_value_0_right_value_2 = value_color_value_0_right_value as string + valueSerializer.writeString(value_color_value_0_right_value_2) } - else if (isResource(value_borderColor_value_1_right_value)) { + else if (isResource(value_color_value_0_right_value)) { valueSerializer.writeInt8(3 as int32) - const value_borderColor_value_1_right_value_3 = value_borderColor_value_1_right_value as Resource - valueSerializer.writeResource(value_borderColor_value_1_right_value_3) + const value_color_value_0_right_value_3 = value_color_value_0_right_value as Resource + valueSerializer.writeResource(value_color_value_0_right_value_3) } } - const value_borderColor_value_1_bottom = value_borderColor_value_1.bottom - let value_borderColor_value_1_bottom_type = RuntimeType.UNDEFINED - if (value_borderColor_value_1_bottom != undefined) { - value_borderColor_value_1_bottom_type = RuntimeType.OBJECT + const value_color_value_0_bottom = value_color_value_0.bottom + let value_color_value_0_bottom_type = RuntimeType.UNDEFINED + if (value_color_value_0_bottom != undefined) { + value_color_value_0_bottom_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_borderColor_value_1_bottom_type as int32) - if ((RuntimeType.UNDEFINED) != (value_borderColor_value_1_bottom_type)) { - const value_borderColor_value_1_bottom_value = value_borderColor_value_1_bottom! - let value_borderColor_value_1_bottom_value_type = RuntimeType.UNDEFINED - value_borderColor_value_1_bottom_value_type = runtimeType(value_borderColor_value_1_bottom_value) - if (((RuntimeType.OBJECT) == (value_borderColor_value_1_bottom_value_type)) && (value_borderColor_value_1_bottom_value instanceof Color)) { + valueSerializer.writeInt8(value_color_value_0_bottom_type as int32) + if ((RuntimeType.UNDEFINED) != (value_color_value_0_bottom_type)) { + const value_color_value_0_bottom_value = value_color_value_0_bottom! + let value_color_value_0_bottom_value_type = RuntimeType.UNDEFINED + value_color_value_0_bottom_value_type = runtimeType(value_color_value_0_bottom_value) + if (((RuntimeType.OBJECT) == (value_color_value_0_bottom_value_type)) && (value_color_value_0_bottom_value instanceof Color)) { valueSerializer.writeInt8(0 as int32) - const value_borderColor_value_1_bottom_value_0 = value_borderColor_value_1_bottom_value as Color - valueSerializer.writeInt32((value_borderColor_value_1_bottom_value_0.value as int32)) + const value_color_value_0_bottom_value_0 = value_color_value_0_bottom_value as Color + valueSerializer.writeInt32((value_color_value_0_bottom_value_0.value as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type))) { + else if (((RuntimeType.NUMBER == value_color_value_0_bottom_value_type))) { valueSerializer.writeInt8(1 as int32) - const value_borderColor_value_1_bottom_value_1 = value_borderColor_value_1_bottom_value as number - valueSerializer.writeNumber(value_borderColor_value_1_bottom_value_1) + const value_color_value_0_bottom_value_1 = value_color_value_0_bottom_value as number + valueSerializer.writeNumber(value_color_value_0_bottom_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_bottom_value_type))) { + else if (((RuntimeType.STRING == value_color_value_0_bottom_value_type))) { valueSerializer.writeInt8(2 as int32) - const value_borderColor_value_1_bottom_value_2 = value_borderColor_value_1_bottom_value as string - valueSerializer.writeString(value_borderColor_value_1_bottom_value_2) + const value_color_value_0_bottom_value_2 = value_color_value_0_bottom_value as string + valueSerializer.writeString(value_color_value_0_bottom_value_2) } - else if (isResource(value_borderColor_value_1_bottom_value)) { - valueSerializer.writeInt8(3 as int32) - const value_borderColor_value_1_bottom_value_3 = value_borderColor_value_1_bottom_value as Resource - valueSerializer.writeResource(value_borderColor_value_1_bottom_value_3) + else if (isResource(value_color_value_0_bottom_value)) { + valueSerializer.writeInt8(3 as int32) + const value_color_value_0_bottom_value_3 = value_color_value_0_bottom_value as Resource + valueSerializer.writeResource(value_color_value_0_bottom_value_3) } } - const value_borderColor_value_1_left = value_borderColor_value_1.left - let value_borderColor_value_1_left_type = RuntimeType.UNDEFINED - if (value_borderColor_value_1_left != undefined) { - value_borderColor_value_1_left_type = RuntimeType.OBJECT + const value_color_value_0_left = value_color_value_0.left + let value_color_value_0_left_type = RuntimeType.UNDEFINED + if (value_color_value_0_left != undefined) { + value_color_value_0_left_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_borderColor_value_1_left_type as int32) - if ((RuntimeType.UNDEFINED) != (value_borderColor_value_1_left_type)) { - const value_borderColor_value_1_left_value = value_borderColor_value_1_left! - let value_borderColor_value_1_left_value_type = RuntimeType.UNDEFINED - value_borderColor_value_1_left_value_type = runtimeType(value_borderColor_value_1_left_value) - if (((RuntimeType.OBJECT) == (value_borderColor_value_1_left_value_type)) && (value_borderColor_value_1_left_value instanceof Color)) { + valueSerializer.writeInt8(value_color_value_0_left_type as int32) + if ((RuntimeType.UNDEFINED) != (value_color_value_0_left_type)) { + const value_color_value_0_left_value = value_color_value_0_left! + let value_color_value_0_left_value_type = RuntimeType.UNDEFINED + value_color_value_0_left_value_type = runtimeType(value_color_value_0_left_value) + if (((RuntimeType.OBJECT) == (value_color_value_0_left_value_type)) && (value_color_value_0_left_value instanceof Color)) { valueSerializer.writeInt8(0 as int32) - const value_borderColor_value_1_left_value_0 = value_borderColor_value_1_left_value as Color - valueSerializer.writeInt32((value_borderColor_value_1_left_value_0.value as int32)) + const value_color_value_0_left_value_0 = value_color_value_0_left_value as Color + valueSerializer.writeInt32((value_color_value_0_left_value_0.value as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_left_value_type))) { + else if (((RuntimeType.NUMBER == value_color_value_0_left_value_type))) { valueSerializer.writeInt8(1 as int32) - const value_borderColor_value_1_left_value_1 = value_borderColor_value_1_left_value as number - valueSerializer.writeNumber(value_borderColor_value_1_left_value_1) + const value_color_value_0_left_value_1 = value_color_value_0_left_value as number + valueSerializer.writeNumber(value_color_value_0_left_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_left_value_type))) { + else if (((RuntimeType.STRING == value_color_value_0_left_value_type))) { valueSerializer.writeInt8(2 as int32) - const value_borderColor_value_1_left_value_2 = value_borderColor_value_1_left_value as string - valueSerializer.writeString(value_borderColor_value_1_left_value_2) + const value_color_value_0_left_value_2 = value_color_value_0_left_value as string + valueSerializer.writeString(value_color_value_0_left_value_2) } - else if (isResource(value_borderColor_value_1_left_value)) { + else if (isResource(value_color_value_0_left_value)) { valueSerializer.writeInt8(3 as int32) - const value_borderColor_value_1_left_value_3 = value_borderColor_value_1_left_value as Resource - valueSerializer.writeResource(value_borderColor_value_1_left_value_3) + const value_color_value_0_left_value_3 = value_color_value_0_left_value as Resource + valueSerializer.writeResource(value_color_value_0_left_value_3) } } } - else if (TypeChecker.isLocalizedEdgeColors(value_borderColor_value, true, false, true, false)) { + else if (TypeChecker.isLocalizedEdgeColors(value_color_value, true, false, true, false)) { valueSerializer.writeInt8(2 as int32) - const value_borderColor_value_2 = value_borderColor_value as LocalizedEdgeColors - valueSerializer.writeLocalizedEdgeColors(value_borderColor_value_2) + const value_color_value_2 = value_color_value as LocalizedEdgeColors + valueSerializer.writeLocalizedEdgeColors(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_type)) || ((RuntimeType.NUMBER == value_borderColor_value_type)) || ((RuntimeType.STRING == value_borderColor_value_type)) || ((RuntimeType.OBJECT == value_borderColor_value_type))) { - valueSerializer.writeInt8(0 as int32) - const value_borderColor_value_0 = value_borderColor_value as ResourceColor - let value_borderColor_value_0_type = RuntimeType.UNDEFINED - value_borderColor_value_0_type = runtimeType(value_borderColor_value_0) - if (((RuntimeType.OBJECT) == (value_borderColor_value_0_type)) && (value_borderColor_value_0 instanceof Color)) { + else if (((RuntimeType.OBJECT == value_color_value_type)) || ((RuntimeType.NUMBER == value_color_value_type)) || ((RuntimeType.STRING == value_color_value_type)) || ((RuntimeType.OBJECT == value_color_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_color_value_1 = value_color_value as ResourceColor + let value_color_value_1_type = RuntimeType.UNDEFINED + value_color_value_1_type = runtimeType(value_color_value_1) + if (((RuntimeType.OBJECT) == (value_color_value_1_type)) && (value_color_value_1 instanceof Color)) { valueSerializer.writeInt8(0 as int32) - const value_borderColor_value_0_0 = value_borderColor_value_0 as Color - valueSerializer.writeInt32((value_borderColor_value_0_0.value as int32)) + const value_color_value_1_0 = value_color_value_1 as Color + valueSerializer.writeInt32((value_color_value_1_0.value as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_0_type))) { + else if (((RuntimeType.NUMBER == value_color_value_1_type))) { valueSerializer.writeInt8(1 as int32) - const value_borderColor_value_0_1 = value_borderColor_value_0 as number - valueSerializer.writeNumber(value_borderColor_value_0_1) + const value_color_value_1_1 = value_color_value_1 as number + valueSerializer.writeNumber(value_color_value_1_1) } - else if (((RuntimeType.STRING == value_borderColor_value_0_type))) { + else if (((RuntimeType.STRING == value_color_value_1_type))) { valueSerializer.writeInt8(2 as int32) - const value_borderColor_value_0_2 = value_borderColor_value_0 as string - valueSerializer.writeString(value_borderColor_value_0_2) + const value_color_value_1_2 = value_color_value_1 as string + valueSerializer.writeString(value_color_value_1_2) } - else if (isResource(value_borderColor_value_0)) { + else if (isResource(value_color_value_1)) { valueSerializer.writeInt8(3 as int32) - const value_borderColor_value_0_3 = value_borderColor_value_0 as Resource - valueSerializer.writeResource(value_borderColor_value_0_3) + const value_color_value_1_3 = value_color_value_1 as Resource + valueSerializer.writeResource(value_color_value_1_3) } } } - const value_borderStyle = value.borderStyle - let value_borderStyle_type = RuntimeType.UNDEFINED - if (value_borderStyle != undefined) { - value_borderStyle_type = RuntimeType.OBJECT + const value_radius = value.radius + let value_radius_type = RuntimeType.UNDEFINED + if (value_radius != undefined) { + value_radius_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_radius_type as int32) + if ((RuntimeType.UNDEFINED) != (value_radius_type)) { + const value_radius_value = value_radius! + let value_radius_value_type = RuntimeType.UNDEFINED + value_radius_value_type = runtimeType(value_radius_value) + if (TypeChecker.isBorderRadiuses(value_radius_value, false, false, false, false)) { + valueSerializer.writeInt8(0 as int32) + const value_radius_value_0 = value_radius_value as BorderRadiuses + const value_radius_value_0_topLeft = value_radius_value_0.topLeft + let value_radius_value_0_topLeft_type = RuntimeType.UNDEFINED + if (value_radius_value_0_topLeft != undefined) { + value_radius_value_0_topLeft_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_radius_value_0_topLeft_type as int32) + if ((RuntimeType.UNDEFINED) != (value_radius_value_0_topLeft_type)) { + const value_radius_value_0_topLeft_value = value_radius_value_0_topLeft! + valueSerializer.writeLength(value_radius_value_0_topLeft_value); + } + const value_radius_value_0_topRight = value_radius_value_0.topRight + let value_radius_value_0_topRight_type = RuntimeType.UNDEFINED + if (value_radius_value_0_topRight != undefined) { + value_radius_value_0_topRight_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_radius_value_0_topRight_type as int32) + if ((RuntimeType.UNDEFINED) != (value_radius_value_0_topRight_type)) { + const value_radius_value_0_topRight_value = value_radius_value_0_topRight! + valueSerializer.writeLength(value_radius_value_0_topRight_value); + } + const value_radius_value_0_bottomLeft = value_radius_value_0.bottomLeft + let value_radius_value_0_bottomLeft_type = RuntimeType.UNDEFINED + if (value_radius_value_0_bottomLeft != undefined) { + value_radius_value_0_bottomLeft_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_radius_value_0_bottomLeft_type as int32) + if ((RuntimeType.UNDEFINED) != (value_radius_value_0_bottomLeft_type)) { + const value_radius_value_0_bottomLeft_value = value_radius_value_0_bottomLeft! + valueSerializer.writeLength(value_radius_value_0_bottomLeft_value); + } + const value_radius_value_0_bottomRight = value_radius_value_0.bottomRight + let value_radius_value_0_bottomRight_type = RuntimeType.UNDEFINED + if (value_radius_value_0_bottomRight != undefined) { + value_radius_value_0_bottomRight_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_radius_value_0_bottomRight_type as int32) + if ((RuntimeType.UNDEFINED) != (value_radius_value_0_bottomRight_type)) { + const value_radius_value_0_bottomRight_value = value_radius_value_0_bottomRight! + valueSerializer.writeLength(value_radius_value_0_bottomRight_value); + } + } + else if (((RuntimeType.NUMBER) == (value_radius_value_type)) || ((RuntimeType.STRING) == (value_radius_value_type)) || (((RuntimeType.OBJECT) == (value_radius_value_type)) && (isResource(value_radius_value)))) { + valueSerializer.writeInt8(1 as int32) + const value_radius_value_1 = value_radius_value as Length + valueSerializer.writeLength(value_radius_value_1); + } + else if (TypeChecker.isLocalizedBorderRadiuses(value_radius_value, false, false, false, false)) { + valueSerializer.writeInt8(2 as int32) + const value_radius_value_2 = value_radius_value as LocalizedBorderRadiuses + valueSerializer.writeLocalizedBorderRadiuses(value_radius_value_2) + } } - valueSerializer.writeInt8(value_borderStyle_type as int32) - if ((RuntimeType.UNDEFINED) != (value_borderStyle_type)) { - const value_borderStyle_value = value_borderStyle! - let value_borderStyle_value_type = RuntimeType.UNDEFINED - value_borderStyle_value_type = runtimeType(value_borderStyle_value) - if (((RuntimeType.OBJECT) == (value_borderStyle_value_type)) && (value_borderStyle_value instanceof BorderStyle)) { + const value_style = value.style + let value_style_type = RuntimeType.UNDEFINED + if (value_style != undefined) { + value_style_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_style_type as int32) + if ((RuntimeType.UNDEFINED) != (value_style_type)) { + const value_style_value = value_style! + let value_style_value_type = RuntimeType.UNDEFINED + value_style_value_type = runtimeType(value_style_value) + if (TypeChecker.isEdgeStyles(value_style_value, false, false, false, false)) { valueSerializer.writeInt8(0 as int32) - const value_borderStyle_value_0 = value_borderStyle_value as BorderStyle - valueSerializer.writeInt32((value_borderStyle_value_0.value as int32)) + const value_style_value_0 = value_style_value as EdgeStyles + const value_style_value_0_top = value_style_value_0.top + let value_style_value_0_top_type = RuntimeType.UNDEFINED + if (value_style_value_0_top != undefined) { + value_style_value_0_top_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_style_value_0_top_type as int32) + if ((RuntimeType.UNDEFINED) != (value_style_value_0_top_type)) { + const value_style_value_0_top_value = value_style_value_0_top! + valueSerializer.writeInt32((value_style_value_0_top_value.value as int32)) + } + const value_style_value_0_right = value_style_value_0.right + let value_style_value_0_right_type = RuntimeType.UNDEFINED + if (value_style_value_0_right != undefined) { + value_style_value_0_right_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_style_value_0_right_type as int32) + if ((RuntimeType.UNDEFINED) != (value_style_value_0_right_type)) { + const value_style_value_0_right_value = value_style_value_0_right! + valueSerializer.writeInt32((value_style_value_0_right_value.value as int32)) + } + const value_style_value_0_bottom = value_style_value_0.bottom + let value_style_value_0_bottom_type = RuntimeType.UNDEFINED + if (value_style_value_0_bottom != undefined) { + value_style_value_0_bottom_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_style_value_0_bottom_type as int32) + if ((RuntimeType.UNDEFINED) != (value_style_value_0_bottom_type)) { + const value_style_value_0_bottom_value = value_style_value_0_bottom! + valueSerializer.writeInt32((value_style_value_0_bottom_value.value as int32)) + } + const value_style_value_0_left = value_style_value_0.left + let value_style_value_0_left_type = RuntimeType.UNDEFINED + if (value_style_value_0_left != undefined) { + value_style_value_0_left_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_style_value_0_left_type as int32) + if ((RuntimeType.UNDEFINED) != (value_style_value_0_left_type)) { + const value_style_value_0_left_value = value_style_value_0_left! + valueSerializer.writeInt32((value_style_value_0_left_value.value as int32)) + } } - else if (TypeChecker.isEdgeStyles(value_borderStyle_value, false, false, false, false)) { + else if (((RuntimeType.OBJECT) == (value_style_value_type)) && (value_style_value instanceof BorderStyle)) { valueSerializer.writeInt8(1 as int32) - const value_borderStyle_value_1 = value_borderStyle_value as EdgeStyles - const value_borderStyle_value_1_top = value_borderStyle_value_1.top - let value_borderStyle_value_1_top_type = RuntimeType.UNDEFINED - if (value_borderStyle_value_1_top != undefined) { - value_borderStyle_value_1_top_type = RuntimeType.OBJECT + const value_style_value_1 = value_style_value as BorderStyle + valueSerializer.writeInt32((value_style_value_1.value as int32)) + } + } + const value_dashGap = value.dashGap + let value_dashGap_type = RuntimeType.UNDEFINED + if (value_dashGap != undefined) { + value_dashGap_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_dashGap_type as int32) + if ((RuntimeType.UNDEFINED) != (value_dashGap_type)) { + const value_dashGap_value = value_dashGap! + let value_dashGap_value_type = RuntimeType.UNDEFINED + value_dashGap_value_type = runtimeType(value_dashGap_value) + if (TypeChecker.isEdgeWidths(value_dashGap_value, true, false, true, false)) { + valueSerializer.writeInt8(0 as int32) + const value_dashGap_value_0 = value_dashGap_value as EdgeWidths + const value_dashGap_value_0_top = value_dashGap_value_0.top + let value_dashGap_value_0_top_type = RuntimeType.UNDEFINED + if (value_dashGap_value_0_top != undefined) { + value_dashGap_value_0_top_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_borderStyle_value_1_top_type as int32) - if ((RuntimeType.UNDEFINED) != (value_borderStyle_value_1_top_type)) { - const value_borderStyle_value_1_top_value = value_borderStyle_value_1_top! - valueSerializer.writeInt32((value_borderStyle_value_1_top_value.value as int32)) + valueSerializer.writeInt8(value_dashGap_value_0_top_type as int32) + if ((RuntimeType.UNDEFINED) != (value_dashGap_value_0_top_type)) { + const value_dashGap_value_0_top_value = value_dashGap_value_0_top! + valueSerializer.writeLength(value_dashGap_value_0_top_value); } - const value_borderStyle_value_1_right = value_borderStyle_value_1.right - let value_borderStyle_value_1_right_type = RuntimeType.UNDEFINED - if (value_borderStyle_value_1_right != undefined) { - value_borderStyle_value_1_right_type = RuntimeType.OBJECT + const value_dashGap_value_0_right = value_dashGap_value_0.right + let value_dashGap_value_0_right_type = RuntimeType.UNDEFINED + if (value_dashGap_value_0_right != undefined) { + value_dashGap_value_0_right_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_borderStyle_value_1_right_type as int32) - if ((RuntimeType.UNDEFINED) != (value_borderStyle_value_1_right_type)) { - const value_borderStyle_value_1_right_value = value_borderStyle_value_1_right! - valueSerializer.writeInt32((value_borderStyle_value_1_right_value.value as int32)) + valueSerializer.writeInt8(value_dashGap_value_0_right_type as int32) + if ((RuntimeType.UNDEFINED) != (value_dashGap_value_0_right_type)) { + const value_dashGap_value_0_right_value = value_dashGap_value_0_right! + valueSerializer.writeLength(value_dashGap_value_0_right_value); } - const value_borderStyle_value_1_bottom = value_borderStyle_value_1.bottom - let value_borderStyle_value_1_bottom_type = RuntimeType.UNDEFINED - if (value_borderStyle_value_1_bottom != undefined) { - value_borderStyle_value_1_bottom_type = RuntimeType.OBJECT + const value_dashGap_value_0_bottom = value_dashGap_value_0.bottom + let value_dashGap_value_0_bottom_type = RuntimeType.UNDEFINED + if (value_dashGap_value_0_bottom != undefined) { + value_dashGap_value_0_bottom_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_borderStyle_value_1_bottom_type as int32) - if ((RuntimeType.UNDEFINED) != (value_borderStyle_value_1_bottom_type)) { - const value_borderStyle_value_1_bottom_value = value_borderStyle_value_1_bottom! - valueSerializer.writeInt32((value_borderStyle_value_1_bottom_value.value as int32)) + valueSerializer.writeInt8(value_dashGap_value_0_bottom_type as int32) + if ((RuntimeType.UNDEFINED) != (value_dashGap_value_0_bottom_type)) { + const value_dashGap_value_0_bottom_value = value_dashGap_value_0_bottom! + valueSerializer.writeLength(value_dashGap_value_0_bottom_value); } - const value_borderStyle_value_1_left = value_borderStyle_value_1.left - let value_borderStyle_value_1_left_type = RuntimeType.UNDEFINED - if (value_borderStyle_value_1_left != undefined) { - value_borderStyle_value_1_left_type = RuntimeType.OBJECT + const value_dashGap_value_0_left = value_dashGap_value_0.left + let value_dashGap_value_0_left_type = RuntimeType.UNDEFINED + if (value_dashGap_value_0_left != undefined) { + value_dashGap_value_0_left_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_borderStyle_value_1_left_type as int32) - if ((RuntimeType.UNDEFINED) != (value_borderStyle_value_1_left_type)) { - const value_borderStyle_value_1_left_value = value_borderStyle_value_1_left! - valueSerializer.writeInt32((value_borderStyle_value_1_left_value.value as int32)) + valueSerializer.writeInt8(value_dashGap_value_0_left_type as int32) + if ((RuntimeType.UNDEFINED) != (value_dashGap_value_0_left_type)) { + const value_dashGap_value_0_left_value = value_dashGap_value_0_left! + valueSerializer.writeLength(value_dashGap_value_0_left_value); + } + } + else if (((RuntimeType.OBJECT == value_dashGap_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_dashGap_value_1 = value_dashGap_value as LengthMetrics + valueSerializer.writeCustomObject("LengthMetrics", value_dashGap_value_1) + } + else if (TypeChecker.isLocalizedEdgeWidths(value_dashGap_value, true, false, true, false)) { + valueSerializer.writeInt8(2 as int32) + const value_dashGap_value_2 = value_dashGap_value as LocalizedEdgeWidths + valueSerializer.writeLocalizedEdgeWidths(value_dashGap_value_2) + } + } + const value_dashWidth = value.dashWidth + let value_dashWidth_type = RuntimeType.UNDEFINED + if (value_dashWidth != undefined) { + value_dashWidth_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_dashWidth_type as int32) + if ((RuntimeType.UNDEFINED) != (value_dashWidth_type)) { + const value_dashWidth_value = value_dashWidth! + let value_dashWidth_value_type = RuntimeType.UNDEFINED + value_dashWidth_value_type = runtimeType(value_dashWidth_value) + if (TypeChecker.isEdgeWidths(value_dashWidth_value, true, false, true, false)) { + valueSerializer.writeInt8(0 as int32) + const value_dashWidth_value_0 = value_dashWidth_value as EdgeWidths + const value_dashWidth_value_0_top = value_dashWidth_value_0.top + let value_dashWidth_value_0_top_type = RuntimeType.UNDEFINED + if (value_dashWidth_value_0_top != undefined) { + value_dashWidth_value_0_top_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_dashWidth_value_0_top_type as int32) + if ((RuntimeType.UNDEFINED) != (value_dashWidth_value_0_top_type)) { + const value_dashWidth_value_0_top_value = value_dashWidth_value_0_top! + valueSerializer.writeLength(value_dashWidth_value_0_top_value); + } + const value_dashWidth_value_0_right = value_dashWidth_value_0.right + let value_dashWidth_value_0_right_type = RuntimeType.UNDEFINED + if (value_dashWidth_value_0_right != undefined) { + value_dashWidth_value_0_right_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_dashWidth_value_0_right_type as int32) + if ((RuntimeType.UNDEFINED) != (value_dashWidth_value_0_right_type)) { + const value_dashWidth_value_0_right_value = value_dashWidth_value_0_right! + valueSerializer.writeLength(value_dashWidth_value_0_right_value); + } + const value_dashWidth_value_0_bottom = value_dashWidth_value_0.bottom + let value_dashWidth_value_0_bottom_type = RuntimeType.UNDEFINED + if (value_dashWidth_value_0_bottom != undefined) { + value_dashWidth_value_0_bottom_type = RuntimeType.OBJECT } + valueSerializer.writeInt8(value_dashWidth_value_0_bottom_type as int32) + if ((RuntimeType.UNDEFINED) != (value_dashWidth_value_0_bottom_type)) { + const value_dashWidth_value_0_bottom_value = value_dashWidth_value_0_bottom! + valueSerializer.writeLength(value_dashWidth_value_0_bottom_value); + } + const value_dashWidth_value_0_left = value_dashWidth_value_0.left + let value_dashWidth_value_0_left_type = RuntimeType.UNDEFINED + if (value_dashWidth_value_0_left != undefined) { + value_dashWidth_value_0_left_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_dashWidth_value_0_left_type as int32) + if ((RuntimeType.UNDEFINED) != (value_dashWidth_value_0_left_type)) { + const value_dashWidth_value_0_left_value = value_dashWidth_value_0_left! + valueSerializer.writeLength(value_dashWidth_value_0_left_value); + } + } + else if (((RuntimeType.OBJECT == value_dashWidth_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_dashWidth_value_1 = value_dashWidth_value as LengthMetrics + valueSerializer.writeCustomObject("LengthMetrics", value_dashWidth_value_1) + } + else if (TypeChecker.isLocalizedEdgeWidths(value_dashWidth_value, true, false, true, false)) { + valueSerializer.writeInt8(2 as int32) + const value_dashWidth_value_2 = value_dashWidth_value as LocalizedEdgeWidths + valueSerializer.writeLocalizedEdgeWidths(value_dashWidth_value_2) + } + } + } + writeForegroundBlurStyleOptions(value: ForegroundBlurStyleOptions): void { + let valueSerializer = this + const value_colorMode = value.colorMode + let value_colorMode_type = RuntimeType.UNDEFINED + if (value_colorMode != undefined) { + value_colorMode_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_colorMode_type as int32) + if ((RuntimeType.UNDEFINED) != (value_colorMode_type)) { + const value_colorMode_value = value_colorMode! + valueSerializer.writeInt32((value_colorMode_value.value as int32)) + } + const value_adaptiveColor = value.adaptiveColor + let value_adaptiveColor_type = RuntimeType.UNDEFINED + if (value_adaptiveColor != undefined) { + value_adaptiveColor_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_adaptiveColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_adaptiveColor_type)) { + const value_adaptiveColor_value = value_adaptiveColor! + valueSerializer.writeInt32((value_adaptiveColor_value.value as int32)) + } + const value_scale = value.scale + let value_scale_type = RuntimeType.UNDEFINED + if (value_scale != undefined) { + value_scale_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_scale_type as int32) + if ((RuntimeType.UNDEFINED) != (value_scale_type)) { + const value_scale_value = value_scale! + valueSerializer.writeNumber(value_scale_value) + } + const value_blurOptions = value.blurOptions + let value_blurOptions_type = RuntimeType.UNDEFINED + if (value_blurOptions != undefined) { + value_blurOptions_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_blurOptions_type as int32) + if ((RuntimeType.UNDEFINED) != (value_blurOptions_type)) { + const value_blurOptions_value = value_blurOptions! + valueSerializer.writeBlurOptions(value_blurOptions_value) + } + } + writeForegroundEffectOptions(value: ForegroundEffectOptions): void { + let valueSerializer = this + const value_radius = value.radius + valueSerializer.writeNumber(value_radius) + } + writeResizableOptions(value: ResizableOptions): void { + let valueSerializer = this + const value_slice = value.slice + let value_slice_type = RuntimeType.UNDEFINED + if (value_slice != undefined) { + value_slice_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_slice_type as int32) + if ((RuntimeType.UNDEFINED) != (value_slice_type)) { + const value_slice_value = value_slice! + const value_slice_value_top = value_slice_value.top + let value_slice_value_top_type = RuntimeType.UNDEFINED + if (value_slice_value_top != undefined) { + value_slice_value_top_type = RuntimeType.OBJECT } + valueSerializer.writeInt8(value_slice_value_top_type as int32) + if ((RuntimeType.UNDEFINED) != (value_slice_value_top_type)) { + const value_slice_value_top_value = value_slice_value_top! + valueSerializer.writeLength(value_slice_value_top_value); + } + const value_slice_value_right = value_slice_value.right + let value_slice_value_right_type = RuntimeType.UNDEFINED + if (value_slice_value_right != undefined) { + value_slice_value_right_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_slice_value_right_type as int32) + if ((RuntimeType.UNDEFINED) != (value_slice_value_right_type)) { + const value_slice_value_right_value = value_slice_value_right! + valueSerializer.writeLength(value_slice_value_right_value); + } + const value_slice_value_bottom = value_slice_value.bottom + let value_slice_value_bottom_type = RuntimeType.UNDEFINED + if (value_slice_value_bottom != undefined) { + value_slice_value_bottom_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_slice_value_bottom_type as int32) + if ((RuntimeType.UNDEFINED) != (value_slice_value_bottom_type)) { + const value_slice_value_bottom_value = value_slice_value_bottom! + valueSerializer.writeLength(value_slice_value_bottom_value); + } + const value_slice_value_left = value_slice_value.left + let value_slice_value_left_type = RuntimeType.UNDEFINED + if (value_slice_value_left != undefined) { + value_slice_value_left_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_slice_value_left_type as int32) + if ((RuntimeType.UNDEFINED) != (value_slice_value_left_type)) { + const value_slice_value_left_value = value_slice_value_left! + valueSerializer.writeLength(value_slice_value_left_value); + } + } + const value_lattice = value.lattice + let value_lattice_type = RuntimeType.UNDEFINED + if (value_lattice != undefined) { + value_lattice_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_lattice_type as int32) + if ((RuntimeType.UNDEFINED) != (value_lattice_type)) { + const value_lattice_value = value_lattice! + valueSerializer.writeCustomObject("Lattice", value_lattice_value) + } + } + writeBackgroundEffectOptions(value: BackgroundEffectOptions): void { + let valueSerializer = this + const value_radius = value.radius + valueSerializer.writeNumber(value_radius) + const value_saturation = value.saturation + let value_saturation_type = RuntimeType.UNDEFINED + if (value_saturation != undefined) { + value_saturation_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_saturation_type as int32) + if ((RuntimeType.UNDEFINED) != (value_saturation_type)) { + const value_saturation_value = value_saturation! + valueSerializer.writeNumber(value_saturation_value) + } + const value_brightness = value.brightness + let value_brightness_type = RuntimeType.UNDEFINED + if (value_brightness != undefined) { + value_brightness_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_brightness_type as int32) + if ((RuntimeType.UNDEFINED) != (value_brightness_type)) { + const value_brightness_value = value_brightness! + valueSerializer.writeNumber(value_brightness_value) + } + const value_color = value.color + let value_color_type = RuntimeType.UNDEFINED + if (value_color != undefined) { + value_color_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_color_type as int32) + if ((RuntimeType.UNDEFINED) != (value_color_type)) { + const value_color_value = value_color! + let value_color_value_type = RuntimeType.UNDEFINED + value_color_value_type = runtimeType(value_color_value) + if (((RuntimeType.OBJECT) == (value_color_value_type)) && (value_color_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_color_value_0 = value_color_value as Color + valueSerializer.writeInt32((value_color_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_color_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_color_value_1 = value_color_value as number + valueSerializer.writeNumber(value_color_value_1) + } + else if (((RuntimeType.STRING == value_color_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_color_value_2 = value_color_value as string + valueSerializer.writeString(value_color_value_2) + } + else if (isResource(value_color_value)) { + valueSerializer.writeInt8(3 as int32) + const value_color_value_3 = value_color_value as Resource + valueSerializer.writeResource(value_color_value_3) + } + } + const value_adaptiveColor = value.adaptiveColor + let value_adaptiveColor_type = RuntimeType.UNDEFINED + if (value_adaptiveColor != undefined) { + value_adaptiveColor_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_adaptiveColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_adaptiveColor_type)) { + const value_adaptiveColor_value = value_adaptiveColor! + valueSerializer.writeInt32((value_adaptiveColor_value.value as int32)) + } + const value_blurOptions = value.blurOptions + let value_blurOptions_type = RuntimeType.UNDEFINED + if (value_blurOptions != undefined) { + value_blurOptions_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_blurOptions_type as int32) + if ((RuntimeType.UNDEFINED) != (value_blurOptions_type)) { + const value_blurOptions_value = value_blurOptions! + valueSerializer.writeBlurOptions(value_blurOptions_value) } - const value_shadow = value.shadow - let value_shadow_type = RuntimeType.UNDEFINED - if (value_shadow != undefined) { - value_shadow_type = RuntimeType.OBJECT + const value_policy = value.policy + let value_policy_type = RuntimeType.UNDEFINED + if (value_policy != undefined) { + value_policy_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_shadow_type as int32) - if ((RuntimeType.UNDEFINED) != (value_shadow_type)) { - const value_shadow_value = value_shadow! - let value_shadow_value_type = RuntimeType.UNDEFINED - value_shadow_value_type = runtimeType(value_shadow_value) - if (TypeChecker.isShadowOptions(value_shadow_value, false, false, false, false, false, false)) { + valueSerializer.writeInt8(value_policy_type as int32) + if ((RuntimeType.UNDEFINED) != (value_policy_type)) { + const value_policy_value = value_policy! + valueSerializer.writeInt32((value_policy_value.value as int32)) + } + const value_inactiveColor = value.inactiveColor + let value_inactiveColor_type = RuntimeType.UNDEFINED + if (value_inactiveColor != undefined) { + value_inactiveColor_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_inactiveColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_inactiveColor_type)) { + const value_inactiveColor_value = value_inactiveColor! + let value_inactiveColor_value_type = RuntimeType.UNDEFINED + value_inactiveColor_value_type = runtimeType(value_inactiveColor_value) + if (((RuntimeType.OBJECT) == (value_inactiveColor_value_type)) && (value_inactiveColor_value instanceof Color)) { valueSerializer.writeInt8(0 as int32) - const value_shadow_value_0 = value_shadow_value as ShadowOptions - valueSerializer.writeShadowOptions(value_shadow_value_0) + const value_inactiveColor_value_0 = value_inactiveColor_value as Color + valueSerializer.writeInt32((value_inactiveColor_value_0.value as int32)) } - else if (((RuntimeType.OBJECT) == (value_shadow_value_type)) && (value_shadow_value instanceof ShadowStyle)) { + else if (((RuntimeType.NUMBER == value_inactiveColor_value_type))) { valueSerializer.writeInt8(1 as int32) - const value_shadow_value_1 = value_shadow_value as ShadowStyle - valueSerializer.writeInt32((value_shadow_value_1.value as int32)) + const value_inactiveColor_value_1 = value_inactiveColor_value as number + valueSerializer.writeNumber(value_inactiveColor_value_1) + } + else if (((RuntimeType.STRING == value_inactiveColor_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_inactiveColor_value_2 = value_inactiveColor_value as string + valueSerializer.writeString(value_inactiveColor_value_2) + } + else if (isResource(value_inactiveColor_value)) { + valueSerializer.writeInt8(3 as int32) + const value_inactiveColor_value_3 = value_inactiveColor_value as Resource + valueSerializer.writeResource(value_inactiveColor_value_3) } } - const value_onHeightDidChange = value.onHeightDidChange - let value_onHeightDidChange_type = RuntimeType.UNDEFINED - if (value_onHeightDidChange != undefined) { - value_onHeightDidChange_type = RuntimeType.OBJECT + const value_type = value.type + let value_type_type = RuntimeType.UNDEFINED + if (value_type != undefined) { + value_type_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_onHeightDidChange_type as int32) - if ((RuntimeType.UNDEFINED) != (value_onHeightDidChange_type)) { - const value_onHeightDidChange_value = value_onHeightDidChange! - valueSerializer.writeFunction(value_onHeightDidChange_value) + valueSerializer.writeInt8(value_type_type as int32) + if ((RuntimeType.UNDEFINED) != (value_type_type)) { + const value_type_value = value_type! + valueSerializer.writeInt32((value_type_value.value as int32)) } - const value_mode = value.mode - let value_mode_type = RuntimeType.UNDEFINED - if (value_mode != undefined) { - value_mode_type = RuntimeType.OBJECT + } + writeBackgroundBlurStyleOptions(value: BackgroundBlurStyleOptions): void { + let valueSerializer = this + const value_colorMode = value.colorMode + let value_colorMode_type = RuntimeType.UNDEFINED + if (value_colorMode != undefined) { + value_colorMode_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_mode_type as int32) - if ((RuntimeType.UNDEFINED) != (value_mode_type)) { - const value_mode_value = value_mode! - valueSerializer.writeInt32((value_mode_value.value as int32)) + valueSerializer.writeInt8(value_colorMode_type as int32) + if ((RuntimeType.UNDEFINED) != (value_colorMode_type)) { + const value_colorMode_value = value_colorMode! + valueSerializer.writeInt32((value_colorMode_value.value as int32)) } - const value_scrollSizeMode = value.scrollSizeMode - let value_scrollSizeMode_type = RuntimeType.UNDEFINED - if (value_scrollSizeMode != undefined) { - value_scrollSizeMode_type = RuntimeType.OBJECT + const value_adaptiveColor = value.adaptiveColor + let value_adaptiveColor_type = RuntimeType.UNDEFINED + if (value_adaptiveColor != undefined) { + value_adaptiveColor_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_scrollSizeMode_type as int32) - if ((RuntimeType.UNDEFINED) != (value_scrollSizeMode_type)) { - const value_scrollSizeMode_value = value_scrollSizeMode! - valueSerializer.writeInt32((value_scrollSizeMode_value.value as int32)) + valueSerializer.writeInt8(value_adaptiveColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_adaptiveColor_type)) { + const value_adaptiveColor_value = value_adaptiveColor! + valueSerializer.writeInt32((value_adaptiveColor_value.value as int32)) } - const value_onDetentsDidChange = value.onDetentsDidChange - let value_onDetentsDidChange_type = RuntimeType.UNDEFINED - if (value_onDetentsDidChange != undefined) { - value_onDetentsDidChange_type = RuntimeType.OBJECT + const value_scale = value.scale + let value_scale_type = RuntimeType.UNDEFINED + if (value_scale != undefined) { + value_scale_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_onDetentsDidChange_type as int32) - if ((RuntimeType.UNDEFINED) != (value_onDetentsDidChange_type)) { - const value_onDetentsDidChange_value = value_onDetentsDidChange! - valueSerializer.writeFunction(value_onDetentsDidChange_value) + valueSerializer.writeInt8(value_scale_type as int32) + if ((RuntimeType.UNDEFINED) != (value_scale_type)) { + const value_scale_value = value_scale! + valueSerializer.writeNumber(value_scale_value) } - const value_onWidthDidChange = value.onWidthDidChange - let value_onWidthDidChange_type = RuntimeType.UNDEFINED - if (value_onWidthDidChange != undefined) { - value_onWidthDidChange_type = RuntimeType.OBJECT + const value_blurOptions = value.blurOptions + let value_blurOptions_type = RuntimeType.UNDEFINED + if (value_blurOptions != undefined) { + value_blurOptions_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_onWidthDidChange_type as int32) - if ((RuntimeType.UNDEFINED) != (value_onWidthDidChange_type)) { - const value_onWidthDidChange_value = value_onWidthDidChange! - valueSerializer.writeFunction(value_onWidthDidChange_value) + valueSerializer.writeInt8(value_blurOptions_type as int32) + if ((RuntimeType.UNDEFINED) != (value_blurOptions_type)) { + const value_blurOptions_value = value_blurOptions! + valueSerializer.writeBlurOptions(value_blurOptions_value) } - const value_onTypeDidChange = value.onTypeDidChange - let value_onTypeDidChange_type = RuntimeType.UNDEFINED - if (value_onTypeDidChange != undefined) { - value_onTypeDidChange_type = RuntimeType.OBJECT + const value_policy = value.policy + let value_policy_type = RuntimeType.UNDEFINED + if (value_policy != undefined) { + value_policy_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_onTypeDidChange_type as int32) - if ((RuntimeType.UNDEFINED) != (value_onTypeDidChange_type)) { - const value_onTypeDidChange_value = value_onTypeDidChange! - valueSerializer.writeFunction(value_onTypeDidChange_value) + valueSerializer.writeInt8(value_policy_type as int32) + if ((RuntimeType.UNDEFINED) != (value_policy_type)) { + const value_policy_value = value_policy! + valueSerializer.writeInt32((value_policy_value.value as int32)) } - const value_expandSafeAreaInEmbeddedMode = value.expandSafeAreaInEmbeddedMode - let value_expandSafeAreaInEmbeddedMode_type = RuntimeType.UNDEFINED - if (value_expandSafeAreaInEmbeddedMode != undefined) { - value_expandSafeAreaInEmbeddedMode_type = RuntimeType.OBJECT + const value_inactiveColor = value.inactiveColor + let value_inactiveColor_type = RuntimeType.UNDEFINED + if (value_inactiveColor != undefined) { + value_inactiveColor_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_expandSafeAreaInEmbeddedMode_type as int32) - if ((RuntimeType.UNDEFINED) != (value_expandSafeAreaInEmbeddedMode_type)) { - const value_expandSafeAreaInEmbeddedMode_value = value_expandSafeAreaInEmbeddedMode! - valueSerializer.writeBoolean(value_expandSafeAreaInEmbeddedMode_value) + valueSerializer.writeInt8(value_inactiveColor_type as int32) + if ((RuntimeType.UNDEFINED) != (value_inactiveColor_type)) { + const value_inactiveColor_value = value_inactiveColor! + let value_inactiveColor_value_type = RuntimeType.UNDEFINED + value_inactiveColor_value_type = runtimeType(value_inactiveColor_value) + if (((RuntimeType.OBJECT) == (value_inactiveColor_value_type)) && (value_inactiveColor_value instanceof Color)) { + valueSerializer.writeInt8(0 as int32) + const value_inactiveColor_value_0 = value_inactiveColor_value as Color + valueSerializer.writeInt32((value_inactiveColor_value_0.value as int32)) + } + else if (((RuntimeType.NUMBER == value_inactiveColor_value_type))) { + valueSerializer.writeInt8(1 as int32) + const value_inactiveColor_value_1 = value_inactiveColor_value as number + valueSerializer.writeNumber(value_inactiveColor_value_1) + } + else if (((RuntimeType.STRING == value_inactiveColor_value_type))) { + valueSerializer.writeInt8(2 as int32) + const value_inactiveColor_value_2 = value_inactiveColor_value as string + valueSerializer.writeString(value_inactiveColor_value_2) + } + else if (isResource(value_inactiveColor_value)) { + valueSerializer.writeInt8(3 as int32) + const value_inactiveColor_value_3 = value_inactiveColor_value as Resource + valueSerializer.writeResource(value_inactiveColor_value_3) + } } - const value_uiContext = value.uiContext - let value_uiContext_type = RuntimeType.UNDEFINED - if (value_uiContext != undefined) { - value_uiContext_type = RuntimeType.OBJECT + const value_type = value.type + let value_type_type = RuntimeType.UNDEFINED + if (value_type != undefined) { + value_type_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_uiContext_type as int32) - if ((RuntimeType.UNDEFINED) != (value_uiContext_type)) { - const value_uiContext_value = value_uiContext! - valueSerializer.writeCustomObject("UIContext", value_uiContext_value) + valueSerializer.writeInt8(value_type_type as int32) + if ((RuntimeType.UNDEFINED) != (value_type_type)) { + const value_type_value = value_type! + valueSerializer.writeInt32((value_type_value.value as int32)) } - const value_keyboardAvoidMode = value.keyboardAvoidMode - let value_keyboardAvoidMode_type = RuntimeType.UNDEFINED - if (value_keyboardAvoidMode != undefined) { - value_keyboardAvoidMode_type = RuntimeType.OBJECT + } + writePixelRoundPolicy(value: PixelRoundPolicy): void { + let valueSerializer = this + const value_start = value.start + let value_start_type = RuntimeType.UNDEFINED + if (value_start != undefined) { + value_start_type = RuntimeType.OBJECT } - valueSerializer.writeInt8(value_keyboardAvoidMode_type as int32) - if ((RuntimeType.UNDEFINED) != (value_keyboardAvoidMode_type)) { - const value_keyboardAvoidMode_value = value_keyboardAvoidMode! - valueSerializer.writeInt32((value_keyboardAvoidMode_value.value as int32)) + valueSerializer.writeInt8(value_start_type as int32) + if ((RuntimeType.UNDEFINED) != (value_start_type)) { + const value_start_value = value_start! + valueSerializer.writeInt32((value_start_value.value as int32)) + } + const value_top = value.top + let value_top_type = RuntimeType.UNDEFINED + if (value_top != undefined) { + value_top_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_top_type as int32) + if ((RuntimeType.UNDEFINED) != (value_top_type)) { + const value_top_value = value_top! + valueSerializer.writeInt32((value_top_value.value as int32)) + } + const value_end = value.end + let value_end_type = RuntimeType.UNDEFINED + if (value_end != undefined) { + value_end_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_end_type as int32) + if ((RuntimeType.UNDEFINED) != (value_end_type)) { + const value_end_value = value_end! + valueSerializer.writeInt32((value_end_value.value as int32)) + } + const value_bottom = value.bottom + let value_bottom_type = RuntimeType.UNDEFINED + if (value_bottom != undefined) { + value_bottom_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_bottom_type as int32) + if ((RuntimeType.UNDEFINED) != (value_bottom_type)) { + const value_bottom_value = value_bottom! + valueSerializer.writeInt32((value_bottom_value.value as int32)) } } - writeStateStyles(value: StateStyles): void { + writeConstraintSizeOptions(value: ConstraintSizeOptions): void { let valueSerializer = this - const value_normal = value.normal - let value_normal_type = RuntimeType.UNDEFINED - if (value_normal != undefined) { - value_normal_type = RuntimeType.OBJECT - } - valueSerializer.writeInt8(value_normal_type as int32) - if ((RuntimeType.UNDEFINED) != (value_normal_type)) { - const value_normal_value = value_normal! - valueSerializer.writeCustomObject("Any", value_normal_value) + const value_minWidth = value.minWidth + let value_minWidth_type = RuntimeType.UNDEFINED + if (value_minWidth != undefined) { + value_minWidth_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_minWidth_type as int32) + if ((RuntimeType.UNDEFINED) != (value_minWidth_type)) { + const value_minWidth_value = value_minWidth! + valueSerializer.writeLength(value_minWidth_value); + } + const value_maxWidth = value.maxWidth + let value_maxWidth_type = RuntimeType.UNDEFINED + if (value_maxWidth != undefined) { + value_maxWidth_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_maxWidth_type as int32) + if ((RuntimeType.UNDEFINED) != (value_maxWidth_type)) { + const value_maxWidth_value = value_maxWidth! + valueSerializer.writeLength(value_maxWidth_value); + } + const value_minHeight = value.minHeight + let value_minHeight_type = RuntimeType.UNDEFINED + if (value_minHeight != undefined) { + value_minHeight_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_minHeight_type as int32) + if ((RuntimeType.UNDEFINED) != (value_minHeight_type)) { + const value_minHeight_value = value_minHeight! + valueSerializer.writeLength(value_minHeight_value); + } + const value_maxHeight = value.maxHeight + let value_maxHeight_type = RuntimeType.UNDEFINED + if (value_maxHeight != undefined) { + value_maxHeight_type = RuntimeType.OBJECT + } + valueSerializer.writeInt8(value_maxHeight_type as int32) + if ((RuntimeType.UNDEFINED) != (value_maxHeight_type)) { + const value_maxHeight_value = value_maxHeight! + valueSerializer.writeLength(value_maxHeight_value); } } } diff --git a/arkoala-arkts/arkui/src/generated/ts/index.ts b/arkoala-arkts/arkui/src/generated/ts/index.ts index 9307c8d56..25d483883 100644 --- a/arkoala-arkts/arkui/src/generated/ts/index.ts +++ b/arkoala-arkts/arkui/src/generated/ts/index.ts @@ -1,2 +1,2 @@ -export { TypeChecker } from "./type_check" +export * from "./type_check" export * from "./NativeModule" \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ts/type_check.ts b/arkoala-arkts/arkui/src/generated/ts/type_check.ts index 9430caa12..cfbc41a83 100644 --- a/arkoala-arkts/arkui/src/generated/ts/type_check.ts +++ b/arkoala-arkts/arkui/src/generated/ts/type_check.ts @@ -1,461 +1,622 @@ +import { AbilityComponentInterface, AbilityComponentAttribute } from "./../ArkAbilityComponentInterfaces" +import { TextStyle } from "./../ArkAlertDialogInterfaces" +import { AlphabetIndexerInterface, AlphabetIndexerOptions, AlphabetIndexerAttribute, IndexerAlign, OnAlphabetIndexerSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerPopupSelectCallback } from "./../ArkAlphabetIndexerInterfaces" +import { AnimatorInterface, AnimatorAttribute, SpringMotion, FrictionMotion, ScrollMotion, SpringProp } from "./../ArkAnimatorInterfaces" +import { BadgeInterface, BadgeParamWithNumber, BadgeParam, BadgeStyle, BadgeParamWithString, BadgeAttribute, BadgePosition } from "./../ArkBadgeInterfaces" import { BlankInterface, BlankAttribute } from "./../ArkBlankInterfaces" -import { ButtonInterface, LabelStyle, ButtonType, ButtonAttribute } from "./../ArkButtonInterfaces" -import { CalendarPickerInterface, CalendarAlign, CalendarPickerAttribute } from "./../ArkCalendarPickerInterfaces" -import { CanvasInterface, Size, DrawingCanvas, CanvasAttribute } from "./../ArkCanvasInterfaces" -import { ColumnInterface, HorizontalAlign, ColumnAttribute, LayoutSafeAreaType, LayoutSafeAreaEdge, TitleHeight } from "./../ArkColumnInterfaces" -import { CommonInterface, StateStyles, BlurOptions, Padding, SheetOptions, BindOptions, SheetTitleOptions, SheetDismiss, DismissSheetAction, Callback, SpringBackAction, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, EdgeStyles, ShadowOptions, BackgroundBlurStyleOptions, BlurStyleOptions, DragPreviewOptions, DragInteractionOptions, BorderOptions, RectResult, AttributeModifier, UIGestureEvent, BaseEvent, ClickEvent, CommonConfiguration, CustomBuilder, BlurStyle, GradientDirection, TouchTestInfo, GestureRecognizerJudgeBeginCallback, CommonAttribute, SheetSize, SheetType, BorderStyle, ShadowStyle, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, DismissReason, ShadowType, ThemeColorMode, AdaptiveColor, BlurStyleActivePolicy, DragPreviewMode, ImageModifier, SourceTool, PixelMap, SymbolGlyphModifier, ComponentContent } from "./../ArkCommonInterfaces" +import { ButtonInterface, ButtonConfiguration, LabelStyle, ButtonOptions, ButtonType, ButtonAttribute, ButtonStyleMode, ControlSize, ButtonRole, ButtonTriggerClickCallback } from "./../ArkButtonInterfaces" +import { CalendarInterface, CurrentDayStyle, NonCurrentDayStyle, TodayStyle, WeekStyle, WorkStateStyle, CalendarSelectedDate, CalendarRequestedData, MonthData, CalendarDay, CalendarAttribute } from "./../ArkCalendarInterfaces" +import { CalendarPickerInterface, CalendarOptions, CalendarAlign, CalendarPickerAttribute } from "./../ArkCalendarPickerInterfaces" +import { CanvasInterface, TextMetrics, Size, CanvasAttribute } from "./../ArkCanvasInterfaces" +import { CheckboxInterface, CheckBoxConfiguration, CheckboxOptions, CheckboxAttribute, OnCheckboxChangeCallback } from "./../ArkCheckboxInterfaces" +import { CheckboxGroupInterface, CheckboxGroupResult, CheckboxGroupOptions, CheckboxGroupAttribute, OnCheckboxGroupChangeCallback, SelectStatus } from "./../ArkCheckboxgroupInterfaces" +import { CircleInterface, CircleOptions, CircleAttribute } from "./../ArkCircleInterfaces" +import { ColumnInterface, ColumnOptions, ColumnAttribute } from "./../ArkColumnInterfaces" +import { ColumnSplitInterface, ColumnSplitDividerStyle, ColumnSplitAttribute } from "./../ArkColumnSplitInterfaces" +import { CommonInterface, Rectangle, RectResult, PixelRoundPolicy, BackgroundBlurStyleOptions, BlurStyleOptions, BlurOptions, BackgroundEffectOptions, ForegroundEffectOptions, ForegroundBlurStyleOptions, BorderImageOption, ClickEvent, BaseEvent, EventTarget, Callback, HoverEvent, AccessibilityHoverEvent, MouseEvent, TouchEvent, TouchObject, HistoricalPoint, KeyEvent, AnimateParam, ExpectedFrameRateRange, TransitionOptions, TranslateOptions, ScaleOptions, RotateOptions, LinearGradientBlurOptions, MotionBlurOptions, MotionBlurAnchor, InvertOptions, sharedTransitionOptions, MotionPathOptions, AlignRuleOption, LocalizedAlignRuleOptions, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, ClickEffect, DragEvent, DragItemInfo, DragPreviewOptions, DragInteractionOptions, OverlayOptions, OverlayOffset, ShadowOptions, GeometryTransitionOptions, PopupOptions, PopupMessageOptions, DismissPopupAction, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ContextMenuAnimationOptions, ContentCoverOptions, BindOptions, DismissContentCoverAction, SheetOptions, SheetTitleOptions, SheetDismiss, DismissSheetAction, SpringBackAction, StateStyles, PixelStretchEffectOptions, UIGestureEvent, BackgroundBrightnessOptions, CommonConfiguration, PickerTextStyle, PointLightStyle, LightSource, MultiShadowOptions, EdgeEffectOptions, FadingEdgeOptions, NestedScrollOptions, ItemDragInfo, SelectionOptions, TextDecorationOptions, CaretOffset, InputCounterOptions, BlurStyle, CustomBuilder, Optional, SafeAreaType, SafeAreaEdge, TouchTestInfo, TouchResult, PixelMap, VisualEffect, Filter, OutlineStyle, AccessibilityCallback, TransitionFinishCallback, ChainStyle, UniformDataType, PreDragStatus, ComponentContent, ShadowStyle, BlendMode, BlendApplyType, Blender, CircleShape, EllipseShape, PathShape, RectShape, ModalTransition, VisibleAreaChangeCallback, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, CommonAttribute, ScrollResult, OnScrollCallback, TouchTestStrategy, ThemeColorMode, AdaptiveColor, BlurStyleActivePolicy, BlurType, RepeatMode, SourceType, SourceTool, IntentionCode, FinishCallbackType, FractionStop, DragBehavior, UnifiedData, Summary, DragResult, DragPreviewMode, ImageModifier, ShadowType, TransitionHierarchyStrategy, DismissReason, SymbolGlyphModifier, MenuPreviewMode, AnimationRange, SheetSize, SheetType, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, MenuPolicy, LayoutSafeAreaType, LayoutSafeAreaEdge } from "./../ArkCommonInterfaces" +import { Component3DInterface, SceneOptions, Component3DAttribute, Scene, ModelType } from "./../ArkComponent3dInterfaces" +import { ContainerSpanInterface, ContainerSpanAttribute } from "./../ArkContainerSpanInterfaces" +import { CounterInterface, CounterAttribute } from "./../ArkCounterInterfaces" +import { DataPanelInterface, DataPanelShadowOptions, DataPanelConfiguration, DataPanelOptions, DataPanelAttribute, DataPanelType } from "./../ArkDataPanelInterfaces" +import { DatePickerInterface, DatePickerResult, DatePickerOptions, DatePickerAttribute } from "./../ArkDatePickerInterfaces" +import { DividerInterface, DividerAttribute } from "./../ArkDividerInterfaces" +import { EffectComponentInterface, EffectComponentAttribute } from "./../ArkEffectComponentInterfaces" +import { EllipseInterface, EllipseAttribute } from "./../ArkEllipseInterfaces" import { EmbeddedComponentInterface, TerminationInfo, EmbeddedComponentAttribute } from "./../ArkEmbeddedComponentInterfaces" -import { FormComponentInterface, FormCallbackInfo, FormComponentAttribute } from "./../ArkFormComponentInterfaces" -import { GestureInterface, BaseGestureEvent, FingerInfo, GestureJudgeResult, GestureHandler, GesturePriority, GestureMask } from "./../ArkGestureInterfaces" +import { FlexInterface, FlexOptions, FlexSpaceOptions, FlexAttribute } from "./../ArkFlexInterfaces" +import { FlowItemInterface, FlowItemAttribute } from "./../ArkFlowItemInterfaces" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { FolderStackInterface, OnFoldStatusChangeInfo, HoverEventParam, FolderStackOptions, FolderStackAttribute, OnFoldStatusChangeCallback, OnHoverStatusChangeCallback, WindowStatusType } from "./../ArkFolderStackInterfaces" +import { FormComponentInterface, FormCallbackInfo, FormInfo, FormComponentAttribute, FormDimension, FormRenderingMode, FormShape } from "./../ArkFormComponentInterfaces" +import { FormLinkInterface, FormLinkOptions, FormLinkAttribute } from "./../ArkFormLinkInterfaces" +import { GaugeInterface, GaugeShadowOptions, GaugeIndicatorOptions, GaugeConfiguration, GaugeOptions, GaugeAttribute } from "./../ArkGaugeInterfaces" +import { TapGestureInterface, GestureInterface, TapGestureParameters, GestureEvent, FingerInfo, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, BaseGestureEvent, GestureType, GestureMask, GestureJudgeResult, GestureHandler, GesturePriority, PanDirection, SwipeDirection, GestureMode } from "./../ArkGestureInterfaces" +import { GridInterface, ComputedBarAttribute, GridLayoutOptions, GridAttribute, GridDirection, GridItemAlignment } from "./../ArkGridInterfaces" +import { GridItemInterface, GridItemOptions, GridItemAttribute, GridItemStyle } from "./../ArkGridItemInterfaces" +import { GridColInterface, GridColColumnOption, GridColOptions, GridColAttribute } from "./../ArkGridColInterfaces" import { GridContainerInterface, GridContainerOptions, GridContainerAttribute, SizeType } from "./../ArkGridContainerInterfaces" -import { ImageInterface, ImageAttribute } from "./../ArkImageInterfaces" -import { ListInterface, VisibleListContentInfo, Optional, ListAttribute, OnScrollVisibleContentChangeCallback } from "./../ArkListInterfaces" -import { NavDestinationInterface, NavDestinationCommonTitle, NavDestinationCustomTitle, RouteMapConfig, NavDestinationAttribute, NavDestinationMode } from "./../ArkNavDestinationInterfaces" +import { GridRowInterface, GridRowOptions, GutterOption, GridRowSizeOption, GridRowColumnOption, BreakPoints, GridRowAttribute, GridRowDirection, BreakpointsReference } from "./../ArkGridRowInterfaces" +import { HyperlinkInterface, HyperlinkAttribute } from "./../ArkHyperlinkInterfaces" +import { ImageInterface, ResizableOptions, ImageSourceSize, ImageError, ImageAttribute, ImageRenderMode, DynamicRangeMode, ImageInterpolation, DrawingColorFilter, ImageErrorCallback, ResolutionQuality, DrawableDescriptor, ImageContent, DrawingLattice } from "./../ArkImageInterfaces" +import { ImageAnimatorInterface, ImageFrameInfo, ImageAnimatorAttribute } from "./../ArkImageAnimatorInterfaces" +import { ImageAnalyzerConfig, ImageAIOptions, ImageAnalyzerType } from "./../ArkImageCommonInterfaces" +import { ImageSpanInterface, ImageLoadResult, ImageSpanAttribute, ImageCompleteCallback } from "./../ArkImageSpanInterfaces" +import { LineInterface, LineAttribute } from "./../ArkLineInterfaces" +import { ListInterface, ListDividerOptions, ChainAnimationOptions, VisibleListContentInfo, ListOptions, ScrollState, ListAttribute, ListItemAlign, StickyStyle, ScrollSnapAlign, OnScrollVisibleContentChangeCallback, ChainEdgeEffect, ListItemGroupArea } from "./../ArkListInterfaces" +import { ListItemInterface, SwipeActionOptions, SwipeActionItem, ListItemOptions, Sticky, ListItemAttribute, EditMode, SwipeEdgeEffect, SwipeActionState, ListItemStyle } from "./../ArkListItemInterfaces" +import { ListItemGroupInterface, ListItemGroupOptions, ListItemGroupAttribute, ListItemGroupStyle } from "./../ArkListItemGroupInterfaces" +import { LoadingProgressInterface, LoadingProgressConfiguration, LoadingProgressAttribute } from "./../ArkLoadingProgressInterfaces" +import { LocationButtonInterface, LocationButtonOptions, LocationButtonOnClickResult, LocationButtonAttribute, LocationIconStyle, LocationDescription } from "./../ArkLocationButtonInterfaces" +import { MarqueeInterface, MarqueeOptions, MarqueeAttribute } from "./../ArkMarqueeInterfaces" +import { MediaCachedImageInterface, ASTCResource, MediaCachedImageAttribute } from "./../ArkMediaCachedImageInterfaces" +import { MenuInterface, MenuAttribute, SubMenuExpandingMode } from "./../ArkMenuInterfaces" +import { MenuItemInterface, MenuItemOptions, MenuItemAttribute } from "./../ArkMenuItemInterfaces" +import { MenuItemGroupInterface, MenuItemGroupOptions, MenuItemGroupAttribute } from "./../ArkMenuItemGroupInterfaces" +import { NavDestinationInterface, NavDestinationCommonTitle, NavDestinationCustomTitle, RouteMapConfig, NavDestinationAttribute, NavDestinationMode, NavigationSystemTransitionType } from "./../ArkNavDestinationInterfaces" +import { NavRouterInterface, RouteInfo, NavRouterAttribute, NavRouteMode } from "./../ArkNavRouterInterfaces" import { NavigationInterface, NavigationTitleOptions, NavigationMenuItem, PopInfo, NavigationOptions, NavigationInterception, NavigationCommonTitle, NavigationCustomTitle, ToolbarItem, NavigationToolbarOptions, NavContentInfo, NavigationAnimatedTransition, SystemBarStyle, NavigationAttribute, NavBarPosition, NavigationMode, NavigationTitleMode, NavigationOperation, BarStyle, NavPathInfo, LaunchMode, InterceptionShowCallback, NavBar, InterceptionModeCallback, ToolbarItemStatus } from "./../ArkNavigationInterfaces" +import { NavigatorInterface, NavigatorAttribute, NavigationType } from "./../ArkNavigatorInterfaces" +import { NodeContainerInterface, NodeContainerAttribute } from "./../ArkNodeContainerInterfaces" +import { PanelInterface, PanelMode, PanelAttribute, PanelType, PanelHeight } from "./../ArkPanelInterfaces" +import { PasteButtonInterface, PasteButtonOptions, PasteButtonOnClickResult, PasteButtonAttribute, PasteIconStyle, PasteDescription } from "./../ArkPasteButtonInterfaces" +import { PathInterface, PathAttribute } from "./../ArkPathInterfaces" +import { PatternLockInterface, CircleStyleOptions, PatternLockAttribute } from "./../ArkPatternLockInterfaces" +import { PluginComponentInterface, PluginComponentTemplate, PluginComponentAttribute } from "./../ArkPluginComponentInterfaces" +import { PolygonInterface, PolygonAttribute } from "./../ArkPolygonInterfaces" +import { PolylineInterface, PolylineAttribute } from "./../ArkPolylineInterfaces" +import { QRCodeInterface, QRCodeAttribute } from "./../ArkQrcodeInterfaces" +import { RadioInterface, RadioStyle, RadioConfiguration, RadioOptions, RadioAttribute, RadioIndicatorType } from "./../ArkRadioInterfaces" +import { RatingInterface, StarStyleOptions, RatingConfiguration, RatingOptions, RatingAttribute } from "./../ArkRatingInterfaces" import { RectInterface, RectAttribute } from "./../ArkRectInterfaces" -import { ScrollInterface, ScrollAnimationOptions, ScrollAttribute } from "./../ArkScrollInterfaces" -import { SelectInterface, MenuItemConfiguration, SelectOption, SelectAttribute } from "./../ArkSelectInterfaces" +import { RefreshInterface, RefreshOptions, RefreshStatus, RefreshAttribute } from "./../ArkRefreshInterfaces" +import { RelativeContainerInterface, GuideLineStyle, GuideLinePosition, BarrierStyle, LocalizedBarrierStyle, RelativeContainerAttribute, BarrierDirection, LocalizedBarrierDirection } from "./../ArkRelativeContainerInterfaces" +import { RichEditorInterface, RichEditorSelection, RichEditorTextSpanResult, RichEditorSpanPosition, RichEditorTextStyleResult, RichEditorSymbolSpanStyle, RichEditorParagraphStyle, LeadingMarginPlaceholder, RichEditorImageSpanResult, RichEditorImageSpanStyleResult, RichEditorLayoutStyle, RichEditorRange, RichEditorInsertValue, RichEditorDeleteValue, SelectionMenuOptions, KeyboardOptions, PasteEvent, PlaceholderStyle, RichEditorChangeValue, CutEvent, CopyEvent, RichEditorOptions, RichEditorTextStyle, RichEditorTextSpanOptions, RichEditorGesture, RichEditorImageSpanOptions, RichEditorImageSpanStyle, RichEditorBuilderSpanOptions, RichEditorSymbolSpanOptions, RichEditorUpdateTextSpanStyleOptions, RichEditorSpanStyleOptions, RichEditorUpdateImageSpanStyleOptions, RichEditorUpdateSymbolSpanStyleOptions, RichEditorParagraphStyleOptions, RichEditorParagraphResult, RichEditorStyledStringOptions, RichEditorAttribute, RichEditorSpanType, RichEditorResponseType, PasteEventCallback, SubmitCallback, RichEditorDeleteDirection, MenuOnAppearCallback } from "./../ArkRichEditorInterfaces" +import { RichTextInterface, RichTextAttribute } from "./../ArkRichTextInterfaces" +import { RootSceneInterface, RootSceneSession, RootSceneAttribute } from "./../ArkRootSceneInterfaces" +import { RowInterface, RowOptions, RowAttribute } from "./../ArkRowInterfaces" +import { RowSplitInterface, RowSplitAttribute } from "./../ArkRowSplitInterfaces" +import { SaveButtonInterface, SaveButtonOptions, SaveButtonOnClickResult, SaveButtonAttribute, SaveIconStyle, SaveDescription } from "./../ArkSaveButtonInterfaces" +import { ScreenInterface, ScreenAttribute } from "./../ArkScreenInterfaces" +import { ScrollInterface, ScrollOptions, ScrollAnimationOptions, ScrollEdgeOptions, OffsetResult, ScrollToIndexOptions, OnScrollFrameBeginHandlerResult, ScrollSnapOptions, OffsetOptions, ScrollDirection, ScrollAttribute, ScrollOnWillScrollCallback, ScrollOnScrollCallback, OnScrollEdgeCallback, OnScrollFrameBeginCallback } from "./../ArkScrollInterfaces" +import { ScrollBarInterface, ScrollBarOptions, ScrollBarAttribute, ScrollBarDirection } from "./../ArkScrollBarInterfaces" +import { SearchInterface, SearchButtonOptions, IconOptions, CancelButtonOptions, CancelButtonSymbolOptions, SearchAttribute, SearchType, CancelButtonStyle } from "./../ArkSearchInterfaces" +import { SelectInterface, MenuItemConfiguration, SelectOption, SelectAttribute, ArrowPosition, MenuAlignType } from "./../ArkSelectInterfaces" import { ShapeInterface, ShapeAttribute } from "./../ArkShapeInterfaces" -import { SideBarContainerInterface, SideBarContainerAttribute } from "./../ArkSidebarInterfaces" -import { SwiperInterface, SwiperAttribute } from "./../ArkSwiperInterfaces" -import { SymbolGlyphInterface, SymbolGlyphAttribute } from "./../ArkSymbolglyphInterfaces" -import { TabContentInterface, IndicatorStyle, BoardStyle, TabContentAttribute } from "./../ArkTabContentInterfaces" -import { TabsInterface, BarMode, TabsAttribute } from "./../ArkTabsInterfaces" -import { TestInterface, BooleanInterfaceDTS, NumberInterfaceDTS, StringInterfaceDTS, UnionInterfaceDTS, UnionOptionalInterfaceDTS, TupleInterfaceDTS, OptionInterfaceDTS, ArrayRefNumberInterfaceDTS, TestAttribute, EnumDTS, ClassDTS, ClassWithConstructorDTS, ClassWithConstructorAndFieldsDTS } from "./../ArkTestInterfaces" -import { TextInterface, TextOptions, TextAttribute } from "./../ArkTextInterfaces" -import { TextInputInterface, TextInputOptions, InputType, TextInputAttribute, ContentType } from "./../ArkTextInputInterfaces" +import { SliderInterface, SliderBlockStyle, SliderConfiguration, SlideRange, SliderOptions, SliderAttribute, SliderChangeMode, SliderInteraction, SliderBlockType, SliderTriggerChangeCallback, SliderStyle } from "./../ArkSliderInterfaces" +import { SpanInterface, TextBackgroundStyle, SpanAttribute } from "./../ArkSpanInterfaces" +import { StackInterface, StackOptions, StackAttribute } from "./../ArkStackInterfaces" +import { StepperInterface, StepperAttribute } from "./../ArkStepperInterfaces" +import { StepperItemInterface, StepperItemAttribute, ItemState } from "./../ArkStepperItemInterfaces" +import { SwiperInterface, ArrowStyle, SwiperAutoFill, IndicatorStyle, SwiperAnimationEvent, SwiperContentAnimatedTransition, SwiperAttribute, SwiperDisplayMode, SwiperNestedScrollMode, ContentDidScrollCallback } from "./../ArkSwiperInterfaces" +import { SymbolGlyphInterface, SymbolEffectStrategy, SymbolRenderingStrategy, SymbolGlyphAttribute, SymbolEffect } from "./../ArkSymbolglyphInterfaces" +import { SymbolSpanInterface, SymbolSpanAttribute } from "./../ArkSymbolSpanInterfaces" +import { TabsInterface, ScrollableBarModeOptions, TabsAnimationEvent, DividerStyle, BarGridColumnOptions, TabContentAnimatedTransition, TabsAttribute, BarPosition, BarMode, AnimationMode, LayoutStyle } from "./../ArkTabsInterfaces" +import { TabContentInterface, BoardStyle, TabBarIconStyle, TabContentAttribute } from "./../ArkTabContentInterfaces" +import { TextInterface, TextOverflowOptions, TextOptions, TextAttribute, TextSpanType, TextResponseType } from "./../ArkTextInterfaces" +import { TextAreaInterface, TextAreaOptions, TextAreaAttribute, TextAreaType, ContentType } from "./../ArkTextAreaInterfaces" +import { TextClockInterface, TextClockConfiguration, TextClockOptions, TextClockAttribute } from "./../ArkTextClockInterfaces" +import { DecorationStyleResult, TextRange, TextDataDetectorConfig, TextMenuItem, PositionWithAffinity, PreviewText, StyledStringChangedListener, StyledStringChangeValue, CaretStyle, InsertValue, DeleteValue, FontSettingOptions, OnDidChangeCallback, MenuType, EditableTextOnChangeCallback, TextDataDetectorType, TextMenuItemId, Affinity, TextDeleteDirection } from "./../ArkTextCommonInterfaces" +import { TextInputInterface, SubmitEvent, PasswordIcon, UnderlineColor, TextInputOptions, EnterKeyType, InputType, TextInputAttribute, TextInputStyle } from "./../ArkTextInputInterfaces" import { TextPickerInterface, DividerOptions, TextPickerOptions, TextPickerRangeContent, TextCascadePickerRangeContent, TextPickerAttribute } from "./../ArkTextPickerInterfaces" +import { TextTimerInterface, TextTimerConfiguration, TextTimerOptions, TextTimerAttribute } from "./../ArkTextTimerInterfaces" +import { TimePickerInterface, TimePickerResult, TimePickerOptions, DateTimeOptions, TimePickerAttribute, TimePickerFormat } from "./../ArkTimePickerInterfaces" +import { ToggleInterface, ToggleConfiguration, SwitchStyle, ToggleOptions, ToggleAttribute, ToggleType } from "./../ArkToggleInterfaces" +import { SizeOptions, ConstraintSizeOptions, Padding, LocalizedPadding, Position, EdgeWidths, BorderOptions, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, EdgeStyles, OutlineOptions, EdgeOutlineWidths, OutlineRadiuses, EdgeOutlineStyles, Area, Edges, LocalizedEdges, LocalizedPosition, Bias, Font, Offset, MarkStyle, LengthConstrain, DividerStyleOptions, ResourceColor, Resource, Length, ResourceStr, LengthMetricsUnit, Dimension, PX, VP, FP, LPX, Percentage, Margin, LocalizedMargin, LengthMetrics, VoidCallback, ColorMetrics, ColorFilter } from "./../ArkUnitsInterfaces" +import { VideoInterface, VideoOptions, VideoAttribute, PlaybackSpeed } from "./../ArkVideoInterfaces" +import { WebInterface, JavaScriptProxy, Header, WebMediaOptions, OnPageEndEvent, OnPageBeginEvent, OnProgressChangeEvent, OnTitleReceiveEvent, OnGeolocationShowEvent, OnAlertEvent, OnBeforeUnloadEvent, OnConfirmEvent, OnPromptEvent, OnConsoleEvent, OnErrorReceiveEvent, OnHttpErrorReceiveEvent, OnDownloadStartEvent, OnRefreshAccessedHistoryEvent, OnRenderExitedEvent, OnShowFileSelectorEvent, OnResourceLoadEvent, FullScreenEnterEvent, OnScaleChangeEvent, OnHttpAuthRequestEvent, OnInterceptRequestEvent, OnPermissionRequestEvent, OnScreenCaptureRequestEvent, ScreenCaptureConfig, OnContextMenuShowEvent, OnSearchResultReceiveEvent, OnScrollEvent, OnSslErrorEventReceiveEvent, SslErrorEvent, OnClientAuthenticationEvent, OnWindowNewEvent, OnTouchIconUrlReceivedEvent, OnFaviconReceivedEvent, OnPageVisibleEvent, OnDataResubmittedEvent, OnAudioStateChangedEvent, OnFirstContentfulPaintEvent, FirstMeaningfulPaint, LargestContentfulPaint, OnLoadInterceptEvent, OnOverScrollEvent, LoadCommittedDetails, IntelligentTrackingPreventionDetails, ScriptItem, NestedScrollOptionsExt, NativeEmbedDataInfo, NativeEmbedInfo, NativeEmbedVisibilityInfo, NativeEmbedTouchInfo, NativeMediaPlayerConfig, RenderProcessNotRespondingData, ExpandedMenuItemOptions, WebKeyboardCallbackInfo, WebKeyboardOptions, AdsBlockedDetails, WebOptions, WebAttribute, MixedMode, CacheMode, WebDarkMode, OverScrollMode, OnFullScreenEnterCallback, OnContextMenuHideCallback, OnSslErrorEventCallback, OnFirstMeaningfulPaintCallback, OnLargestContentfulPaintCallback, OnSafeBrowsingCheckResultCallback, ThreatType, OnNavigationEntryCommittedCallback, OnIntelligentTrackingPreventionCallback, WebLayoutMode, OnNativeEmbedVisibilityChangeCallback, OnOverrideUrlLoadingCallback, OnRenderProcessNotRespondingCallback, OnRenderProcessRespondingCallback, OnViewportFitChangedCallback, ViewportFit, WebKeyboardCallback, OnAdsBlockedCallback, WebKeyboardAvoidMode, WebviewController, RenderExitReason, WebCaptureMode, SslError, WebNavigationType, NativeEmbedStatus, RenderProcessNotRespondingReason, RenderMode } from "./../ArkWebInterfaces" +import { WindowSceneInterface, WindowSceneAttribute } from "./../ArkWindowSceneInterfaces" +import { XComponentInterface, SurfaceRect, SurfaceRotationOptions, XComponentOptions, XComponentAttribute } from "./../ArkXcomponentInterfaces" +import { SideBarContainerInterface, ButtonStyle, SideBarContainerAttribute, SideBarPosition, SideBarContainerType } from "./../ArkSidebarInterfaces" +import { RemoteWindowInterface, WindowAnimationTarget, RRect, RemoteWindowAttribute } from "./../ArkRemoteWindowInterfaces" +import { WaterFlowInterface, WaterFlowOptions, WaterFlowAttribute, WaterFlowLayoutMode, GetItemMainSizeByIndex } from "./../ArkWaterFlowInterfaces" import { UIExtensionComponentInterface, UIExtensionOptions, UIExtensionComponentAttribute, DpiFollowStrategy } from "./../ArkUiExtensionComponentInterfaces" -import { Font, Offset, AltOffset, LocalizedPadding, ResourceColor, Resource, ResourceStr, Length, LengthMetricsUnit, Dimension, PX, VP, FP, LPX, Percentage, LengthMetrics } from "./../ArkUnitsInterfaces" -import { VectorInterface, Vector1, Vector2, VectorAttribute } from "./../ArkVectorInterfaces" -import { WebInterface, NativeEmbedDataInfo, NativeEmbedInfo, OnRenderExitedEvent, OnHttpErrorReceiveEvent, WebAttribute, RenderExitReason } from "./../ArkWebInterfaces" -import { LITERAL_TopLengthRightLengthBottomLengthLeftLength, LITERAL_AngleNumberstringDirectionGradientDirectionColorsArrayResourceColornumberRepeatingBoolean, LITERAL_TopResourceColorRightResourceColorBottomResourceColorLeftResourceColor, LITERAL_TopBorderStyleRightBorderStyleBottomBorderStyleLeftBorderStyle, LITERAL_DxLengthDyLength, LITERAL_Dx1LengthDy2Length, LITERAL_WidthNumberHeightNumber, LITERAL_WidthNumberstringHeightNumberstringRadiusNumberstringArrayObject, LITERAL_WidthNumberstringHeightNumberstringRadiusWidthNumberstringRadiusHeightNumberstring, LITERAL_XOffsetNumberstringYOffsetNumberstringAnimationScrollAnimationOptionsboolean, LITERAL_NextBoolean, LITERAL_NextBooleanDirectionAxis, LITERAL_KeyStringObject, LITERAL_CodeNumberWantIMPORTdefaultFROMapiohosappabilityWant, LITERAL_X0NumberX1NumberX2NumberX3Number, LITERAL_TNumberXNumberYNumberZNumber, LITERAL_DetailObject, INTERFACE_GestureModifier, INTERFACE_CanvasPattern, INTERFACE_NavDestinationContext, INTERFACE_NavigationTransitionProxy, INTERFACE_ICurve, INTERFACE_UIExtensionProxy, IMPORT_Resource_FROM_resource_resource, IMPORT_LengthMetricsUnit_FROM_api_arkui_Graphics, IMPORT_UIContext_FROM_api_ohos_arkui_UIContext, IMPORT_LengthMetrics_FROM_api_arkui_Graphics, IMPORT_ImageModifier_FROM_api_arkui_ImageModifier, IMPORT_default_PixelMap_FROM_resource_image, IMPORT_SymbolGlyphModifier_FROM_resource_symbol, IMPORT_ComponentContent_FROM_api_arkui_ComponentContent, IMPORT_Callback_TerminationInfo_FROM_api_ohos_base, IMPORT_ErrorCallback_FROM_api_ohos_base, IMPORT_default_FROM_api_ohos_app_ability_Want, IMPORT_Callback_NavDestinationContext_FROM_api_ohos_base, IMPORT_default_SystemBarStyle_FROM_api_ohos_window, IMPORT_Callback_PopInfo_FROM_api_ohos_base, IMPORT_Callback_UIExtensionProxy_FROM_api_ohos_base, IMPORT_Callback_key_string_Object_FROM_api_ohos_base, IMPORT_Callback_code_number_want_IMPORT_default_FROM_api_ohos_app_ability_Want_FROM_api_ohos_base, IMPORT_Callback_number_FROM_api_ohos_base } from "./../SyntheticDeclarations" -import { Color, TextOverflow, TextHeightAdaptivePolicy, ColoringStrategy, EmbeddedType, Curve, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { DecorationStyleInterface, ImageAttachmentInterface, ImageAttachmentLayoutStyle, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, StyleOptions, GestureStyleInterface, ParagraphStyleInterface, SpanStyle, StyledStringKey, StyledStringValue, DecorationStyle, BaselineOffsetStyle, LetterSpacingStyle, TextShadowStyle, GestureStyle, ImageAttachment, ParagraphStyle, LineHeightStyle, UrlStyle, UserDataSpan, BackgroundColorStyle } from "./../ArkStyledStringInterfaces" +import { LinearIndicatorInterface, LinearIndicatorStyle, LinearIndicatorStartOptions, LinearIndicatorAttribute, OnLinearIndicatorChangeCallback } from "./../ArkLinearindicatorInterfaces" +import { LITERAL_TopLengthRightLengthBottomLengthLeftLength, LITERAL_AlignAlignment, LITERAL_TopBorderStyleRightBorderStyleBottomBorderStyleLeftBorderStyle, LITERAL_TopResourceColorRightResourceColorBottomResourceColorLeftResourceColor, LITERAL_TopLeftLengthTopRightLengthBottomLeftLengthBottomRightLength, LITERAL_TopOutlineStyleRightOutlineStyleBottomOutlineStyleLeftOutlineStyle, LITERAL_TopDimensionRightDimensionBottomDimensionLeftDimension, LITERAL_TopLeftDimensionTopRightDimensionBottomLeftDimensionBottomRightDimension, LITERAL_SpanNumberOffsetNumber, LITERAL_XsNumberLITERALSpanNumberOffsetNumberSmNumberLITERALSpanNumberOffsetNumberMdNumberLITERALSpanNumberOffsetNumberLgNumberLITERALSpanNumberOffsetNumber, LITERAL_AngleNumberstringDirectionGradientDirectionColorsArrayResourceColornumberRepeatingBoolean, LITERAL_CenterLengthLengthStartNumberstringEndNumberstringRotationNumberstringColorsArrayResourceColornumberRepeatingBoolean, LITERAL_CenterLengthLengthRadiusNumberstringColorsArrayResourceColornumberRepeatingBoolean, LITERAL_AppearTransitionEffectLITERALMoveTransitionEdgeDisappearTransitionEffectLITERALMoveTransitionEdge, LITERAL_FingersNumberRepeatBooleanDurationNumber, LITERAL_FingersNumberDirectionPanDirectionDistanceNumber, LITERAL_FingersNumberDistanceNumber, LITERAL_FingersNumberDirectionSwipeDirectionSpeedNumber, LITERAL_FingersNumberAngleNumber, LITERAL_AnchorStringAlignHorizontalAlign, LITERAL_AnchorStringAlignVerticalAlign, LITERAL_ValueStringActionVoid, LITERAL_IsVisibleBoolean, LITERAL_ColorResourceColor, LITERAL_WantIMPORTdefaultFROMapiohosappabilityWant, LITERAL_YearNumberMonthNumberDayNumber, LITERAL_DateLITERALYearNumberMonthNumberDayNumberCurrentDataMonthDataPreDataMonthDataNextDataMonthDataControllerCalendarController, LITERAL_DxLengthDyLength, LITERAL_WidthStringnumberHeightStringnumber, LITERAL_WidthNumberHeightNumber, LITERAL_ErrcodeNumberMsgString, LITERAL_OffsetRemainNumber, LITERAL_NextBoolean, LITERAL_NextBooleanDirectionAxis, LITERAL_WidthNumberHeightNumberComponentWidthNumberComponentHeightNumberLoadingStatusNumberContentWidthNumberContentHeightNumberContentOffsetXNumberContentOffsetYNumber, LITERAL_MinLengthLengthMaxLengthLength, LITERAL_TargetStringTypeNavigationType, LITERAL_WidthNumberstringHeightNumberstringCommandsString, LITERAL_TemplatePluginComponentTemplateDataObject, LITERAL_WidthNumberstringHeightNumberstringRadiusNumberstringArrayObject, LITERAL_WidthNumberstringHeightNumberstringRadiusWidthNumberstringRadiusHeightNumberstring, LITERAL_ValueStringPlaceholderResourceStrIconStringControllerSearchController, LITERAL_XNumberstringYNumberstringWidthNumberstringHeightNumberstring, LITERAL_IndexNumber, LITERAL_MinSizeVP, LITERAL_BarPositionBarPositionIndexNumberControllerTabsController, LITERAL_IconStringResourceTextStringResource, LITERAL_StyleCancelButtonStyleIconIconOptions, LITERAL_FullscreenBoolean, LITERAL_DurationNumber, LITERAL_TimeNumber, LITERAL_DataStringWebResourceRequest, LITERAL_HandlerFunctionErrorObject, LITERAL_DetailObject, LITERAL_CallbackFunctionFileSelectorObject, LITERAL_ScriptStringCallbackResultstringvoid, LITERAL_DataStringMimeTypeStringEncodingStringBaseUrlStringHistoryUrlString, LITERAL_UrlStringResourceHeadersArrayHeader, LITERAL_ObjectObjectNameStringMethodListArraystring, LITERAL_PlainTextString, LITERAL_IdStringTypeStringLibrarynameStringControllerXComponentController, LITERAL_IdStringTypeXComponentTypeLibrarynameStringControllerXComponentController, LITERAL_SurfaceWidthNumberSurfaceHeightNumber, LITERAL_ShownStringPixelMapResourceHiddenStringPixelMapResourceSwitchingStringPixelMapResource, LITERAL_KeyStringObject, LITERAL_CodeNumberWantIMPORTdefaultFROMapiohosappabilityWant, INTERFACE_ICurve, INTERFACE_AttributeModifier, INTERFACE_GestureModifier, INTERFACE_CanvasPattern, INTERFACE_NavDestinationContext, INTERFACE_NavigationTransitionProxy, INTERFACE_EditMenuOptions, INTERFACE_TextEditControllerEx, INTERFACE_TextBaseController, INTERFACE_LayoutManager, INTERFACE_StyledStringController, INTERFACE_SwiperContentTransitionProxy, INTERFACE_TabContentTransitionProxy, INTERFACE_UIExtensionProxy, IMPORT_default_FROM_api_ohos_app_ability_Want, IMPORT_Resource_FROM_api_global_resource, IMPORT_LengthMetricsUnit_FROM_api_arkui_Graphics, IMPORT_default_Canvas_FROM_api_ohos_graphics_drawing, IMPORT_default_PixelMap_FROM_api_ohos_multimedia_image, IMPORT_default_VisualEffect_FROM_api_ohos_graphics_uiEffect, IMPORT_default_Filter_FROM_api_ohos_graphics_uiEffect, IMPORT_default_UniformDataType_FROM_api_ohos_data_uniformTypeDescriptor, IMPORT_ComponentContent_T_FROM_api_arkui_ComponentContent, IMPORT_default_Blender_FROM_api_ohos_graphics_uiEffect, IMPORT_CircleShape_FROM_api_ohos_arkui_shape, IMPORT_EllipseShape_FROM_api_ohos_arkui_shape, IMPORT_PathShape_FROM_api_ohos_arkui_shape, IMPORT_RectShape_FROM_api_ohos_arkui_shape, IMPORT_DrawContext_FROM_api_arkui_Graphics, IMPORT_IntentionCode_FROM_api_ohos_multimodalInput_intentionCode, IMPORT_default_UnifiedData_FROM_api_ohos_data_unifiedDataChannel, IMPORT_default_Summary_FROM_api_ohos_data_unifiedDataChannel, IMPORT_ImageModifier_FROM_api_arkui_ImageModifier, IMPORT_SymbolGlyphModifier_FROM_api_arkui_SymbolGlyphModifier, IMPORT_UIContext_FROM_api_ohos_arkui_UIContext, IMPORT_LengthMetrics_FROM_api_arkui_Graphics, IMPORT_Scene_FROM_api_ohos_graphics_scene, IMPORT_Callback_TerminationInfo_FROM_api_ohos_base, IMPORT_ErrorCallback_FROM_api_ohos_base, IMPORT_ColorMetrics_FROM_api_arkui_Graphics, IMPORT_default_WindowStatusType_FROM_api_ohos_window, IMPORT_default_ColorFilter_FROM_api_ohos_graphics_drawing, IMPORT_default_ResolutionQuality_FROM_api_ohos_multimedia_image, IMPORT_DrawableDescriptor_FROM_api_ohos_arkui_drawableDescriptor, IMPORT_default_Lattice_FROM_api_ohos_graphics_drawing, IMPORT_Callback_NavDestinationContext_FROM_api_ohos_base, IMPORT_default_SystemBarStyle_FROM_api_ohos_window, IMPORT_TextModifier_FROM_api_arkui_TextModifier, IMPORT_Callback_PopInfo_FROM_api_ohos_base, IMPORT_NodeController_FROM_api_ohos_arkui_node, IMPORT_Callback_number_FROM_api_ohos_base, IMPORT_default_DateTimeOptions_FROM_api_ohos_intl, IMPORT_default_Affinity_FROM_api_ohos_graphics_text, IMPORT_default_LineMetrics_FROM_api_ohos_graphics_text, IMPORT_default_RectWidthStyle_FROM_api_ohos_graphics_text, IMPORT_default_RectHeightStyle_FROM_api_ohos_graphics_text, IMPORT_default_TextBox_FROM_api_ohos_graphics_text, IMPORT_default_WebviewController_FROM_api_ohos_web_webview, IMPORT_Callback_UIExtensionProxy_FROM_api_ohos_base, IMPORT_Callback_key_string_Object_FROM_api_ohos_base, IMPORT_Callback_code_number_want_IMPORT_default_FROM_api_ohos_app_ability_Want_FROM_api_ohos_base } from "./../SyntheticDeclarations" +import { WordBreak, Color, AnimationStatus, Curve, FillMode, PlayMode, FontWeight, FontStyle, TextOverflow, TextHeightAdaptivePolicy, Axis, CheckBoxShape, HorizontalAlign, FlexAlign, HitTestMode, Alignment, ImageRepeat, ImageSize, BorderStyle, ColoringStrategy, HoverEffect, Visibility, ItemAlign, Direction, GradientDirection, ResponseType, FunctionKey, ModifierKey, ObscuredReasons, RenderFit, LineCapStyle, LineJoinStyle, BarState, EdgeEffect, ScrollSource, PixelRoundCalcPolicy, AccessibilityHoverType, MouseButton, MouseAction, TouchType, KeyType, KeySource, TransitionType, SharedTransitionEffectType, VerticalAlign, ClickEffectLevel, Placement, ArrowPointPosition, IlluminatedType, NestedScrollMode, TextDecorationType, TextDecorationStyle, EmbeddedType, FlexDirection, FlexWrap, FoldStatus, AppRotation, ImageFit, CopyOptions, ImageSpanAlignment, MarqueeUpdateStrategy, TitleHeight, TextAlign, LineBreakStrategy, Edge, OptionWidthMode, TextCase, EllipsisMode, TextSelectableMode, TextContentStyle, XComponentType } from "./../ArkEnumsInterfaces" +import { ContentModifier, TransitionEffect, OnWillScrollCallback, LinearGradient, GestureControl_GestureType } from "./../ConflictedDeclarations" +import { CalendarController } from "./../ArkCalendarControllerMaterialized" import { CanvasRenderingContext2D } from "./../ArkCanvasRenderingContext2DMaterialized" import { DrawingRenderingContext } from "./../ArkDrawingRenderingContextMaterialized" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../ArkAttributeModifierMaterialized" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { GestureRecognizer } from "./../ArkGestureRecognizerMaterialized" -import { ContentModifier } from "./../ConflictedDeclarations" +import { ICurve } from "./../ArkICurveMaterialized" +import { PanGestureOptions } from "./../ArkPanGestureOptionsMaterialized" +import { Scroller } from "./../ArkScrollerMaterialized" +import { ImageAnalyzerController } from "./../ArkImageAnalyzerControllerMaterialized" +import { ChildrenMainSize } from "./../ArkChildrenMainSizeMaterialized" import { NavPathStack } from "./../ArkNavPathStackMaterialized" import { NavDestinationContext } from "./../ArkNavDestinationContextMaterialized" import { NavigationTransitionProxy } from "./../ArkNavigationTransitionProxyMaterialized" -import { Scroller } from "./../ArkScrollerMaterialized" -import { ICurve } from "./../ArkICurveMaterialized" +import { PatternLockController } from "./../ArkPatternLockControllerMaterialized" +import { EditMenuOptions } from "./../ArkEditMenuOptionsMaterialized" +import { RichEditorController } from "./../ArkRichEditorControllerMaterialized" +import { RichEditorStyledStringController } from "./../ArkRichEditorStyledStringControllerMaterialized" +import { SearchController } from "./../ArkSearchControllerMaterialized" +import { SecurityComponentLayoutDirection } from "./../ArkSecurityComponentInterfaces" import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SwiperController } from "./../ArkSwiperControllerMaterialized" +import { SwiperContentTransitionProxy } from "./../ArkSwiperContentTransitionProxyMaterialized" +import { TabsController } from "./../ArkTabsControllerMaterialized" +import { TabContentTransitionProxy } from "./../ArkTabContentTransitionProxyMaterialized" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" -import { ClassWithConstructorAndMethodsDTS } from "./../ArkClassWithConstructorAndMethodsDTSMaterialized" -import { ClassWithConstructorAndStaticMethodsDTS } from "./../ArkClassWithConstructorAndStaticMethodsDTSMaterialized" -import { ClassWithConstructorAndFieldsAndMethodsDTS } from "./../ArkClassWithConstructorAndFieldsAndMethodsDTSMaterialized" -import { ClassWithConstructorAndNonOptionalParamsDTS } from "./../ArkClassWithConstructorAndNonOptionalParamsDTSMaterialized" -import { ClassWithConstructorAndSomeOptionalParamsDTS } from "./../ArkClassWithConstructorAndSomeOptionalParamsDTSMaterialized" -import { ClassWithConstructorAndAllOptionalParamsDTS } from "./../ArkClassWithConstructorAndAllOptionalParamsDTSMaterialized" -import { ClassWithConstructorAndWithoutParamsDTS } from "./../ArkClassWithConstructorAndWithoutParamsDTSMaterialized" import { TextController } from "./../ArkTextControllerMaterialized" +import { TextAreaController } from "./../ArkTextAreaControllerMaterialized" +import { TextClockController } from "./../ArkTextClockControllerMaterialized" +import { StyledString } from "./../ArkStyledStringMaterialized" +import { TextInputController } from "./../ArkTextInputControllerMaterialized" +import { TextTimerController } from "./../ArkTextTimerControllerMaterialized" +import { VideoController } from "./../ArkVideoControllerMaterialized" +import { WebResourceRequest } from "./../ArkWebResourceRequestMaterialized" import { WebResourceResponse } from "./../ArkWebResourceResponseMaterialized" +import { WebController } from "./../ArkWebControllerMaterialized" +import { JsGeolocation } from "./../ArkJsGeolocationMaterialized" +import { JsResult } from "./../ArkJsResultMaterialized" +import { ConsoleMessage } from "./../ArkConsoleMessageMaterialized" +import { WebResourceError } from "./../ArkWebResourceErrorMaterialized" +import { FileSelectorResult } from "./../ArkFileSelectorResultMaterialized" +import { FileSelectorParam } from "./../ArkFileSelectorParamMaterialized" +import { FullScreenExitHandler } from "./../ArkFullScreenExitHandlerMaterialized" +import { HttpAuthHandler } from "./../ArkHttpAuthHandlerMaterialized" +import { PermissionRequest } from "./../ArkPermissionRequestMaterialized" +import { ScreenCaptureHandler } from "./../ArkScreenCaptureHandlerMaterialized" +import { WebContextMenuParam } from "./../ArkWebContextMenuParamMaterialized" +import { WebContextMenuResult } from "./../ArkWebContextMenuResultMaterialized" +import { SslErrorHandler } from "./../ArkSslErrorHandlerMaterialized" +import { ClientAuthenticationHandler } from "./../ArkClientAuthenticationHandlerMaterialized" +import { ControllerHandler } from "./../ArkControllerHandlerMaterialized" +import { DataResubmissionHandler } from "./../ArkDataResubmissionHandlerMaterialized" +import { EventResult } from "./../ArkEventResultMaterialized" +import { WebKeyboardController } from "./../ArkWebKeyboardControllerMaterialized" +import { XComponentController } from "./../ArkXComponentControllerMaterialized" +import { WaterFlowSections } from "./../ArkWaterFlowSectionsMaterialized" +import { CustomSpan } from "./../ArkCustomSpanMaterialized" +import { LinearIndicatorController } from "./../ArkLinearIndicatorControllerMaterialized" export class TypeChecker { - static isLabelStyle(value: object|string|number|undefined|null, duplicated_overflow: boolean, duplicated_maxLines: boolean, duplicated_minFontSize: boolean, duplicated_maxFontSize: boolean, duplicated_heightAdaptivePolicy: boolean, duplicated_font: boolean): boolean { - if ((!duplicated_overflow) && (value?.hasOwnProperty("overflow"))) { + static isTextStyle(value: object|string|number|undefined|null, duplicated_wordBreak: boolean): boolean { + if ((!duplicated_wordBreak) && (value?.hasOwnProperty("wordBreak"))) { return true } - else if ((!duplicated_maxLines) && (value?.hasOwnProperty("maxLines"))) { + else { + throw new Error("Can not discriminate value typeof TextStyle") + } + } + static isAlphabetIndexerOptions(value: object|string|number|undefined|null, duplicated_arrayValue: boolean, duplicated_selected: boolean): boolean { + if ((!duplicated_arrayValue) && (value?.hasOwnProperty("arrayValue"))) { return true } - else if ((!duplicated_minFontSize) && (value?.hasOwnProperty("minFontSize"))) { + else if ((!duplicated_selected) && (value?.hasOwnProperty("selected"))) { return true } - else if ((!duplicated_maxFontSize) && (value?.hasOwnProperty("maxFontSize"))) { + else { + throw new Error("Can not discriminate value typeof AlphabetIndexerOptions") + } + } + static isBadgeParamWithNumber(value: object|string|number|undefined|null, duplicated_position: boolean, duplicated_style: boolean, duplicated_count: boolean, duplicated_maxCount: boolean): boolean { + if ((!duplicated_style) && (value?.hasOwnProperty("style"))) { return true } - else if ((!duplicated_heightAdaptivePolicy) && (value?.hasOwnProperty("heightAdaptivePolicy"))) { + else if ((!duplicated_count) && (value?.hasOwnProperty("count"))) { return true } - else if ((!duplicated_font) && (value?.hasOwnProperty("font"))) { + else if ((!duplicated_position) && (value?.hasOwnProperty("position"))) { + return true + } + else if ((!duplicated_maxCount) && (value?.hasOwnProperty("maxCount"))) { return true } else { - throw new Error("Can not discriminate value typeof LabelStyle") + throw new Error("Can not discriminate value typeof BadgeParamWithNumber") } } - static isSize(value: object|string|number|undefined|null, duplicated_width: boolean, duplicated_height: boolean): boolean { - if ((!duplicated_width) && (value?.hasOwnProperty("width"))) { + static isBadgeParam(value: object|string|number|undefined|null, duplicated_position: boolean, duplicated_style: boolean): boolean { + if ((!duplicated_style) && (value?.hasOwnProperty("style"))) { return true } - else if ((!duplicated_height) && (value?.hasOwnProperty("height"))) { + else if ((!duplicated_position) && (value?.hasOwnProperty("position"))) { return true } else { - throw new Error("Can not discriminate value typeof Size") + throw new Error("Can not discriminate value typeof BadgeParam") } } - static isStateStyles(value: object|string|number|undefined|null, duplicated_normal: boolean): boolean { - if ((!duplicated_normal) && (value?.hasOwnProperty("normal"))) { + static isBadgeStyle(value: object|string|number|undefined|null, duplicated_color: boolean, duplicated_fontSize: boolean, duplicated_badgeSize: boolean, duplicated_badgeColor: boolean, duplicated_borderColor: boolean, duplicated_borderWidth: boolean, duplicated_fontWeight: boolean): boolean { + if ((!duplicated_color) && (value?.hasOwnProperty("color"))) { return true } - else { - throw new Error("Can not discriminate value typeof StateStyles") - } - } - static isBlurOptions(value: object|string|number|undefined|null, duplicated_grayscale: boolean): boolean { - if ((!duplicated_grayscale) && (value?.hasOwnProperty("grayscale"))) { + else if ((!duplicated_fontSize) && (value?.hasOwnProperty("fontSize"))) { return true } - else { - throw new Error("Can not discriminate value typeof BlurOptions") + else if ((!duplicated_badgeSize) && (value?.hasOwnProperty("badgeSize"))) { + return true } - } - static isPadding(value: object|string|number|undefined|null, duplicated_top: boolean, duplicated_right: boolean, duplicated_bottom: boolean, duplicated_left: boolean): boolean { - if ((!duplicated_top) && (value?.hasOwnProperty("top"))) { + else if ((!duplicated_badgeColor) && (value?.hasOwnProperty("badgeColor"))) { return true } - else if ((!duplicated_right) && (value?.hasOwnProperty("right"))) { + else if ((!duplicated_borderColor) && (value?.hasOwnProperty("borderColor"))) { return true } - else if ((!duplicated_bottom) && (value?.hasOwnProperty("bottom"))) { + else if ((!duplicated_borderWidth) && (value?.hasOwnProperty("borderWidth"))) { return true } - else if ((!duplicated_left) && (value?.hasOwnProperty("left"))) { + else if ((!duplicated_fontWeight) && (value?.hasOwnProperty("fontWeight"))) { return true } else { - throw new Error("Can not discriminate value typeof Padding") + throw new Error("Can not discriminate value typeof BadgeStyle") } } - static isSheetOptions(value: object|string|number|undefined|null, duplicated_backgroundColor: boolean, duplicated_onAppear: boolean, duplicated_onDisappear: boolean, duplicated_onWillAppear: boolean, duplicated_onWillDisappear: boolean, duplicated_height: boolean, duplicated_dragBar: boolean, duplicated_maskColor: boolean, duplicated_detents: boolean, duplicated_blurStyle: boolean, duplicated_showClose: boolean, duplicated_preferType: boolean, duplicated_title: boolean, duplicated_shouldDismiss: boolean, duplicated_onWillDismiss: boolean, duplicated_onWillSpringBackWhenDismiss: boolean, duplicated_enableOutsideInteractive: boolean, duplicated_width: boolean, duplicated_borderWidth: boolean, duplicated_borderColor: boolean, duplicated_borderStyle: boolean, duplicated_shadow: boolean, duplicated_onHeightDidChange: boolean, duplicated_mode: boolean, duplicated_scrollSizeMode: boolean, duplicated_onDetentsDidChange: boolean, duplicated_onWidthDidChange: boolean, duplicated_onTypeDidChange: boolean, duplicated_expandSafeAreaInEmbeddedMode: boolean, duplicated_uiContext: boolean, duplicated_keyboardAvoidMode: boolean): boolean { - if ((!duplicated_backgroundColor) && (value?.hasOwnProperty("backgroundColor"))) { + static isBadgeParamWithString(value: object|string|number|undefined|null, duplicated_position: boolean, duplicated_style: boolean, duplicated_value: boolean): boolean { + if ((!duplicated_style) && (value?.hasOwnProperty("style"))) { return true } - else if ((!duplicated_onAppear) && (value?.hasOwnProperty("onAppear"))) { + else if ((!duplicated_value) && (value?.hasOwnProperty("value"))) { return true } - else if ((!duplicated_onDisappear) && (value?.hasOwnProperty("onDisappear"))) { + else if ((!duplicated_position) && (value?.hasOwnProperty("position"))) { return true } - else if ((!duplicated_onWillAppear) && (value?.hasOwnProperty("onWillAppear"))) { + else { + throw new Error("Can not discriminate value typeof BadgeParamWithString") + } + } + static isButtonConfiguration(value: object|string|number|undefined|null, duplicated_enabled: boolean, duplicated_contentModifier: boolean, duplicated_label: boolean, duplicated_pressed: boolean, duplicated_triggerClick: boolean): boolean { + if ((!duplicated_enabled) && (value?.hasOwnProperty("enabled"))) { return true } - else if ((!duplicated_onWillDisappear) && (value?.hasOwnProperty("onWillDisappear"))) { + else if ((!duplicated_contentModifier) && (value?.hasOwnProperty("contentModifier"))) { return true } - else if ((!duplicated_height) && (value?.hasOwnProperty("height"))) { + else if ((!duplicated_label) && (value?.hasOwnProperty("label"))) { return true } - else if ((!duplicated_dragBar) && (value?.hasOwnProperty("dragBar"))) { + else if ((!duplicated_pressed) && (value?.hasOwnProperty("pressed"))) { return true } - else if ((!duplicated_maskColor) && (value?.hasOwnProperty("maskColor"))) { + else if ((!duplicated_triggerClick) && (value?.hasOwnProperty("triggerClick"))) { return true } - else if ((!duplicated_detents) && (value?.hasOwnProperty("detents"))) { + else { + throw new Error("Can not discriminate value typeof ButtonConfiguration") + } + } + static isLabelStyle(value: object|string|number|undefined|null, duplicated_overflow: boolean, duplicated_maxLines: boolean, duplicated_minFontSize: boolean, duplicated_maxFontSize: boolean, duplicated_heightAdaptivePolicy: boolean, duplicated_font: boolean): boolean { + if ((!duplicated_overflow) && (value?.hasOwnProperty("overflow"))) { return true } - else if ((!duplicated_blurStyle) && (value?.hasOwnProperty("blurStyle"))) { + else if ((!duplicated_maxLines) && (value?.hasOwnProperty("maxLines"))) { return true } - else if ((!duplicated_showClose) && (value?.hasOwnProperty("showClose"))) { + else if ((!duplicated_minFontSize) && (value?.hasOwnProperty("minFontSize"))) { return true } - else if ((!duplicated_preferType) && (value?.hasOwnProperty("preferType"))) { + else if ((!duplicated_maxFontSize) && (value?.hasOwnProperty("maxFontSize"))) { return true } - else if ((!duplicated_title) && (value?.hasOwnProperty("title"))) { + else if ((!duplicated_heightAdaptivePolicy) && (value?.hasOwnProperty("heightAdaptivePolicy"))) { return true } - else if ((!duplicated_shouldDismiss) && (value?.hasOwnProperty("shouldDismiss"))) { + else if ((!duplicated_font) && (value?.hasOwnProperty("font"))) { return true } - else if ((!duplicated_onWillDismiss) && (value?.hasOwnProperty("onWillDismiss"))) { + else { + throw new Error("Can not discriminate value typeof LabelStyle") + } + } + static isButtonOptions(value: object|string|number|undefined|null, duplicated_type: boolean, duplicated_stateEffect: boolean, duplicated_buttonStyle: boolean, duplicated_controlSize: boolean, duplicated_role: boolean): boolean { + if ((!duplicated_type) && (value?.hasOwnProperty("type"))) { return true } - else if ((!duplicated_onWillSpringBackWhenDismiss) && (value?.hasOwnProperty("onWillSpringBackWhenDismiss"))) { + else if ((!duplicated_stateEffect) && (value?.hasOwnProperty("stateEffect"))) { return true } - else if ((!duplicated_enableOutsideInteractive) && (value?.hasOwnProperty("enableOutsideInteractive"))) { + else if ((!duplicated_buttonStyle) && (value?.hasOwnProperty("buttonStyle"))) { return true } - else if ((!duplicated_width) && (value?.hasOwnProperty("width"))) { + else if ((!duplicated_controlSize) && (value?.hasOwnProperty("controlSize"))) { return true } - else if ((!duplicated_borderWidth) && (value?.hasOwnProperty("borderWidth"))) { + else if ((!duplicated_role) && (value?.hasOwnProperty("role"))) { return true } - else if ((!duplicated_borderColor) && (value?.hasOwnProperty("borderColor"))) { + else { + throw new Error("Can not discriminate value typeof ButtonOptions") + } + } + static isCurrentDayStyle(value: object|string|number|undefined|null, duplicated_dayColor: boolean, duplicated_lunarColor: boolean, duplicated_markLunarColor: boolean, duplicated_dayFontSize: boolean, duplicated_lunarDayFontSize: boolean, duplicated_dayHeight: boolean, duplicated_dayWidth: boolean, duplicated_gregorianCalendarHeight: boolean, duplicated_dayYAxisOffset: boolean, duplicated_lunarDayYAxisOffset: boolean, duplicated_underscoreXAxisOffset: boolean, duplicated_underscoreYAxisOffset: boolean, duplicated_scheduleMarkerXAxisOffset: boolean, duplicated_scheduleMarkerYAxisOffset: boolean, duplicated_colSpace: boolean, duplicated_dailyFiveRowSpace: boolean, duplicated_dailySixRowSpace: boolean, duplicated_lunarHeight: boolean, duplicated_underscoreWidth: boolean, duplicated_underscoreLength: boolean, duplicated_scheduleMarkerRadius: boolean, duplicated_boundaryRowOffset: boolean, duplicated_boundaryColOffset: boolean): boolean { + if ((!duplicated_dayColor) && (value?.hasOwnProperty("dayColor"))) { return true } - else if ((!duplicated_borderStyle) && (value?.hasOwnProperty("borderStyle"))) { + else if ((!duplicated_lunarColor) && (value?.hasOwnProperty("lunarColor"))) { return true } - else if ((!duplicated_shadow) && (value?.hasOwnProperty("shadow"))) { + else if ((!duplicated_markLunarColor) && (value?.hasOwnProperty("markLunarColor"))) { return true } - else if ((!duplicated_onHeightDidChange) && (value?.hasOwnProperty("onHeightDidChange"))) { + else if ((!duplicated_dayFontSize) && (value?.hasOwnProperty("dayFontSize"))) { return true } - else if ((!duplicated_mode) && (value?.hasOwnProperty("mode"))) { + else if ((!duplicated_lunarDayFontSize) && (value?.hasOwnProperty("lunarDayFontSize"))) { return true } - else if ((!duplicated_scrollSizeMode) && (value?.hasOwnProperty("scrollSizeMode"))) { + else if ((!duplicated_dayHeight) && (value?.hasOwnProperty("dayHeight"))) { return true } - else if ((!duplicated_onDetentsDidChange) && (value?.hasOwnProperty("onDetentsDidChange"))) { + else if ((!duplicated_dayWidth) && (value?.hasOwnProperty("dayWidth"))) { return true } - else if ((!duplicated_onWidthDidChange) && (value?.hasOwnProperty("onWidthDidChange"))) { + else if ((!duplicated_gregorianCalendarHeight) && (value?.hasOwnProperty("gregorianCalendarHeight"))) { return true } - else if ((!duplicated_onTypeDidChange) && (value?.hasOwnProperty("onTypeDidChange"))) { + else if ((!duplicated_dayYAxisOffset) && (value?.hasOwnProperty("dayYAxisOffset"))) { return true } - else if ((!duplicated_expandSafeAreaInEmbeddedMode) && (value?.hasOwnProperty("expandSafeAreaInEmbeddedMode"))) { + else if ((!duplicated_lunarDayYAxisOffset) && (value?.hasOwnProperty("lunarDayYAxisOffset"))) { return true } - else if ((!duplicated_uiContext) && (value?.hasOwnProperty("uiContext"))) { + else if ((!duplicated_underscoreXAxisOffset) && (value?.hasOwnProperty("underscoreXAxisOffset"))) { return true } - else if ((!duplicated_keyboardAvoidMode) && (value?.hasOwnProperty("keyboardAvoidMode"))) { + else if ((!duplicated_underscoreYAxisOffset) && (value?.hasOwnProperty("underscoreYAxisOffset"))) { return true } - else { - throw new Error("Can not discriminate value typeof SheetOptions") + else if ((!duplicated_scheduleMarkerXAxisOffset) && (value?.hasOwnProperty("scheduleMarkerXAxisOffset"))) { + return true } - } - static isBindOptions(value: object|string|number|undefined|null, duplicated_backgroundColor: boolean, duplicated_onAppear: boolean, duplicated_onDisappear: boolean, duplicated_onWillAppear: boolean, duplicated_onWillDisappear: boolean): boolean { - if ((!duplicated_backgroundColor) && (value?.hasOwnProperty("backgroundColor"))) { + else if ((!duplicated_scheduleMarkerYAxisOffset) && (value?.hasOwnProperty("scheduleMarkerYAxisOffset"))) { return true } - else if ((!duplicated_onAppear) && (value?.hasOwnProperty("onAppear"))) { + else if ((!duplicated_colSpace) && (value?.hasOwnProperty("colSpace"))) { return true } - else if ((!duplicated_onDisappear) && (value?.hasOwnProperty("onDisappear"))) { + else if ((!duplicated_dailyFiveRowSpace) && (value?.hasOwnProperty("dailyFiveRowSpace"))) { return true } - else if ((!duplicated_onWillAppear) && (value?.hasOwnProperty("onWillAppear"))) { + else if ((!duplicated_dailySixRowSpace) && (value?.hasOwnProperty("dailySixRowSpace"))) { return true } - else if ((!duplicated_onWillDisappear) && (value?.hasOwnProperty("onWillDisappear"))) { + else if ((!duplicated_lunarHeight) && (value?.hasOwnProperty("lunarHeight"))) { return true } - else { - throw new Error("Can not discriminate value typeof BindOptions") + else if ((!duplicated_underscoreWidth) && (value?.hasOwnProperty("underscoreWidth"))) { + return true } - } - static isSheetTitleOptions(value: object|string|number|undefined|null, duplicated_title: boolean, duplicated_subtitle: boolean): boolean { - if ((!duplicated_title) && (value?.hasOwnProperty("title"))) { + else if ((!duplicated_underscoreLength) && (value?.hasOwnProperty("underscoreLength"))) { return true } - else if ((!duplicated_subtitle) && (value?.hasOwnProperty("subtitle"))) { + else if ((!duplicated_scheduleMarkerRadius) && (value?.hasOwnProperty("scheduleMarkerRadius"))) { return true } - else { - throw new Error("Can not discriminate value typeof SheetTitleOptions") + else if ((!duplicated_boundaryRowOffset) && (value?.hasOwnProperty("boundaryRowOffset"))) { + return true } - } - static isSheetDismiss(value: object|string|number|undefined|null, duplicated_dismiss: boolean): boolean { - if ((!duplicated_dismiss) && (value?.hasOwnProperty("dismiss"))) { + else if ((!duplicated_boundaryColOffset) && (value?.hasOwnProperty("boundaryColOffset"))) { return true } else { - throw new Error("Can not discriminate value typeof SheetDismiss") + throw new Error("Can not discriminate value typeof CurrentDayStyle") } } - static isDismissSheetAction(value: object|string|number|undefined|null, duplicated_dismiss: boolean, duplicated_reason: boolean): boolean { - if ((!duplicated_dismiss) && (value?.hasOwnProperty("dismiss"))) { + static isNonCurrentDayStyle(value: object|string|number|undefined|null, duplicated_nonCurrentMonthDayColor: boolean, duplicated_nonCurrentMonthLunarColor: boolean, duplicated_nonCurrentMonthWorkDayMarkColor: boolean, duplicated_nonCurrentMonthOffDayMarkColor: boolean): boolean { + if ((!duplicated_nonCurrentMonthDayColor) && (value?.hasOwnProperty("nonCurrentMonthDayColor"))) { return true } - else if ((!duplicated_reason) && (value?.hasOwnProperty("reason"))) { + else if ((!duplicated_nonCurrentMonthLunarColor) && (value?.hasOwnProperty("nonCurrentMonthLunarColor"))) { return true } - else { - throw new Error("Can not discriminate value typeof DismissSheetAction") + else if ((!duplicated_nonCurrentMonthWorkDayMarkColor) && (value?.hasOwnProperty("nonCurrentMonthWorkDayMarkColor"))) { + return true } - } - static isSpringBackAction(value: object|string|number|undefined|null, duplicated_springBack: boolean): boolean { - if ((!duplicated_springBack) && (value?.hasOwnProperty("springBack"))) { + else if ((!duplicated_nonCurrentMonthOffDayMarkColor) && (value?.hasOwnProperty("nonCurrentMonthOffDayMarkColor"))) { return true } else { - throw new Error("Can not discriminate value typeof SpringBackAction") + throw new Error("Can not discriminate value typeof NonCurrentDayStyle") } } - static isEdgeWidths(value: object|string|number|undefined|null, duplicated_top: boolean, duplicated_right: boolean, duplicated_bottom: boolean, duplicated_left: boolean): boolean { - if ((!duplicated_top) && (value?.hasOwnProperty("top"))) { + static isTodayStyle(value: object|string|number|undefined|null, duplicated_focusedDayColor: boolean, duplicated_focusedLunarColor: boolean, duplicated_focusedAreaBackgroundColor: boolean, duplicated_focusedAreaRadius: boolean): boolean { + if ((!duplicated_focusedDayColor) && (value?.hasOwnProperty("focusedDayColor"))) { return true } - else if ((!duplicated_right) && (value?.hasOwnProperty("right"))) { + else if ((!duplicated_focusedLunarColor) && (value?.hasOwnProperty("focusedLunarColor"))) { return true } - else if ((!duplicated_bottom) && (value?.hasOwnProperty("bottom"))) { + else if ((!duplicated_focusedAreaBackgroundColor) && (value?.hasOwnProperty("focusedAreaBackgroundColor"))) { return true } - else if ((!duplicated_left) && (value?.hasOwnProperty("left"))) { + else if ((!duplicated_focusedAreaRadius) && (value?.hasOwnProperty("focusedAreaRadius"))) { return true } else { - throw new Error("Can not discriminate value typeof EdgeWidths") + throw new Error("Can not discriminate value typeof TodayStyle") } } - static isLocalizedEdgeWidths(value: object|string|number|undefined|null, duplicated_top: boolean, duplicated_end: boolean, duplicated_bottom: boolean, duplicated_start: boolean): boolean { - if ((!duplicated_top) && (value?.hasOwnProperty("top"))) { + static isWeekStyle(value: object|string|number|undefined|null, duplicated_weekColor: boolean, duplicated_weekendDayColor: boolean, duplicated_weekendLunarColor: boolean, duplicated_weekFontSize: boolean, duplicated_weekHeight: boolean, duplicated_weekWidth: boolean, duplicated_weekAndDayRowSpace: boolean): boolean { + if ((!duplicated_weekColor) && (value?.hasOwnProperty("weekColor"))) { return true } - else if ((!duplicated_end) && (value?.hasOwnProperty("end"))) { + else if ((!duplicated_weekendDayColor) && (value?.hasOwnProperty("weekendDayColor"))) { return true } - else if ((!duplicated_bottom) && (value?.hasOwnProperty("bottom"))) { + else if ((!duplicated_weekendLunarColor) && (value?.hasOwnProperty("weekendLunarColor"))) { return true } - else if ((!duplicated_start) && (value?.hasOwnProperty("start"))) { + else if ((!duplicated_weekFontSize) && (value?.hasOwnProperty("weekFontSize"))) { + return true + } + else if ((!duplicated_weekHeight) && (value?.hasOwnProperty("weekHeight"))) { + return true + } + else if ((!duplicated_weekWidth) && (value?.hasOwnProperty("weekWidth"))) { + return true + } + else if ((!duplicated_weekAndDayRowSpace) && (value?.hasOwnProperty("weekAndDayRowSpace"))) { return true } else { - throw new Error("Can not discriminate value typeof LocalizedEdgeWidths") + throw new Error("Can not discriminate value typeof WeekStyle") } } - static isEdgeColors(value: object|string|number|undefined|null, duplicated_top: boolean, duplicated_right: boolean, duplicated_bottom: boolean, duplicated_left: boolean): boolean { - if ((!duplicated_top) && (value?.hasOwnProperty("top"))) { + static isWorkStateStyle(value: object|string|number|undefined|null, duplicated_workDayMarkColor: boolean, duplicated_offDayMarkColor: boolean, duplicated_workDayMarkSize: boolean, duplicated_offDayMarkSize: boolean, duplicated_workStateWidth: boolean, duplicated_workStateHorizontalMovingDistance: boolean, duplicated_workStateVerticalMovingDistance: boolean): boolean { + if ((!duplicated_workDayMarkColor) && (value?.hasOwnProperty("workDayMarkColor"))) { return true } - else if ((!duplicated_right) && (value?.hasOwnProperty("right"))) { + else if ((!duplicated_offDayMarkColor) && (value?.hasOwnProperty("offDayMarkColor"))) { return true } - else if ((!duplicated_bottom) && (value?.hasOwnProperty("bottom"))) { + else if ((!duplicated_workDayMarkSize) && (value?.hasOwnProperty("workDayMarkSize"))) { return true } - else if ((!duplicated_left) && (value?.hasOwnProperty("left"))) { + else if ((!duplicated_offDayMarkSize) && (value?.hasOwnProperty("offDayMarkSize"))) { return true } - else { - throw new Error("Can not discriminate value typeof EdgeColors") + else if ((!duplicated_workStateWidth) && (value?.hasOwnProperty("workStateWidth"))) { + return true } - } - static isLocalizedEdgeColors(value: object|string|number|undefined|null, duplicated_top: boolean, duplicated_end: boolean, duplicated_bottom: boolean, duplicated_start: boolean): boolean { - if ((!duplicated_top) && (value?.hasOwnProperty("top"))) { + else if ((!duplicated_workStateHorizontalMovingDistance) && (value?.hasOwnProperty("workStateHorizontalMovingDistance"))) { return true } - else if ((!duplicated_end) && (value?.hasOwnProperty("end"))) { + else if ((!duplicated_workStateVerticalMovingDistance) && (value?.hasOwnProperty("workStateVerticalMovingDistance"))) { return true } - else if ((!duplicated_bottom) && (value?.hasOwnProperty("bottom"))) { + else { + throw new Error("Can not discriminate value typeof WorkStateStyle") + } + } + static isCalendarSelectedDate(value: object|string|number|undefined|null, duplicated_year: boolean, duplicated_month: boolean, duplicated_day: boolean): boolean { + if ((!duplicated_year) && (value?.hasOwnProperty("year"))) { return true } - else if ((!duplicated_start) && (value?.hasOwnProperty("start"))) { + else if ((!duplicated_month) && (value?.hasOwnProperty("month"))) { + return true + } + else if ((!duplicated_day) && (value?.hasOwnProperty("day"))) { return true } else { - throw new Error("Can not discriminate value typeof LocalizedEdgeColors") + throw new Error("Can not discriminate value typeof CalendarSelectedDate") } } - static isEdgeStyles(value: object|string|number|undefined|null, duplicated_top: boolean, duplicated_right: boolean, duplicated_bottom: boolean, duplicated_left: boolean): boolean { - if ((!duplicated_top) && (value?.hasOwnProperty("top"))) { + static isCalendarRequestedData(value: object|string|number|undefined|null, duplicated_year: boolean, duplicated_month: boolean, duplicated_currentYear: boolean, duplicated_currentMonth: boolean, duplicated_monthState: boolean): boolean { + if ((!duplicated_year) && (value?.hasOwnProperty("year"))) { return true } - else if ((!duplicated_right) && (value?.hasOwnProperty("right"))) { + else if ((!duplicated_month) && (value?.hasOwnProperty("month"))) { return true } - else if ((!duplicated_bottom) && (value?.hasOwnProperty("bottom"))) { + else if ((!duplicated_currentYear) && (value?.hasOwnProperty("currentYear"))) { return true } - else if ((!duplicated_left) && (value?.hasOwnProperty("left"))) { + else if ((!duplicated_currentMonth) && (value?.hasOwnProperty("currentMonth"))) { + return true + } + else if ((!duplicated_monthState) && (value?.hasOwnProperty("monthState"))) { return true } else { - throw new Error("Can not discriminate value typeof EdgeStyles") + throw new Error("Can not discriminate value typeof CalendarRequestedData") } } - static isShadowOptions(value: object|string|number|undefined|null, duplicated_radius: boolean, duplicated_type: boolean, duplicated_color: boolean, duplicated_offsetX: boolean, duplicated_offsetY: boolean, duplicated_fill: boolean): boolean { - if ((!duplicated_radius) && (value?.hasOwnProperty("radius"))) { + static isMonthData(value: object|string|number|undefined|null, duplicated_year: boolean, duplicated_month: boolean, duplicated_data: boolean): boolean { + if ((!duplicated_year) && (value?.hasOwnProperty("year"))) { return true } - else if ((!duplicated_type) && (value?.hasOwnProperty("type"))) { + else if ((!duplicated_month) && (value?.hasOwnProperty("month"))) { return true } - else if ((!duplicated_color) && (value?.hasOwnProperty("color"))) { + else if ((!duplicated_data) && (value?.hasOwnProperty("data"))) { return true } - else if ((!duplicated_offsetX) && (value?.hasOwnProperty("offsetX"))) { + else { + throw new Error("Can not discriminate value typeof MonthData") + } + } + static isCalendarDay(value: object|string|number|undefined|null, duplicated_index: boolean, duplicated_lunarMonth: boolean, duplicated_lunarDay: boolean, duplicated_dayMark: boolean, duplicated_dayMarkValue: boolean, duplicated_year: boolean, duplicated_month: boolean, duplicated_day: boolean, duplicated_isFirstOfLunar: boolean, duplicated_hasSchedule: boolean, duplicated_markLunarDay: boolean): boolean { + if ((!duplicated_index) && (value?.hasOwnProperty("index"))) { return true } - else if ((!duplicated_offsetY) && (value?.hasOwnProperty("offsetY"))) { + else if ((!duplicated_lunarMonth) && (value?.hasOwnProperty("lunarMonth"))) { return true } - else if ((!duplicated_fill) && (value?.hasOwnProperty("fill"))) { + else if ((!duplicated_lunarDay) && (value?.hasOwnProperty("lunarDay"))) { return true } - else { - throw new Error("Can not discriminate value typeof ShadowOptions") + else if ((!duplicated_dayMark) && (value?.hasOwnProperty("dayMark"))) { + return true } - } - static isBackgroundBlurStyleOptions(value: object|string|number|undefined|null, duplicated_colorMode: boolean, duplicated_adaptiveColor: boolean, duplicated_scale: boolean, duplicated_blurOptions: boolean, duplicated_policy: boolean, duplicated_inactiveColor: boolean): boolean { - if ((!duplicated_colorMode) && (value?.hasOwnProperty("colorMode"))) { + else if ((!duplicated_dayMarkValue) && (value?.hasOwnProperty("dayMarkValue"))) { return true } - else if ((!duplicated_adaptiveColor) && (value?.hasOwnProperty("adaptiveColor"))) { + else if ((!duplicated_year) && (value?.hasOwnProperty("year"))) { return true } - else if ((!duplicated_scale) && (value?.hasOwnProperty("scale"))) { + else if ((!duplicated_month) && (value?.hasOwnProperty("month"))) { return true } - else if ((!duplicated_blurOptions) && (value?.hasOwnProperty("blurOptions"))) { + else if ((!duplicated_day) && (value?.hasOwnProperty("day"))) { return true } - else if ((!duplicated_policy) && (value?.hasOwnProperty("policy"))) { + else if ((!duplicated_isFirstOfLunar) && (value?.hasOwnProperty("isFirstOfLunar"))) { return true } - else if ((!duplicated_inactiveColor) && (value?.hasOwnProperty("inactiveColor"))) { + else if ((!duplicated_hasSchedule) && (value?.hasOwnProperty("hasSchedule"))) { + return true + } + else if ((!duplicated_markLunarDay) && (value?.hasOwnProperty("markLunarDay"))) { return true } else { - throw new Error("Can not discriminate value typeof BackgroundBlurStyleOptions") + throw new Error("Can not discriminate value typeof CalendarDay") } } - static isBlurStyleOptions(value: object|string|number|undefined|null, duplicated_colorMode: boolean, duplicated_adaptiveColor: boolean, duplicated_scale: boolean, duplicated_blurOptions: boolean): boolean { - if ((!duplicated_colorMode) && (value?.hasOwnProperty("colorMode"))) { + static isCalendarOptions(value: object|string|number|undefined|null, duplicated_hintRadius: boolean, duplicated_selected: boolean): boolean { + if ((!duplicated_hintRadius) && (value?.hasOwnProperty("hintRadius"))) { return true } - else if ((!duplicated_adaptiveColor) && (value?.hasOwnProperty("adaptiveColor"))) { + else if ((!duplicated_selected) && (value?.hasOwnProperty("selected"))) { return true } - else if ((!duplicated_scale) && (value?.hasOwnProperty("scale"))) { - return true + else { + throw new Error("Can not discriminate value typeof CalendarOptions") } - else if ((!duplicated_blurOptions) && (value?.hasOwnProperty("blurOptions"))) { + } + static isTextMetrics(value: object|string|number|undefined|null, duplicated_actualBoundingBoxAscent: boolean, duplicated_actualBoundingBoxDescent: boolean, duplicated_actualBoundingBoxLeft: boolean, duplicated_actualBoundingBoxRight: boolean, duplicated_alphabeticBaseline: boolean, duplicated_emHeightAscent: boolean, duplicated_emHeightDescent: boolean, duplicated_fontBoundingBoxAscent: boolean, duplicated_fontBoundingBoxDescent: boolean, duplicated_hangingBaseline: boolean, duplicated_ideographicBaseline: boolean, duplicated_width: boolean, duplicated_height: boolean): boolean { + if ((!duplicated_actualBoundingBoxAscent) && (value?.hasOwnProperty("actualBoundingBoxAscent"))) { return true } - else { - throw new Error("Can not discriminate value typeof BlurStyleOptions") + else if ((!duplicated_actualBoundingBoxDescent) && (value?.hasOwnProperty("actualBoundingBoxDescent"))) { + return true } - } - static isDragPreviewOptions(value: object|string|number|undefined|null, duplicated_mode: boolean, duplicated_modifier: boolean, duplicated_numberBadge: boolean): boolean { - if ((!duplicated_mode) && (value?.hasOwnProperty("mode"))) { + else if ((!duplicated_actualBoundingBoxLeft) && (value?.hasOwnProperty("actualBoundingBoxLeft"))) { return true } - else if ((!duplicated_modifier) && (value?.hasOwnProperty("modifier"))) { + else if ((!duplicated_actualBoundingBoxRight) && (value?.hasOwnProperty("actualBoundingBoxRight"))) { return true } - else if ((!duplicated_numberBadge) && (value?.hasOwnProperty("numberBadge"))) { + else if ((!duplicated_alphabeticBaseline) && (value?.hasOwnProperty("alphabeticBaseline"))) { return true } - else { - throw new Error("Can not discriminate value typeof DragPreviewOptions") + else if ((!duplicated_emHeightAscent) && (value?.hasOwnProperty("emHeightAscent"))) { + return true } - } - static isDragInteractionOptions(value: object|string|number|undefined|null, duplicated_isMultiSelectionEnabled: boolean, duplicated_defaultAnimationBeforeLifting: boolean): boolean { - if ((!duplicated_isMultiSelectionEnabled) && (value?.hasOwnProperty("isMultiSelectionEnabled"))) { + else if ((!duplicated_emHeightDescent) && (value?.hasOwnProperty("emHeightDescent"))) { return true } - else if ((!duplicated_defaultAnimationBeforeLifting) && (value?.hasOwnProperty("defaultAnimationBeforeLifting"))) { + else if ((!duplicated_fontBoundingBoxAscent) && (value?.hasOwnProperty("fontBoundingBoxAscent"))) { return true } - else { - throw new Error("Can not discriminate value typeof DragInteractionOptions") + else if ((!duplicated_fontBoundingBoxDescent) && (value?.hasOwnProperty("fontBoundingBoxDescent"))) { + return true } - } - static isRectResult(value: object|string|number|undefined|null, duplicated_x: boolean, duplicated_y: boolean, duplicated_width: boolean, duplicated_height: boolean): boolean { - if ((!duplicated_x) && (value?.hasOwnProperty("x"))) { + else if ((!duplicated_hangingBaseline) && (value?.hasOwnProperty("hangingBaseline"))) { return true } - else if ((!duplicated_y) && (value?.hasOwnProperty("y"))) { + else if ((!duplicated_ideographicBaseline) && (value?.hasOwnProperty("ideographicBaseline"))) { return true } else if ((!duplicated_width) && (value?.hasOwnProperty("width"))) { @@ -465,819 +626,7009 @@ export class TypeChecker { return true } else { - throw new Error("Can not discriminate value typeof RectResult") + throw new Error("Can not discriminate value typeof TextMetrics") } } - static isClickEvent(value: object|string|number|undefined|null, duplicated_displayX: boolean, duplicated_displayY: boolean): boolean { - if ((!duplicated_displayX) && (value?.hasOwnProperty("displayX"))) { + static isSize(value: object|string|number|undefined|null, duplicated_width: boolean, duplicated_height: boolean): boolean { + if ((!duplicated_width) && (value?.hasOwnProperty("width"))) { return true } - else if ((!duplicated_displayY) && (value?.hasOwnProperty("displayY"))) { + else if ((!duplicated_height) && (value?.hasOwnProperty("height"))) { return true } else { - throw new Error("Can not discriminate value typeof ClickEvent") + throw new Error("Can not discriminate value typeof Size") } } - static isCommonConfiguration(value: object|string|number|undefined|null, duplicated_enabled: boolean, duplicated_contentModifier: boolean): boolean { + static isCheckBoxConfiguration(value: object|string|number|undefined|null, duplicated_enabled: boolean, duplicated_contentModifier: boolean, duplicated_name: boolean, duplicated_selected: boolean, duplicated_triggerChange: boolean): boolean { if ((!duplicated_enabled) && (value?.hasOwnProperty("enabled"))) { return true } else if ((!duplicated_contentModifier) && (value?.hasOwnProperty("contentModifier"))) { return true } - else { - throw new Error("Can not discriminate value typeof CommonConfiguration") + else if ((!duplicated_name) && (value?.hasOwnProperty("name"))) { + return true } - } - static isTerminationInfo(value: object|string|number|undefined|null, duplicated_code: boolean, duplicated_want: boolean): boolean { - if ((!duplicated_code) && (value?.hasOwnProperty("code"))) { + else if ((!duplicated_selected) && (value?.hasOwnProperty("selected"))) { return true } - else if ((!duplicated_want) && (value?.hasOwnProperty("want"))) { + else if ((!duplicated_triggerChange) && (value?.hasOwnProperty("triggerChange"))) { return true } else { - throw new Error("Can not discriminate value typeof TerminationInfo") + throw new Error("Can not discriminate value typeof CheckBoxConfiguration") } } - static isFormCallbackInfo(value: object|string|number|undefined|null, duplicated_id: boolean, duplicated_idString: boolean): boolean { - if ((!duplicated_id) && (value?.hasOwnProperty("id"))) { + static isCheckboxOptions(value: object|string|number|undefined|null, duplicated_name: boolean, duplicated_group: boolean, duplicated_indicatorBuilder: boolean): boolean { + if ((!duplicated_name) && (value?.hasOwnProperty("name"))) { + return true + } + else if ((!duplicated_group) && (value?.hasOwnProperty("group"))) { + return true + } + else if ((!duplicated_indicatorBuilder) && (value?.hasOwnProperty("indicatorBuilder"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof CheckboxOptions") + } + } + static isCheckboxGroupResult(value: object|string|number|undefined|null, duplicated_name: boolean, duplicated_status: boolean): boolean { + if ((!duplicated_name) && (value?.hasOwnProperty("name"))) { + return true + } + else if ((!duplicated_status) && (value?.hasOwnProperty("status"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof CheckboxGroupResult") + } + } + static isCheckboxGroupOptions(value: object|string|number|undefined|null, duplicated_group: boolean): boolean { + if ((!duplicated_group) && (value?.hasOwnProperty("group"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof CheckboxGroupOptions") + } + } + static isCircleOptions(value: object|string|number|undefined|null, duplicated_width: boolean, duplicated_height: boolean): boolean { + if ((!duplicated_width) && (value?.hasOwnProperty("width"))) { + return true + } + else if ((!duplicated_height) && (value?.hasOwnProperty("height"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof CircleOptions") + } + } + static isColumnOptions(value: object|string|number|undefined|null, duplicated_space: boolean): boolean { + if ((!duplicated_space) && (value?.hasOwnProperty("space"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof ColumnOptions") + } + } + static isColumnSplitDividerStyle(value: object|string|number|undefined|null, duplicated_startMargin: boolean, duplicated_endMargin: boolean): boolean { + if ((!duplicated_startMargin) && (value?.hasOwnProperty("startMargin"))) { + return true + } + else if ((!duplicated_endMargin) && (value?.hasOwnProperty("endMargin"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof ColumnSplitDividerStyle") + } + } + static isRectangle(value: object|string|number|undefined|null, duplicated_x: boolean, duplicated_y: boolean, duplicated_width: boolean, duplicated_height: boolean): boolean { + if ((!duplicated_x) && (value?.hasOwnProperty("x"))) { + return true + } + else if ((!duplicated_y) && (value?.hasOwnProperty("y"))) { + return true + } + else if ((!duplicated_width) && (value?.hasOwnProperty("width"))) { + return true + } + else if ((!duplicated_height) && (value?.hasOwnProperty("height"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof Rectangle") + } + } + static isRectResult(value: object|string|number|undefined|null, duplicated_x: boolean, duplicated_y: boolean, duplicated_width: boolean, duplicated_height: boolean): boolean { + if ((!duplicated_x) && (value?.hasOwnProperty("x"))) { + return true + } + else if ((!duplicated_y) && (value?.hasOwnProperty("y"))) { + return true + } + else if ((!duplicated_width) && (value?.hasOwnProperty("width"))) { + return true + } + else if ((!duplicated_height) && (value?.hasOwnProperty("height"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof RectResult") + } + } + static isPixelRoundPolicy(value: object|string|number|undefined|null, duplicated_start: boolean, duplicated_top: boolean, duplicated_end: boolean, duplicated_bottom: boolean): boolean { + if ((!duplicated_start) && (value?.hasOwnProperty("start"))) { + return true + } + else if ((!duplicated_top) && (value?.hasOwnProperty("top"))) { + return true + } + else if ((!duplicated_end) && (value?.hasOwnProperty("end"))) { + return true + } + else if ((!duplicated_bottom) && (value?.hasOwnProperty("bottom"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof PixelRoundPolicy") + } + } + static isBackgroundBlurStyleOptions(value: object|string|number|undefined|null, duplicated_colorMode: boolean, duplicated_adaptiveColor: boolean, duplicated_scale: boolean, duplicated_blurOptions: boolean, duplicated_policy: boolean, duplicated_inactiveColor: boolean, duplicated_type: boolean): boolean { + if ((!duplicated_colorMode) && (value?.hasOwnProperty("colorMode"))) { + return true + } + else if ((!duplicated_adaptiveColor) && (value?.hasOwnProperty("adaptiveColor"))) { + return true + } + else if ((!duplicated_scale) && (value?.hasOwnProperty("scale"))) { + return true + } + else if ((!duplicated_blurOptions) && (value?.hasOwnProperty("blurOptions"))) { + return true + } + else if ((!duplicated_policy) && (value?.hasOwnProperty("policy"))) { + return true + } + else if ((!duplicated_inactiveColor) && (value?.hasOwnProperty("inactiveColor"))) { + return true + } + else if ((!duplicated_type) && (value?.hasOwnProperty("type"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof BackgroundBlurStyleOptions") + } + } + static isBlurStyleOptions(value: object|string|number|undefined|null, duplicated_colorMode: boolean, duplicated_adaptiveColor: boolean, duplicated_scale: boolean, duplicated_blurOptions: boolean): boolean { + if ((!duplicated_colorMode) && (value?.hasOwnProperty("colorMode"))) { + return true + } + else if ((!duplicated_adaptiveColor) && (value?.hasOwnProperty("adaptiveColor"))) { + return true + } + else if ((!duplicated_scale) && (value?.hasOwnProperty("scale"))) { + return true + } + else if ((!duplicated_blurOptions) && (value?.hasOwnProperty("blurOptions"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof BlurStyleOptions") + } + } + static isBlurOptions(value: object|string|number|undefined|null, duplicated_grayscale: boolean): boolean { + if ((!duplicated_grayscale) && (value?.hasOwnProperty("grayscale"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof BlurOptions") + } + } + static isBackgroundEffectOptions(value: object|string|number|undefined|null, duplicated_radius: boolean, duplicated_saturation: boolean, duplicated_brightness: boolean, duplicated_color: boolean, duplicated_adaptiveColor: boolean, duplicated_blurOptions: boolean, duplicated_policy: boolean, duplicated_inactiveColor: boolean, duplicated_type: boolean): boolean { + if ((!duplicated_radius) && (value?.hasOwnProperty("radius"))) { + return true + } + else if ((!duplicated_saturation) && (value?.hasOwnProperty("saturation"))) { + return true + } + else if ((!duplicated_brightness) && (value?.hasOwnProperty("brightness"))) { + return true + } + else if ((!duplicated_color) && (value?.hasOwnProperty("color"))) { + return true + } + else if ((!duplicated_adaptiveColor) && (value?.hasOwnProperty("adaptiveColor"))) { + return true + } + else if ((!duplicated_blurOptions) && (value?.hasOwnProperty("blurOptions"))) { + return true + } + else if ((!duplicated_policy) && (value?.hasOwnProperty("policy"))) { + return true + } + else if ((!duplicated_inactiveColor) && (value?.hasOwnProperty("inactiveColor"))) { + return true + } + else if ((!duplicated_type) && (value?.hasOwnProperty("type"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof BackgroundEffectOptions") + } + } + static isForegroundEffectOptions(value: object|string|number|undefined|null, duplicated_radius: boolean): boolean { + if ((!duplicated_radius) && (value?.hasOwnProperty("radius"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof ForegroundEffectOptions") + } + } + static isForegroundBlurStyleOptions(value: object|string|number|undefined|null, duplicated_colorMode: boolean, duplicated_adaptiveColor: boolean, duplicated_scale: boolean, duplicated_blurOptions: boolean): boolean { + if ((!duplicated_colorMode) && (value?.hasOwnProperty("colorMode"))) { + return true + } + else if ((!duplicated_adaptiveColor) && (value?.hasOwnProperty("adaptiveColor"))) { + return true + } + else if ((!duplicated_scale) && (value?.hasOwnProperty("scale"))) { + return true + } + else if ((!duplicated_blurOptions) && (value?.hasOwnProperty("blurOptions"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof ForegroundBlurStyleOptions") + } + } + static isBorderImageOption(value: object|string|number|undefined|null, duplicated_slice: boolean, duplicated_repeat: boolean, duplicated_source: boolean, duplicated_width: boolean, duplicated_outset: boolean, duplicated_fill: boolean): boolean { + if ((!duplicated_slice) && (value?.hasOwnProperty("slice"))) { + return true + } + else if ((!duplicated_repeat) && (value?.hasOwnProperty("repeat"))) { + return true + } + else if ((!duplicated_source) && (value?.hasOwnProperty("source"))) { + return true + } + else if ((!duplicated_width) && (value?.hasOwnProperty("width"))) { + return true + } + else if ((!duplicated_outset) && (value?.hasOwnProperty("outset"))) { + return true + } + else if ((!duplicated_fill) && (value?.hasOwnProperty("fill"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof BorderImageOption") + } + } + static isClickEvent(value: object|string|number|undefined|null, duplicated_target: boolean, duplicated_timestamp: boolean, duplicated_source: boolean, duplicated_axisHorizontal: boolean, duplicated_axisVertical: boolean, duplicated_pressure: boolean, duplicated_tiltX: boolean, duplicated_tiltY: boolean, duplicated_sourceTool: boolean, duplicated_deviceId: boolean, duplicated_displayX: boolean, duplicated_displayY: boolean, duplicated_windowX: boolean, duplicated_windowY: boolean, duplicated_screenX: boolean, duplicated_screenY: boolean, duplicated_x: boolean, duplicated_y: boolean, duplicated_preventDefault: boolean): boolean { + if ((!duplicated_target) && (value?.hasOwnProperty("target"))) { + return true + } + else if ((!duplicated_timestamp) && (value?.hasOwnProperty("timestamp"))) { + return true + } + else if ((!duplicated_source) && (value?.hasOwnProperty("source"))) { + return true + } + else if ((!duplicated_pressure) && (value?.hasOwnProperty("pressure"))) { + return true + } + else if ((!duplicated_tiltX) && (value?.hasOwnProperty("tiltX"))) { + return true + } + else if ((!duplicated_tiltY) && (value?.hasOwnProperty("tiltY"))) { + return true + } + else if ((!duplicated_sourceTool) && (value?.hasOwnProperty("sourceTool"))) { + return true + } + else if ((!duplicated_displayX) && (value?.hasOwnProperty("displayX"))) { + return true + } + else if ((!duplicated_displayY) && (value?.hasOwnProperty("displayY"))) { + return true + } + else if ((!duplicated_windowX) && (value?.hasOwnProperty("windowX"))) { + return true + } + else if ((!duplicated_windowY) && (value?.hasOwnProperty("windowY"))) { + return true + } + else if ((!duplicated_screenX) && (value?.hasOwnProperty("screenX"))) { + return true + } + else if ((!duplicated_screenY) && (value?.hasOwnProperty("screenY"))) { + return true + } + else if ((!duplicated_x) && (value?.hasOwnProperty("x"))) { + return true + } + else if ((!duplicated_y) && (value?.hasOwnProperty("y"))) { + return true + } + else if ((!duplicated_preventDefault) && (value?.hasOwnProperty("preventDefault"))) { + return true + } + else if ((!duplicated_axisHorizontal) && (value?.hasOwnProperty("axisHorizontal"))) { + return true + } + else if ((!duplicated_axisVertical) && (value?.hasOwnProperty("axisVertical"))) { + return true + } + else if ((!duplicated_deviceId) && (value?.hasOwnProperty("deviceId"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof ClickEvent") + } + } + static isBaseEvent(value: object|string|number|undefined|null, duplicated_target: boolean, duplicated_timestamp: boolean, duplicated_source: boolean, duplicated_axisHorizontal: boolean, duplicated_axisVertical: boolean, duplicated_pressure: boolean, duplicated_tiltX: boolean, duplicated_tiltY: boolean, duplicated_sourceTool: boolean, duplicated_deviceId: boolean): boolean { + if ((!duplicated_target) && (value?.hasOwnProperty("target"))) { + return true + } + else if ((!duplicated_timestamp) && (value?.hasOwnProperty("timestamp"))) { + return true + } + else if ((!duplicated_source) && (value?.hasOwnProperty("source"))) { + return true + } + else if ((!duplicated_pressure) && (value?.hasOwnProperty("pressure"))) { + return true + } + else if ((!duplicated_tiltX) && (value?.hasOwnProperty("tiltX"))) { + return true + } + else if ((!duplicated_tiltY) && (value?.hasOwnProperty("tiltY"))) { + return true + } + else if ((!duplicated_sourceTool) && (value?.hasOwnProperty("sourceTool"))) { + return true + } + else if ((!duplicated_axisHorizontal) && (value?.hasOwnProperty("axisHorizontal"))) { + return true + } + else if ((!duplicated_axisVertical) && (value?.hasOwnProperty("axisVertical"))) { + return true + } + else if ((!duplicated_deviceId) && (value?.hasOwnProperty("deviceId"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof BaseEvent") + } + } + static isEventTarget(value: object|string|number|undefined|null, duplicated_area: boolean): boolean { + if ((!duplicated_area) && (value?.hasOwnProperty("area"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof EventTarget") + } + } + static isHoverEvent(value: object|string|number|undefined|null, duplicated_target: boolean, duplicated_timestamp: boolean, duplicated_source: boolean, duplicated_axisHorizontal: boolean, duplicated_axisVertical: boolean, duplicated_pressure: boolean, duplicated_tiltX: boolean, duplicated_tiltY: boolean, duplicated_sourceTool: boolean, duplicated_deviceId: boolean, duplicated_stopPropagation: boolean): boolean { + if ((!duplicated_target) && (value?.hasOwnProperty("target"))) { + return true + } + else if ((!duplicated_timestamp) && (value?.hasOwnProperty("timestamp"))) { + return true + } + else if ((!duplicated_source) && (value?.hasOwnProperty("source"))) { + return true + } + else if ((!duplicated_pressure) && (value?.hasOwnProperty("pressure"))) { + return true + } + else if ((!duplicated_tiltX) && (value?.hasOwnProperty("tiltX"))) { + return true + } + else if ((!duplicated_tiltY) && (value?.hasOwnProperty("tiltY"))) { + return true + } + else if ((!duplicated_sourceTool) && (value?.hasOwnProperty("sourceTool"))) { + return true + } + else if ((!duplicated_stopPropagation) && (value?.hasOwnProperty("stopPropagation"))) { + return true + } + else if ((!duplicated_axisHorizontal) && (value?.hasOwnProperty("axisHorizontal"))) { + return true + } + else if ((!duplicated_axisVertical) && (value?.hasOwnProperty("axisVertical"))) { + return true + } + else if ((!duplicated_deviceId) && (value?.hasOwnProperty("deviceId"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof HoverEvent") + } + } + static isAccessibilityHoverEvent(value: object|string|number|undefined|null, duplicated_target: boolean, duplicated_timestamp: boolean, duplicated_source: boolean, duplicated_axisHorizontal: boolean, duplicated_axisVertical: boolean, duplicated_pressure: boolean, duplicated_tiltX: boolean, duplicated_tiltY: boolean, duplicated_sourceTool: boolean, duplicated_deviceId: boolean, duplicated_type: boolean, duplicated_x: boolean, duplicated_y: boolean, duplicated_displayX: boolean, duplicated_displayY: boolean, duplicated_windowX: boolean, duplicated_windowY: boolean): boolean { + if ((!duplicated_target) && (value?.hasOwnProperty("target"))) { + return true + } + else if ((!duplicated_timestamp) && (value?.hasOwnProperty("timestamp"))) { + return true + } + else if ((!duplicated_source) && (value?.hasOwnProperty("source"))) { + return true + } + else if ((!duplicated_pressure) && (value?.hasOwnProperty("pressure"))) { + return true + } + else if ((!duplicated_tiltX) && (value?.hasOwnProperty("tiltX"))) { + return true + } + else if ((!duplicated_tiltY) && (value?.hasOwnProperty("tiltY"))) { + return true + } + else if ((!duplicated_sourceTool) && (value?.hasOwnProperty("sourceTool"))) { + return true + } + else if ((!duplicated_type) && (value?.hasOwnProperty("type"))) { + return true + } + else if ((!duplicated_x) && (value?.hasOwnProperty("x"))) { + return true + } + else if ((!duplicated_y) && (value?.hasOwnProperty("y"))) { + return true + } + else if ((!duplicated_displayX) && (value?.hasOwnProperty("displayX"))) { + return true + } + else if ((!duplicated_displayY) && (value?.hasOwnProperty("displayY"))) { + return true + } + else if ((!duplicated_windowX) && (value?.hasOwnProperty("windowX"))) { + return true + } + else if ((!duplicated_windowY) && (value?.hasOwnProperty("windowY"))) { + return true + } + else if ((!duplicated_axisHorizontal) && (value?.hasOwnProperty("axisHorizontal"))) { + return true + } + else if ((!duplicated_axisVertical) && (value?.hasOwnProperty("axisVertical"))) { + return true + } + else if ((!duplicated_deviceId) && (value?.hasOwnProperty("deviceId"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof AccessibilityHoverEvent") + } + } + static isMouseEvent(value: object|string|number|undefined|null, duplicated_target: boolean, duplicated_timestamp: boolean, duplicated_source: boolean, duplicated_axisHorizontal: boolean, duplicated_axisVertical: boolean, duplicated_pressure: boolean, duplicated_tiltX: boolean, duplicated_tiltY: boolean, duplicated_sourceTool: boolean, duplicated_deviceId: boolean, duplicated_button: boolean, duplicated_action: boolean, duplicated_displayX: boolean, duplicated_displayY: boolean, duplicated_windowX: boolean, duplicated_windowY: boolean, duplicated_screenX: boolean, duplicated_screenY: boolean, duplicated_x: boolean, duplicated_y: boolean, duplicated_stopPropagation: boolean): boolean { + if ((!duplicated_target) && (value?.hasOwnProperty("target"))) { + return true + } + else if ((!duplicated_timestamp) && (value?.hasOwnProperty("timestamp"))) { + return true + } + else if ((!duplicated_source) && (value?.hasOwnProperty("source"))) { + return true + } + else if ((!duplicated_pressure) && (value?.hasOwnProperty("pressure"))) { + return true + } + else if ((!duplicated_tiltX) && (value?.hasOwnProperty("tiltX"))) { + return true + } + else if ((!duplicated_tiltY) && (value?.hasOwnProperty("tiltY"))) { + return true + } + else if ((!duplicated_sourceTool) && (value?.hasOwnProperty("sourceTool"))) { + return true + } + else if ((!duplicated_button) && (value?.hasOwnProperty("button"))) { + return true + } + else if ((!duplicated_action) && (value?.hasOwnProperty("action"))) { + return true + } + else if ((!duplicated_displayX) && (value?.hasOwnProperty("displayX"))) { + return true + } + else if ((!duplicated_displayY) && (value?.hasOwnProperty("displayY"))) { + return true + } + else if ((!duplicated_windowX) && (value?.hasOwnProperty("windowX"))) { + return true + } + else if ((!duplicated_windowY) && (value?.hasOwnProperty("windowY"))) { + return true + } + else if ((!duplicated_screenX) && (value?.hasOwnProperty("screenX"))) { + return true + } + else if ((!duplicated_screenY) && (value?.hasOwnProperty("screenY"))) { + return true + } + else if ((!duplicated_x) && (value?.hasOwnProperty("x"))) { + return true + } + else if ((!duplicated_y) && (value?.hasOwnProperty("y"))) { + return true + } + else if ((!duplicated_stopPropagation) && (value?.hasOwnProperty("stopPropagation"))) { + return true + } + else if ((!duplicated_axisHorizontal) && (value?.hasOwnProperty("axisHorizontal"))) { + return true + } + else if ((!duplicated_axisVertical) && (value?.hasOwnProperty("axisVertical"))) { + return true + } + else if ((!duplicated_deviceId) && (value?.hasOwnProperty("deviceId"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof MouseEvent") + } + } + static isTouchEvent(value: object|string|number|undefined|null, duplicated_target: boolean, duplicated_timestamp: boolean, duplicated_source: boolean, duplicated_axisHorizontal: boolean, duplicated_axisVertical: boolean, duplicated_pressure: boolean, duplicated_tiltX: boolean, duplicated_tiltY: boolean, duplicated_sourceTool: boolean, duplicated_deviceId: boolean, duplicated_type: boolean, duplicated_touches: boolean, duplicated_changedTouches: boolean, duplicated_stopPropagation: boolean, duplicated_preventDefault: boolean): boolean { + if ((!duplicated_target) && (value?.hasOwnProperty("target"))) { + return true + } + else if ((!duplicated_timestamp) && (value?.hasOwnProperty("timestamp"))) { + return true + } + else if ((!duplicated_source) && (value?.hasOwnProperty("source"))) { + return true + } + else if ((!duplicated_pressure) && (value?.hasOwnProperty("pressure"))) { + return true + } + else if ((!duplicated_tiltX) && (value?.hasOwnProperty("tiltX"))) { + return true + } + else if ((!duplicated_tiltY) && (value?.hasOwnProperty("tiltY"))) { + return true + } + else if ((!duplicated_sourceTool) && (value?.hasOwnProperty("sourceTool"))) { + return true + } + else if ((!duplicated_type) && (value?.hasOwnProperty("type"))) { + return true + } + else if ((!duplicated_touches) && (value?.hasOwnProperty("touches"))) { + return true + } + else if ((!duplicated_changedTouches) && (value?.hasOwnProperty("changedTouches"))) { + return true + } + else if ((!duplicated_stopPropagation) && (value?.hasOwnProperty("stopPropagation"))) { + return true + } + else if ((!duplicated_preventDefault) && (value?.hasOwnProperty("preventDefault"))) { + return true + } + else if ((!duplicated_axisHorizontal) && (value?.hasOwnProperty("axisHorizontal"))) { + return true + } + else if ((!duplicated_axisVertical) && (value?.hasOwnProperty("axisVertical"))) { + return true + } + else if ((!duplicated_deviceId) && (value?.hasOwnProperty("deviceId"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof TouchEvent") + } + } + static isTouchObject(value: object|string|number|undefined|null, duplicated_type: boolean, duplicated_id: boolean, duplicated_displayX: boolean, duplicated_displayY: boolean, duplicated_windowX: boolean, duplicated_windowY: boolean, duplicated_screenX: boolean, duplicated_screenY: boolean, duplicated_x: boolean, duplicated_y: boolean): boolean { + if ((!duplicated_type) && (value?.hasOwnProperty("type"))) { + return true + } + else if ((!duplicated_id) && (value?.hasOwnProperty("id"))) { + return true + } + else if ((!duplicated_displayX) && (value?.hasOwnProperty("displayX"))) { + return true + } + else if ((!duplicated_displayY) && (value?.hasOwnProperty("displayY"))) { + return true + } + else if ((!duplicated_windowX) && (value?.hasOwnProperty("windowX"))) { + return true + } + else if ((!duplicated_windowY) && (value?.hasOwnProperty("windowY"))) { + return true + } + else if ((!duplicated_screenX) && (value?.hasOwnProperty("screenX"))) { + return true + } + else if ((!duplicated_screenY) && (value?.hasOwnProperty("screenY"))) { + return true + } + else if ((!duplicated_x) && (value?.hasOwnProperty("x"))) { + return true + } + else if ((!duplicated_y) && (value?.hasOwnProperty("y"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof TouchObject") + } + } + static isHistoricalPoint(value: object|string|number|undefined|null, duplicated_touchObject: boolean, duplicated_size: boolean, duplicated_force: boolean, duplicated_timestamp: boolean): boolean { + if ((!duplicated_touchObject) && (value?.hasOwnProperty("touchObject"))) { + return true + } + else if ((!duplicated_size) && (value?.hasOwnProperty("size"))) { + return true + } + else if ((!duplicated_force) && (value?.hasOwnProperty("force"))) { + return true + } + else if ((!duplicated_timestamp) && (value?.hasOwnProperty("timestamp"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof HistoricalPoint") + } + } + static isKeyEvent(value: object|string|number|undefined|null, duplicated_type: boolean, duplicated_keyCode: boolean, duplicated_keyText: boolean, duplicated_keySource: boolean, duplicated_deviceId: boolean, duplicated_metaKey: boolean, duplicated_timestamp: boolean, duplicated_stopPropagation: boolean, duplicated_intentionCode: boolean, duplicated_unicode: boolean): boolean { + if ((!duplicated_type) && (value?.hasOwnProperty("type"))) { + return true + } + else if ((!duplicated_keyCode) && (value?.hasOwnProperty("keyCode"))) { + return true + } + else if ((!duplicated_keyText) && (value?.hasOwnProperty("keyText"))) { + return true + } + else if ((!duplicated_keySource) && (value?.hasOwnProperty("keySource"))) { + return true + } + else if ((!duplicated_deviceId) && (value?.hasOwnProperty("deviceId"))) { + return true + } + else if ((!duplicated_metaKey) && (value?.hasOwnProperty("metaKey"))) { + return true + } + else if ((!duplicated_timestamp) && (value?.hasOwnProperty("timestamp"))) { + return true + } + else if ((!duplicated_stopPropagation) && (value?.hasOwnProperty("stopPropagation"))) { + return true + } + else if ((!duplicated_intentionCode) && (value?.hasOwnProperty("intentionCode"))) { + return true + } + else if ((!duplicated_unicode) && (value?.hasOwnProperty("unicode"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof KeyEvent") + } + } + static isAnimateParam(value: object|string|number|undefined|null, duplicated_duration: boolean, duplicated_tempo: boolean, duplicated_curve: boolean, duplicated_delay: boolean, duplicated_iterations: boolean, duplicated_playMode: boolean, duplicated_onFinish: boolean, duplicated_finishCallbackType: boolean, duplicated_expectedFrameRateRange: boolean): boolean { + if ((!duplicated_duration) && (value?.hasOwnProperty("duration"))) { + return true + } + else if ((!duplicated_tempo) && (value?.hasOwnProperty("tempo"))) { + return true + } + else if ((!duplicated_curve) && (value?.hasOwnProperty("curve"))) { + return true + } + else if ((!duplicated_delay) && (value?.hasOwnProperty("delay"))) { + return true + } + else if ((!duplicated_iterations) && (value?.hasOwnProperty("iterations"))) { + return true + } + else if ((!duplicated_playMode) && (value?.hasOwnProperty("playMode"))) { + return true + } + else if ((!duplicated_onFinish) && (value?.hasOwnProperty("onFinish"))) { + return true + } + else if ((!duplicated_finishCallbackType) && (value?.hasOwnProperty("finishCallbackType"))) { + return true + } + else if ((!duplicated_expectedFrameRateRange) && (value?.hasOwnProperty("expectedFrameRateRange"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof AnimateParam") + } + } + static isExpectedFrameRateRange(value: object|string|number|undefined|null, duplicated_min: boolean, duplicated_max: boolean, duplicated_expected: boolean): boolean { + if ((!duplicated_min) && (value?.hasOwnProperty("min"))) { + return true + } + else if ((!duplicated_max) && (value?.hasOwnProperty("max"))) { + return true + } + else if ((!duplicated_expected) && (value?.hasOwnProperty("expected"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof ExpectedFrameRateRange") + } + } + static isTransitionOptions(value: object|string|number|undefined|null, duplicated_type: boolean, duplicated_opacity: boolean, duplicated_translate: boolean, duplicated_scale: boolean, duplicated_rotate: boolean): boolean { + if ((!duplicated_type) && (value?.hasOwnProperty("type"))) { + return true + } + else if ((!duplicated_opacity) && (value?.hasOwnProperty("opacity"))) { + return true + } + else if ((!duplicated_translate) && (value?.hasOwnProperty("translate"))) { + return true + } + else if ((!duplicated_scale) && (value?.hasOwnProperty("scale"))) { + return true + } + else if ((!duplicated_rotate) && (value?.hasOwnProperty("rotate"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof TransitionOptions") + } + } + static isTranslateOptions(value: object|string|number|undefined|null, duplicated_x: boolean, duplicated_y: boolean, duplicated_z: boolean): boolean { + if ((!duplicated_x) && (value?.hasOwnProperty("x"))) { + return true + } + else if ((!duplicated_y) && (value?.hasOwnProperty("y"))) { + return true + } + else if ((!duplicated_z) && (value?.hasOwnProperty("z"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof TranslateOptions") + } + } + static isScaleOptions(value: object|string|number|undefined|null, duplicated_x: boolean, duplicated_y: boolean, duplicated_z: boolean, duplicated_centerX: boolean, duplicated_centerY: boolean): boolean { + if ((!duplicated_x) && (value?.hasOwnProperty("x"))) { + return true + } + else if ((!duplicated_y) && (value?.hasOwnProperty("y"))) { + return true + } + else if ((!duplicated_z) && (value?.hasOwnProperty("z"))) { + return true + } + else if ((!duplicated_centerX) && (value?.hasOwnProperty("centerX"))) { + return true + } + else if ((!duplicated_centerY) && (value?.hasOwnProperty("centerY"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof ScaleOptions") + } + } + static isRotateOptions(value: object|string|number|undefined|null, duplicated_x: boolean, duplicated_y: boolean, duplicated_z: boolean, duplicated_centerX: boolean, duplicated_centerY: boolean, duplicated_centerZ: boolean, duplicated_perspective: boolean, duplicated_angle: boolean): boolean { + if ((!duplicated_angle) && (value?.hasOwnProperty("angle"))) { + return true + } + else if ((!duplicated_x) && (value?.hasOwnProperty("x"))) { + return true + } + else if ((!duplicated_y) && (value?.hasOwnProperty("y"))) { + return true + } + else if ((!duplicated_z) && (value?.hasOwnProperty("z"))) { + return true + } + else if ((!duplicated_centerX) && (value?.hasOwnProperty("centerX"))) { + return true + } + else if ((!duplicated_centerY) && (value?.hasOwnProperty("centerY"))) { + return true + } + else if ((!duplicated_centerZ) && (value?.hasOwnProperty("centerZ"))) { + return true + } + else if ((!duplicated_perspective) && (value?.hasOwnProperty("perspective"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof RotateOptions") + } + } + static isLinearGradientBlurOptions(value: object|string|number|undefined|null, duplicated_fractionStops: boolean, duplicated_direction: boolean): boolean { + if ((!duplicated_fractionStops) && (value?.hasOwnProperty("fractionStops"))) { + return true + } + else if ((!duplicated_direction) && (value?.hasOwnProperty("direction"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof LinearGradientBlurOptions") + } + } + static isMotionBlurOptions(value: object|string|number|undefined|null, duplicated_radius: boolean, duplicated_anchor: boolean): boolean { + if ((!duplicated_radius) && (value?.hasOwnProperty("radius"))) { + return true + } + else if ((!duplicated_anchor) && (value?.hasOwnProperty("anchor"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof MotionBlurOptions") + } + } + static isMotionBlurAnchor(value: object|string|number|undefined|null, duplicated_x: boolean, duplicated_y: boolean): boolean { + if ((!duplicated_x) && (value?.hasOwnProperty("x"))) { + return true + } + else if ((!duplicated_y) && (value?.hasOwnProperty("y"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof MotionBlurAnchor") + } + } + static isInvertOptions(value: object|string|number|undefined|null, duplicated_low: boolean, duplicated_high: boolean, duplicated_threshold: boolean, duplicated_thresholdRange: boolean): boolean { + if ((!duplicated_low) && (value?.hasOwnProperty("low"))) { + return true + } + else if ((!duplicated_high) && (value?.hasOwnProperty("high"))) { + return true + } + else if ((!duplicated_threshold) && (value?.hasOwnProperty("threshold"))) { + return true + } + else if ((!duplicated_thresholdRange) && (value?.hasOwnProperty("thresholdRange"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof InvertOptions") + } + } + static issharedTransitionOptions(value: object|string|number|undefined|null, duplicated_duration: boolean, duplicated_curve: boolean, duplicated_delay: boolean, duplicated_motionPath: boolean, duplicated_zIndex: boolean, duplicated_type: boolean): boolean { + if ((!duplicated_duration) && (value?.hasOwnProperty("duration"))) { + return true + } + else if ((!duplicated_curve) && (value?.hasOwnProperty("curve"))) { + return true + } + else if ((!duplicated_delay) && (value?.hasOwnProperty("delay"))) { + return true + } + else if ((!duplicated_motionPath) && (value?.hasOwnProperty("motionPath"))) { + return true + } + else if ((!duplicated_zIndex) && (value?.hasOwnProperty("zIndex"))) { + return true + } + else if ((!duplicated_type) && (value?.hasOwnProperty("type"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof sharedTransitionOptions") + } + } + static isMotionPathOptions(value: object|string|number|undefined|null, duplicated_path: boolean, duplicated_from: boolean, duplicated_to: boolean, duplicated_rotatable: boolean): boolean { + if ((!duplicated_path) && (value?.hasOwnProperty("path"))) { + return true + } + else if ((!duplicated_from) && (value?.hasOwnProperty("from"))) { + return true + } + else if ((!duplicated_to) && (value?.hasOwnProperty("to"))) { + return true + } + else if ((!duplicated_rotatable) && (value?.hasOwnProperty("rotatable"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof MotionPathOptions") + } + } + static isAlignRuleOption(value: object|string|number|undefined|null, duplicated_left: boolean, duplicated_right: boolean, duplicated_middle: boolean, duplicated_top: boolean, duplicated_bottom: boolean, duplicated_center: boolean, duplicated_bias: boolean): boolean { + if ((!duplicated_left) && (value?.hasOwnProperty("left"))) { + return true + } + else if ((!duplicated_right) && (value?.hasOwnProperty("right"))) { + return true + } + else if ((!duplicated_middle) && (value?.hasOwnProperty("middle"))) { + return true + } + else if ((!duplicated_top) && (value?.hasOwnProperty("top"))) { + return true + } + else if ((!duplicated_bottom) && (value?.hasOwnProperty("bottom"))) { + return true + } + else if ((!duplicated_center) && (value?.hasOwnProperty("center"))) { + return true + } + else if ((!duplicated_bias) && (value?.hasOwnProperty("bias"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof AlignRuleOption") + } + } + static isLocalizedAlignRuleOptions(value: object|string|number|undefined|null, duplicated_start: boolean, duplicated_end: boolean, duplicated_middle: boolean, duplicated_top: boolean, duplicated_bottom: boolean, duplicated_center: boolean, duplicated_bias: boolean): boolean { + if ((!duplicated_start) && (value?.hasOwnProperty("start"))) { + return true + } + else if ((!duplicated_end) && (value?.hasOwnProperty("end"))) { + return true + } + else if ((!duplicated_middle) && (value?.hasOwnProperty("middle"))) { + return true + } + else if ((!duplicated_top) && (value?.hasOwnProperty("top"))) { + return true + } + else if ((!duplicated_bottom) && (value?.hasOwnProperty("bottom"))) { + return true + } + else if ((!duplicated_center) && (value?.hasOwnProperty("center"))) { + return true + } + else if ((!duplicated_bias) && (value?.hasOwnProperty("bias"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof LocalizedAlignRuleOptions") + } + } + static isLocalizedHorizontalAlignParam(value: object|string|number|undefined|null, duplicated_anchor: boolean, duplicated_align: boolean): boolean { + if ((!duplicated_anchor) && (value?.hasOwnProperty("anchor"))) { + return true + } + else if ((!duplicated_align) && (value?.hasOwnProperty("align"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof LocalizedHorizontalAlignParam") + } + } + static isLocalizedVerticalAlignParam(value: object|string|number|undefined|null, duplicated_anchor: boolean, duplicated_align: boolean): boolean { + if ((!duplicated_anchor) && (value?.hasOwnProperty("anchor"))) { + return true + } + else if ((!duplicated_align) && (value?.hasOwnProperty("align"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof LocalizedVerticalAlignParam") + } + } + static isClickEffect(value: object|string|number|undefined|null, duplicated_level: boolean, duplicated_scale: boolean): boolean { + if ((!duplicated_level) && (value?.hasOwnProperty("level"))) { + return true + } + else if ((!duplicated_scale) && (value?.hasOwnProperty("scale"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof ClickEffect") + } + } + static isDragEvent(value: object|string|number|undefined|null, duplicated_dragBehavior: boolean, duplicated_useCustomDropAnimation: boolean): boolean { + if ((!duplicated_dragBehavior) && (value?.hasOwnProperty("dragBehavior"))) { + return true + } + else if ((!duplicated_useCustomDropAnimation) && (value?.hasOwnProperty("useCustomDropAnimation"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof DragEvent") + } + } + static isDragItemInfo(value: object|string|number|undefined|null, duplicated_pixelMap: boolean, duplicated_builder: boolean, duplicated_extraInfo: boolean): boolean { + if ((!duplicated_pixelMap) && (value?.hasOwnProperty("pixelMap"))) { + return true + } + else if ((!duplicated_builder) && (value?.hasOwnProperty("builder"))) { + return true + } + else if ((!duplicated_extraInfo) && (value?.hasOwnProperty("extraInfo"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof DragItemInfo") + } + } + static isDragPreviewOptions(value: object|string|number|undefined|null, duplicated_mode: boolean, duplicated_modifier: boolean, duplicated_numberBadge: boolean): boolean { + if ((!duplicated_mode) && (value?.hasOwnProperty("mode"))) { + return true + } + else if ((!duplicated_modifier) && (value?.hasOwnProperty("modifier"))) { + return true + } + else if ((!duplicated_numberBadge) && (value?.hasOwnProperty("numberBadge"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof DragPreviewOptions") + } + } + static isDragInteractionOptions(value: object|string|number|undefined|null, duplicated_isMultiSelectionEnabled: boolean, duplicated_defaultAnimationBeforeLifting: boolean): boolean { + if ((!duplicated_isMultiSelectionEnabled) && (value?.hasOwnProperty("isMultiSelectionEnabled"))) { + return true + } + else if ((!duplicated_defaultAnimationBeforeLifting) && (value?.hasOwnProperty("defaultAnimationBeforeLifting"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof DragInteractionOptions") + } + } + static isOverlayOptions(value: object|string|number|undefined|null, duplicated_align: boolean, duplicated_offset: boolean): boolean { + if ((!duplicated_align) && (value?.hasOwnProperty("align"))) { + return true + } + else if ((!duplicated_offset) && (value?.hasOwnProperty("offset"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof OverlayOptions") + } + } + static isOverlayOffset(value: object|string|number|undefined|null, duplicated_x: boolean, duplicated_y: boolean): boolean { + if ((!duplicated_x) && (value?.hasOwnProperty("x"))) { + return true + } + else if ((!duplicated_y) && (value?.hasOwnProperty("y"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof OverlayOffset") + } + } + static isShadowOptions(value: object|string|number|undefined|null, duplicated_radius: boolean, duplicated_type: boolean, duplicated_color: boolean, duplicated_offsetX: boolean, duplicated_offsetY: boolean, duplicated_fill: boolean): boolean { + if ((!duplicated_radius) && (value?.hasOwnProperty("radius"))) { + return true + } + else if ((!duplicated_type) && (value?.hasOwnProperty("type"))) { + return true + } + else if ((!duplicated_color) && (value?.hasOwnProperty("color"))) { + return true + } + else if ((!duplicated_offsetX) && (value?.hasOwnProperty("offsetX"))) { + return true + } + else if ((!duplicated_offsetY) && (value?.hasOwnProperty("offsetY"))) { + return true + } + else if ((!duplicated_fill) && (value?.hasOwnProperty("fill"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof ShadowOptions") + } + } + static isGeometryTransitionOptions(value: object|string|number|undefined|null, duplicated_follow: boolean, duplicated_hierarchyStrategy: boolean): boolean { + if ((!duplicated_follow) && (value?.hasOwnProperty("follow"))) { + return true + } + else if ((!duplicated_hierarchyStrategy) && (value?.hasOwnProperty("hierarchyStrategy"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof GeometryTransitionOptions") + } + } + static isPopupOptions(value: object|string|number|undefined|null, duplicated_message: boolean, duplicated_placementOnTop: boolean, duplicated_placement: boolean, duplicated_primaryButton: boolean, duplicated_secondaryButton: boolean, duplicated_onStateChange: boolean, duplicated_arrowOffset: boolean, duplicated_showInSubWindow: boolean, duplicated_mask: boolean, duplicated_messageOptions: boolean, duplicated_targetSpace: boolean, duplicated_enableArrow: boolean, duplicated_offset: boolean, duplicated_popupColor: boolean, duplicated_autoCancel: boolean, duplicated_width: boolean, duplicated_arrowPointPosition: boolean, duplicated_arrowWidth: boolean, duplicated_arrowHeight: boolean, duplicated_radius: boolean, duplicated_shadow: boolean, duplicated_backgroundBlurStyle: boolean, duplicated_transition: boolean, duplicated_onWillDismiss: boolean, duplicated_enableHoverMode: boolean): boolean { + if ((!duplicated_message) && (value?.hasOwnProperty("message"))) { + return true + } + else if ((!duplicated_placementOnTop) && (value?.hasOwnProperty("placementOnTop"))) { + return true + } + else if ((!duplicated_placement) && (value?.hasOwnProperty("placement"))) { + return true + } + else if ((!duplicated_primaryButton) && (value?.hasOwnProperty("primaryButton"))) { + return true + } + else if ((!duplicated_secondaryButton) && (value?.hasOwnProperty("secondaryButton"))) { + return true + } + else if ((!duplicated_onStateChange) && (value?.hasOwnProperty("onStateChange"))) { + return true + } + else if ((!duplicated_arrowOffset) && (value?.hasOwnProperty("arrowOffset"))) { + return true + } + else if ((!duplicated_showInSubWindow) && (value?.hasOwnProperty("showInSubWindow"))) { + return true + } + else if ((!duplicated_mask) && (value?.hasOwnProperty("mask"))) { + return true + } + else if ((!duplicated_messageOptions) && (value?.hasOwnProperty("messageOptions"))) { + return true + } + else if ((!duplicated_targetSpace) && (value?.hasOwnProperty("targetSpace"))) { + return true + } + else if ((!duplicated_enableArrow) && (value?.hasOwnProperty("enableArrow"))) { + return true + } + else if ((!duplicated_offset) && (value?.hasOwnProperty("offset"))) { + return true + } + else if ((!duplicated_popupColor) && (value?.hasOwnProperty("popupColor"))) { + return true + } + else if ((!duplicated_autoCancel) && (value?.hasOwnProperty("autoCancel"))) { + return true + } + else if ((!duplicated_width) && (value?.hasOwnProperty("width"))) { + return true + } + else if ((!duplicated_arrowPointPosition) && (value?.hasOwnProperty("arrowPointPosition"))) { + return true + } + else if ((!duplicated_arrowWidth) && (value?.hasOwnProperty("arrowWidth"))) { + return true + } + else if ((!duplicated_arrowHeight) && (value?.hasOwnProperty("arrowHeight"))) { + return true + } + else if ((!duplicated_radius) && (value?.hasOwnProperty("radius"))) { + return true + } + else if ((!duplicated_shadow) && (value?.hasOwnProperty("shadow"))) { + return true + } + else if ((!duplicated_backgroundBlurStyle) && (value?.hasOwnProperty("backgroundBlurStyle"))) { + return true + } + else if ((!duplicated_transition) && (value?.hasOwnProperty("transition"))) { + return true + } + else if ((!duplicated_onWillDismiss) && (value?.hasOwnProperty("onWillDismiss"))) { + return true + } + else if ((!duplicated_enableHoverMode) && (value?.hasOwnProperty("enableHoverMode"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof PopupOptions") + } + } + static isPopupMessageOptions(value: object|string|number|undefined|null, duplicated_textColor: boolean, duplicated_font: boolean): boolean { + if ((!duplicated_textColor) && (value?.hasOwnProperty("textColor"))) { + return true + } + else if ((!duplicated_font) && (value?.hasOwnProperty("font"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof PopupMessageOptions") + } + } + static isDismissPopupAction(value: object|string|number|undefined|null, duplicated_dismiss: boolean, duplicated_reason: boolean): boolean { + if ((!duplicated_dismiss) && (value?.hasOwnProperty("dismiss"))) { + return true + } + else if ((!duplicated_reason) && (value?.hasOwnProperty("reason"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof DismissPopupAction") + } + } + static isCustomPopupOptions(value: object|string|number|undefined|null, duplicated_builder: boolean, duplicated_placement: boolean, duplicated_maskColor: boolean, duplicated_popupColor: boolean, duplicated_enableArrow: boolean, duplicated_autoCancel: boolean, duplicated_onStateChange: boolean, duplicated_arrowOffset: boolean, duplicated_showInSubWindow: boolean, duplicated_mask: boolean, duplicated_targetSpace: boolean, duplicated_offset: boolean, duplicated_width: boolean, duplicated_arrowPointPosition: boolean, duplicated_arrowWidth: boolean, duplicated_arrowHeight: boolean, duplicated_radius: boolean, duplicated_shadow: boolean, duplicated_backgroundBlurStyle: boolean, duplicated_focusable: boolean, duplicated_transition: boolean, duplicated_onWillDismiss: boolean, duplicated_enableHoverMode: boolean): boolean { + if ((!duplicated_builder) && (value?.hasOwnProperty("builder"))) { + return true + } + else if ((!duplicated_placement) && (value?.hasOwnProperty("placement"))) { + return true + } + else if ((!duplicated_maskColor) && (value?.hasOwnProperty("maskColor"))) { + return true + } + else if ((!duplicated_popupColor) && (value?.hasOwnProperty("popupColor"))) { + return true + } + else if ((!duplicated_enableArrow) && (value?.hasOwnProperty("enableArrow"))) { + return true + } + else if ((!duplicated_autoCancel) && (value?.hasOwnProperty("autoCancel"))) { + return true + } + else if ((!duplicated_onStateChange) && (value?.hasOwnProperty("onStateChange"))) { + return true + } + else if ((!duplicated_arrowOffset) && (value?.hasOwnProperty("arrowOffset"))) { + return true + } + else if ((!duplicated_showInSubWindow) && (value?.hasOwnProperty("showInSubWindow"))) { + return true + } + else if ((!duplicated_mask) && (value?.hasOwnProperty("mask"))) { + return true + } + else if ((!duplicated_targetSpace) && (value?.hasOwnProperty("targetSpace"))) { + return true + } + else if ((!duplicated_offset) && (value?.hasOwnProperty("offset"))) { + return true + } + else if ((!duplicated_width) && (value?.hasOwnProperty("width"))) { + return true + } + else if ((!duplicated_arrowPointPosition) && (value?.hasOwnProperty("arrowPointPosition"))) { + return true + } + else if ((!duplicated_arrowWidth) && (value?.hasOwnProperty("arrowWidth"))) { + return true + } + else if ((!duplicated_arrowHeight) && (value?.hasOwnProperty("arrowHeight"))) { + return true + } + else if ((!duplicated_radius) && (value?.hasOwnProperty("radius"))) { + return true + } + else if ((!duplicated_shadow) && (value?.hasOwnProperty("shadow"))) { + return true + } + else if ((!duplicated_backgroundBlurStyle) && (value?.hasOwnProperty("backgroundBlurStyle"))) { + return true + } + else if ((!duplicated_focusable) && (value?.hasOwnProperty("focusable"))) { + return true + } + else if ((!duplicated_transition) && (value?.hasOwnProperty("transition"))) { + return true + } + else if ((!duplicated_onWillDismiss) && (value?.hasOwnProperty("onWillDismiss"))) { + return true + } + else if ((!duplicated_enableHoverMode) && (value?.hasOwnProperty("enableHoverMode"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof CustomPopupOptions") + } + } + static isMenuElement(value: object|string|number|undefined|null, duplicated_value: boolean, duplicated_icon: boolean, duplicated_symbolIcon: boolean, duplicated_enabled: boolean, duplicated_action: boolean): boolean { + if ((!duplicated_value) && (value?.hasOwnProperty("value"))) { + return true + } + else if ((!duplicated_action) && (value?.hasOwnProperty("action"))) { + return true + } + else if ((!duplicated_icon) && (value?.hasOwnProperty("icon"))) { + return true + } + else if ((!duplicated_symbolIcon) && (value?.hasOwnProperty("symbolIcon"))) { + return true + } + else if ((!duplicated_enabled) && (value?.hasOwnProperty("enabled"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof MenuElement") + } + } + static isMenuOptions(value: object|string|number|undefined|null, duplicated_offset: boolean, duplicated_placement: boolean, duplicated_enableArrow: boolean, duplicated_arrowOffset: boolean, duplicated_preview: boolean, duplicated_borderRadius: boolean, duplicated_onAppear: boolean, duplicated_onDisappear: boolean, duplicated_aboutToAppear: boolean, duplicated_aboutToDisappear: boolean, duplicated_layoutRegionMargin: boolean, duplicated_previewAnimationOptions: boolean, duplicated_backgroundColor: boolean, duplicated_backgroundBlurStyle: boolean, duplicated_transition: boolean, duplicated_enableHoverMode: boolean, duplicated_title: boolean, duplicated_showInSubWindow: boolean): boolean { + if ((!duplicated_offset) && (value?.hasOwnProperty("offset"))) { + return true + } + else if ((!duplicated_placement) && (value?.hasOwnProperty("placement"))) { + return true + } + else if ((!duplicated_enableArrow) && (value?.hasOwnProperty("enableArrow"))) { + return true + } + else if ((!duplicated_arrowOffset) && (value?.hasOwnProperty("arrowOffset"))) { + return true + } + else if ((!duplicated_preview) && (value?.hasOwnProperty("preview"))) { + return true + } + else if ((!duplicated_borderRadius) && (value?.hasOwnProperty("borderRadius"))) { + return true + } + else if ((!duplicated_onAppear) && (value?.hasOwnProperty("onAppear"))) { + return true + } + else if ((!duplicated_onDisappear) && (value?.hasOwnProperty("onDisappear"))) { + return true + } + else if ((!duplicated_aboutToAppear) && (value?.hasOwnProperty("aboutToAppear"))) { + return true + } + else if ((!duplicated_aboutToDisappear) && (value?.hasOwnProperty("aboutToDisappear"))) { + return true + } + else if ((!duplicated_layoutRegionMargin) && (value?.hasOwnProperty("layoutRegionMargin"))) { + return true + } + else if ((!duplicated_previewAnimationOptions) && (value?.hasOwnProperty("previewAnimationOptions"))) { + return true + } + else if ((!duplicated_backgroundColor) && (value?.hasOwnProperty("backgroundColor"))) { + return true + } + else if ((!duplicated_backgroundBlurStyle) && (value?.hasOwnProperty("backgroundBlurStyle"))) { + return true + } + else if ((!duplicated_transition) && (value?.hasOwnProperty("transition"))) { + return true + } + else if ((!duplicated_enableHoverMode) && (value?.hasOwnProperty("enableHoverMode"))) { + return true + } + else if ((!duplicated_title) && (value?.hasOwnProperty("title"))) { + return true + } + else if ((!duplicated_showInSubWindow) && (value?.hasOwnProperty("showInSubWindow"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof MenuOptions") + } + } + static isContextMenuOptions(value: object|string|number|undefined|null, duplicated_offset: boolean, duplicated_placement: boolean, duplicated_enableArrow: boolean, duplicated_arrowOffset: boolean, duplicated_preview: boolean, duplicated_borderRadius: boolean, duplicated_onAppear: boolean, duplicated_onDisappear: boolean, duplicated_aboutToAppear: boolean, duplicated_aboutToDisappear: boolean, duplicated_layoutRegionMargin: boolean, duplicated_previewAnimationOptions: boolean, duplicated_backgroundColor: boolean, duplicated_backgroundBlurStyle: boolean, duplicated_transition: boolean, duplicated_enableHoverMode: boolean): boolean { + if ((!duplicated_offset) && (value?.hasOwnProperty("offset"))) { + return true + } + else if ((!duplicated_placement) && (value?.hasOwnProperty("placement"))) { + return true + } + else if ((!duplicated_enableArrow) && (value?.hasOwnProperty("enableArrow"))) { + return true + } + else if ((!duplicated_arrowOffset) && (value?.hasOwnProperty("arrowOffset"))) { + return true + } + else if ((!duplicated_preview) && (value?.hasOwnProperty("preview"))) { + return true + } + else if ((!duplicated_borderRadius) && (value?.hasOwnProperty("borderRadius"))) { + return true + } + else if ((!duplicated_onAppear) && (value?.hasOwnProperty("onAppear"))) { + return true + } + else if ((!duplicated_onDisappear) && (value?.hasOwnProperty("onDisappear"))) { + return true + } + else if ((!duplicated_aboutToAppear) && (value?.hasOwnProperty("aboutToAppear"))) { + return true + } + else if ((!duplicated_aboutToDisappear) && (value?.hasOwnProperty("aboutToDisappear"))) { + return true + } + else if ((!duplicated_layoutRegionMargin) && (value?.hasOwnProperty("layoutRegionMargin"))) { + return true + } + else if ((!duplicated_previewAnimationOptions) && (value?.hasOwnProperty("previewAnimationOptions"))) { + return true + } + else if ((!duplicated_backgroundColor) && (value?.hasOwnProperty("backgroundColor"))) { + return true + } + else if ((!duplicated_backgroundBlurStyle) && (value?.hasOwnProperty("backgroundBlurStyle"))) { + return true + } + else if ((!duplicated_transition) && (value?.hasOwnProperty("transition"))) { + return true + } + else if ((!duplicated_enableHoverMode) && (value?.hasOwnProperty("enableHoverMode"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof ContextMenuOptions") + } + } + static isContextMenuAnimationOptions(value: object|string|number|undefined|null, duplicated_scale: boolean, duplicated_transition: boolean, duplicated_hoverScale: boolean): boolean { + if ((!duplicated_scale) && (value?.hasOwnProperty("scale"))) { + return true + } + else if ((!duplicated_transition) && (value?.hasOwnProperty("transition"))) { + return true + } + else if ((!duplicated_hoverScale) && (value?.hasOwnProperty("hoverScale"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof ContextMenuAnimationOptions") + } + } + static isContentCoverOptions(value: object|string|number|undefined|null, duplicated_backgroundColor: boolean, duplicated_onAppear: boolean, duplicated_onDisappear: boolean, duplicated_onWillAppear: boolean, duplicated_onWillDisappear: boolean, duplicated_modalTransition: boolean, duplicated_onWillDismiss: boolean, duplicated_transition: boolean): boolean { + if ((!duplicated_backgroundColor) && (value?.hasOwnProperty("backgroundColor"))) { + return true + } + else if ((!duplicated_onAppear) && (value?.hasOwnProperty("onAppear"))) { + return true + } + else if ((!duplicated_onDisappear) && (value?.hasOwnProperty("onDisappear"))) { + return true + } + else if ((!duplicated_onWillAppear) && (value?.hasOwnProperty("onWillAppear"))) { + return true + } + else if ((!duplicated_onWillDisappear) && (value?.hasOwnProperty("onWillDisappear"))) { + return true + } + else if ((!duplicated_modalTransition) && (value?.hasOwnProperty("modalTransition"))) { + return true + } + else if ((!duplicated_onWillDismiss) && (value?.hasOwnProperty("onWillDismiss"))) { + return true + } + else if ((!duplicated_transition) && (value?.hasOwnProperty("transition"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof ContentCoverOptions") + } + } + static isBindOptions(value: object|string|number|undefined|null, duplicated_backgroundColor: boolean, duplicated_onAppear: boolean, duplicated_onDisappear: boolean, duplicated_onWillAppear: boolean, duplicated_onWillDisappear: boolean): boolean { + if ((!duplicated_backgroundColor) && (value?.hasOwnProperty("backgroundColor"))) { + return true + } + else if ((!duplicated_onAppear) && (value?.hasOwnProperty("onAppear"))) { + return true + } + else if ((!duplicated_onDisappear) && (value?.hasOwnProperty("onDisappear"))) { + return true + } + else if ((!duplicated_onWillAppear) && (value?.hasOwnProperty("onWillAppear"))) { + return true + } + else if ((!duplicated_onWillDisappear) && (value?.hasOwnProperty("onWillDisappear"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof BindOptions") + } + } + static isDismissContentCoverAction(value: object|string|number|undefined|null, duplicated_dismiss: boolean, duplicated_reason: boolean): boolean { + if ((!duplicated_dismiss) && (value?.hasOwnProperty("dismiss"))) { + return true + } + else if ((!duplicated_reason) && (value?.hasOwnProperty("reason"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof DismissContentCoverAction") + } + } + static isSheetOptions(value: object|string|number|undefined|null, duplicated_backgroundColor: boolean, duplicated_onAppear: boolean, duplicated_onDisappear: boolean, duplicated_onWillAppear: boolean, duplicated_onWillDisappear: boolean, duplicated_height: boolean, duplicated_dragBar: boolean, duplicated_maskColor: boolean, duplicated_detents: boolean, duplicated_blurStyle: boolean, duplicated_showClose: boolean, duplicated_preferType: boolean, duplicated_title: boolean, duplicated_shouldDismiss: boolean, duplicated_onWillDismiss: boolean, duplicated_onWillSpringBackWhenDismiss: boolean, duplicated_enableOutsideInteractive: boolean, duplicated_width: boolean, duplicated_borderWidth: boolean, duplicated_borderColor: boolean, duplicated_borderStyle: boolean, duplicated_shadow: boolean, duplicated_onHeightDidChange: boolean, duplicated_mode: boolean, duplicated_scrollSizeMode: boolean, duplicated_onDetentsDidChange: boolean, duplicated_onWidthDidChange: boolean, duplicated_onTypeDidChange: boolean, duplicated_expandSafeAreaInEmbeddedMode: boolean, duplicated_uiContext: boolean, duplicated_keyboardAvoidMode: boolean): boolean { + if ((!duplicated_backgroundColor) && (value?.hasOwnProperty("backgroundColor"))) { + return true + } + else if ((!duplicated_onAppear) && (value?.hasOwnProperty("onAppear"))) { + return true + } + else if ((!duplicated_onDisappear) && (value?.hasOwnProperty("onDisappear"))) { + return true + } + else if ((!duplicated_onWillAppear) && (value?.hasOwnProperty("onWillAppear"))) { + return true + } + else if ((!duplicated_onWillDisappear) && (value?.hasOwnProperty("onWillDisappear"))) { + return true + } + else if ((!duplicated_height) && (value?.hasOwnProperty("height"))) { + return true + } + else if ((!duplicated_dragBar) && (value?.hasOwnProperty("dragBar"))) { + return true + } + else if ((!duplicated_maskColor) && (value?.hasOwnProperty("maskColor"))) { + return true + } + else if ((!duplicated_detents) && (value?.hasOwnProperty("detents"))) { + return true + } + else if ((!duplicated_blurStyle) && (value?.hasOwnProperty("blurStyle"))) { + return true + } + else if ((!duplicated_showClose) && (value?.hasOwnProperty("showClose"))) { + return true + } + else if ((!duplicated_preferType) && (value?.hasOwnProperty("preferType"))) { + return true + } + else if ((!duplicated_title) && (value?.hasOwnProperty("title"))) { + return true + } + else if ((!duplicated_shouldDismiss) && (value?.hasOwnProperty("shouldDismiss"))) { + return true + } + else if ((!duplicated_onWillDismiss) && (value?.hasOwnProperty("onWillDismiss"))) { + return true + } + else if ((!duplicated_onWillSpringBackWhenDismiss) && (value?.hasOwnProperty("onWillSpringBackWhenDismiss"))) { + return true + } + else if ((!duplicated_enableOutsideInteractive) && (value?.hasOwnProperty("enableOutsideInteractive"))) { + return true + } + else if ((!duplicated_width) && (value?.hasOwnProperty("width"))) { + return true + } + else if ((!duplicated_borderWidth) && (value?.hasOwnProperty("borderWidth"))) { + return true + } + else if ((!duplicated_borderColor) && (value?.hasOwnProperty("borderColor"))) { + return true + } + else if ((!duplicated_borderStyle) && (value?.hasOwnProperty("borderStyle"))) { + return true + } + else if ((!duplicated_shadow) && (value?.hasOwnProperty("shadow"))) { + return true + } + else if ((!duplicated_onHeightDidChange) && (value?.hasOwnProperty("onHeightDidChange"))) { + return true + } + else if ((!duplicated_mode) && (value?.hasOwnProperty("mode"))) { + return true + } + else if ((!duplicated_scrollSizeMode) && (value?.hasOwnProperty("scrollSizeMode"))) { + return true + } + else if ((!duplicated_onDetentsDidChange) && (value?.hasOwnProperty("onDetentsDidChange"))) { + return true + } + else if ((!duplicated_onWidthDidChange) && (value?.hasOwnProperty("onWidthDidChange"))) { + return true + } + else if ((!duplicated_onTypeDidChange) && (value?.hasOwnProperty("onTypeDidChange"))) { + return true + } + else if ((!duplicated_expandSafeAreaInEmbeddedMode) && (value?.hasOwnProperty("expandSafeAreaInEmbeddedMode"))) { + return true + } + else if ((!duplicated_uiContext) && (value?.hasOwnProperty("uiContext"))) { + return true + } + else if ((!duplicated_keyboardAvoidMode) && (value?.hasOwnProperty("keyboardAvoidMode"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof SheetOptions") + } + } + static isSheetTitleOptions(value: object|string|number|undefined|null, duplicated_title: boolean, duplicated_subtitle: boolean): boolean { + if ((!duplicated_title) && (value?.hasOwnProperty("title"))) { + return true + } + else if ((!duplicated_subtitle) && (value?.hasOwnProperty("subtitle"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof SheetTitleOptions") + } + } + static isSheetDismiss(value: object|string|number|undefined|null, duplicated_dismiss: boolean): boolean { + if ((!duplicated_dismiss) && (value?.hasOwnProperty("dismiss"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof SheetDismiss") + } + } + static isDismissSheetAction(value: object|string|number|undefined|null, duplicated_dismiss: boolean, duplicated_reason: boolean): boolean { + if ((!duplicated_dismiss) && (value?.hasOwnProperty("dismiss"))) { + return true + } + else if ((!duplicated_reason) && (value?.hasOwnProperty("reason"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof DismissSheetAction") + } + } + static isSpringBackAction(value: object|string|number|undefined|null, duplicated_springBack: boolean): boolean { + if ((!duplicated_springBack) && (value?.hasOwnProperty("springBack"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof SpringBackAction") + } + } + static isStateStyles(value: object|string|number|undefined|null, duplicated_normal: boolean, duplicated_pressed: boolean, duplicated_disabled: boolean, duplicated_focused: boolean, duplicated_clicked: boolean, duplicated_selected: boolean): boolean { + if ((!duplicated_normal) && (value?.hasOwnProperty("normal"))) { + return true + } + else if ((!duplicated_pressed) && (value?.hasOwnProperty("pressed"))) { + return true + } + else if ((!duplicated_disabled) && (value?.hasOwnProperty("disabled"))) { + return true + } + else if ((!duplicated_focused) && (value?.hasOwnProperty("focused"))) { + return true + } + else if ((!duplicated_clicked) && (value?.hasOwnProperty("clicked"))) { + return true + } + else if ((!duplicated_selected) && (value?.hasOwnProperty("selected"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof StateStyles") + } + } + static isPixelStretchEffectOptions(value: object|string|number|undefined|null, duplicated_top: boolean, duplicated_bottom: boolean, duplicated_left: boolean, duplicated_right: boolean): boolean { + if ((!duplicated_top) && (value?.hasOwnProperty("top"))) { + return true + } + else if ((!duplicated_bottom) && (value?.hasOwnProperty("bottom"))) { + return true + } + else if ((!duplicated_left) && (value?.hasOwnProperty("left"))) { + return true + } + else if ((!duplicated_right) && (value?.hasOwnProperty("right"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof PixelStretchEffectOptions") + } + } + static isBackgroundBrightnessOptions(value: object|string|number|undefined|null, duplicated_rate: boolean, duplicated_lightUpDegree: boolean): boolean { + if ((!duplicated_rate) && (value?.hasOwnProperty("rate"))) { + return true + } + else if ((!duplicated_lightUpDegree) && (value?.hasOwnProperty("lightUpDegree"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof BackgroundBrightnessOptions") + } + } + static isCommonConfiguration(value: object|string|number|undefined|null, duplicated_enabled: boolean, duplicated_contentModifier: boolean): boolean { + if ((!duplicated_enabled) && (value?.hasOwnProperty("enabled"))) { + return true + } + else if ((!duplicated_contentModifier) && (value?.hasOwnProperty("contentModifier"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof CommonConfiguration") + } + } + static isPickerTextStyle(value: object|string|number|undefined|null, duplicated_color: boolean, duplicated_font: boolean): boolean { + if ((!duplicated_color) && (value?.hasOwnProperty("color"))) { + return true + } + else if ((!duplicated_font) && (value?.hasOwnProperty("font"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof PickerTextStyle") + } + } + static isPointLightStyle(value: object|string|number|undefined|null, duplicated_lightSource: boolean, duplicated_illuminated: boolean, duplicated_bloom: boolean): boolean { + if ((!duplicated_lightSource) && (value?.hasOwnProperty("lightSource"))) { + return true + } + else if ((!duplicated_illuminated) && (value?.hasOwnProperty("illuminated"))) { + return true + } + else if ((!duplicated_bloom) && (value?.hasOwnProperty("bloom"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof PointLightStyle") + } + } + static isLightSource(value: object|string|number|undefined|null, duplicated_positionX: boolean, duplicated_positionY: boolean, duplicated_positionZ: boolean, duplicated_intensity: boolean, duplicated_color: boolean): boolean { + if ((!duplicated_positionX) && (value?.hasOwnProperty("positionX"))) { + return true + } + else if ((!duplicated_positionY) && (value?.hasOwnProperty("positionY"))) { + return true + } + else if ((!duplicated_positionZ) && (value?.hasOwnProperty("positionZ"))) { + return true + } + else if ((!duplicated_intensity) && (value?.hasOwnProperty("intensity"))) { + return true + } + else if ((!duplicated_color) && (value?.hasOwnProperty("color"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof LightSource") + } + } + static isMultiShadowOptions(value: object|string|number|undefined|null, duplicated_radius: boolean, duplicated_offsetX: boolean, duplicated_offsetY: boolean): boolean { + if ((!duplicated_radius) && (value?.hasOwnProperty("radius"))) { + return true + } + else if ((!duplicated_offsetX) && (value?.hasOwnProperty("offsetX"))) { + return true + } + else if ((!duplicated_offsetY) && (value?.hasOwnProperty("offsetY"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof MultiShadowOptions") + } + } + static isEdgeEffectOptions(value: object|string|number|undefined|null, duplicated_alwaysEnabled: boolean): boolean { + if ((!duplicated_alwaysEnabled) && (value?.hasOwnProperty("alwaysEnabled"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof EdgeEffectOptions") + } + } + static isFadingEdgeOptions(value: object|string|number|undefined|null, duplicated_fadingEdgeLength: boolean): boolean { + if ((!duplicated_fadingEdgeLength) && (value?.hasOwnProperty("fadingEdgeLength"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof FadingEdgeOptions") + } + } + static isNestedScrollOptions(value: object|string|number|undefined|null, duplicated_scrollForward: boolean, duplicated_scrollBackward: boolean): boolean { + if ((!duplicated_scrollForward) && (value?.hasOwnProperty("scrollForward"))) { + return true + } + else if ((!duplicated_scrollBackward) && (value?.hasOwnProperty("scrollBackward"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof NestedScrollOptions") + } + } + static isItemDragInfo(value: object|string|number|undefined|null, duplicated_x: boolean, duplicated_y: boolean): boolean { + if ((!duplicated_x) && (value?.hasOwnProperty("x"))) { + return true + } + else if ((!duplicated_y) && (value?.hasOwnProperty("y"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof ItemDragInfo") + } + } + static isSelectionOptions(value: object|string|number|undefined|null, duplicated_menuPolicy: boolean): boolean { + if ((!duplicated_menuPolicy) && (value?.hasOwnProperty("menuPolicy"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof SelectionOptions") + } + } + static isTextDecorationOptions(value: object|string|number|undefined|null, duplicated_type: boolean, duplicated_color: boolean, duplicated_style: boolean): boolean { + if ((!duplicated_type) && (value?.hasOwnProperty("type"))) { + return true + } + else if ((!duplicated_color) && (value?.hasOwnProperty("color"))) { + return true + } + else if ((!duplicated_style) && (value?.hasOwnProperty("style"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof TextDecorationOptions") + } + } + static isCaretOffset(value: object|string|number|undefined|null, duplicated_index: boolean, duplicated_x: boolean, duplicated_y: boolean): boolean { + if ((!duplicated_index) && (value?.hasOwnProperty("index"))) { + return true + } + else if ((!duplicated_x) && (value?.hasOwnProperty("x"))) { + return true + } + else if ((!duplicated_y) && (value?.hasOwnProperty("y"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof CaretOffset") + } + } + static isInputCounterOptions(value: object|string|number|undefined|null, duplicated_thresholdPercentage: boolean, duplicated_highlightBorder: boolean): boolean { + if ((!duplicated_thresholdPercentage) && (value?.hasOwnProperty("thresholdPercentage"))) { + return true + } + else if ((!duplicated_highlightBorder) && (value?.hasOwnProperty("highlightBorder"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof InputCounterOptions") + } + } + static isSceneOptions(value: object|string|number|undefined|null, duplicated_scene: boolean, duplicated_modelType: boolean): boolean { + if ((!duplicated_scene) && (value?.hasOwnProperty("scene"))) { + return true + } + else if ((!duplicated_modelType) && (value?.hasOwnProperty("modelType"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof SceneOptions") + } + } + static isDataPanelShadowOptions(value: object|string|number|undefined|null, duplicated_radius: boolean, duplicated_offsetX: boolean, duplicated_offsetY: boolean, duplicated_colors: boolean): boolean { + if ((!duplicated_radius) && (value?.hasOwnProperty("radius"))) { + return true + } + else if ((!duplicated_offsetX) && (value?.hasOwnProperty("offsetX"))) { + return true + } + else if ((!duplicated_offsetY) && (value?.hasOwnProperty("offsetY"))) { + return true + } + else if ((!duplicated_colors) && (value?.hasOwnProperty("colors"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof DataPanelShadowOptions") + } + } + static isDataPanelConfiguration(value: object|string|number|undefined|null, duplicated_enabled: boolean, duplicated_contentModifier: boolean, duplicated_values: boolean, duplicated_maxValue: boolean): boolean { + if ((!duplicated_enabled) && (value?.hasOwnProperty("enabled"))) { + return true + } + else if ((!duplicated_contentModifier) && (value?.hasOwnProperty("contentModifier"))) { + return true + } + else if ((!duplicated_values) && (value?.hasOwnProperty("values"))) { + return true + } + else if ((!duplicated_maxValue) && (value?.hasOwnProperty("maxValue"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof DataPanelConfiguration") + } + } + static isDataPanelOptions(value: object|string|number|undefined|null, duplicated_values: boolean, duplicated_max: boolean, duplicated_type: boolean): boolean { + if ((!duplicated_values) && (value?.hasOwnProperty("values"))) { + return true + } + else if ((!duplicated_max) && (value?.hasOwnProperty("max"))) { + return true + } + else if ((!duplicated_type) && (value?.hasOwnProperty("type"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof DataPanelOptions") + } + } + static isDatePickerResult(value: object|string|number|undefined|null, duplicated_year: boolean, duplicated_month: boolean, duplicated_day: boolean): boolean { + if ((!duplicated_year) && (value?.hasOwnProperty("year"))) { + return true + } + else if ((!duplicated_month) && (value?.hasOwnProperty("month"))) { + return true + } + else if ((!duplicated_day) && (value?.hasOwnProperty("day"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof DatePickerResult") + } + } + static isDatePickerOptions(value: object|string|number|undefined|null, duplicated_start: boolean, duplicated_end: boolean, duplicated_selected: boolean): boolean { + if ((!duplicated_start) && (value?.hasOwnProperty("start"))) { + return true + } + else if ((!duplicated_end) && (value?.hasOwnProperty("end"))) { + return true + } + else if ((!duplicated_selected) && (value?.hasOwnProperty("selected"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof DatePickerOptions") + } + } + static isTerminationInfo(value: object|string|number|undefined|null, duplicated_code: boolean, duplicated_want: boolean): boolean { + if ((!duplicated_code) && (value?.hasOwnProperty("code"))) { + return true + } + else if ((!duplicated_want) && (value?.hasOwnProperty("want"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof TerminationInfo") + } + } + static isFlexOptions(value: object|string|number|undefined|null, duplicated_direction: boolean, duplicated_wrap: boolean, duplicated_justifyContent: boolean, duplicated_alignItems: boolean, duplicated_alignContent: boolean, duplicated_space: boolean): boolean { + if ((!duplicated_direction) && (value?.hasOwnProperty("direction"))) { + return true + } + else if ((!duplicated_wrap) && (value?.hasOwnProperty("wrap"))) { + return true + } + else if ((!duplicated_justifyContent) && (value?.hasOwnProperty("justifyContent"))) { + return true + } + else if ((!duplicated_alignItems) && (value?.hasOwnProperty("alignItems"))) { + return true + } + else if ((!duplicated_alignContent) && (value?.hasOwnProperty("alignContent"))) { + return true + } + else if ((!duplicated_space) && (value?.hasOwnProperty("space"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof FlexOptions") + } + } + static isFlexSpaceOptions(value: object|string|number|undefined|null, duplicated_main: boolean, duplicated_cross: boolean): boolean { + if ((!duplicated_main) && (value?.hasOwnProperty("main"))) { + return true + } + else if ((!duplicated_cross) && (value?.hasOwnProperty("cross"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof FlexSpaceOptions") + } + } + static isFocusBoxStyle(value: object|string|number|undefined|null, duplicated_margin: boolean, duplicated_strokeColor: boolean, duplicated_strokeWidth: boolean): boolean { + if ((!duplicated_margin) && (value?.hasOwnProperty("margin"))) { + return true + } + else if ((!duplicated_strokeColor) && (value?.hasOwnProperty("strokeColor"))) { + return true + } + else if ((!duplicated_strokeWidth) && (value?.hasOwnProperty("strokeWidth"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof FocusBoxStyle") + } + } + static isOnFoldStatusChangeInfo(value: object|string|number|undefined|null, duplicated_foldStatus: boolean): boolean { + if ((!duplicated_foldStatus) && (value?.hasOwnProperty("foldStatus"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof OnFoldStatusChangeInfo") + } + } + static isHoverEventParam(value: object|string|number|undefined|null, duplicated_foldStatus: boolean, duplicated_isHoverMode: boolean, duplicated_appRotation: boolean, duplicated_windowStatusType: boolean): boolean { + if ((!duplicated_foldStatus) && (value?.hasOwnProperty("foldStatus"))) { + return true + } + else if ((!duplicated_isHoverMode) && (value?.hasOwnProperty("isHoverMode"))) { + return true + } + else if ((!duplicated_appRotation) && (value?.hasOwnProperty("appRotation"))) { + return true + } + else if ((!duplicated_windowStatusType) && (value?.hasOwnProperty("windowStatusType"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof HoverEventParam") + } + } + static isFolderStackOptions(value: object|string|number|undefined|null, duplicated_upperItems: boolean): boolean { + if ((!duplicated_upperItems) && (value?.hasOwnProperty("upperItems"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof FolderStackOptions") + } + } + static isFormCallbackInfo(value: object|string|number|undefined|null, duplicated_id: boolean, duplicated_idString: boolean): boolean { + if ((!duplicated_id) && (value?.hasOwnProperty("id"))) { + return true + } + else if ((!duplicated_idString) && (value?.hasOwnProperty("idString"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof FormCallbackInfo") + } + } + static isFormInfo(value: object|string|number|undefined|null, duplicated_id: boolean, duplicated_name: boolean, duplicated_bundle: boolean, duplicated_ability: boolean, duplicated_module: boolean, duplicated_dimension: boolean, duplicated_temporary: boolean, duplicated_want: boolean, duplicated_renderingMode: boolean, duplicated_shape: boolean): boolean { + if ((!duplicated_id) && (value?.hasOwnProperty("id"))) { + return true + } + else if ((!duplicated_name) && (value?.hasOwnProperty("name"))) { + return true + } + else if ((!duplicated_bundle) && (value?.hasOwnProperty("bundle"))) { + return true + } + else if ((!duplicated_ability) && (value?.hasOwnProperty("ability"))) { + return true + } + else if ((!duplicated_module) && (value?.hasOwnProperty("module"))) { + return true + } + else if ((!duplicated_dimension) && (value?.hasOwnProperty("dimension"))) { + return true + } + else if ((!duplicated_temporary) && (value?.hasOwnProperty("temporary"))) { + return true + } + else if ((!duplicated_want) && (value?.hasOwnProperty("want"))) { + return true + } + else if ((!duplicated_renderingMode) && (value?.hasOwnProperty("renderingMode"))) { + return true + } + else if ((!duplicated_shape) && (value?.hasOwnProperty("shape"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof FormInfo") + } + } + static isFormLinkOptions(value: object|string|number|undefined|null, duplicated_action: boolean, duplicated_moduleName: boolean, duplicated_bundleName: boolean, duplicated_abilityName: boolean, duplicated_uri: boolean, duplicated_params: boolean): boolean { + if ((!duplicated_action) && (value?.hasOwnProperty("action"))) { + return true + } + else if ((!duplicated_moduleName) && (value?.hasOwnProperty("moduleName"))) { + return true + } + else if ((!duplicated_bundleName) && (value?.hasOwnProperty("bundleName"))) { + return true + } + else if ((!duplicated_abilityName) && (value?.hasOwnProperty("abilityName"))) { + return true + } + else if ((!duplicated_uri) && (value?.hasOwnProperty("uri"))) { + return true + } + else if ((!duplicated_params) && (value?.hasOwnProperty("params"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof FormLinkOptions") + } + } + static isGaugeShadowOptions(value: object|string|number|undefined|null, duplicated_radius: boolean, duplicated_offsetX: boolean, duplicated_offsetY: boolean): boolean { + if ((!duplicated_radius) && (value?.hasOwnProperty("radius"))) { + return true + } + else if ((!duplicated_offsetX) && (value?.hasOwnProperty("offsetX"))) { + return true + } + else if ((!duplicated_offsetY) && (value?.hasOwnProperty("offsetY"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof GaugeShadowOptions") + } + } + static isGaugeIndicatorOptions(value: object|string|number|undefined|null, duplicated_icon: boolean, duplicated_space: boolean): boolean { + if ((!duplicated_icon) && (value?.hasOwnProperty("icon"))) { + return true + } + else if ((!duplicated_space) && (value?.hasOwnProperty("space"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof GaugeIndicatorOptions") + } + } + static isGaugeConfiguration(value: object|string|number|undefined|null, duplicated_enabled: boolean, duplicated_contentModifier: boolean, duplicated_value: boolean, duplicated_min: boolean, duplicated_max: boolean): boolean { + if ((!duplicated_enabled) && (value?.hasOwnProperty("enabled"))) { + return true + } + else if ((!duplicated_contentModifier) && (value?.hasOwnProperty("contentModifier"))) { + return true + } + else if ((!duplicated_value) && (value?.hasOwnProperty("value"))) { + return true + } + else if ((!duplicated_min) && (value?.hasOwnProperty("min"))) { + return true + } + else if ((!duplicated_max) && (value?.hasOwnProperty("max"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof GaugeConfiguration") + } + } + static isGaugeOptions(value: object|string|number|undefined|null, duplicated_value: boolean, duplicated_min: boolean, duplicated_max: boolean): boolean { + if ((!duplicated_value) && (value?.hasOwnProperty("value"))) { + return true + } + else if ((!duplicated_min) && (value?.hasOwnProperty("min"))) { + return true + } + else if ((!duplicated_max) && (value?.hasOwnProperty("max"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof GaugeOptions") + } + } + static isTapGestureParameters(value: object|string|number|undefined|null, duplicated_count: boolean, duplicated_fingers: boolean, duplicated_distanceThreshold: boolean): boolean { + if ((!duplicated_count) && (value?.hasOwnProperty("count"))) { + return true + } + else if ((!duplicated_fingers) && (value?.hasOwnProperty("fingers"))) { + return true + } + else if ((!duplicated_distanceThreshold) && (value?.hasOwnProperty("distanceThreshold"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof TapGestureParameters") + } + } + static isGestureEvent(value: object|string|number|undefined|null, duplicated_target: boolean, duplicated_timestamp: boolean, duplicated_source: boolean, duplicated_axisHorizontal: boolean, duplicated_axisVertical: boolean, duplicated_pressure: boolean, duplicated_tiltX: boolean, duplicated_tiltY: boolean, duplicated_sourceTool: boolean, duplicated_deviceId: boolean, duplicated_repeat: boolean, duplicated_fingerList: boolean, duplicated_offsetX: boolean, duplicated_offsetY: boolean, duplicated_angle: boolean, duplicated_speed: boolean, duplicated_scale: boolean, duplicated_pinchCenterX: boolean, duplicated_pinchCenterY: boolean, duplicated_velocityX: boolean, duplicated_velocityY: boolean, duplicated_velocity: boolean): boolean { + if ((!duplicated_target) && (value?.hasOwnProperty("target"))) { + return true + } + else if ((!duplicated_timestamp) && (value?.hasOwnProperty("timestamp"))) { + return true + } + else if ((!duplicated_source) && (value?.hasOwnProperty("source"))) { + return true + } + else if ((!duplicated_pressure) && (value?.hasOwnProperty("pressure"))) { + return true + } + else if ((!duplicated_tiltX) && (value?.hasOwnProperty("tiltX"))) { + return true + } + else if ((!duplicated_tiltY) && (value?.hasOwnProperty("tiltY"))) { + return true + } + else if ((!duplicated_sourceTool) && (value?.hasOwnProperty("sourceTool"))) { + return true + } + else if ((!duplicated_repeat) && (value?.hasOwnProperty("repeat"))) { + return true + } + else if ((!duplicated_fingerList) && (value?.hasOwnProperty("fingerList"))) { + return true + } + else if ((!duplicated_offsetX) && (value?.hasOwnProperty("offsetX"))) { + return true + } + else if ((!duplicated_offsetY) && (value?.hasOwnProperty("offsetY"))) { + return true + } + else if ((!duplicated_angle) && (value?.hasOwnProperty("angle"))) { + return true + } + else if ((!duplicated_speed) && (value?.hasOwnProperty("speed"))) { + return true + } + else if ((!duplicated_scale) && (value?.hasOwnProperty("scale"))) { + return true + } + else if ((!duplicated_pinchCenterX) && (value?.hasOwnProperty("pinchCenterX"))) { + return true + } + else if ((!duplicated_pinchCenterY) && (value?.hasOwnProperty("pinchCenterY"))) { + return true + } + else if ((!duplicated_velocityX) && (value?.hasOwnProperty("velocityX"))) { + return true + } + else if ((!duplicated_velocityY) && (value?.hasOwnProperty("velocityY"))) { + return true + } + else if ((!duplicated_velocity) && (value?.hasOwnProperty("velocity"))) { + return true + } + else if ((!duplicated_axisHorizontal) && (value?.hasOwnProperty("axisHorizontal"))) { + return true + } + else if ((!duplicated_axisVertical) && (value?.hasOwnProperty("axisVertical"))) { + return true + } + else if ((!duplicated_deviceId) && (value?.hasOwnProperty("deviceId"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof GestureEvent") + } + } + static isFingerInfo(value: object|string|number|undefined|null, duplicated_id: boolean, duplicated_globalX: boolean, duplicated_globalY: boolean, duplicated_localX: boolean, duplicated_localY: boolean, duplicated_displayX: boolean, duplicated_displayY: boolean): boolean { + if ((!duplicated_id) && (value?.hasOwnProperty("id"))) { + return true + } + else if ((!duplicated_globalX) && (value?.hasOwnProperty("globalX"))) { + return true + } + else if ((!duplicated_globalY) && (value?.hasOwnProperty("globalY"))) { + return true + } + else if ((!duplicated_localX) && (value?.hasOwnProperty("localX"))) { + return true + } + else if ((!duplicated_localY) && (value?.hasOwnProperty("localY"))) { + return true + } + else if ((!duplicated_displayX) && (value?.hasOwnProperty("displayX"))) { + return true + } + else if ((!duplicated_displayY) && (value?.hasOwnProperty("displayY"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof FingerInfo") + } + } + static isGestureInfo(value: object|string|number|undefined|null, duplicated_tag: boolean, duplicated_type: boolean, duplicated_isSystemGesture: boolean): boolean { + if ((!duplicated_type) && (value?.hasOwnProperty("type"))) { + return true + } + else if ((!duplicated_isSystemGesture) && (value?.hasOwnProperty("isSystemGesture"))) { + return true + } + else if ((!duplicated_tag) && (value?.hasOwnProperty("tag"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof GestureInfo") + } + } + static isBaseGestureEvent(value: object|string|number|undefined|null, duplicated_target: boolean, duplicated_timestamp: boolean, duplicated_source: boolean, duplicated_axisHorizontal: boolean, duplicated_axisVertical: boolean, duplicated_pressure: boolean, duplicated_tiltX: boolean, duplicated_tiltY: boolean, duplicated_sourceTool: boolean, duplicated_deviceId: boolean, duplicated_fingerList: boolean): boolean { + if ((!duplicated_target) && (value?.hasOwnProperty("target"))) { + return true + } + else if ((!duplicated_timestamp) && (value?.hasOwnProperty("timestamp"))) { + return true + } + else if ((!duplicated_source) && (value?.hasOwnProperty("source"))) { + return true + } + else if ((!duplicated_pressure) && (value?.hasOwnProperty("pressure"))) { + return true + } + else if ((!duplicated_tiltX) && (value?.hasOwnProperty("tiltX"))) { + return true + } + else if ((!duplicated_tiltY) && (value?.hasOwnProperty("tiltY"))) { + return true + } + else if ((!duplicated_sourceTool) && (value?.hasOwnProperty("sourceTool"))) { + return true + } + else if ((!duplicated_fingerList) && (value?.hasOwnProperty("fingerList"))) { + return true + } + else if ((!duplicated_axisHorizontal) && (value?.hasOwnProperty("axisHorizontal"))) { + return true + } + else if ((!duplicated_axisVertical) && (value?.hasOwnProperty("axisVertical"))) { + return true + } + else if ((!duplicated_deviceId) && (value?.hasOwnProperty("deviceId"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof BaseGestureEvent") + } + } + static isComputedBarAttribute(value: object|string|number|undefined|null, duplicated_totalOffset: boolean, duplicated_totalLength: boolean): boolean { + if ((!duplicated_totalOffset) && (value?.hasOwnProperty("totalOffset"))) { + return true + } + else if ((!duplicated_totalLength) && (value?.hasOwnProperty("totalLength"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof ComputedBarAttribute") + } + } + static isGridLayoutOptions(value: object|string|number|undefined|null, duplicated_regularSize: boolean, duplicated_irregularIndexes: boolean, duplicated_onGetIrregularSizeByIndex: boolean, duplicated_onGetRectByIndex: boolean): boolean { + if ((!duplicated_regularSize) && (value?.hasOwnProperty("regularSize"))) { + return true + } + else if ((!duplicated_irregularIndexes) && (value?.hasOwnProperty("irregularIndexes"))) { + return true + } + else if ((!duplicated_onGetIrregularSizeByIndex) && (value?.hasOwnProperty("onGetIrregularSizeByIndex"))) { + return true + } + else if ((!duplicated_onGetRectByIndex) && (value?.hasOwnProperty("onGetRectByIndex"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof GridLayoutOptions") + } + } + static isGridItemOptions(value: object|string|number|undefined|null, duplicated_style: boolean): boolean { + if ((!duplicated_style) && (value?.hasOwnProperty("style"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof GridItemOptions") + } + } + static isGridColColumnOption(value: object|string|number|undefined|null, duplicated_xs: boolean, duplicated_sm: boolean, duplicated_md: boolean, duplicated_lg: boolean, duplicated_xl: boolean, duplicated_xxl: boolean): boolean { + if ((!duplicated_xs) && (value?.hasOwnProperty("xs"))) { + return true + } + else if ((!duplicated_sm) && (value?.hasOwnProperty("sm"))) { + return true + } + else if ((!duplicated_md) && (value?.hasOwnProperty("md"))) { + return true + } + else if ((!duplicated_lg) && (value?.hasOwnProperty("lg"))) { + return true + } + else if ((!duplicated_xl) && (value?.hasOwnProperty("xl"))) { + return true + } + else if ((!duplicated_xxl) && (value?.hasOwnProperty("xxl"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof GridColColumnOption") + } + } + static isGridColOptions(value: object|string|number|undefined|null, duplicated_span: boolean, duplicated_offset: boolean, duplicated_order: boolean): boolean { + if ((!duplicated_span) && (value?.hasOwnProperty("span"))) { + return true + } + else if ((!duplicated_offset) && (value?.hasOwnProperty("offset"))) { + return true + } + else if ((!duplicated_order) && (value?.hasOwnProperty("order"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof GridColOptions") + } + } + static isGridContainerOptions(value: object|string|number|undefined|null, duplicated_columns: boolean, duplicated_sizeType: boolean, duplicated_gutter: boolean, duplicated_margin: boolean): boolean { + if ((!duplicated_columns) && (value?.hasOwnProperty("columns"))) { + return true + } + else if ((!duplicated_sizeType) && (value?.hasOwnProperty("sizeType"))) { + return true + } + else if ((!duplicated_gutter) && (value?.hasOwnProperty("gutter"))) { + return true + } + else if ((!duplicated_margin) && (value?.hasOwnProperty("margin"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof GridContainerOptions") + } + } + static isGridRowOptions(value: object|string|number|undefined|null, duplicated_gutter: boolean, duplicated_columns: boolean, duplicated_breakpoints: boolean, duplicated_direction: boolean): boolean { + if ((!duplicated_gutter) && (value?.hasOwnProperty("gutter"))) { + return true + } + else if ((!duplicated_columns) && (value?.hasOwnProperty("columns"))) { + return true + } + else if ((!duplicated_breakpoints) && (value?.hasOwnProperty("breakpoints"))) { + return true + } + else if ((!duplicated_direction) && (value?.hasOwnProperty("direction"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof GridRowOptions") + } + } + static isGutterOption(value: object|string|number|undefined|null, duplicated_x: boolean, duplicated_y: boolean): boolean { + if ((!duplicated_x) && (value?.hasOwnProperty("x"))) { + return true + } + else if ((!duplicated_y) && (value?.hasOwnProperty("y"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof GutterOption") + } + } + static isGridRowSizeOption(value: object|string|number|undefined|null, duplicated_xs: boolean, duplicated_sm: boolean, duplicated_md: boolean, duplicated_lg: boolean, duplicated_xl: boolean, duplicated_xxl: boolean): boolean { + if ((!duplicated_xs) && (value?.hasOwnProperty("xs"))) { + return true + } + else if ((!duplicated_sm) && (value?.hasOwnProperty("sm"))) { + return true + } + else if ((!duplicated_md) && (value?.hasOwnProperty("md"))) { + return true + } + else if ((!duplicated_lg) && (value?.hasOwnProperty("lg"))) { + return true + } + else if ((!duplicated_xl) && (value?.hasOwnProperty("xl"))) { + return true + } + else if ((!duplicated_xxl) && (value?.hasOwnProperty("xxl"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof GridRowSizeOption") + } + } + static isGridRowColumnOption(value: object|string|number|undefined|null, duplicated_xs: boolean, duplicated_sm: boolean, duplicated_md: boolean, duplicated_lg: boolean, duplicated_xl: boolean, duplicated_xxl: boolean): boolean { + if ((!duplicated_xs) && (value?.hasOwnProperty("xs"))) { + return true + } + else if ((!duplicated_sm) && (value?.hasOwnProperty("sm"))) { + return true + } + else if ((!duplicated_md) && (value?.hasOwnProperty("md"))) { + return true + } + else if ((!duplicated_lg) && (value?.hasOwnProperty("lg"))) { + return true + } + else if ((!duplicated_xl) && (value?.hasOwnProperty("xl"))) { + return true + } + else if ((!duplicated_xxl) && (value?.hasOwnProperty("xxl"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof GridRowColumnOption") + } + } + static isBreakPoints(value: object|string|number|undefined|null, duplicated_value: boolean, duplicated_reference: boolean): boolean { + if ((!duplicated_value) && (value?.hasOwnProperty("value"))) { + return true + } + else if ((!duplicated_reference) && (value?.hasOwnProperty("reference"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof BreakPoints") + } + } + static isResizableOptions(value: object|string|number|undefined|null, duplicated_slice: boolean, duplicated_lattice: boolean): boolean { + if ((!duplicated_slice) && (value?.hasOwnProperty("slice"))) { + return true + } + else if ((!duplicated_lattice) && (value?.hasOwnProperty("lattice"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof ResizableOptions") + } + } + static isImageSourceSize(value: object|string|number|undefined|null, duplicated_width: boolean, duplicated_height: boolean): boolean { + if ((!duplicated_width) && (value?.hasOwnProperty("width"))) { + return true + } + else if ((!duplicated_height) && (value?.hasOwnProperty("height"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof ImageSourceSize") + } + } + static isImageError(value: object|string|number|undefined|null, duplicated_componentWidth: boolean, duplicated_componentHeight: boolean, duplicated_message: boolean): boolean { + if ((!duplicated_componentWidth) && (value?.hasOwnProperty("componentWidth"))) { + return true + } + else if ((!duplicated_componentHeight) && (value?.hasOwnProperty("componentHeight"))) { + return true + } + else if ((!duplicated_message) && (value?.hasOwnProperty("message"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof ImageError") + } + } + static isImageFrameInfo(value: object|string|number|undefined|null, duplicated_src: boolean, duplicated_width: boolean, duplicated_height: boolean, duplicated_top: boolean, duplicated_left: boolean, duplicated_duration: boolean): boolean { + if ((!duplicated_src) && (value?.hasOwnProperty("src"))) { + return true + } + else if ((!duplicated_width) && (value?.hasOwnProperty("width"))) { + return true + } + else if ((!duplicated_height) && (value?.hasOwnProperty("height"))) { + return true + } + else if ((!duplicated_top) && (value?.hasOwnProperty("top"))) { + return true + } + else if ((!duplicated_left) && (value?.hasOwnProperty("left"))) { + return true + } + else if ((!duplicated_duration) && (value?.hasOwnProperty("duration"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof ImageFrameInfo") + } + } + static isImageAnalyzerConfig(value: object|string|number|undefined|null, duplicated_types: boolean): boolean { + if ((!duplicated_types) && (value?.hasOwnProperty("types"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof ImageAnalyzerConfig") + } + } + static isImageAIOptions(value: object|string|number|undefined|null, duplicated_types: boolean, duplicated_aiController: boolean): boolean { + if ((!duplicated_types) && (value?.hasOwnProperty("types"))) { + return true + } + else if ((!duplicated_aiController) && (value?.hasOwnProperty("aiController"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof ImageAIOptions") + } + } + static isImageLoadResult(value: object|string|number|undefined|null, duplicated_width: boolean, duplicated_height: boolean, duplicated_componentWidth: boolean, duplicated_componentHeight: boolean, duplicated_loadingStatus: boolean, duplicated_contentWidth: boolean, duplicated_contentHeight: boolean, duplicated_contentOffsetX: boolean, duplicated_contentOffsetY: boolean): boolean { + if ((!duplicated_width) && (value?.hasOwnProperty("width"))) { + return true + } + else if ((!duplicated_height) && (value?.hasOwnProperty("height"))) { + return true + } + else if ((!duplicated_componentWidth) && (value?.hasOwnProperty("componentWidth"))) { + return true + } + else if ((!duplicated_componentHeight) && (value?.hasOwnProperty("componentHeight"))) { + return true + } + else if ((!duplicated_loadingStatus) && (value?.hasOwnProperty("loadingStatus"))) { + return true + } + else if ((!duplicated_contentWidth) && (value?.hasOwnProperty("contentWidth"))) { + return true + } + else if ((!duplicated_contentHeight) && (value?.hasOwnProperty("contentHeight"))) { + return true + } + else if ((!duplicated_contentOffsetX) && (value?.hasOwnProperty("contentOffsetX"))) { + return true + } + else if ((!duplicated_contentOffsetY) && (value?.hasOwnProperty("contentOffsetY"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof ImageLoadResult") + } + } + static isListDividerOptions(value: object|string|number|undefined|null, duplicated_strokeWidth: boolean, duplicated_color: boolean, duplicated_startMargin: boolean, duplicated_endMargin: boolean): boolean { + if ((!duplicated_strokeWidth) && (value?.hasOwnProperty("strokeWidth"))) { + return true + } + else if ((!duplicated_color) && (value?.hasOwnProperty("color"))) { + return true + } + else if ((!duplicated_startMargin) && (value?.hasOwnProperty("startMargin"))) { + return true + } + else if ((!duplicated_endMargin) && (value?.hasOwnProperty("endMargin"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof ListDividerOptions") + } + } + static isChainAnimationOptions(value: object|string|number|undefined|null, duplicated_minSpace: boolean, duplicated_maxSpace: boolean, duplicated_conductivity: boolean, duplicated_intensity: boolean, duplicated_edgeEffect: boolean, duplicated_stiffness: boolean, duplicated_damping: boolean): boolean { + if ((!duplicated_minSpace) && (value?.hasOwnProperty("minSpace"))) { + return true + } + else if ((!duplicated_maxSpace) && (value?.hasOwnProperty("maxSpace"))) { + return true + } + else if ((!duplicated_conductivity) && (value?.hasOwnProperty("conductivity"))) { + return true + } + else if ((!duplicated_intensity) && (value?.hasOwnProperty("intensity"))) { + return true + } + else if ((!duplicated_edgeEffect) && (value?.hasOwnProperty("edgeEffect"))) { + return true + } + else if ((!duplicated_stiffness) && (value?.hasOwnProperty("stiffness"))) { + return true + } + else if ((!duplicated_damping) && (value?.hasOwnProperty("damping"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof ChainAnimationOptions") + } + } + static isVisibleListContentInfo(value: object|string|number|undefined|null, duplicated_index: boolean, duplicated_itemGroupArea: boolean, duplicated_itemIndexInGroup: boolean): boolean { + if ((!duplicated_index) && (value?.hasOwnProperty("index"))) { + return true + } + else if ((!duplicated_itemGroupArea) && (value?.hasOwnProperty("itemGroupArea"))) { + return true + } + else if ((!duplicated_itemIndexInGroup) && (value?.hasOwnProperty("itemIndexInGroup"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof VisibleListContentInfo") + } + } + static isListOptions(value: object|string|number|undefined|null, duplicated_initialIndex: boolean, duplicated_space: boolean, duplicated_scroller: boolean): boolean { + if ((!duplicated_initialIndex) && (value?.hasOwnProperty("initialIndex"))) { + return true + } + else if ((!duplicated_space) && (value?.hasOwnProperty("space"))) { + return true + } + else if ((!duplicated_scroller) && (value?.hasOwnProperty("scroller"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof ListOptions") + } + } + static isSwipeActionOptions(value: object|string|number|undefined|null, duplicated_start: boolean, duplicated_end: boolean, duplicated_edgeEffect: boolean, duplicated_onOffsetChange: boolean): boolean { + if ((!duplicated_start) && (value?.hasOwnProperty("start"))) { + return true + } + else if ((!duplicated_end) && (value?.hasOwnProperty("end"))) { + return true + } + else if ((!duplicated_edgeEffect) && (value?.hasOwnProperty("edgeEffect"))) { + return true + } + else if ((!duplicated_onOffsetChange) && (value?.hasOwnProperty("onOffsetChange"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof SwipeActionOptions") + } + } + static isSwipeActionItem(value: object|string|number|undefined|null, duplicated_builder: boolean, duplicated_actionAreaDistance: boolean, duplicated_onAction: boolean, duplicated_onEnterActionArea: boolean, duplicated_onExitActionArea: boolean, duplicated_onStateChange: boolean): boolean { + if ((!duplicated_builder) && (value?.hasOwnProperty("builder"))) { + return true + } + else if ((!duplicated_actionAreaDistance) && (value?.hasOwnProperty("actionAreaDistance"))) { + return true + } + else if ((!duplicated_onAction) && (value?.hasOwnProperty("onAction"))) { + return true + } + else if ((!duplicated_onEnterActionArea) && (value?.hasOwnProperty("onEnterActionArea"))) { + return true + } + else if ((!duplicated_onExitActionArea) && (value?.hasOwnProperty("onExitActionArea"))) { + return true + } + else if ((!duplicated_onStateChange) && (value?.hasOwnProperty("onStateChange"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof SwipeActionItem") + } + } + static isListItemOptions(value: object|string|number|undefined|null, duplicated_style: boolean): boolean { + if ((!duplicated_style) && (value?.hasOwnProperty("style"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof ListItemOptions") + } + } + static isListItemGroupOptions(value: object|string|number|undefined|null, duplicated_header: boolean, duplicated_headerComponent: boolean, duplicated_footer: boolean, duplicated_footerComponent: boolean, duplicated_space: boolean, duplicated_style: boolean): boolean { + if ((!duplicated_header) && (value?.hasOwnProperty("header"))) { + return true + } + else if ((!duplicated_headerComponent) && (value?.hasOwnProperty("headerComponent"))) { + return true + } + else if ((!duplicated_footer) && (value?.hasOwnProperty("footer"))) { + return true + } + else if ((!duplicated_footerComponent) && (value?.hasOwnProperty("footerComponent"))) { + return true + } + else if ((!duplicated_space) && (value?.hasOwnProperty("space"))) { + return true + } + else if ((!duplicated_style) && (value?.hasOwnProperty("style"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof ListItemGroupOptions") + } + } + static isLoadingProgressConfiguration(value: object|string|number|undefined|null, duplicated_enabled: boolean, duplicated_contentModifier: boolean, duplicated_enableLoading: boolean): boolean { + if ((!duplicated_enabled) && (value?.hasOwnProperty("enabled"))) { + return true + } + else if ((!duplicated_contentModifier) && (value?.hasOwnProperty("contentModifier"))) { + return true + } + else if ((!duplicated_enableLoading) && (value?.hasOwnProperty("enableLoading"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof LoadingProgressConfiguration") + } + } + static isLocationButtonOptions(value: object|string|number|undefined|null, duplicated_icon: boolean, duplicated_text: boolean, duplicated_buttonType: boolean): boolean { + if ((!duplicated_icon) && (value?.hasOwnProperty("icon"))) { + return true + } + else if ((!duplicated_text) && (value?.hasOwnProperty("text"))) { + return true + } + else if ((!duplicated_buttonType) && (value?.hasOwnProperty("buttonType"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof LocationButtonOptions") + } + } + static isMarqueeOptions(value: object|string|number|undefined|null, duplicated_start: boolean, duplicated_step: boolean, duplicated_loop: boolean, duplicated_fromStart: boolean, duplicated_src: boolean): boolean { + if ((!duplicated_start) && (value?.hasOwnProperty("start"))) { + return true + } + else if ((!duplicated_src) && (value?.hasOwnProperty("src"))) { + return true + } + else if ((!duplicated_step) && (value?.hasOwnProperty("step"))) { + return true + } + else if ((!duplicated_loop) && (value?.hasOwnProperty("loop"))) { + return true + } + else if ((!duplicated_fromStart) && (value?.hasOwnProperty("fromStart"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof MarqueeOptions") + } + } + static isASTCResource(value: object|string|number|undefined|null, duplicated_sources: boolean, duplicated_column: boolean): boolean { + if ((!duplicated_sources) && (value?.hasOwnProperty("sources"))) { + return true + } + else if ((!duplicated_column) && (value?.hasOwnProperty("column"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof ASTCResource") + } + } + static isMenuItemOptions(value: object|string|number|undefined|null, duplicated_startIcon: boolean, duplicated_symbolStartIcon: boolean, duplicated_content: boolean, duplicated_endIcon: boolean, duplicated_symbolEndIcon: boolean, duplicated_labelInfo: boolean, duplicated_builder: boolean): boolean { + if ((!duplicated_startIcon) && (value?.hasOwnProperty("startIcon"))) { + return true + } + else if ((!duplicated_symbolStartIcon) && (value?.hasOwnProperty("symbolStartIcon"))) { + return true + } + else if ((!duplicated_content) && (value?.hasOwnProperty("content"))) { + return true + } + else if ((!duplicated_endIcon) && (value?.hasOwnProperty("endIcon"))) { + return true + } + else if ((!duplicated_symbolEndIcon) && (value?.hasOwnProperty("symbolEndIcon"))) { + return true + } + else if ((!duplicated_labelInfo) && (value?.hasOwnProperty("labelInfo"))) { + return true + } + else if ((!duplicated_builder) && (value?.hasOwnProperty("builder"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof MenuItemOptions") + } + } + static isMenuItemGroupOptions(value: object|string|number|undefined|null, duplicated_header: boolean, duplicated_footer: boolean): boolean { + if ((!duplicated_header) && (value?.hasOwnProperty("header"))) { + return true + } + else if ((!duplicated_footer) && (value?.hasOwnProperty("footer"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof MenuItemGroupOptions") + } + } + static isNavDestinationCommonTitle(value: object|string|number|undefined|null, duplicated_main: boolean, duplicated_sub: boolean): boolean { + if ((!duplicated_main) && (value?.hasOwnProperty("main"))) { + return true + } + else if ((!duplicated_sub) && (value?.hasOwnProperty("sub"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof NavDestinationCommonTitle") + } + } + static isNavDestinationCustomTitle(value: object|string|number|undefined|null, duplicated_builder: boolean, duplicated_height: boolean): boolean { + if ((!duplicated_builder) && (value?.hasOwnProperty("builder"))) { + return true + } + else if ((!duplicated_height) && (value?.hasOwnProperty("height"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof NavDestinationCustomTitle") + } + } + static isRouteMapConfig(value: object|string|number|undefined|null, duplicated_name: boolean, duplicated_pageSourceFile: boolean, duplicated_data: boolean): boolean { + if ((!duplicated_name) && (value?.hasOwnProperty("name"))) { + return true + } + else if ((!duplicated_pageSourceFile) && (value?.hasOwnProperty("pageSourceFile"))) { + return true + } + else if ((!duplicated_data) && (value?.hasOwnProperty("data"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof RouteMapConfig") + } + } + static isRouteInfo(value: object|string|number|undefined|null, duplicated_name: boolean, duplicated_param: boolean): boolean { + if ((!duplicated_name) && (value?.hasOwnProperty("name"))) { + return true + } + else if ((!duplicated_param) && (value?.hasOwnProperty("param"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof RouteInfo") + } + } + static isNavigationTitleOptions(value: object|string|number|undefined|null, duplicated_backgroundColor: boolean, duplicated_backgroundBlurStyle: boolean, duplicated_barStyle: boolean, duplicated_paddingStart: boolean, duplicated_paddingEnd: boolean, duplicated_mainTitleModifier: boolean, duplicated_subTitleModifier: boolean, duplicated_enableHoverMode: boolean): boolean { + if ((!duplicated_backgroundColor) && (value?.hasOwnProperty("backgroundColor"))) { + return true + } + else if ((!duplicated_backgroundBlurStyle) && (value?.hasOwnProperty("backgroundBlurStyle"))) { + return true + } + else if ((!duplicated_barStyle) && (value?.hasOwnProperty("barStyle"))) { + return true + } + else if ((!duplicated_paddingStart) && (value?.hasOwnProperty("paddingStart"))) { + return true + } + else if ((!duplicated_paddingEnd) && (value?.hasOwnProperty("paddingEnd"))) { + return true + } + else if ((!duplicated_mainTitleModifier) && (value?.hasOwnProperty("mainTitleModifier"))) { + return true + } + else if ((!duplicated_subTitleModifier) && (value?.hasOwnProperty("subTitleModifier"))) { + return true + } + else if ((!duplicated_enableHoverMode) && (value?.hasOwnProperty("enableHoverMode"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof NavigationTitleOptions") + } + } + static isNavigationMenuItem(value: object|string|number|undefined|null, duplicated_value: boolean, duplicated_icon: boolean, duplicated_symbolIcon: boolean, duplicated_isEnabled: boolean, duplicated_action: boolean): boolean { + if ((!duplicated_value) && (value?.hasOwnProperty("value"))) { + return true + } + else if ((!duplicated_icon) && (value?.hasOwnProperty("icon"))) { + return true + } + else if ((!duplicated_symbolIcon) && (value?.hasOwnProperty("symbolIcon"))) { + return true + } + else if ((!duplicated_isEnabled) && (value?.hasOwnProperty("isEnabled"))) { + return true + } + else if ((!duplicated_action) && (value?.hasOwnProperty("action"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof NavigationMenuItem") + } + } + static isPopInfo(value: object|string|number|undefined|null, duplicated_info: boolean, duplicated_result: boolean): boolean { + if ((!duplicated_info) && (value?.hasOwnProperty("info"))) { + return true + } + else if ((!duplicated_result) && (value?.hasOwnProperty("result"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof PopInfo") + } + } + static isNavigationOptions(value: object|string|number|undefined|null, duplicated_launchMode: boolean, duplicated_animated: boolean): boolean { + if ((!duplicated_launchMode) && (value?.hasOwnProperty("launchMode"))) { + return true + } + else if ((!duplicated_animated) && (value?.hasOwnProperty("animated"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof NavigationOptions") + } + } + static isNavigationInterception(value: object|string|number|undefined|null, duplicated_willShow: boolean, duplicated_didShow: boolean, duplicated_modeChange: boolean): boolean { + if ((!duplicated_willShow) && (value?.hasOwnProperty("willShow"))) { + return true + } + else if ((!duplicated_didShow) && (value?.hasOwnProperty("didShow"))) { + return true + } + else if ((!duplicated_modeChange) && (value?.hasOwnProperty("modeChange"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof NavigationInterception") + } + } + static isNavigationCommonTitle(value: object|string|number|undefined|null, duplicated_main: boolean, duplicated_sub: boolean): boolean { + if ((!duplicated_main) && (value?.hasOwnProperty("main"))) { + return true + } + else if ((!duplicated_sub) && (value?.hasOwnProperty("sub"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof NavigationCommonTitle") + } + } + static isNavigationCustomTitle(value: object|string|number|undefined|null, duplicated_builder: boolean, duplicated_height: boolean): boolean { + if ((!duplicated_builder) && (value?.hasOwnProperty("builder"))) { + return true + } + else if ((!duplicated_height) && (value?.hasOwnProperty("height"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof NavigationCustomTitle") + } + } + static isToolbarItem(value: object|string|number|undefined|null, duplicated_value: boolean, duplicated_icon: boolean, duplicated_symbolIcon: boolean, duplicated_action: boolean, duplicated_status: boolean, duplicated_activeIcon: boolean, duplicated_activeSymbolIcon: boolean): boolean { + if ((!duplicated_value) && (value?.hasOwnProperty("value"))) { + return true + } + else if ((!duplicated_icon) && (value?.hasOwnProperty("icon"))) { + return true + } + else if ((!duplicated_symbolIcon) && (value?.hasOwnProperty("symbolIcon"))) { + return true + } + else if ((!duplicated_action) && (value?.hasOwnProperty("action"))) { + return true + } + else if ((!duplicated_status) && (value?.hasOwnProperty("status"))) { + return true + } + else if ((!duplicated_activeIcon) && (value?.hasOwnProperty("activeIcon"))) { + return true + } + else if ((!duplicated_activeSymbolIcon) && (value?.hasOwnProperty("activeSymbolIcon"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof ToolbarItem") + } + } + static isNavigationToolbarOptions(value: object|string|number|undefined|null, duplicated_backgroundColor: boolean, duplicated_backgroundBlurStyle: boolean): boolean { + if ((!duplicated_backgroundColor) && (value?.hasOwnProperty("backgroundColor"))) { + return true + } + else if ((!duplicated_backgroundBlurStyle) && (value?.hasOwnProperty("backgroundBlurStyle"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof NavigationToolbarOptions") + } + } + static isNavContentInfo(value: object|string|number|undefined|null, duplicated_name: boolean, duplicated_index: boolean, duplicated_mode: boolean, duplicated_param: boolean, duplicated_navDestinationId: boolean): boolean { + if ((!duplicated_index) && (value?.hasOwnProperty("index"))) { + return true + } + else if ((!duplicated_name) && (value?.hasOwnProperty("name"))) { + return true + } + else if ((!duplicated_mode) && (value?.hasOwnProperty("mode"))) { + return true + } + else if ((!duplicated_param) && (value?.hasOwnProperty("param"))) { + return true + } + else if ((!duplicated_navDestinationId) && (value?.hasOwnProperty("navDestinationId"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof NavContentInfo") + } + } + static isNavigationAnimatedTransition(value: object|string|number|undefined|null, duplicated_onTransitionEnd: boolean, duplicated_timeout: boolean, duplicated_isInteractive: boolean, duplicated_transition: boolean): boolean { + if ((!duplicated_transition) && (value?.hasOwnProperty("transition"))) { + return true + } + else if ((!duplicated_onTransitionEnd) && (value?.hasOwnProperty("onTransitionEnd"))) { + return true + } + else if ((!duplicated_timeout) && (value?.hasOwnProperty("timeout"))) { + return true + } + else if ((!duplicated_isInteractive) && (value?.hasOwnProperty("isInteractive"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof NavigationAnimatedTransition") + } + } + static isPasteButtonOptions(value: object|string|number|undefined|null, duplicated_icon: boolean, duplicated_text: boolean, duplicated_buttonType: boolean): boolean { + if ((!duplicated_icon) && (value?.hasOwnProperty("icon"))) { + return true + } + else if ((!duplicated_text) && (value?.hasOwnProperty("text"))) { + return true + } + else if ((!duplicated_buttonType) && (value?.hasOwnProperty("buttonType"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof PasteButtonOptions") + } + } + static isCircleStyleOptions(value: object|string|number|undefined|null, duplicated_color: boolean, duplicated_radius: boolean, duplicated_enableWaveEffect: boolean): boolean { + if ((!duplicated_color) && (value?.hasOwnProperty("color"))) { + return true + } + else if ((!duplicated_radius) && (value?.hasOwnProperty("radius"))) { + return true + } + else if ((!duplicated_enableWaveEffect) && (value?.hasOwnProperty("enableWaveEffect"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof CircleStyleOptions") + } + } + static isPluginComponentTemplate(value: object|string|number|undefined|null, duplicated_source: boolean, duplicated_bundleName: boolean): boolean { + if ((!duplicated_source) && (value?.hasOwnProperty("source"))) { + return true + } + else if ((!duplicated_bundleName) && (value?.hasOwnProperty("bundleName"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof PluginComponentTemplate") + } + } + static isRadioStyle(value: object|string|number|undefined|null, duplicated_checkedBackgroundColor: boolean, duplicated_uncheckedBorderColor: boolean, duplicated_indicatorColor: boolean): boolean { + if ((!duplicated_checkedBackgroundColor) && (value?.hasOwnProperty("checkedBackgroundColor"))) { + return true + } + else if ((!duplicated_uncheckedBorderColor) && (value?.hasOwnProperty("uncheckedBorderColor"))) { + return true + } + else if ((!duplicated_indicatorColor) && (value?.hasOwnProperty("indicatorColor"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof RadioStyle") + } + } + static isRadioConfiguration(value: object|string|number|undefined|null, duplicated_enabled: boolean, duplicated_contentModifier: boolean, duplicated_value: boolean, duplicated_checked: boolean, duplicated_triggerChange: boolean): boolean { + if ((!duplicated_enabled) && (value?.hasOwnProperty("enabled"))) { + return true + } + else if ((!duplicated_contentModifier) && (value?.hasOwnProperty("contentModifier"))) { + return true + } + else if ((!duplicated_value) && (value?.hasOwnProperty("value"))) { + return true + } + else if ((!duplicated_checked) && (value?.hasOwnProperty("checked"))) { + return true + } + else if ((!duplicated_triggerChange) && (value?.hasOwnProperty("triggerChange"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof RadioConfiguration") + } + } + static isRadioOptions(value: object|string|number|undefined|null, duplicated_group: boolean, duplicated_value: boolean, duplicated_indicatorType: boolean, duplicated_indicatorBuilder: boolean): boolean { + if ((!duplicated_group) && (value?.hasOwnProperty("group"))) { + return true + } + else if ((!duplicated_value) && (value?.hasOwnProperty("value"))) { + return true + } + else if ((!duplicated_indicatorType) && (value?.hasOwnProperty("indicatorType"))) { + return true + } + else if ((!duplicated_indicatorBuilder) && (value?.hasOwnProperty("indicatorBuilder"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof RadioOptions") + } + } + static isStarStyleOptions(value: object|string|number|undefined|null, duplicated_backgroundUri: boolean, duplicated_foregroundUri: boolean, duplicated_secondaryUri: boolean): boolean { + if ((!duplicated_backgroundUri) && (value?.hasOwnProperty("backgroundUri"))) { + return true + } + else if ((!duplicated_foregroundUri) && (value?.hasOwnProperty("foregroundUri"))) { + return true + } + else if ((!duplicated_secondaryUri) && (value?.hasOwnProperty("secondaryUri"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof StarStyleOptions") + } + } + static isRatingConfiguration(value: object|string|number|undefined|null, duplicated_enabled: boolean, duplicated_contentModifier: boolean, duplicated_rating: boolean, duplicated_indicator: boolean, duplicated_stars: boolean, duplicated_stepSize: boolean, duplicated_triggerChange: boolean): boolean { + if ((!duplicated_enabled) && (value?.hasOwnProperty("enabled"))) { + return true + } + else if ((!duplicated_contentModifier) && (value?.hasOwnProperty("contentModifier"))) { + return true + } + else if ((!duplicated_rating) && (value?.hasOwnProperty("rating"))) { + return true + } + else if ((!duplicated_indicator) && (value?.hasOwnProperty("indicator"))) { + return true + } + else if ((!duplicated_stars) && (value?.hasOwnProperty("stars"))) { + return true + } + else if ((!duplicated_stepSize) && (value?.hasOwnProperty("stepSize"))) { + return true + } + else if ((!duplicated_triggerChange) && (value?.hasOwnProperty("triggerChange"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof RatingConfiguration") + } + } + static isRatingOptions(value: object|string|number|undefined|null, duplicated_rating: boolean, duplicated_indicator: boolean): boolean { + if ((!duplicated_rating) && (value?.hasOwnProperty("rating"))) { + return true + } + else if ((!duplicated_indicator) && (value?.hasOwnProperty("indicator"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof RatingOptions") + } + } + static isRefreshOptions(value: object|string|number|undefined|null, duplicated_refreshing: boolean, duplicated_offset: boolean, duplicated_friction: boolean, duplicated_promptText: boolean, duplicated_builder: boolean, duplicated_refreshingContent: boolean): boolean { + if ((!duplicated_refreshing) && (value?.hasOwnProperty("refreshing"))) { + return true + } + else if ((!duplicated_offset) && (value?.hasOwnProperty("offset"))) { + return true + } + else if ((!duplicated_friction) && (value?.hasOwnProperty("friction"))) { + return true + } + else if ((!duplicated_promptText) && (value?.hasOwnProperty("promptText"))) { + return true + } + else if ((!duplicated_builder) && (value?.hasOwnProperty("builder"))) { + return true + } + else if ((!duplicated_refreshingContent) && (value?.hasOwnProperty("refreshingContent"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof RefreshOptions") + } + } + static isGuideLineStyle(value: object|string|number|undefined|null, duplicated_id: boolean, duplicated_direction: boolean, duplicated_position: boolean): boolean { + if ((!duplicated_id) && (value?.hasOwnProperty("id"))) { + return true + } + else if ((!duplicated_direction) && (value?.hasOwnProperty("direction"))) { + return true + } + else if ((!duplicated_position) && (value?.hasOwnProperty("position"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof GuideLineStyle") + } + } + static isGuideLinePosition(value: object|string|number|undefined|null, duplicated_start: boolean, duplicated_end: boolean): boolean { + if ((!duplicated_start) && (value?.hasOwnProperty("start"))) { + return true + } + else if ((!duplicated_end) && (value?.hasOwnProperty("end"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof GuideLinePosition") + } + } + static isBarrierStyle(value: object|string|number|undefined|null, duplicated_id: boolean, duplicated_direction: boolean, duplicated_referencedId: boolean): boolean { + if ((!duplicated_id) && (value?.hasOwnProperty("id"))) { + return true + } + else if ((!duplicated_direction) && (value?.hasOwnProperty("direction"))) { + return true + } + else if ((!duplicated_referencedId) && (value?.hasOwnProperty("referencedId"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof BarrierStyle") + } + } + static isLocalizedBarrierStyle(value: object|string|number|undefined|null, duplicated_id: boolean, duplicated_localizedDirection: boolean, duplicated_referencedId: boolean): boolean { + if ((!duplicated_id) && (value?.hasOwnProperty("id"))) { + return true + } + else if ((!duplicated_localizedDirection) && (value?.hasOwnProperty("localizedDirection"))) { + return true + } + else if ((!duplicated_referencedId) && (value?.hasOwnProperty("referencedId"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof LocalizedBarrierStyle") + } + } + static isRichEditorSelection(value: object|string|number|undefined|null, duplicated_selection: boolean, duplicated_spans: boolean): boolean { + if ((!duplicated_selection) && (value?.hasOwnProperty("selection"))) { + return true + } + else if ((!duplicated_spans) && (value?.hasOwnProperty("spans"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof RichEditorSelection") + } + } + static isRichEditorTextSpanResult(value: object|string|number|undefined|null, duplicated_spanPosition: boolean, duplicated_value: boolean, duplicated_textStyle: boolean, duplicated_offsetInSpan: boolean, duplicated_symbolSpanStyle: boolean, duplicated_valueResource: boolean, duplicated_paragraphStyle: boolean, duplicated_previewText: boolean): boolean { + if ((!duplicated_spanPosition) && (value?.hasOwnProperty("spanPosition"))) { + return true + } + else if ((!duplicated_value) && (value?.hasOwnProperty("value"))) { + return true + } + else if ((!duplicated_textStyle) && (value?.hasOwnProperty("textStyle"))) { + return true + } + else if ((!duplicated_offsetInSpan) && (value?.hasOwnProperty("offsetInSpan"))) { + return true + } + else if ((!duplicated_symbolSpanStyle) && (value?.hasOwnProperty("symbolSpanStyle"))) { + return true + } + else if ((!duplicated_valueResource) && (value?.hasOwnProperty("valueResource"))) { + return true + } + else if ((!duplicated_paragraphStyle) && (value?.hasOwnProperty("paragraphStyle"))) { + return true + } + else if ((!duplicated_previewText) && (value?.hasOwnProperty("previewText"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof RichEditorTextSpanResult") + } + } + static isRichEditorSpanPosition(value: object|string|number|undefined|null, duplicated_spanIndex: boolean, duplicated_spanRange: boolean): boolean { + if ((!duplicated_spanIndex) && (value?.hasOwnProperty("spanIndex"))) { + return true + } + else if ((!duplicated_spanRange) && (value?.hasOwnProperty("spanRange"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof RichEditorSpanPosition") + } + } + static isRichEditorTextStyleResult(value: object|string|number|undefined|null, duplicated_fontColor: boolean, duplicated_fontSize: boolean, duplicated_fontStyle: boolean, duplicated_fontWeight: boolean, duplicated_fontFamily: boolean, duplicated_decoration: boolean, duplicated_textShadow: boolean, duplicated_letterSpacing: boolean, duplicated_lineHeight: boolean, duplicated_fontFeature: boolean): boolean { + if ((!duplicated_fontColor) && (value?.hasOwnProperty("fontColor"))) { + return true + } + else if ((!duplicated_fontSize) && (value?.hasOwnProperty("fontSize"))) { + return true + } + else if ((!duplicated_fontStyle) && (value?.hasOwnProperty("fontStyle"))) { + return true + } + else if ((!duplicated_fontWeight) && (value?.hasOwnProperty("fontWeight"))) { + return true + } + else if ((!duplicated_fontFamily) && (value?.hasOwnProperty("fontFamily"))) { + return true + } + else if ((!duplicated_decoration) && (value?.hasOwnProperty("decoration"))) { + return true + } + else if ((!duplicated_textShadow) && (value?.hasOwnProperty("textShadow"))) { + return true + } + else if ((!duplicated_letterSpacing) && (value?.hasOwnProperty("letterSpacing"))) { + return true + } + else if ((!duplicated_lineHeight) && (value?.hasOwnProperty("lineHeight"))) { + return true + } + else if ((!duplicated_fontFeature) && (value?.hasOwnProperty("fontFeature"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof RichEditorTextStyleResult") + } + } + static isRichEditorSymbolSpanStyle(value: object|string|number|undefined|null, duplicated_fontSize: boolean, duplicated_fontColor: boolean, duplicated_fontWeight: boolean, duplicated_effectStrategy: boolean, duplicated_renderingStrategy: boolean): boolean { + if ((!duplicated_fontSize) && (value?.hasOwnProperty("fontSize"))) { + return true + } + else if ((!duplicated_fontColor) && (value?.hasOwnProperty("fontColor"))) { + return true + } + else if ((!duplicated_fontWeight) && (value?.hasOwnProperty("fontWeight"))) { + return true + } + else if ((!duplicated_effectStrategy) && (value?.hasOwnProperty("effectStrategy"))) { + return true + } + else if ((!duplicated_renderingStrategy) && (value?.hasOwnProperty("renderingStrategy"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof RichEditorSymbolSpanStyle") + } + } + static isRichEditorParagraphStyle(value: object|string|number|undefined|null, duplicated_textAlign: boolean, duplicated_leadingMargin: boolean, duplicated_wordBreak: boolean, duplicated_lineBreakStrategy: boolean): boolean { + if ((!duplicated_textAlign) && (value?.hasOwnProperty("textAlign"))) { + return true + } + else if ((!duplicated_leadingMargin) && (value?.hasOwnProperty("leadingMargin"))) { + return true + } + else if ((!duplicated_wordBreak) && (value?.hasOwnProperty("wordBreak"))) { + return true + } + else if ((!duplicated_lineBreakStrategy) && (value?.hasOwnProperty("lineBreakStrategy"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof RichEditorParagraphStyle") + } + } + static isLeadingMarginPlaceholder(value: object|string|number|undefined|null, duplicated_pixelMap: boolean, duplicated_size: boolean): boolean { + if ((!duplicated_pixelMap) && (value?.hasOwnProperty("pixelMap"))) { + return true + } + else if ((!duplicated_size) && (value?.hasOwnProperty("size"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof LeadingMarginPlaceholder") + } + } + static isRichEditorImageSpanResult(value: object|string|number|undefined|null, duplicated_spanPosition: boolean, duplicated_valuePixelMap: boolean, duplicated_valueResourceStr: boolean, duplicated_imageStyle: boolean, duplicated_offsetInSpan: boolean): boolean { + if ((!duplicated_spanPosition) && (value?.hasOwnProperty("spanPosition"))) { + return true + } + else if ((!duplicated_imageStyle) && (value?.hasOwnProperty("imageStyle"))) { + return true + } + else if ((!duplicated_offsetInSpan) && (value?.hasOwnProperty("offsetInSpan"))) { + return true + } + else if ((!duplicated_valuePixelMap) && (value?.hasOwnProperty("valuePixelMap"))) { + return true + } + else if ((!duplicated_valueResourceStr) && (value?.hasOwnProperty("valueResourceStr"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof RichEditorImageSpanResult") + } + } + static isRichEditorImageSpanStyleResult(value: object|string|number|undefined|null, duplicated_size: boolean, duplicated_verticalAlign: boolean, duplicated_objectFit: boolean, duplicated_layoutStyle: boolean): boolean { + if ((!duplicated_size) && (value?.hasOwnProperty("size"))) { + return true + } + else if ((!duplicated_verticalAlign) && (value?.hasOwnProperty("verticalAlign"))) { + return true + } + else if ((!duplicated_objectFit) && (value?.hasOwnProperty("objectFit"))) { + return true + } + else if ((!duplicated_layoutStyle) && (value?.hasOwnProperty("layoutStyle"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof RichEditorImageSpanStyleResult") + } + } + static isRichEditorLayoutStyle(value: object|string|number|undefined|null, duplicated_margin: boolean, duplicated_borderRadius: boolean): boolean { + if ((!duplicated_margin) && (value?.hasOwnProperty("margin"))) { + return true + } + else if ((!duplicated_borderRadius) && (value?.hasOwnProperty("borderRadius"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof RichEditorLayoutStyle") + } + } + static isRichEditorRange(value: object|string|number|undefined|null, duplicated_start: boolean, duplicated_end: boolean): boolean { + if ((!duplicated_start) && (value?.hasOwnProperty("start"))) { + return true + } + else if ((!duplicated_end) && (value?.hasOwnProperty("end"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof RichEditorRange") + } + } + static isRichEditorInsertValue(value: object|string|number|undefined|null, duplicated_insertOffset: boolean, duplicated_insertValue: boolean, duplicated_previewText: boolean): boolean { + if ((!duplicated_insertOffset) && (value?.hasOwnProperty("insertOffset"))) { + return true + } + else if ((!duplicated_insertValue) && (value?.hasOwnProperty("insertValue"))) { + return true + } + else if ((!duplicated_previewText) && (value?.hasOwnProperty("previewText"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof RichEditorInsertValue") + } + } + static isRichEditorDeleteValue(value: object|string|number|undefined|null, duplicated_offset: boolean, duplicated_direction: boolean, duplicated_length: boolean, duplicated_richEditorDeleteSpans: boolean): boolean { + if ((!duplicated_offset) && (value?.hasOwnProperty("offset"))) { + return true + } + else if ((!duplicated_direction) && (value?.hasOwnProperty("direction"))) { + return true + } + else if ((!duplicated_length) && (value?.hasOwnProperty("length"))) { + return true + } + else if ((!duplicated_richEditorDeleteSpans) && (value?.hasOwnProperty("richEditorDeleteSpans"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof RichEditorDeleteValue") + } + } + static isSelectionMenuOptions(value: object|string|number|undefined|null, duplicated_onAppear: boolean, duplicated_onDisappear: boolean, duplicated_menuType: boolean): boolean { + if ((!duplicated_onAppear) && (value?.hasOwnProperty("onAppear"))) { + return true + } + else if ((!duplicated_onDisappear) && (value?.hasOwnProperty("onDisappear"))) { + return true + } + else if ((!duplicated_menuType) && (value?.hasOwnProperty("menuType"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof SelectionMenuOptions") + } + } + static isKeyboardOptions(value: object|string|number|undefined|null, duplicated_supportAvoidance: boolean): boolean { + if ((!duplicated_supportAvoidance) && (value?.hasOwnProperty("supportAvoidance"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof KeyboardOptions") + } + } + static isPasteEvent(value: object|string|number|undefined|null, duplicated_preventDefault: boolean): boolean { + if ((!duplicated_preventDefault) && (value?.hasOwnProperty("preventDefault"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof PasteEvent") + } + } + static isPlaceholderStyle(value: object|string|number|undefined|null, duplicated_font: boolean, duplicated_fontColor: boolean): boolean { + if ((!duplicated_font) && (value?.hasOwnProperty("font"))) { + return true + } + else if ((!duplicated_fontColor) && (value?.hasOwnProperty("fontColor"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof PlaceholderStyle") + } + } + static isRichEditorChangeValue(value: object|string|number|undefined|null, duplicated_rangeBefore: boolean, duplicated_replacedSpans: boolean, duplicated_replacedImageSpans: boolean, duplicated_replacedSymbolSpans: boolean): boolean { + if ((!duplicated_rangeBefore) && (value?.hasOwnProperty("rangeBefore"))) { + return true + } + else if ((!duplicated_replacedSpans) && (value?.hasOwnProperty("replacedSpans"))) { + return true + } + else if ((!duplicated_replacedImageSpans) && (value?.hasOwnProperty("replacedImageSpans"))) { + return true + } + else if ((!duplicated_replacedSymbolSpans) && (value?.hasOwnProperty("replacedSymbolSpans"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof RichEditorChangeValue") + } + } + static isCutEvent(value: object|string|number|undefined|null, duplicated_preventDefault: boolean): boolean { + if ((!duplicated_preventDefault) && (value?.hasOwnProperty("preventDefault"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof CutEvent") + } + } + static isCopyEvent(value: object|string|number|undefined|null, duplicated_preventDefault: boolean): boolean { + if ((!duplicated_preventDefault) && (value?.hasOwnProperty("preventDefault"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof CopyEvent") + } + } + static isRichEditorOptions(value: object|string|number|undefined|null, duplicated_controller: boolean): boolean { + if ((!duplicated_controller) && (value?.hasOwnProperty("controller"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof RichEditorOptions") + } + } + static isRichEditorTextStyle(value: object|string|number|undefined|null, duplicated_fontColor: boolean, duplicated_fontSize: boolean, duplicated_fontStyle: boolean, duplicated_fontWeight: boolean, duplicated_fontFamily: boolean, duplicated_decoration: boolean, duplicated_textShadow: boolean, duplicated_letterSpacing: boolean, duplicated_lineHeight: boolean, duplicated_fontFeature: boolean): boolean { + if ((!duplicated_fontColor) && (value?.hasOwnProperty("fontColor"))) { + return true + } + else if ((!duplicated_fontSize) && (value?.hasOwnProperty("fontSize"))) { + return true + } + else if ((!duplicated_fontStyle) && (value?.hasOwnProperty("fontStyle"))) { + return true + } + else if ((!duplicated_fontWeight) && (value?.hasOwnProperty("fontWeight"))) { + return true + } + else if ((!duplicated_fontFamily) && (value?.hasOwnProperty("fontFamily"))) { + return true + } + else if ((!duplicated_decoration) && (value?.hasOwnProperty("decoration"))) { + return true + } + else if ((!duplicated_textShadow) && (value?.hasOwnProperty("textShadow"))) { + return true + } + else if ((!duplicated_letterSpacing) && (value?.hasOwnProperty("letterSpacing"))) { + return true + } + else if ((!duplicated_lineHeight) && (value?.hasOwnProperty("lineHeight"))) { + return true + } + else if ((!duplicated_fontFeature) && (value?.hasOwnProperty("fontFeature"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof RichEditorTextStyle") + } + } + static isRichEditorTextSpanOptions(value: object|string|number|undefined|null, duplicated_offset: boolean, duplicated_style: boolean, duplicated_paragraphStyle: boolean, duplicated_gesture: boolean): boolean { + if ((!duplicated_offset) && (value?.hasOwnProperty("offset"))) { + return true + } + else if ((!duplicated_style) && (value?.hasOwnProperty("style"))) { + return true + } + else if ((!duplicated_paragraphStyle) && (value?.hasOwnProperty("paragraphStyle"))) { + return true + } + else if ((!duplicated_gesture) && (value?.hasOwnProperty("gesture"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof RichEditorTextSpanOptions") + } + } + static isRichEditorGesture(value: object|string|number|undefined|null, duplicated_onClick: boolean, duplicated_onLongPress: boolean): boolean { + if ((!duplicated_onClick) && (value?.hasOwnProperty("onClick"))) { + return true + } + else if ((!duplicated_onLongPress) && (value?.hasOwnProperty("onLongPress"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof RichEditorGesture") + } + } + static isRichEditorImageSpanOptions(value: object|string|number|undefined|null, duplicated_offset: boolean, duplicated_imageStyle: boolean, duplicated_gesture: boolean): boolean { + if ((!duplicated_offset) && (value?.hasOwnProperty("offset"))) { + return true + } + else if ((!duplicated_imageStyle) && (value?.hasOwnProperty("imageStyle"))) { + return true + } + else if ((!duplicated_gesture) && (value?.hasOwnProperty("gesture"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof RichEditorImageSpanOptions") + } + } + static isRichEditorImageSpanStyle(value: object|string|number|undefined|null, duplicated_size: boolean, duplicated_verticalAlign: boolean, duplicated_objectFit: boolean, duplicated_layoutStyle: boolean): boolean { + if ((!duplicated_size) && (value?.hasOwnProperty("size"))) { + return true + } + else if ((!duplicated_verticalAlign) && (value?.hasOwnProperty("verticalAlign"))) { + return true + } + else if ((!duplicated_objectFit) && (value?.hasOwnProperty("objectFit"))) { + return true + } + else if ((!duplicated_layoutStyle) && (value?.hasOwnProperty("layoutStyle"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof RichEditorImageSpanStyle") + } + } + static isRichEditorBuilderSpanOptions(value: object|string|number|undefined|null, duplicated_offset: boolean): boolean { + if ((!duplicated_offset) && (value?.hasOwnProperty("offset"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof RichEditorBuilderSpanOptions") + } + } + static isRichEditorSymbolSpanOptions(value: object|string|number|undefined|null, duplicated_offset: boolean, duplicated_style: boolean): boolean { + if ((!duplicated_offset) && (value?.hasOwnProperty("offset"))) { + return true + } + else if ((!duplicated_style) && (value?.hasOwnProperty("style"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof RichEditorSymbolSpanOptions") + } + } + static isRichEditorUpdateTextSpanStyleOptions(value: object|string|number|undefined|null, duplicated_start: boolean, duplicated_end: boolean, duplicated_textStyle: boolean): boolean { + if ((!duplicated_textStyle) && (value?.hasOwnProperty("textStyle"))) { + return true + } + else if ((!duplicated_start) && (value?.hasOwnProperty("start"))) { + return true + } + else if ((!duplicated_end) && (value?.hasOwnProperty("end"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof RichEditorUpdateTextSpanStyleOptions") + } + } + static isRichEditorSpanStyleOptions(value: object|string|number|undefined|null, duplicated_start: boolean, duplicated_end: boolean): boolean { + if ((!duplicated_start) && (value?.hasOwnProperty("start"))) { + return true + } + else if ((!duplicated_end) && (value?.hasOwnProperty("end"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof RichEditorSpanStyleOptions") + } + } + static isRichEditorUpdateImageSpanStyleOptions(value: object|string|number|undefined|null, duplicated_start: boolean, duplicated_end: boolean, duplicated_imageStyle: boolean): boolean { + if ((!duplicated_imageStyle) && (value?.hasOwnProperty("imageStyle"))) { + return true + } + else if ((!duplicated_start) && (value?.hasOwnProperty("start"))) { + return true + } + else if ((!duplicated_end) && (value?.hasOwnProperty("end"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof RichEditorUpdateImageSpanStyleOptions") + } + } + static isRichEditorUpdateSymbolSpanStyleOptions(value: object|string|number|undefined|null, duplicated_start: boolean, duplicated_end: boolean, duplicated_symbolStyle: boolean): boolean { + if ((!duplicated_symbolStyle) && (value?.hasOwnProperty("symbolStyle"))) { + return true + } + else if ((!duplicated_start) && (value?.hasOwnProperty("start"))) { + return true + } + else if ((!duplicated_end) && (value?.hasOwnProperty("end"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof RichEditorUpdateSymbolSpanStyleOptions") + } + } + static isRichEditorParagraphStyleOptions(value: object|string|number|undefined|null, duplicated_start: boolean, duplicated_end: boolean, duplicated_style: boolean): boolean { + if ((!duplicated_style) && (value?.hasOwnProperty("style"))) { + return true + } + else if ((!duplicated_start) && (value?.hasOwnProperty("start"))) { + return true + } + else if ((!duplicated_end) && (value?.hasOwnProperty("end"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof RichEditorParagraphStyleOptions") + } + } + static isRichEditorParagraphResult(value: object|string|number|undefined|null, duplicated_style: boolean, duplicated_range: boolean): boolean { + if ((!duplicated_style) && (value?.hasOwnProperty("style"))) { + return true + } + else if ((!duplicated_range) && (value?.hasOwnProperty("range"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof RichEditorParagraphResult") + } + } + static isRichEditorStyledStringOptions(value: object|string|number|undefined|null, duplicated_controller: boolean): boolean { + if ((!duplicated_controller) && (value?.hasOwnProperty("controller"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof RichEditorStyledStringOptions") + } + } + static isRowOptions(value: object|string|number|undefined|null, duplicated_space: boolean): boolean { + if ((!duplicated_space) && (value?.hasOwnProperty("space"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof RowOptions") + } + } + static isSaveButtonOptions(value: object|string|number|undefined|null, duplicated_icon: boolean, duplicated_text: boolean, duplicated_buttonType: boolean): boolean { + if ((!duplicated_icon) && (value?.hasOwnProperty("icon"))) { + return true + } + else if ((!duplicated_text) && (value?.hasOwnProperty("text"))) { + return true + } + else if ((!duplicated_buttonType) && (value?.hasOwnProperty("buttonType"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof SaveButtonOptions") + } + } + static isScrollOptions(value: object|string|number|undefined|null, duplicated_xOffset: boolean, duplicated_yOffset: boolean, duplicated_animation: boolean): boolean { + if ((!duplicated_xOffset) && (value?.hasOwnProperty("xOffset"))) { + return true + } + else if ((!duplicated_yOffset) && (value?.hasOwnProperty("yOffset"))) { + return true + } + else if ((!duplicated_animation) && (value?.hasOwnProperty("animation"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof ScrollOptions") + } + } + static isScrollAnimationOptions(value: object|string|number|undefined|null, duplicated_duration: boolean, duplicated_curve: boolean, duplicated_canOverScroll: boolean): boolean { + if ((!duplicated_duration) && (value?.hasOwnProperty("duration"))) { + return true + } + else if ((!duplicated_curve) && (value?.hasOwnProperty("curve"))) { + return true + } + else if ((!duplicated_canOverScroll) && (value?.hasOwnProperty("canOverScroll"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof ScrollAnimationOptions") + } + } + static isScrollEdgeOptions(value: object|string|number|undefined|null, duplicated_velocity: boolean): boolean { + if ((!duplicated_velocity) && (value?.hasOwnProperty("velocity"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof ScrollEdgeOptions") + } + } + static isOffsetResult(value: object|string|number|undefined|null, duplicated_xOffset: boolean, duplicated_yOffset: boolean): boolean { + if ((!duplicated_xOffset) && (value?.hasOwnProperty("xOffset"))) { + return true + } + else if ((!duplicated_yOffset) && (value?.hasOwnProperty("yOffset"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof OffsetResult") + } + } + static isScrollToIndexOptions(value: object|string|number|undefined|null, duplicated_extraOffset: boolean): boolean { + if ((!duplicated_extraOffset) && (value?.hasOwnProperty("extraOffset"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof ScrollToIndexOptions") + } + } + static isOnScrollFrameBeginHandlerResult(value: object|string|number|undefined|null, duplicated_offsetRemain: boolean): boolean { + if ((!duplicated_offsetRemain) && (value?.hasOwnProperty("offsetRemain"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof OnScrollFrameBeginHandlerResult") + } + } + static isScrollSnapOptions(value: object|string|number|undefined|null, duplicated_snapAlign: boolean, duplicated_snapPagination: boolean, duplicated_enableSnapToStart: boolean, duplicated_enableSnapToEnd: boolean): boolean { + if ((!duplicated_snapAlign) && (value?.hasOwnProperty("snapAlign"))) { + return true + } + else if ((!duplicated_snapPagination) && (value?.hasOwnProperty("snapPagination"))) { + return true + } + else if ((!duplicated_enableSnapToStart) && (value?.hasOwnProperty("enableSnapToStart"))) { + return true + } + else if ((!duplicated_enableSnapToEnd) && (value?.hasOwnProperty("enableSnapToEnd"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof ScrollSnapOptions") + } + } + static isOffsetOptions(value: object|string|number|undefined|null, duplicated_xOffset: boolean, duplicated_yOffset: boolean): boolean { + if ((!duplicated_xOffset) && (value?.hasOwnProperty("xOffset"))) { + return true + } + else if ((!duplicated_yOffset) && (value?.hasOwnProperty("yOffset"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof OffsetOptions") + } + } + static isScrollBarOptions(value: object|string|number|undefined|null, duplicated_scroller: boolean, duplicated_direction: boolean, duplicated_state: boolean): boolean { + if ((!duplicated_scroller) && (value?.hasOwnProperty("scroller"))) { + return true + } + else if ((!duplicated_direction) && (value?.hasOwnProperty("direction"))) { + return true + } + else if ((!duplicated_state) && (value?.hasOwnProperty("state"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof ScrollBarOptions") + } + } + static isSearchButtonOptions(value: object|string|number|undefined|null, duplicated_fontSize: boolean, duplicated_fontColor: boolean): boolean { + if ((!duplicated_fontSize) && (value?.hasOwnProperty("fontSize"))) { + return true + } + else if ((!duplicated_fontColor) && (value?.hasOwnProperty("fontColor"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof SearchButtonOptions") + } + } + static isIconOptions(value: object|string|number|undefined|null, duplicated_size: boolean, duplicated_color: boolean, duplicated_src: boolean): boolean { + if ((!duplicated_size) && (value?.hasOwnProperty("size"))) { + return true + } + else if ((!duplicated_color) && (value?.hasOwnProperty("color"))) { + return true + } + else if ((!duplicated_src) && (value?.hasOwnProperty("src"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof IconOptions") + } + } + static isCancelButtonOptions(value: object|string|number|undefined|null, duplicated_style: boolean, duplicated_icon: boolean): boolean { + if ((!duplicated_style) && (value?.hasOwnProperty("style"))) { + return true + } + else if ((!duplicated_icon) && (value?.hasOwnProperty("icon"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof CancelButtonOptions") + } + } + static isCancelButtonSymbolOptions(value: object|string|number|undefined|null, duplicated_style: boolean, duplicated_icon: boolean): boolean { + if ((!duplicated_style) && (value?.hasOwnProperty("style"))) { + return true + } + else if ((!duplicated_icon) && (value?.hasOwnProperty("icon"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof CancelButtonSymbolOptions") + } + } + static isMenuItemConfiguration(value: object|string|number|undefined|null, duplicated_enabled: boolean, duplicated_contentModifier: boolean, duplicated_value: boolean, duplicated_icon: boolean, duplicated_symbolIcon: boolean, duplicated_selected: boolean, duplicated_index: boolean): boolean { + if ((!duplicated_enabled) && (value?.hasOwnProperty("enabled"))) { + return true + } + else if ((!duplicated_contentModifier) && (value?.hasOwnProperty("contentModifier"))) { + return true + } + else if ((!duplicated_value) && (value?.hasOwnProperty("value"))) { + return true + } + else if ((!duplicated_selected) && (value?.hasOwnProperty("selected"))) { + return true + } + else if ((!duplicated_index) && (value?.hasOwnProperty("index"))) { + return true + } + else if ((!duplicated_icon) && (value?.hasOwnProperty("icon"))) { + return true + } + else if ((!duplicated_symbolIcon) && (value?.hasOwnProperty("symbolIcon"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof MenuItemConfiguration") + } + } + static isSelectOption(value: object|string|number|undefined|null, duplicated_value: boolean, duplicated_icon: boolean, duplicated_symbolIcon: boolean): boolean { + if ((!duplicated_value) && (value?.hasOwnProperty("value"))) { + return true + } + else if ((!duplicated_icon) && (value?.hasOwnProperty("icon"))) { + return true + } + else if ((!duplicated_symbolIcon) && (value?.hasOwnProperty("symbolIcon"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof SelectOption") + } + } + static isSliderBlockStyle(value: object|string|number|undefined|null, duplicated_type: boolean, duplicated_image: boolean, duplicated_shape: boolean): boolean { + if ((!duplicated_type) && (value?.hasOwnProperty("type"))) { + return true + } + else if ((!duplicated_image) && (value?.hasOwnProperty("image"))) { + return true + } + else if ((!duplicated_shape) && (value?.hasOwnProperty("shape"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof SliderBlockStyle") + } + } + static isSliderConfiguration(value: object|string|number|undefined|null, duplicated_enabled: boolean, duplicated_contentModifier: boolean, duplicated_value: boolean, duplicated_min: boolean, duplicated_max: boolean, duplicated_step: boolean, duplicated_triggerChange: boolean): boolean { + if ((!duplicated_enabled) && (value?.hasOwnProperty("enabled"))) { + return true + } + else if ((!duplicated_contentModifier) && (value?.hasOwnProperty("contentModifier"))) { + return true + } + else if ((!duplicated_value) && (value?.hasOwnProperty("value"))) { + return true + } + else if ((!duplicated_min) && (value?.hasOwnProperty("min"))) { + return true + } + else if ((!duplicated_max) && (value?.hasOwnProperty("max"))) { + return true + } + else if ((!duplicated_step) && (value?.hasOwnProperty("step"))) { + return true + } + else if ((!duplicated_triggerChange) && (value?.hasOwnProperty("triggerChange"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof SliderConfiguration") + } + } + static isSlideRange(value: object|string|number|undefined|null, duplicated_from: boolean, duplicated_to: boolean): boolean { + if ((!duplicated_from) && (value?.hasOwnProperty("from"))) { + return true + } + else if ((!duplicated_to) && (value?.hasOwnProperty("to"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof SlideRange") + } + } + static isSliderOptions(value: object|string|number|undefined|null, duplicated_value: boolean, duplicated_min: boolean, duplicated_max: boolean, duplicated_step: boolean, duplicated_style: boolean, duplicated_direction: boolean, duplicated_reverse: boolean): boolean { + if ((!duplicated_value) && (value?.hasOwnProperty("value"))) { + return true + } + else if ((!duplicated_min) && (value?.hasOwnProperty("min"))) { + return true + } + else if ((!duplicated_max) && (value?.hasOwnProperty("max"))) { + return true + } + else if ((!duplicated_step) && (value?.hasOwnProperty("step"))) { + return true + } + else if ((!duplicated_style) && (value?.hasOwnProperty("style"))) { + return true + } + else if ((!duplicated_direction) && (value?.hasOwnProperty("direction"))) { + return true + } + else if ((!duplicated_reverse) && (value?.hasOwnProperty("reverse"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof SliderOptions") + } + } + static isTextBackgroundStyle(value: object|string|number|undefined|null, duplicated_color: boolean, duplicated_radius: boolean): boolean { + if ((!duplicated_color) && (value?.hasOwnProperty("color"))) { + return true + } + else if ((!duplicated_radius) && (value?.hasOwnProperty("radius"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof TextBackgroundStyle") + } + } + static isStackOptions(value: object|string|number|undefined|null, duplicated_alignContent: boolean): boolean { + if ((!duplicated_alignContent) && (value?.hasOwnProperty("alignContent"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof StackOptions") + } + } + static isArrowStyle(value: object|string|number|undefined|null, duplicated_showBackground: boolean, duplicated_isSidebarMiddle: boolean, duplicated_backgroundSize: boolean, duplicated_backgroundColor: boolean, duplicated_arrowSize: boolean, duplicated_arrowColor: boolean): boolean { + if ((!duplicated_showBackground) && (value?.hasOwnProperty("showBackground"))) { + return true + } + else if ((!duplicated_isSidebarMiddle) && (value?.hasOwnProperty("isSidebarMiddle"))) { + return true + } + else if ((!duplicated_backgroundSize) && (value?.hasOwnProperty("backgroundSize"))) { + return true + } + else if ((!duplicated_backgroundColor) && (value?.hasOwnProperty("backgroundColor"))) { + return true + } + else if ((!duplicated_arrowSize) && (value?.hasOwnProperty("arrowSize"))) { + return true + } + else if ((!duplicated_arrowColor) && (value?.hasOwnProperty("arrowColor"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof ArrowStyle") + } + } + static isSwiperAutoFill(value: object|string|number|undefined|null, duplicated_minSize: boolean): boolean { + if ((!duplicated_minSize) && (value?.hasOwnProperty("minSize"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof SwiperAutoFill") + } + } + static isIndicatorStyle(value: object|string|number|undefined|null, duplicated_left: boolean, duplicated_top: boolean, duplicated_right: boolean, duplicated_bottom: boolean, duplicated_size: boolean, duplicated_mask: boolean, duplicated_color: boolean, duplicated_selectedColor: boolean): boolean { + if ((!duplicated_left) && (value?.hasOwnProperty("left"))) { + return true + } + else if ((!duplicated_top) && (value?.hasOwnProperty("top"))) { + return true + } + else if ((!duplicated_right) && (value?.hasOwnProperty("right"))) { + return true + } + else if ((!duplicated_bottom) && (value?.hasOwnProperty("bottom"))) { + return true + } + else if ((!duplicated_size) && (value?.hasOwnProperty("size"))) { + return true + } + else if ((!duplicated_mask) && (value?.hasOwnProperty("mask"))) { + return true + } + else if ((!duplicated_color) && (value?.hasOwnProperty("color"))) { + return true + } + else if ((!duplicated_selectedColor) && (value?.hasOwnProperty("selectedColor"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof IndicatorStyle") + } + } + static isSwiperAnimationEvent(value: object|string|number|undefined|null, duplicated_currentOffset: boolean, duplicated_targetOffset: boolean, duplicated_velocity: boolean): boolean { + if ((!duplicated_currentOffset) && (value?.hasOwnProperty("currentOffset"))) { + return true + } + else if ((!duplicated_targetOffset) && (value?.hasOwnProperty("targetOffset"))) { + return true + } + else if ((!duplicated_velocity) && (value?.hasOwnProperty("velocity"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof SwiperAnimationEvent") + } + } + static isSwiperContentAnimatedTransition(value: object|string|number|undefined|null, duplicated_timeout: boolean, duplicated_transition: boolean): boolean { + if ((!duplicated_transition) && (value?.hasOwnProperty("transition"))) { + return true + } + else if ((!duplicated_timeout) && (value?.hasOwnProperty("timeout"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof SwiperContentAnimatedTransition") + } + } + static isScrollableBarModeOptions(value: object|string|number|undefined|null, duplicated_margin: boolean, duplicated_nonScrollableLayoutStyle: boolean): boolean { + if ((!duplicated_margin) && (value?.hasOwnProperty("margin"))) { + return true + } + else if ((!duplicated_nonScrollableLayoutStyle) && (value?.hasOwnProperty("nonScrollableLayoutStyle"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof ScrollableBarModeOptions") + } + } + static isTabsAnimationEvent(value: object|string|number|undefined|null, duplicated_currentOffset: boolean, duplicated_targetOffset: boolean, duplicated_velocity: boolean): boolean { + if ((!duplicated_currentOffset) && (value?.hasOwnProperty("currentOffset"))) { + return true + } + else if ((!duplicated_targetOffset) && (value?.hasOwnProperty("targetOffset"))) { + return true + } + else if ((!duplicated_velocity) && (value?.hasOwnProperty("velocity"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof TabsAnimationEvent") + } + } + static isDividerStyle(value: object|string|number|undefined|null, duplicated_strokeWidth: boolean, duplicated_color: boolean, duplicated_startMargin: boolean, duplicated_endMargin: boolean): boolean { + if ((!duplicated_strokeWidth) && (value?.hasOwnProperty("strokeWidth"))) { + return true + } + else if ((!duplicated_color) && (value?.hasOwnProperty("color"))) { + return true + } + else if ((!duplicated_startMargin) && (value?.hasOwnProperty("startMargin"))) { + return true + } + else if ((!duplicated_endMargin) && (value?.hasOwnProperty("endMargin"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof DividerStyle") + } + } + static isBarGridColumnOptions(value: object|string|number|undefined|null, duplicated_sm: boolean, duplicated_md: boolean, duplicated_lg: boolean, duplicated_margin: boolean, duplicated_gutter: boolean): boolean { + if ((!duplicated_sm) && (value?.hasOwnProperty("sm"))) { + return true + } + else if ((!duplicated_md) && (value?.hasOwnProperty("md"))) { + return true + } + else if ((!duplicated_lg) && (value?.hasOwnProperty("lg"))) { + return true + } + else if ((!duplicated_margin) && (value?.hasOwnProperty("margin"))) { + return true + } + else if ((!duplicated_gutter) && (value?.hasOwnProperty("gutter"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof BarGridColumnOptions") + } + } + static isTabContentAnimatedTransition(value: object|string|number|undefined|null, duplicated_timeout: boolean, duplicated_transition: boolean): boolean { + if ((!duplicated_transition) && (value?.hasOwnProperty("transition"))) { + return true + } + else if ((!duplicated_timeout) && (value?.hasOwnProperty("timeout"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof TabContentAnimatedTransition") + } + } + static isBoardStyle(value: object|string|number|undefined|null, duplicated_borderRadius: boolean): boolean { + if ((!duplicated_borderRadius) && (value?.hasOwnProperty("borderRadius"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof BoardStyle") + } + } + static isTabBarIconStyle(value: object|string|number|undefined|null, duplicated_selectedColor: boolean, duplicated_unselectedColor: boolean): boolean { + if ((!duplicated_selectedColor) && (value?.hasOwnProperty("selectedColor"))) { + return true + } + else if ((!duplicated_unselectedColor) && (value?.hasOwnProperty("unselectedColor"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof TabBarIconStyle") + } + } + static isTextOverflowOptions(value: object|string|number|undefined|null, duplicated_overflow: boolean): boolean { + if ((!duplicated_overflow) && (value?.hasOwnProperty("overflow"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof TextOverflowOptions") + } + } + static isTextOptions(value: object|string|number|undefined|null, duplicated_controller: boolean): boolean { + if ((!duplicated_controller) && (value?.hasOwnProperty("controller"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof TextOptions") + } + } + static isTextAreaOptions(value: object|string|number|undefined|null, duplicated_placeholder: boolean, duplicated_text: boolean, duplicated_controller: boolean): boolean { + if ((!duplicated_placeholder) && (value?.hasOwnProperty("placeholder"))) { + return true + } + else if ((!duplicated_text) && (value?.hasOwnProperty("text"))) { + return true + } + else if ((!duplicated_controller) && (value?.hasOwnProperty("controller"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof TextAreaOptions") + } + } + static isTextClockConfiguration(value: object|string|number|undefined|null, duplicated_enabled: boolean, duplicated_contentModifier: boolean, duplicated_timeZoneOffset: boolean, duplicated_started: boolean, duplicated_timeValue: boolean): boolean { + if ((!duplicated_enabled) && (value?.hasOwnProperty("enabled"))) { + return true + } + else if ((!duplicated_contentModifier) && (value?.hasOwnProperty("contentModifier"))) { + return true + } + else if ((!duplicated_timeZoneOffset) && (value?.hasOwnProperty("timeZoneOffset"))) { + return true + } + else if ((!duplicated_started) && (value?.hasOwnProperty("started"))) { + return true + } + else if ((!duplicated_timeValue) && (value?.hasOwnProperty("timeValue"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof TextClockConfiguration") + } + } + static isTextClockOptions(value: object|string|number|undefined|null, duplicated_timeZoneOffset: boolean, duplicated_controller: boolean): boolean { + if ((!duplicated_timeZoneOffset) && (value?.hasOwnProperty("timeZoneOffset"))) { + return true + } + else if ((!duplicated_controller) && (value?.hasOwnProperty("controller"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof TextClockOptions") + } + } + static isDecorationStyleResult(value: object|string|number|undefined|null, duplicated_type: boolean, duplicated_color: boolean, duplicated_style: boolean): boolean { + if ((!duplicated_type) && (value?.hasOwnProperty("type"))) { + return true + } + else if ((!duplicated_color) && (value?.hasOwnProperty("color"))) { + return true + } + else if ((!duplicated_style) && (value?.hasOwnProperty("style"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof DecorationStyleResult") + } + } + static isTextRange(value: object|string|number|undefined|null, duplicated_start: boolean, duplicated_end: boolean): boolean { + if ((!duplicated_start) && (value?.hasOwnProperty("start"))) { + return true + } + else if ((!duplicated_end) && (value?.hasOwnProperty("end"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof TextRange") + } + } + static isTextDataDetectorConfig(value: object|string|number|undefined|null, duplicated_types: boolean, duplicated_onDetectResultUpdate: boolean, duplicated_color: boolean, duplicated_decoration: boolean): boolean { + if ((!duplicated_types) && (value?.hasOwnProperty("types"))) { + return true + } + else if ((!duplicated_onDetectResultUpdate) && (value?.hasOwnProperty("onDetectResultUpdate"))) { + return true + } + else if ((!duplicated_color) && (value?.hasOwnProperty("color"))) { + return true + } + else if ((!duplicated_decoration) && (value?.hasOwnProperty("decoration"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof TextDataDetectorConfig") + } + } + static isTextMenuItem(value: object|string|number|undefined|null, duplicated_content: boolean, duplicated_icon: boolean, duplicated_id: boolean): boolean { + if ((!duplicated_content) && (value?.hasOwnProperty("content"))) { + return true + } + else if ((!duplicated_id) && (value?.hasOwnProperty("id"))) { + return true + } + else if ((!duplicated_icon) && (value?.hasOwnProperty("icon"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof TextMenuItem") + } + } + static isPositionWithAffinity(value: object|string|number|undefined|null, duplicated_position: boolean, duplicated_affinity: boolean): boolean { + if ((!duplicated_position) && (value?.hasOwnProperty("position"))) { + return true + } + else if ((!duplicated_affinity) && (value?.hasOwnProperty("affinity"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof PositionWithAffinity") + } + } + static isPreviewText(value: object|string|number|undefined|null, duplicated_offset: boolean, duplicated_value: boolean): boolean { + if ((!duplicated_offset) && (value?.hasOwnProperty("offset"))) { + return true + } + else if ((!duplicated_value) && (value?.hasOwnProperty("value"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof PreviewText") + } + } + static isStyledStringChangedListener(value: object|string|number|undefined|null, duplicated_onWillChange: boolean, duplicated_onDidChange: boolean): boolean { + if ((!duplicated_onWillChange) && (value?.hasOwnProperty("onWillChange"))) { + return true + } + else if ((!duplicated_onDidChange) && (value?.hasOwnProperty("onDidChange"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof StyledStringChangedListener") + } + } + static isStyledStringChangeValue(value: object|string|number|undefined|null, duplicated_range: boolean, duplicated_replacementString: boolean, duplicated_previewText: boolean): boolean { + if ((!duplicated_range) && (value?.hasOwnProperty("range"))) { + return true + } + else if ((!duplicated_replacementString) && (value?.hasOwnProperty("replacementString"))) { + return true + } + else if ((!duplicated_previewText) && (value?.hasOwnProperty("previewText"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof StyledStringChangeValue") + } + } + static isCaretStyle(value: object|string|number|undefined|null, duplicated_width: boolean, duplicated_color: boolean): boolean { + if ((!duplicated_width) && (value?.hasOwnProperty("width"))) { + return true + } + else if ((!duplicated_color) && (value?.hasOwnProperty("color"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof CaretStyle") + } + } + static isInsertValue(value: object|string|number|undefined|null, duplicated_insertOffset: boolean, duplicated_insertValue: boolean): boolean { + if ((!duplicated_insertOffset) && (value?.hasOwnProperty("insertOffset"))) { + return true + } + else if ((!duplicated_insertValue) && (value?.hasOwnProperty("insertValue"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof InsertValue") + } + } + static isDeleteValue(value: object|string|number|undefined|null, duplicated_deleteOffset: boolean, duplicated_direction: boolean, duplicated_deleteValue: boolean): boolean { + if ((!duplicated_deleteOffset) && (value?.hasOwnProperty("deleteOffset"))) { + return true + } + else if ((!duplicated_direction) && (value?.hasOwnProperty("direction"))) { + return true + } + else if ((!duplicated_deleteValue) && (value?.hasOwnProperty("deleteValue"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof DeleteValue") + } + } + static isFontSettingOptions(value: object|string|number|undefined|null, duplicated_enableVariableFontWeight: boolean): boolean { + if ((!duplicated_enableVariableFontWeight) && (value?.hasOwnProperty("enableVariableFontWeight"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof FontSettingOptions") + } + } + static isSubmitEvent(value: object|string|number|undefined|null, duplicated_text: boolean): boolean { + if ((!duplicated_text) && (value?.hasOwnProperty("text"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof SubmitEvent") + } + } + static isPasswordIcon(value: object|string|number|undefined|null, duplicated_onIconSrc: boolean, duplicated_offIconSrc: boolean): boolean { + if ((!duplicated_onIconSrc) && (value?.hasOwnProperty("onIconSrc"))) { + return true + } + else if ((!duplicated_offIconSrc) && (value?.hasOwnProperty("offIconSrc"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof PasswordIcon") + } + } + static isUnderlineColor(value: object|string|number|undefined|null, duplicated_typing: boolean, duplicated_normal: boolean, duplicated_error: boolean, duplicated_disable: boolean): boolean { + if ((!duplicated_typing) && (value?.hasOwnProperty("typing"))) { + return true + } + else if ((!duplicated_normal) && (value?.hasOwnProperty("normal"))) { + return true + } + else if ((!duplicated_error) && (value?.hasOwnProperty("error"))) { + return true + } + else if ((!duplicated_disable) && (value?.hasOwnProperty("disable"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof UnderlineColor") + } + } + static isTextInputOptions(value: object|string|number|undefined|null, duplicated_placeholder: boolean, duplicated_text: boolean, duplicated_controller: boolean): boolean { + if ((!duplicated_placeholder) && (value?.hasOwnProperty("placeholder"))) { + return true + } + else if ((!duplicated_text) && (value?.hasOwnProperty("text"))) { + return true + } + else if ((!duplicated_controller) && (value?.hasOwnProperty("controller"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof TextInputOptions") + } + } + static isDividerOptions(value: object|string|number|undefined|null, duplicated_strokeWidth: boolean, duplicated_color: boolean, duplicated_startMargin: boolean, duplicated_endMargin: boolean): boolean { + if ((!duplicated_strokeWidth) && (value?.hasOwnProperty("strokeWidth"))) { + return true + } + else if ((!duplicated_color) && (value?.hasOwnProperty("color"))) { + return true + } + else if ((!duplicated_startMargin) && (value?.hasOwnProperty("startMargin"))) { + return true + } + else if ((!duplicated_endMargin) && (value?.hasOwnProperty("endMargin"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof DividerOptions") + } + } + static isTextPickerOptions(value: object|string|number|undefined|null, duplicated_range: boolean, duplicated_value: boolean, duplicated_selected: boolean): boolean { + if ((!duplicated_range) && (value?.hasOwnProperty("range"))) { + return true + } + else if ((!duplicated_value) && (value?.hasOwnProperty("value"))) { + return true + } + else if ((!duplicated_selected) && (value?.hasOwnProperty("selected"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof TextPickerOptions") + } + } + static isTextPickerRangeContent(value: object|string|number|undefined|null, duplicated_icon: boolean, duplicated_text: boolean): boolean { + if ((!duplicated_icon) && (value?.hasOwnProperty("icon"))) { + return true + } + else if ((!duplicated_text) && (value?.hasOwnProperty("text"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof TextPickerRangeContent") + } + } + static isTextCascadePickerRangeContent(value: object|string|number|undefined|null, duplicated_text: boolean, duplicated_children: boolean): boolean { + if ((!duplicated_text) && (value?.hasOwnProperty("text"))) { + return true + } + else if ((!duplicated_children) && (value?.hasOwnProperty("children"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof TextCascadePickerRangeContent") + } + } + static isTextTimerConfiguration(value: object|string|number|undefined|null, duplicated_enabled: boolean, duplicated_contentModifier: boolean, duplicated_count: boolean, duplicated_isCountDown: boolean, duplicated_started: boolean, duplicated_elapsedTime: boolean): boolean { + if ((!duplicated_enabled) && (value?.hasOwnProperty("enabled"))) { + return true + } + else if ((!duplicated_contentModifier) && (value?.hasOwnProperty("contentModifier"))) { + return true + } + else if ((!duplicated_count) && (value?.hasOwnProperty("count"))) { + return true + } + else if ((!duplicated_isCountDown) && (value?.hasOwnProperty("isCountDown"))) { + return true + } + else if ((!duplicated_started) && (value?.hasOwnProperty("started"))) { + return true + } + else if ((!duplicated_elapsedTime) && (value?.hasOwnProperty("elapsedTime"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof TextTimerConfiguration") + } + } + static isTextTimerOptions(value: object|string|number|undefined|null, duplicated_isCountDown: boolean, duplicated_count: boolean, duplicated_controller: boolean): boolean { + if ((!duplicated_isCountDown) && (value?.hasOwnProperty("isCountDown"))) { + return true + } + else if ((!duplicated_count) && (value?.hasOwnProperty("count"))) { + return true + } + else if ((!duplicated_controller) && (value?.hasOwnProperty("controller"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof TextTimerOptions") + } + } + static isTimePickerResult(value: object|string|number|undefined|null, duplicated_hour: boolean, duplicated_minute: boolean, duplicated_second: boolean): boolean { + if ((!duplicated_hour) && (value?.hasOwnProperty("hour"))) { + return true + } + else if ((!duplicated_minute) && (value?.hasOwnProperty("minute"))) { + return true + } + else if ((!duplicated_second) && (value?.hasOwnProperty("second"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof TimePickerResult") + } + } + static isTimePickerOptions(value: object|string|number|undefined|null, duplicated_selected: boolean, duplicated_format: boolean): boolean { + if ((!duplicated_selected) && (value?.hasOwnProperty("selected"))) { + return true + } + else if ((!duplicated_format) && (value?.hasOwnProperty("format"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof TimePickerOptions") + } + } + static isToggleConfiguration(value: object|string|number|undefined|null, duplicated_enabled: boolean, duplicated_contentModifier: boolean, duplicated_isOn: boolean, duplicated_triggerChange: boolean): boolean { + if ((!duplicated_enabled) && (value?.hasOwnProperty("enabled"))) { + return true + } + else if ((!duplicated_contentModifier) && (value?.hasOwnProperty("contentModifier"))) { + return true + } + else if ((!duplicated_isOn) && (value?.hasOwnProperty("isOn"))) { + return true + } + else if ((!duplicated_triggerChange) && (value?.hasOwnProperty("triggerChange"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof ToggleConfiguration") + } + } + static isSwitchStyle(value: object|string|number|undefined|null, duplicated_pointRadius: boolean, duplicated_unselectedColor: boolean, duplicated_pointColor: boolean, duplicated_trackBorderRadius: boolean): boolean { + if ((!duplicated_pointRadius) && (value?.hasOwnProperty("pointRadius"))) { + return true + } + else if ((!duplicated_unselectedColor) && (value?.hasOwnProperty("unselectedColor"))) { + return true + } + else if ((!duplicated_pointColor) && (value?.hasOwnProperty("pointColor"))) { + return true + } + else if ((!duplicated_trackBorderRadius) && (value?.hasOwnProperty("trackBorderRadius"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof SwitchStyle") + } + } + static isToggleOptions(value: object|string|number|undefined|null, duplicated_type: boolean, duplicated_isOn: boolean): boolean { + if ((!duplicated_type) && (value?.hasOwnProperty("type"))) { + return true + } + else if ((!duplicated_isOn) && (value?.hasOwnProperty("isOn"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof ToggleOptions") + } + } + static isSizeOptions(value: object|string|number|undefined|null, duplicated_width: boolean, duplicated_height: boolean): boolean { + if ((!duplicated_width) && (value?.hasOwnProperty("width"))) { + return true + } + else if ((!duplicated_height) && (value?.hasOwnProperty("height"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof SizeOptions") + } + } + static isConstraintSizeOptions(value: object|string|number|undefined|null, duplicated_minWidth: boolean, duplicated_maxWidth: boolean, duplicated_minHeight: boolean, duplicated_maxHeight: boolean): boolean { + if ((!duplicated_minWidth) && (value?.hasOwnProperty("minWidth"))) { + return true + } + else if ((!duplicated_maxWidth) && (value?.hasOwnProperty("maxWidth"))) { + return true + } + else if ((!duplicated_minHeight) && (value?.hasOwnProperty("minHeight"))) { + return true + } + else if ((!duplicated_maxHeight) && (value?.hasOwnProperty("maxHeight"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof ConstraintSizeOptions") + } + } + static isPadding(value: object|string|number|undefined|null, duplicated_top: boolean, duplicated_right: boolean, duplicated_bottom: boolean, duplicated_left: boolean): boolean { + if ((!duplicated_top) && (value?.hasOwnProperty("top"))) { + return true + } + else if ((!duplicated_right) && (value?.hasOwnProperty("right"))) { + return true + } + else if ((!duplicated_bottom) && (value?.hasOwnProperty("bottom"))) { + return true + } + else if ((!duplicated_left) && (value?.hasOwnProperty("left"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof Padding") + } + } + static isLocalizedPadding(value: object|string|number|undefined|null, duplicated_top: boolean, duplicated_end: boolean, duplicated_bottom: boolean, duplicated_start: boolean): boolean { + if ((!duplicated_top) && (value?.hasOwnProperty("top"))) { + return true + } + else if ((!duplicated_end) && (value?.hasOwnProperty("end"))) { + return true + } + else if ((!duplicated_bottom) && (value?.hasOwnProperty("bottom"))) { + return true + } + else if ((!duplicated_start) && (value?.hasOwnProperty("start"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof LocalizedPadding") + } + } + static isPosition(value: object|string|number|undefined|null, duplicated_x: boolean, duplicated_y: boolean): boolean { + if ((!duplicated_x) && (value?.hasOwnProperty("x"))) { + return true + } + else if ((!duplicated_y) && (value?.hasOwnProperty("y"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof Position") + } + } + static isEdgeWidths(value: object|string|number|undefined|null, duplicated_top: boolean, duplicated_right: boolean, duplicated_bottom: boolean, duplicated_left: boolean): boolean { + if ((!duplicated_top) && (value?.hasOwnProperty("top"))) { + return true + } + else if ((!duplicated_right) && (value?.hasOwnProperty("right"))) { + return true + } + else if ((!duplicated_bottom) && (value?.hasOwnProperty("bottom"))) { + return true + } + else if ((!duplicated_left) && (value?.hasOwnProperty("left"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof EdgeWidths") + } + } + static isBorderOptions(value: object|string|number|undefined|null, duplicated_width: boolean, duplicated_color: boolean, duplicated_radius: boolean, duplicated_style: boolean, duplicated_dashGap: boolean, duplicated_dashWidth: boolean): boolean { + if ((!duplicated_width) && (value?.hasOwnProperty("width"))) { + return true + } + else if ((!duplicated_color) && (value?.hasOwnProperty("color"))) { + return true + } + else if ((!duplicated_radius) && (value?.hasOwnProperty("radius"))) { + return true + } + else if ((!duplicated_style) && (value?.hasOwnProperty("style"))) { + return true + } + else if ((!duplicated_dashGap) && (value?.hasOwnProperty("dashGap"))) { + return true + } + else if ((!duplicated_dashWidth) && (value?.hasOwnProperty("dashWidth"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof BorderOptions") + } + } + static isLocalizedEdgeWidths(value: object|string|number|undefined|null, duplicated_top: boolean, duplicated_end: boolean, duplicated_bottom: boolean, duplicated_start: boolean): boolean { + if ((!duplicated_top) && (value?.hasOwnProperty("top"))) { + return true + } + else if ((!duplicated_end) && (value?.hasOwnProperty("end"))) { + return true + } + else if ((!duplicated_bottom) && (value?.hasOwnProperty("bottom"))) { + return true + } + else if ((!duplicated_start) && (value?.hasOwnProperty("start"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof LocalizedEdgeWidths") + } + } + static isEdgeColors(value: object|string|number|undefined|null, duplicated_top: boolean, duplicated_right: boolean, duplicated_bottom: boolean, duplicated_left: boolean): boolean { + if ((!duplicated_top) && (value?.hasOwnProperty("top"))) { + return true + } + else if ((!duplicated_right) && (value?.hasOwnProperty("right"))) { + return true + } + else if ((!duplicated_bottom) && (value?.hasOwnProperty("bottom"))) { + return true + } + else if ((!duplicated_left) && (value?.hasOwnProperty("left"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof EdgeColors") + } + } + static isLocalizedEdgeColors(value: object|string|number|undefined|null, duplicated_top: boolean, duplicated_end: boolean, duplicated_bottom: boolean, duplicated_start: boolean): boolean { + if ((!duplicated_top) && (value?.hasOwnProperty("top"))) { + return true + } + else if ((!duplicated_end) && (value?.hasOwnProperty("end"))) { + return true + } + else if ((!duplicated_bottom) && (value?.hasOwnProperty("bottom"))) { + return true + } + else if ((!duplicated_start) && (value?.hasOwnProperty("start"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof LocalizedEdgeColors") + } + } + static isBorderRadiuses(value: object|string|number|undefined|null, duplicated_topLeft: boolean, duplicated_topRight: boolean, duplicated_bottomLeft: boolean, duplicated_bottomRight: boolean): boolean { + if ((!duplicated_topLeft) && (value?.hasOwnProperty("topLeft"))) { + return true + } + else if ((!duplicated_topRight) && (value?.hasOwnProperty("topRight"))) { + return true + } + else if ((!duplicated_bottomLeft) && (value?.hasOwnProperty("bottomLeft"))) { + return true + } + else if ((!duplicated_bottomRight) && (value?.hasOwnProperty("bottomRight"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof BorderRadiuses") + } + } + static isLocalizedBorderRadiuses(value: object|string|number|undefined|null, duplicated_topStart: boolean, duplicated_topEnd: boolean, duplicated_bottomStart: boolean, duplicated_bottomEnd: boolean): boolean { + if ((!duplicated_topStart) && (value?.hasOwnProperty("topStart"))) { + return true + } + else if ((!duplicated_topEnd) && (value?.hasOwnProperty("topEnd"))) { + return true + } + else if ((!duplicated_bottomStart) && (value?.hasOwnProperty("bottomStart"))) { + return true + } + else if ((!duplicated_bottomEnd) && (value?.hasOwnProperty("bottomEnd"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof LocalizedBorderRadiuses") + } + } + static isEdgeStyles(value: object|string|number|undefined|null, duplicated_top: boolean, duplicated_right: boolean, duplicated_bottom: boolean, duplicated_left: boolean): boolean { + if ((!duplicated_top) && (value?.hasOwnProperty("top"))) { + return true + } + else if ((!duplicated_right) && (value?.hasOwnProperty("right"))) { + return true + } + else if ((!duplicated_bottom) && (value?.hasOwnProperty("bottom"))) { + return true + } + else if ((!duplicated_left) && (value?.hasOwnProperty("left"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof EdgeStyles") + } + } + static isOutlineOptions(value: object|string|number|undefined|null, duplicated_width: boolean, duplicated_color: boolean, duplicated_radius: boolean, duplicated_style: boolean): boolean { + if ((!duplicated_width) && (value?.hasOwnProperty("width"))) { + return true + } + else if ((!duplicated_color) && (value?.hasOwnProperty("color"))) { + return true + } + else if ((!duplicated_radius) && (value?.hasOwnProperty("radius"))) { + return true + } + else if ((!duplicated_style) && (value?.hasOwnProperty("style"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof OutlineOptions") + } + } + static isEdgeOutlineWidths(value: object|string|number|undefined|null, duplicated_top: boolean, duplicated_right: boolean, duplicated_bottom: boolean, duplicated_left: boolean): boolean { + if ((!duplicated_top) && (value?.hasOwnProperty("top"))) { + return true + } + else if ((!duplicated_right) && (value?.hasOwnProperty("right"))) { + return true + } + else if ((!duplicated_bottom) && (value?.hasOwnProperty("bottom"))) { + return true + } + else if ((!duplicated_left) && (value?.hasOwnProperty("left"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof EdgeOutlineWidths") + } + } + static isOutlineRadiuses(value: object|string|number|undefined|null, duplicated_topLeft: boolean, duplicated_topRight: boolean, duplicated_bottomLeft: boolean, duplicated_bottomRight: boolean): boolean { + if ((!duplicated_topLeft) && (value?.hasOwnProperty("topLeft"))) { + return true + } + else if ((!duplicated_topRight) && (value?.hasOwnProperty("topRight"))) { + return true + } + else if ((!duplicated_bottomLeft) && (value?.hasOwnProperty("bottomLeft"))) { + return true + } + else if ((!duplicated_bottomRight) && (value?.hasOwnProperty("bottomRight"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof OutlineRadiuses") + } + } + static isEdgeOutlineStyles(value: object|string|number|undefined|null, duplicated_top: boolean, duplicated_right: boolean, duplicated_bottom: boolean, duplicated_left: boolean): boolean { + if ((!duplicated_top) && (value?.hasOwnProperty("top"))) { + return true + } + else if ((!duplicated_right) && (value?.hasOwnProperty("right"))) { + return true + } + else if ((!duplicated_bottom) && (value?.hasOwnProperty("bottom"))) { + return true + } + else if ((!duplicated_left) && (value?.hasOwnProperty("left"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof EdgeOutlineStyles") + } + } + static isArea(value: object|string|number|undefined|null, duplicated_width: boolean, duplicated_height: boolean, duplicated_position: boolean, duplicated_globalPosition: boolean): boolean { + if ((!duplicated_width) && (value?.hasOwnProperty("width"))) { + return true + } + else if ((!duplicated_height) && (value?.hasOwnProperty("height"))) { + return true + } + else if ((!duplicated_position) && (value?.hasOwnProperty("position"))) { + return true + } + else if ((!duplicated_globalPosition) && (value?.hasOwnProperty("globalPosition"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof Area") + } + } + static isEdges(value: object|string|number|undefined|null, duplicated_top: boolean, duplicated_left: boolean, duplicated_bottom: boolean, duplicated_right: boolean): boolean { + if ((!duplicated_top) && (value?.hasOwnProperty("top"))) { + return true + } + else if ((!duplicated_left) && (value?.hasOwnProperty("left"))) { + return true + } + else if ((!duplicated_bottom) && (value?.hasOwnProperty("bottom"))) { + return true + } + else if ((!duplicated_right) && (value?.hasOwnProperty("right"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof Edges") + } + } + static isLocalizedEdges(value: object|string|number|undefined|null, duplicated_top: boolean, duplicated_start: boolean, duplicated_bottom: boolean, duplicated_end: boolean): boolean { + if ((!duplicated_top) && (value?.hasOwnProperty("top"))) { + return true + } + else if ((!duplicated_start) && (value?.hasOwnProperty("start"))) { + return true + } + else if ((!duplicated_bottom) && (value?.hasOwnProperty("bottom"))) { + return true + } + else if ((!duplicated_end) && (value?.hasOwnProperty("end"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof LocalizedEdges") + } + } + static isLocalizedPosition(value: object|string|number|undefined|null, duplicated_start: boolean, duplicated_top: boolean): boolean { + if ((!duplicated_start) && (value?.hasOwnProperty("start"))) { + return true + } + else if ((!duplicated_top) && (value?.hasOwnProperty("top"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof LocalizedPosition") + } + } + static isBias(value: object|string|number|undefined|null, duplicated_horizontal: boolean, duplicated_vertical: boolean): boolean { + if ((!duplicated_horizontal) && (value?.hasOwnProperty("horizontal"))) { + return true + } + else if ((!duplicated_vertical) && (value?.hasOwnProperty("vertical"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof Bias") + } + } + static isFont(value: object|string|number|undefined|null, duplicated_size: boolean, duplicated_weight: boolean, duplicated_family: boolean, duplicated_style: boolean): boolean { + if ((!duplicated_size) && (value?.hasOwnProperty("size"))) { + return true + } + else if ((!duplicated_weight) && (value?.hasOwnProperty("weight"))) { + return true + } + else if ((!duplicated_family) && (value?.hasOwnProperty("family"))) { + return true + } + else if ((!duplicated_style) && (value?.hasOwnProperty("style"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof Font") + } + } + static isOffset(value: object|string|number|undefined|null, duplicated_dx: boolean, duplicated_dy: boolean): boolean { + if ((!duplicated_dx) && (value?.hasOwnProperty("dx"))) { + return true + } + else if ((!duplicated_dy) && (value?.hasOwnProperty("dy"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof Offset") + } + } + static isMarkStyle(value: object|string|number|undefined|null, duplicated_strokeColor: boolean, duplicated_size: boolean, duplicated_strokeWidth: boolean): boolean { + if ((!duplicated_strokeColor) && (value?.hasOwnProperty("strokeColor"))) { + return true + } + else if ((!duplicated_size) && (value?.hasOwnProperty("size"))) { + return true + } + else if ((!duplicated_strokeWidth) && (value?.hasOwnProperty("strokeWidth"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof MarkStyle") + } + } + static isLengthConstrain(value: object|string|number|undefined|null, duplicated_minLength: boolean, duplicated_maxLength: boolean): boolean { + if ((!duplicated_minLength) && (value?.hasOwnProperty("minLength"))) { + return true + } + else if ((!duplicated_maxLength) && (value?.hasOwnProperty("maxLength"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof LengthConstrain") + } + } + static isDividerStyleOptions(value: object|string|number|undefined|null, duplicated_strokeWidth: boolean, duplicated_color: boolean, duplicated_startMargin: boolean, duplicated_endMargin: boolean): boolean { + if ((!duplicated_strokeWidth) && (value?.hasOwnProperty("strokeWidth"))) { + return true + } + else if ((!duplicated_color) && (value?.hasOwnProperty("color"))) { + return true + } + else if ((!duplicated_startMargin) && (value?.hasOwnProperty("startMargin"))) { + return true + } + else if ((!duplicated_endMargin) && (value?.hasOwnProperty("endMargin"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof DividerStyleOptions") + } + } + static isVideoOptions(value: object|string|number|undefined|null, duplicated_src: boolean, duplicated_currentProgressRate: boolean, duplicated_previewUri: boolean, duplicated_controller: boolean, duplicated_imageAIOptions: boolean): boolean { + if ((!duplicated_src) && (value?.hasOwnProperty("src"))) { + return true + } + else if ((!duplicated_currentProgressRate) && (value?.hasOwnProperty("currentProgressRate"))) { + return true + } + else if ((!duplicated_previewUri) && (value?.hasOwnProperty("previewUri"))) { + return true + } + else if ((!duplicated_controller) && (value?.hasOwnProperty("controller"))) { + return true + } + else if ((!duplicated_imageAIOptions) && (value?.hasOwnProperty("imageAIOptions"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof VideoOptions") + } + } + static isJavaScriptProxy(value: object|string|number|undefined|null, duplicated_object: boolean, duplicated_name: boolean, duplicated_methodList: boolean, duplicated_controller: boolean, duplicated_asyncMethodList: boolean, duplicated_permission: boolean): boolean { + if ((!duplicated_object) && (value?.hasOwnProperty("object"))) { + return true + } + else if ((!duplicated_name) && (value?.hasOwnProperty("name"))) { + return true + } + else if ((!duplicated_methodList) && (value?.hasOwnProperty("methodList"))) { + return true + } + else if ((!duplicated_controller) && (value?.hasOwnProperty("controller"))) { + return true + } + else if ((!duplicated_asyncMethodList) && (value?.hasOwnProperty("asyncMethodList"))) { + return true + } + else if ((!duplicated_permission) && (value?.hasOwnProperty("permission"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof JavaScriptProxy") + } + } + static isHeader(value: object|string|number|undefined|null, duplicated_headerKey: boolean, duplicated_headerValue: boolean): boolean { + if ((!duplicated_headerKey) && (value?.hasOwnProperty("headerKey"))) { + return true + } + else if ((!duplicated_headerValue) && (value?.hasOwnProperty("headerValue"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof Header") + } + } + static isWebMediaOptions(value: object|string|number|undefined|null, duplicated_resumeInterval: boolean, duplicated_audioExclusive: boolean): boolean { + if ((!duplicated_resumeInterval) && (value?.hasOwnProperty("resumeInterval"))) { + return true + } + else if ((!duplicated_audioExclusive) && (value?.hasOwnProperty("audioExclusive"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof WebMediaOptions") + } + } + static isOnPageEndEvent(value: object|string|number|undefined|null, duplicated_url: boolean): boolean { + if ((!duplicated_url) && (value?.hasOwnProperty("url"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof OnPageEndEvent") + } + } + static isOnPageBeginEvent(value: object|string|number|undefined|null, duplicated_url: boolean): boolean { + if ((!duplicated_url) && (value?.hasOwnProperty("url"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof OnPageBeginEvent") + } + } + static isOnProgressChangeEvent(value: object|string|number|undefined|null, duplicated_newProgress: boolean): boolean { + if ((!duplicated_newProgress) && (value?.hasOwnProperty("newProgress"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof OnProgressChangeEvent") + } + } + static isOnTitleReceiveEvent(value: object|string|number|undefined|null, duplicated_title: boolean): boolean { + if ((!duplicated_title) && (value?.hasOwnProperty("title"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof OnTitleReceiveEvent") + } + } + static isOnGeolocationShowEvent(value: object|string|number|undefined|null, duplicated_origin: boolean, duplicated_geolocation: boolean): boolean { + if ((!duplicated_origin) && (value?.hasOwnProperty("origin"))) { + return true + } + else if ((!duplicated_geolocation) && (value?.hasOwnProperty("geolocation"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof OnGeolocationShowEvent") + } + } + static isOnAlertEvent(value: object|string|number|undefined|null, duplicated_url: boolean, duplicated_message: boolean, duplicated_result: boolean): boolean { + if ((!duplicated_url) && (value?.hasOwnProperty("url"))) { + return true + } + else if ((!duplicated_message) && (value?.hasOwnProperty("message"))) { + return true + } + else if ((!duplicated_result) && (value?.hasOwnProperty("result"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof OnAlertEvent") + } + } + static isOnBeforeUnloadEvent(value: object|string|number|undefined|null, duplicated_url: boolean, duplicated_message: boolean, duplicated_result: boolean): boolean { + if ((!duplicated_url) && (value?.hasOwnProperty("url"))) { + return true + } + else if ((!duplicated_message) && (value?.hasOwnProperty("message"))) { + return true + } + else if ((!duplicated_result) && (value?.hasOwnProperty("result"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof OnBeforeUnloadEvent") + } + } + static isOnConfirmEvent(value: object|string|number|undefined|null, duplicated_url: boolean, duplicated_message: boolean, duplicated_result: boolean): boolean { + if ((!duplicated_url) && (value?.hasOwnProperty("url"))) { + return true + } + else if ((!duplicated_message) && (value?.hasOwnProperty("message"))) { + return true + } + else if ((!duplicated_result) && (value?.hasOwnProperty("result"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof OnConfirmEvent") + } + } + static isOnPromptEvent(value: object|string|number|undefined|null, duplicated_url: boolean, duplicated_message: boolean, duplicated_value: boolean, duplicated_result: boolean): boolean { + if ((!duplicated_url) && (value?.hasOwnProperty("url"))) { + return true + } + else if ((!duplicated_message) && (value?.hasOwnProperty("message"))) { + return true + } + else if ((!duplicated_value) && (value?.hasOwnProperty("value"))) { + return true + } + else if ((!duplicated_result) && (value?.hasOwnProperty("result"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof OnPromptEvent") + } + } + static isOnConsoleEvent(value: object|string|number|undefined|null, duplicated_message: boolean): boolean { + if ((!duplicated_message) && (value?.hasOwnProperty("message"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof OnConsoleEvent") + } + } + static isOnErrorReceiveEvent(value: object|string|number|undefined|null, duplicated_request: boolean, duplicated_error: boolean): boolean { + if ((!duplicated_request) && (value?.hasOwnProperty("request"))) { + return true + } + else if ((!duplicated_error) && (value?.hasOwnProperty("error"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof OnErrorReceiveEvent") + } + } + static isOnHttpErrorReceiveEvent(value: object|string|number|undefined|null, duplicated_request: boolean, duplicated_response: boolean): boolean { + if ((!duplicated_request) && (value?.hasOwnProperty("request"))) { + return true + } + else if ((!duplicated_response) && (value?.hasOwnProperty("response"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof OnHttpErrorReceiveEvent") + } + } + static isOnDownloadStartEvent(value: object|string|number|undefined|null, duplicated_url: boolean, duplicated_userAgent: boolean, duplicated_contentDisposition: boolean, duplicated_mimetype: boolean, duplicated_contentLength: boolean): boolean { + if ((!duplicated_url) && (value?.hasOwnProperty("url"))) { + return true + } + else if ((!duplicated_userAgent) && (value?.hasOwnProperty("userAgent"))) { + return true + } + else if ((!duplicated_contentDisposition) && (value?.hasOwnProperty("contentDisposition"))) { + return true + } + else if ((!duplicated_mimetype) && (value?.hasOwnProperty("mimetype"))) { + return true + } + else if ((!duplicated_contentLength) && (value?.hasOwnProperty("contentLength"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof OnDownloadStartEvent") + } + } + static isOnRefreshAccessedHistoryEvent(value: object|string|number|undefined|null, duplicated_url: boolean, duplicated_isRefreshed: boolean): boolean { + if ((!duplicated_url) && (value?.hasOwnProperty("url"))) { + return true + } + else if ((!duplicated_isRefreshed) && (value?.hasOwnProperty("isRefreshed"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof OnRefreshAccessedHistoryEvent") + } + } + static isOnRenderExitedEvent(value: object|string|number|undefined|null, duplicated_renderExitReason: boolean): boolean { + if ((!duplicated_renderExitReason) && (value?.hasOwnProperty("renderExitReason"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof OnRenderExitedEvent") + } + } + static isOnShowFileSelectorEvent(value: object|string|number|undefined|null, duplicated_result: boolean, duplicated_fileSelector: boolean): boolean { + if ((!duplicated_result) && (value?.hasOwnProperty("result"))) { + return true + } + else if ((!duplicated_fileSelector) && (value?.hasOwnProperty("fileSelector"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof OnShowFileSelectorEvent") + } + } + static isOnResourceLoadEvent(value: object|string|number|undefined|null, duplicated_url: boolean): boolean { + if ((!duplicated_url) && (value?.hasOwnProperty("url"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof OnResourceLoadEvent") + } + } + static isFullScreenEnterEvent(value: object|string|number|undefined|null, duplicated_handler: boolean, duplicated_videoWidth: boolean, duplicated_videoHeight: boolean): boolean { + if ((!duplicated_handler) && (value?.hasOwnProperty("handler"))) { + return true + } + else if ((!duplicated_videoWidth) && (value?.hasOwnProperty("videoWidth"))) { + return true + } + else if ((!duplicated_videoHeight) && (value?.hasOwnProperty("videoHeight"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof FullScreenEnterEvent") + } + } + static isOnScaleChangeEvent(value: object|string|number|undefined|null, duplicated_oldScale: boolean, duplicated_newScale: boolean): boolean { + if ((!duplicated_oldScale) && (value?.hasOwnProperty("oldScale"))) { + return true + } + else if ((!duplicated_newScale) && (value?.hasOwnProperty("newScale"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof OnScaleChangeEvent") + } + } + static isOnHttpAuthRequestEvent(value: object|string|number|undefined|null, duplicated_handler: boolean, duplicated_host: boolean, duplicated_realm: boolean): boolean { + if ((!duplicated_handler) && (value?.hasOwnProperty("handler"))) { + return true + } + else if ((!duplicated_host) && (value?.hasOwnProperty("host"))) { + return true + } + else if ((!duplicated_realm) && (value?.hasOwnProperty("realm"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof OnHttpAuthRequestEvent") + } + } + static isOnInterceptRequestEvent(value: object|string|number|undefined|null, duplicated_request: boolean): boolean { + if ((!duplicated_request) && (value?.hasOwnProperty("request"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof OnInterceptRequestEvent") + } + } + static isOnPermissionRequestEvent(value: object|string|number|undefined|null, duplicated_request: boolean): boolean { + if ((!duplicated_request) && (value?.hasOwnProperty("request"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof OnPermissionRequestEvent") + } + } + static isOnScreenCaptureRequestEvent(value: object|string|number|undefined|null, duplicated_handler: boolean): boolean { + if ((!duplicated_handler) && (value?.hasOwnProperty("handler"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof OnScreenCaptureRequestEvent") + } + } + static isScreenCaptureConfig(value: object|string|number|undefined|null, duplicated_captureMode: boolean): boolean { + if ((!duplicated_captureMode) && (value?.hasOwnProperty("captureMode"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof ScreenCaptureConfig") + } + } + static isOnContextMenuShowEvent(value: object|string|number|undefined|null, duplicated_param: boolean, duplicated_result: boolean): boolean { + if ((!duplicated_param) && (value?.hasOwnProperty("param"))) { + return true + } + else if ((!duplicated_result) && (value?.hasOwnProperty("result"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof OnContextMenuShowEvent") + } + } + static isOnSearchResultReceiveEvent(value: object|string|number|undefined|null, duplicated_activeMatchOrdinal: boolean, duplicated_numberOfMatches: boolean, duplicated_isDoneCounting: boolean): boolean { + if ((!duplicated_activeMatchOrdinal) && (value?.hasOwnProperty("activeMatchOrdinal"))) { + return true + } + else if ((!duplicated_numberOfMatches) && (value?.hasOwnProperty("numberOfMatches"))) { + return true + } + else if ((!duplicated_isDoneCounting) && (value?.hasOwnProperty("isDoneCounting"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof OnSearchResultReceiveEvent") + } + } + static isOnScrollEvent(value: object|string|number|undefined|null, duplicated_xOffset: boolean, duplicated_yOffset: boolean): boolean { + if ((!duplicated_xOffset) && (value?.hasOwnProperty("xOffset"))) { + return true + } + else if ((!duplicated_yOffset) && (value?.hasOwnProperty("yOffset"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof OnScrollEvent") + } + } + static isOnSslErrorEventReceiveEvent(value: object|string|number|undefined|null, duplicated_handler: boolean, duplicated_error: boolean): boolean { + if ((!duplicated_handler) && (value?.hasOwnProperty("handler"))) { + return true + } + else if ((!duplicated_error) && (value?.hasOwnProperty("error"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof OnSslErrorEventReceiveEvent") + } + } + static isSslErrorEvent(value: object|string|number|undefined|null, duplicated_handler: boolean, duplicated_error: boolean, duplicated_url: boolean, duplicated_originalUrl: boolean, duplicated_referrer: boolean, duplicated_isFatalError: boolean, duplicated_isMainFrame: boolean): boolean { + if ((!duplicated_handler) && (value?.hasOwnProperty("handler"))) { + return true + } + else if ((!duplicated_error) && (value?.hasOwnProperty("error"))) { + return true + } + else if ((!duplicated_url) && (value?.hasOwnProperty("url"))) { + return true + } + else if ((!duplicated_originalUrl) && (value?.hasOwnProperty("originalUrl"))) { + return true + } + else if ((!duplicated_referrer) && (value?.hasOwnProperty("referrer"))) { + return true + } + else if ((!duplicated_isFatalError) && (value?.hasOwnProperty("isFatalError"))) { + return true + } + else if ((!duplicated_isMainFrame) && (value?.hasOwnProperty("isMainFrame"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof SslErrorEvent") + } + } + static isOnClientAuthenticationEvent(value: object|string|number|undefined|null, duplicated_handler: boolean, duplicated_host: boolean, duplicated_port: boolean, duplicated_keyTypes: boolean, duplicated_issuers: boolean): boolean { + if ((!duplicated_handler) && (value?.hasOwnProperty("handler"))) { + return true + } + else if ((!duplicated_host) && (value?.hasOwnProperty("host"))) { + return true + } + else if ((!duplicated_port) && (value?.hasOwnProperty("port"))) { + return true + } + else if ((!duplicated_keyTypes) && (value?.hasOwnProperty("keyTypes"))) { + return true + } + else if ((!duplicated_issuers) && (value?.hasOwnProperty("issuers"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof OnClientAuthenticationEvent") + } + } + static isOnWindowNewEvent(value: object|string|number|undefined|null, duplicated_isAlert: boolean, duplicated_isUserTrigger: boolean, duplicated_targetUrl: boolean, duplicated_handler: boolean): boolean { + if ((!duplicated_isAlert) && (value?.hasOwnProperty("isAlert"))) { + return true + } + else if ((!duplicated_isUserTrigger) && (value?.hasOwnProperty("isUserTrigger"))) { + return true + } + else if ((!duplicated_targetUrl) && (value?.hasOwnProperty("targetUrl"))) { + return true + } + else if ((!duplicated_handler) && (value?.hasOwnProperty("handler"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof OnWindowNewEvent") + } + } + static isOnTouchIconUrlReceivedEvent(value: object|string|number|undefined|null, duplicated_url: boolean, duplicated_precomposed: boolean): boolean { + if ((!duplicated_url) && (value?.hasOwnProperty("url"))) { + return true + } + else if ((!duplicated_precomposed) && (value?.hasOwnProperty("precomposed"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof OnTouchIconUrlReceivedEvent") + } + } + static isOnFaviconReceivedEvent(value: object|string|number|undefined|null, duplicated_favicon: boolean): boolean { + if ((!duplicated_favicon) && (value?.hasOwnProperty("favicon"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof OnFaviconReceivedEvent") + } + } + static isOnPageVisibleEvent(value: object|string|number|undefined|null, duplicated_url: boolean): boolean { + if ((!duplicated_url) && (value?.hasOwnProperty("url"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof OnPageVisibleEvent") + } + } + static isOnDataResubmittedEvent(value: object|string|number|undefined|null, duplicated_handler: boolean): boolean { + if ((!duplicated_handler) && (value?.hasOwnProperty("handler"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof OnDataResubmittedEvent") + } + } + static isOnAudioStateChangedEvent(value: object|string|number|undefined|null, duplicated_playing: boolean): boolean { + if ((!duplicated_playing) && (value?.hasOwnProperty("playing"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof OnAudioStateChangedEvent") + } + } + static isOnFirstContentfulPaintEvent(value: object|string|number|undefined|null, duplicated_navigationStartTick: boolean, duplicated_firstContentfulPaintMs: boolean): boolean { + if ((!duplicated_navigationStartTick) && (value?.hasOwnProperty("navigationStartTick"))) { + return true + } + else if ((!duplicated_firstContentfulPaintMs) && (value?.hasOwnProperty("firstContentfulPaintMs"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof OnFirstContentfulPaintEvent") + } + } + static isFirstMeaningfulPaint(value: object|string|number|undefined|null, duplicated_navigationStartTime: boolean, duplicated_firstMeaningfulPaintTime: boolean): boolean { + if ((!duplicated_navigationStartTime) && (value?.hasOwnProperty("navigationStartTime"))) { + return true + } + else if ((!duplicated_firstMeaningfulPaintTime) && (value?.hasOwnProperty("firstMeaningfulPaintTime"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof FirstMeaningfulPaint") + } + } + static isLargestContentfulPaint(value: object|string|number|undefined|null, duplicated_navigationStartTime: boolean, duplicated_largestImagePaintTime: boolean, duplicated_largestTextPaintTime: boolean, duplicated_imageBPP: boolean, duplicated_largestImageLoadStartTime: boolean, duplicated_largestImageLoadEndTime: boolean): boolean { + if ((!duplicated_navigationStartTime) && (value?.hasOwnProperty("navigationStartTime"))) { + return true + } + else if ((!duplicated_largestImagePaintTime) && (value?.hasOwnProperty("largestImagePaintTime"))) { + return true + } + else if ((!duplicated_largestTextPaintTime) && (value?.hasOwnProperty("largestTextPaintTime"))) { + return true + } + else if ((!duplicated_imageBPP) && (value?.hasOwnProperty("imageBPP"))) { + return true + } + else if ((!duplicated_largestImageLoadStartTime) && (value?.hasOwnProperty("largestImageLoadStartTime"))) { + return true + } + else if ((!duplicated_largestImageLoadEndTime) && (value?.hasOwnProperty("largestImageLoadEndTime"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof LargestContentfulPaint") + } + } + static isOnLoadInterceptEvent(value: object|string|number|undefined|null, duplicated_data: boolean): boolean { + if ((!duplicated_data) && (value?.hasOwnProperty("data"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof OnLoadInterceptEvent") + } + } + static isOnOverScrollEvent(value: object|string|number|undefined|null, duplicated_xOffset: boolean, duplicated_yOffset: boolean): boolean { + if ((!duplicated_xOffset) && (value?.hasOwnProperty("xOffset"))) { + return true + } + else if ((!duplicated_yOffset) && (value?.hasOwnProperty("yOffset"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof OnOverScrollEvent") + } + } + static isLoadCommittedDetails(value: object|string|number|undefined|null, duplicated_isMainFrame: boolean, duplicated_isSameDocument: boolean, duplicated_didReplaceEntry: boolean, duplicated_navigationType: boolean, duplicated_url: boolean): boolean { + if ((!duplicated_isMainFrame) && (value?.hasOwnProperty("isMainFrame"))) { + return true + } + else if ((!duplicated_isSameDocument) && (value?.hasOwnProperty("isSameDocument"))) { + return true + } + else if ((!duplicated_didReplaceEntry) && (value?.hasOwnProperty("didReplaceEntry"))) { + return true + } + else if ((!duplicated_navigationType) && (value?.hasOwnProperty("navigationType"))) { + return true + } + else if ((!duplicated_url) && (value?.hasOwnProperty("url"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof LoadCommittedDetails") + } + } + static isIntelligentTrackingPreventionDetails(value: object|string|number|undefined|null, duplicated_host: boolean, duplicated_trackerHost: boolean): boolean { + if ((!duplicated_host) && (value?.hasOwnProperty("host"))) { + return true + } + else if ((!duplicated_trackerHost) && (value?.hasOwnProperty("trackerHost"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof IntelligentTrackingPreventionDetails") + } + } + static isScriptItem(value: object|string|number|undefined|null, duplicated_script: boolean, duplicated_scriptRules: boolean): boolean { + if ((!duplicated_script) && (value?.hasOwnProperty("script"))) { + return true + } + else if ((!duplicated_scriptRules) && (value?.hasOwnProperty("scriptRules"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof ScriptItem") + } + } + static isNestedScrollOptionsExt(value: object|string|number|undefined|null, duplicated_scrollUp: boolean, duplicated_scrollDown: boolean, duplicated_scrollRight: boolean, duplicated_scrollLeft: boolean): boolean { + if ((!duplicated_scrollUp) && (value?.hasOwnProperty("scrollUp"))) { + return true + } + else if ((!duplicated_scrollDown) && (value?.hasOwnProperty("scrollDown"))) { + return true + } + else if ((!duplicated_scrollRight) && (value?.hasOwnProperty("scrollRight"))) { + return true + } + else if ((!duplicated_scrollLeft) && (value?.hasOwnProperty("scrollLeft"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof NestedScrollOptionsExt") + } + } + static isNativeEmbedDataInfo(value: object|string|number|undefined|null, duplicated_status: boolean, duplicated_surfaceId: boolean, duplicated_embedId: boolean, duplicated_info: boolean): boolean { + if ((!duplicated_status) && (value?.hasOwnProperty("status"))) { + return true + } + else if ((!duplicated_surfaceId) && (value?.hasOwnProperty("surfaceId"))) { + return true + } + else if ((!duplicated_embedId) && (value?.hasOwnProperty("embedId"))) { + return true + } + else if ((!duplicated_info) && (value?.hasOwnProperty("info"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof NativeEmbedDataInfo") + } + } + static isNativeEmbedInfo(value: object|string|number|undefined|null, duplicated_id: boolean, duplicated_type: boolean, duplicated_src: boolean, duplicated_position: boolean, duplicated_width: boolean, duplicated_height: boolean, duplicated_url: boolean, duplicated_tag: boolean, duplicated_params: boolean): boolean { + if ((!duplicated_id) && (value?.hasOwnProperty("id"))) { + return true + } + else if ((!duplicated_type) && (value?.hasOwnProperty("type"))) { + return true + } + else if ((!duplicated_src) && (value?.hasOwnProperty("src"))) { + return true + } + else if ((!duplicated_position) && (value?.hasOwnProperty("position"))) { + return true + } + else if ((!duplicated_width) && (value?.hasOwnProperty("width"))) { + return true + } + else if ((!duplicated_height) && (value?.hasOwnProperty("height"))) { + return true + } + else if ((!duplicated_url) && (value?.hasOwnProperty("url"))) { + return true + } + else if ((!duplicated_tag) && (value?.hasOwnProperty("tag"))) { + return true + } + else if ((!duplicated_params) && (value?.hasOwnProperty("params"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof NativeEmbedInfo") + } + } + static isNativeEmbedVisibilityInfo(value: object|string|number|undefined|null, duplicated_visibility: boolean, duplicated_embedId: boolean): boolean { + if ((!duplicated_visibility) && (value?.hasOwnProperty("visibility"))) { + return true + } + else if ((!duplicated_embedId) && (value?.hasOwnProperty("embedId"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof NativeEmbedVisibilityInfo") + } + } + static isNativeEmbedTouchInfo(value: object|string|number|undefined|null, duplicated_embedId: boolean, duplicated_touchEvent: boolean, duplicated_result: boolean): boolean { + if ((!duplicated_embedId) && (value?.hasOwnProperty("embedId"))) { + return true + } + else if ((!duplicated_touchEvent) && (value?.hasOwnProperty("touchEvent"))) { + return true + } + else if ((!duplicated_result) && (value?.hasOwnProperty("result"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof NativeEmbedTouchInfo") + } + } + static isNativeMediaPlayerConfig(value: object|string|number|undefined|null, duplicated_enable: boolean, duplicated_shouldOverlay: boolean): boolean { + if ((!duplicated_enable) && (value?.hasOwnProperty("enable"))) { + return true + } + else if ((!duplicated_shouldOverlay) && (value?.hasOwnProperty("shouldOverlay"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof NativeMediaPlayerConfig") + } + } + static isRenderProcessNotRespondingData(value: object|string|number|undefined|null, duplicated_jsStack: boolean, duplicated_pid: boolean, duplicated_reason: boolean): boolean { + if ((!duplicated_jsStack) && (value?.hasOwnProperty("jsStack"))) { + return true + } + else if ((!duplicated_pid) && (value?.hasOwnProperty("pid"))) { + return true + } + else if ((!duplicated_reason) && (value?.hasOwnProperty("reason"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof RenderProcessNotRespondingData") + } + } + static isExpandedMenuItemOptions(value: object|string|number|undefined|null, duplicated_content: boolean, duplicated_startIcon: boolean, duplicated_action: boolean): boolean { + if ((!duplicated_content) && (value?.hasOwnProperty("content"))) { + return true + } + else if ((!duplicated_action) && (value?.hasOwnProperty("action"))) { + return true + } + else if ((!duplicated_startIcon) && (value?.hasOwnProperty("startIcon"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof ExpandedMenuItemOptions") + } + } + static isWebKeyboardCallbackInfo(value: object|string|number|undefined|null, duplicated_controller: boolean, duplicated_attributes: boolean): boolean { + if ((!duplicated_controller) && (value?.hasOwnProperty("controller"))) { + return true + } + else if ((!duplicated_attributes) && (value?.hasOwnProperty("attributes"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof WebKeyboardCallbackInfo") + } + } + static isWebKeyboardOptions(value: object|string|number|undefined|null, duplicated_useSystemKeyboard: boolean, duplicated_enterKeyType: boolean, duplicated_customKeyboard: boolean): boolean { + if ((!duplicated_useSystemKeyboard) && (value?.hasOwnProperty("useSystemKeyboard"))) { + return true + } + else if ((!duplicated_enterKeyType) && (value?.hasOwnProperty("enterKeyType"))) { + return true + } + else if ((!duplicated_customKeyboard) && (value?.hasOwnProperty("customKeyboard"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof WebKeyboardOptions") + } + } + static isAdsBlockedDetails(value: object|string|number|undefined|null, duplicated_url: boolean, duplicated_adsBlocked: boolean): boolean { + if ((!duplicated_url) && (value?.hasOwnProperty("url"))) { + return true + } + else if ((!duplicated_adsBlocked) && (value?.hasOwnProperty("adsBlocked"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof AdsBlockedDetails") + } + } + static isWebOptions(value: object|string|number|undefined|null, duplicated_src: boolean, duplicated_controller: boolean, duplicated_renderMode: boolean, duplicated_incognitoMode: boolean, duplicated_sharedRenderProcessToken: boolean): boolean { + if ((!duplicated_src) && (value?.hasOwnProperty("src"))) { + return true + } + else if ((!duplicated_controller) && (value?.hasOwnProperty("controller"))) { + return true + } + else if ((!duplicated_renderMode) && (value?.hasOwnProperty("renderMode"))) { + return true + } + else if ((!duplicated_incognitoMode) && (value?.hasOwnProperty("incognitoMode"))) { + return true + } + else if ((!duplicated_sharedRenderProcessToken) && (value?.hasOwnProperty("sharedRenderProcessToken"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof WebOptions") + } + } + static isSurfaceRect(value: object|string|number|undefined|null, duplicated_offsetX: boolean, duplicated_offsetY: boolean, duplicated_surfaceWidth: boolean, duplicated_surfaceHeight: boolean): boolean { + if ((!duplicated_surfaceWidth) && (value?.hasOwnProperty("surfaceWidth"))) { + return true + } + else if ((!duplicated_surfaceHeight) && (value?.hasOwnProperty("surfaceHeight"))) { + return true + } + else if ((!duplicated_offsetX) && (value?.hasOwnProperty("offsetX"))) { + return true + } + else if ((!duplicated_offsetY) && (value?.hasOwnProperty("offsetY"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof SurfaceRect") + } + } + static isSurfaceRotationOptions(value: object|string|number|undefined|null, duplicated_lock: boolean): boolean { + if ((!duplicated_lock) && (value?.hasOwnProperty("lock"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof SurfaceRotationOptions") + } + } + static isXComponentOptions(value: object|string|number|undefined|null, duplicated_type: boolean, duplicated_controller: boolean, duplicated_imageAIOptions: boolean): boolean { + if ((!duplicated_type) && (value?.hasOwnProperty("type"))) { + return true + } + else if ((!duplicated_controller) && (value?.hasOwnProperty("controller"))) { + return true + } + else if ((!duplicated_imageAIOptions) && (value?.hasOwnProperty("imageAIOptions"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof XComponentOptions") + } + } + static isButtonStyle(value: object|string|number|undefined|null, duplicated_left: boolean, duplicated_top: boolean, duplicated_width: boolean, duplicated_height: boolean, duplicated_icons: boolean): boolean { + if ((!duplicated_left) && (value?.hasOwnProperty("left"))) { + return true + } + else if ((!duplicated_top) && (value?.hasOwnProperty("top"))) { + return true + } + else if ((!duplicated_width) && (value?.hasOwnProperty("width"))) { + return true + } + else if ((!duplicated_height) && (value?.hasOwnProperty("height"))) { + return true + } + else if ((!duplicated_icons) && (value?.hasOwnProperty("icons"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof ButtonStyle") + } + } + static isWindowAnimationTarget(value: object|string|number|undefined|null, duplicated_bundleName: boolean, duplicated_abilityName: boolean, duplicated_windowBounds: boolean, duplicated_missionId: boolean): boolean { + if ((!duplicated_bundleName) && (value?.hasOwnProperty("bundleName"))) { + return true + } + else if ((!duplicated_abilityName) && (value?.hasOwnProperty("abilityName"))) { + return true + } + else if ((!duplicated_windowBounds) && (value?.hasOwnProperty("windowBounds"))) { + return true + } + else if ((!duplicated_missionId) && (value?.hasOwnProperty("missionId"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof WindowAnimationTarget") + } + } + static isRRect(value: object|string|number|undefined|null, duplicated_left: boolean, duplicated_top: boolean, duplicated_width: boolean, duplicated_height: boolean, duplicated_radius: boolean): boolean { + if ((!duplicated_left) && (value?.hasOwnProperty("left"))) { + return true + } + else if ((!duplicated_top) && (value?.hasOwnProperty("top"))) { + return true + } + else if ((!duplicated_width) && (value?.hasOwnProperty("width"))) { + return true + } + else if ((!duplicated_height) && (value?.hasOwnProperty("height"))) { + return true + } + else if ((!duplicated_radius) && (value?.hasOwnProperty("radius"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof RRect") + } + } + static isWaterFlowOptions(value: object|string|number|undefined|null, duplicated_footer: boolean, duplicated_scroller: boolean, duplicated_sections: boolean, duplicated_layoutMode: boolean): boolean { + if ((!duplicated_footer) && (value?.hasOwnProperty("footer"))) { + return true + } + else if ((!duplicated_scroller) && (value?.hasOwnProperty("scroller"))) { + return true + } + else if ((!duplicated_sections) && (value?.hasOwnProperty("sections"))) { + return true + } + else if ((!duplicated_layoutMode) && (value?.hasOwnProperty("layoutMode"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof WaterFlowOptions") + } + } + static isUIExtensionOptions(value: object|string|number|undefined|null, duplicated_isTransferringCaller: boolean, duplicated_placeholder: boolean, duplicated_areaChangePlaceholder: boolean, duplicated_dpiFollowStrategy: boolean): boolean { + if ((!duplicated_isTransferringCaller) && (value?.hasOwnProperty("isTransferringCaller"))) { + return true + } + else if ((!duplicated_placeholder) && (value?.hasOwnProperty("placeholder"))) { + return true + } + else if ((!duplicated_areaChangePlaceholder) && (value?.hasOwnProperty("areaChangePlaceholder"))) { + return true + } + else if ((!duplicated_dpiFollowStrategy) && (value?.hasOwnProperty("dpiFollowStrategy"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof UIExtensionOptions") + } + } + static isDecorationStyleInterface(value: object|string|number|undefined|null, duplicated_type: boolean, duplicated_color: boolean, duplicated_style: boolean): boolean { + if ((!duplicated_type) && (value?.hasOwnProperty("type"))) { + return true + } + else if ((!duplicated_color) && (value?.hasOwnProperty("color"))) { + return true + } + else if ((!duplicated_style) && (value?.hasOwnProperty("style"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof DecorationStyleInterface") + } + } + static isImageAttachmentInterface(value: object|string|number|undefined|null, duplicated_value: boolean, duplicated_size: boolean, duplicated_verticalAlign: boolean, duplicated_objectFit: boolean, duplicated_layoutStyle: boolean): boolean { + if ((!duplicated_value) && (value?.hasOwnProperty("value"))) { + return true + } + else if ((!duplicated_size) && (value?.hasOwnProperty("size"))) { + return true + } + else if ((!duplicated_verticalAlign) && (value?.hasOwnProperty("verticalAlign"))) { + return true + } + else if ((!duplicated_objectFit) && (value?.hasOwnProperty("objectFit"))) { + return true + } + else if ((!duplicated_layoutStyle) && (value?.hasOwnProperty("layoutStyle"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof ImageAttachmentInterface") + } + } + static isImageAttachmentLayoutStyle(value: object|string|number|undefined|null, duplicated_margin: boolean, duplicated_padding: boolean, duplicated_borderRadius: boolean): boolean { + if ((!duplicated_margin) && (value?.hasOwnProperty("margin"))) { + return true + } + else if ((!duplicated_padding) && (value?.hasOwnProperty("padding"))) { + return true + } + else if ((!duplicated_borderRadius) && (value?.hasOwnProperty("borderRadius"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof ImageAttachmentLayoutStyle") + } + } + static isCustomSpanMeasureInfo(value: object|string|number|undefined|null, duplicated_fontSize: boolean): boolean { + if ((!duplicated_fontSize) && (value?.hasOwnProperty("fontSize"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof CustomSpanMeasureInfo") + } + } + static isCustomSpanMetrics(value: object|string|number|undefined|null, duplicated_width: boolean, duplicated_height: boolean): boolean { + if ((!duplicated_width) && (value?.hasOwnProperty("width"))) { + return true + } + else if ((!duplicated_height) && (value?.hasOwnProperty("height"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof CustomSpanMetrics") + } + } + static isCustomSpanDrawInfo(value: object|string|number|undefined|null, duplicated_x: boolean, duplicated_lineTop: boolean, duplicated_lineBottom: boolean, duplicated_baseline: boolean): boolean { + if ((!duplicated_x) && (value?.hasOwnProperty("x"))) { + return true + } + else if ((!duplicated_lineTop) && (value?.hasOwnProperty("lineTop"))) { + return true + } + else if ((!duplicated_lineBottom) && (value?.hasOwnProperty("lineBottom"))) { + return true + } + else if ((!duplicated_baseline) && (value?.hasOwnProperty("baseline"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof CustomSpanDrawInfo") + } + } + static isStyleOptions(value: object|string|number|undefined|null, duplicated_start: boolean, duplicated_length: boolean, duplicated_styledKey: boolean, duplicated_styledValue: boolean): boolean { + if ((!duplicated_styledKey) && (value?.hasOwnProperty("styledKey"))) { return true } - else if ((!duplicated_idString) && (value?.hasOwnProperty("idString"))) { + else if ((!duplicated_styledValue) && (value?.hasOwnProperty("styledValue"))) { return true } - else { - throw new Error("Can not discriminate value typeof FormCallbackInfo") + else if ((!duplicated_start) && (value?.hasOwnProperty("start"))) { + return true } - } - static isBaseGestureEvent(value: object|string|number|undefined|null, duplicated_fingerList: boolean): boolean { - if ((!duplicated_fingerList) && (value?.hasOwnProperty("fingerList"))) { + else if ((!duplicated_length) && (value?.hasOwnProperty("length"))) { return true } else { - throw new Error("Can not discriminate value typeof BaseGestureEvent") + throw new Error("Can not discriminate value typeof StyleOptions") } } - static isFingerInfo(value: object|string|number|undefined|null, duplicated_id: boolean, duplicated_globalX: boolean, duplicated_globalY: boolean, duplicated_localX: boolean, duplicated_localY: boolean, duplicated_displayX: boolean, duplicated_displayY: boolean): boolean { - if ((!duplicated_id) && (value?.hasOwnProperty("id"))) { + static isGestureStyleInterface(value: object|string|number|undefined|null, duplicated_onClick: boolean, duplicated_onLongPress: boolean): boolean { + if ((!duplicated_onClick) && (value?.hasOwnProperty("onClick"))) { return true } - else if ((!duplicated_globalX) && (value?.hasOwnProperty("globalX"))) { + else if ((!duplicated_onLongPress) && (value?.hasOwnProperty("onLongPress"))) { return true } - else if ((!duplicated_globalY) && (value?.hasOwnProperty("globalY"))) { + else { + throw new Error("Can not discriminate value typeof GestureStyleInterface") + } + } + static isParagraphStyleInterface(value: object|string|number|undefined|null, duplicated_textAlign: boolean, duplicated_textIndent: boolean, duplicated_maxLines: boolean, duplicated_overflow: boolean, duplicated_wordBreak: boolean, duplicated_leadingMargin: boolean): boolean { + if ((!duplicated_textAlign) && (value?.hasOwnProperty("textAlign"))) { return true } - else if ((!duplicated_localX) && (value?.hasOwnProperty("localX"))) { + else if ((!duplicated_textIndent) && (value?.hasOwnProperty("textIndent"))) { return true } - else if ((!duplicated_localY) && (value?.hasOwnProperty("localY"))) { + else if ((!duplicated_maxLines) && (value?.hasOwnProperty("maxLines"))) { return true } - else if ((!duplicated_displayX) && (value?.hasOwnProperty("displayX"))) { + else if ((!duplicated_overflow) && (value?.hasOwnProperty("overflow"))) { return true } - else if ((!duplicated_displayY) && (value?.hasOwnProperty("displayY"))) { + else if ((!duplicated_wordBreak) && (value?.hasOwnProperty("wordBreak"))) { + return true + } + else if ((!duplicated_leadingMargin) && (value?.hasOwnProperty("leadingMargin"))) { return true } else { - throw new Error("Can not discriminate value typeof FingerInfo") + throw new Error("Can not discriminate value typeof ParagraphStyleInterface") } } - static isGridContainerOptions(value: object|string|number|undefined|null, duplicated_columns: boolean, duplicated_sizeType: boolean, duplicated_gutter: boolean, duplicated_margin: boolean): boolean { - if ((!duplicated_columns) && (value?.hasOwnProperty("columns"))) { + static isSpanStyle(value: object|string|number|undefined|null, duplicated_start: boolean, duplicated_length: boolean, duplicated_styledKey: boolean, duplicated_styledValue: boolean): boolean { + if ((!duplicated_start) && (value?.hasOwnProperty("start"))) { return true } - else if ((!duplicated_sizeType) && (value?.hasOwnProperty("sizeType"))) { + else if ((!duplicated_length) && (value?.hasOwnProperty("length"))) { return true } - else if ((!duplicated_gutter) && (value?.hasOwnProperty("gutter"))) { + else if ((!duplicated_styledKey) && (value?.hasOwnProperty("styledKey"))) { return true } - else if ((!duplicated_margin) && (value?.hasOwnProperty("margin"))) { + else if ((!duplicated_styledValue) && (value?.hasOwnProperty("styledValue"))) { return true } else { - throw new Error("Can not discriminate value typeof GridContainerOptions") + throw new Error("Can not discriminate value typeof SpanStyle") } } - static isVisibleListContentInfo(value: object|string|number|undefined|null, duplicated_index: boolean, duplicated_itemIndexInGroup: boolean): boolean { - if ((!duplicated_index) && (value?.hasOwnProperty("index"))) { + static isLinearIndicatorStyle(value: object|string|number|undefined|null, duplicated_space: boolean, duplicated_strokeWidth: boolean, duplicated_strokeRadius: boolean, duplicated_trackBackgroundColor: boolean, duplicated_trackColor: boolean): boolean { + if ((!duplicated_space) && (value?.hasOwnProperty("space"))) { return true } - else if ((!duplicated_itemIndexInGroup) && (value?.hasOwnProperty("itemIndexInGroup"))) { + else if ((!duplicated_strokeWidth) && (value?.hasOwnProperty("strokeWidth"))) { return true } - else { - throw new Error("Can not discriminate value typeof VisibleListContentInfo") + else if ((!duplicated_strokeRadius) && (value?.hasOwnProperty("strokeRadius"))) { + return true } - } - static isNavDestinationCommonTitle(value: object|string|number|undefined|null, duplicated_main: boolean, duplicated_sub: boolean): boolean { - if ((!duplicated_main) && (value?.hasOwnProperty("main"))) { + else if ((!duplicated_trackBackgroundColor) && (value?.hasOwnProperty("trackBackgroundColor"))) { return true } - else if ((!duplicated_sub) && (value?.hasOwnProperty("sub"))) { + else if ((!duplicated_trackColor) && (value?.hasOwnProperty("trackColor"))) { return true } else { - throw new Error("Can not discriminate value typeof NavDestinationCommonTitle") + throw new Error("Can not discriminate value typeof LinearIndicatorStyle") } } - static isNavDestinationCustomTitle(value: object|string|number|undefined|null, duplicated_builder: boolean, duplicated_height: boolean): boolean { - if ((!duplicated_builder) && (value?.hasOwnProperty("builder"))) { + static isLinearIndicatorStartOptions(value: object|string|number|undefined|null, duplicated_interval: boolean, duplicated_duration: boolean): boolean { + if ((!duplicated_interval) && (value?.hasOwnProperty("interval"))) { return true } - else if ((!duplicated_height) && (value?.hasOwnProperty("height"))) { + else if ((!duplicated_duration) && (value?.hasOwnProperty("duration"))) { return true } else { - throw new Error("Can not discriminate value typeof NavDestinationCustomTitle") + throw new Error("Can not discriminate value typeof LinearIndicatorStartOptions") } } - static isRouteMapConfig(value: object|string|number|undefined|null, duplicated_name: boolean, duplicated_pageSourceFile: boolean, duplicated_data: boolean): boolean { - if ((!duplicated_name) && (value?.hasOwnProperty("name"))) { + static isLITERAL_TopLengthRightLengthBottomLengthLeftLength(value: object|string|number|undefined|null, duplicated_top: boolean, duplicated_right: boolean, duplicated_bottom: boolean, duplicated_left: boolean): boolean { + if ((!duplicated_top) && (value?.hasOwnProperty("top"))) { return true } - else if ((!duplicated_pageSourceFile) && (value?.hasOwnProperty("pageSourceFile"))) { + else if ((!duplicated_right) && (value?.hasOwnProperty("right"))) { return true } - else if ((!duplicated_data) && (value?.hasOwnProperty("data"))) { + else if ((!duplicated_bottom) && (value?.hasOwnProperty("bottom"))) { + return true + } + else if ((!duplicated_left) && (value?.hasOwnProperty("left"))) { return true } else { - throw new Error("Can not discriminate value typeof RouteMapConfig") + throw new Error("Can not discriminate value typeof LITERAL_TopLengthRightLengthBottomLengthLeftLength") } } - static isNavigationTitleOptions(value: object|string|number|undefined|null, duplicated_backgroundColor: boolean, duplicated_backgroundBlurStyle: boolean, duplicated_barStyle: boolean, duplicated_paddingStart: boolean, duplicated_paddingEnd: boolean): boolean { - if ((!duplicated_backgroundColor) && (value?.hasOwnProperty("backgroundColor"))) { + static isLITERAL_AlignAlignment(value: object|string|number|undefined|null, duplicated_align: boolean): boolean { + if ((!duplicated_align) && (value?.hasOwnProperty("align"))) { return true } - else if ((!duplicated_backgroundBlurStyle) && (value?.hasOwnProperty("backgroundBlurStyle"))) { + else { + throw new Error("Can not discriminate value typeof LITERAL_AlignAlignment") + } + } + static isLITERAL_TopBorderStyleRightBorderStyleBottomBorderStyleLeftBorderStyle(value: object|string|number|undefined|null, duplicated_top: boolean, duplicated_right: boolean, duplicated_bottom: boolean, duplicated_left: boolean): boolean { + if ((!duplicated_top) && (value?.hasOwnProperty("top"))) { return true } - else if ((!duplicated_barStyle) && (value?.hasOwnProperty("barStyle"))) { + else if ((!duplicated_right) && (value?.hasOwnProperty("right"))) { return true } - else if ((!duplicated_paddingStart) && (value?.hasOwnProperty("paddingStart"))) { + else if ((!duplicated_bottom) && (value?.hasOwnProperty("bottom"))) { return true } - else if ((!duplicated_paddingEnd) && (value?.hasOwnProperty("paddingEnd"))) { + else if ((!duplicated_left) && (value?.hasOwnProperty("left"))) { return true } else { - throw new Error("Can not discriminate value typeof NavigationTitleOptions") + throw new Error("Can not discriminate value typeof LITERAL_TopBorderStyleRightBorderStyleBottomBorderStyleLeftBorderStyle") } } - static isNavigationMenuItem(value: object|string|number|undefined|null, duplicated_value: boolean, duplicated_icon: boolean, duplicated_symbolIcon: boolean, duplicated_isEnabled: boolean, duplicated_action: boolean): boolean { - if ((!duplicated_value) && (value?.hasOwnProperty("value"))) { + static isLITERAL_TopResourceColorRightResourceColorBottomResourceColorLeftResourceColor(value: object|string|number|undefined|null, duplicated_top: boolean, duplicated_right: boolean, duplicated_bottom: boolean, duplicated_left: boolean): boolean { + if ((!duplicated_top) && (value?.hasOwnProperty("top"))) { return true } - else if ((!duplicated_icon) && (value?.hasOwnProperty("icon"))) { + else if ((!duplicated_right) && (value?.hasOwnProperty("right"))) { return true } - else if ((!duplicated_symbolIcon) && (value?.hasOwnProperty("symbolIcon"))) { + else if ((!duplicated_bottom) && (value?.hasOwnProperty("bottom"))) { return true } - else if ((!duplicated_isEnabled) && (value?.hasOwnProperty("isEnabled"))) { + else if ((!duplicated_left) && (value?.hasOwnProperty("left"))) { return true } - else if ((!duplicated_action) && (value?.hasOwnProperty("action"))) { + else { + throw new Error("Can not discriminate value typeof LITERAL_TopResourceColorRightResourceColorBottomResourceColorLeftResourceColor") + } + } + static isLITERAL_TopLeftLengthTopRightLengthBottomLeftLengthBottomRightLength(value: object|string|number|undefined|null, duplicated_topLeft: boolean, duplicated_topRight: boolean, duplicated_bottomLeft: boolean, duplicated_bottomRight: boolean): boolean { + if ((!duplicated_topLeft) && (value?.hasOwnProperty("topLeft"))) { + return true + } + else if ((!duplicated_topRight) && (value?.hasOwnProperty("topRight"))) { + return true + } + else if ((!duplicated_bottomLeft) && (value?.hasOwnProperty("bottomLeft"))) { + return true + } + else if ((!duplicated_bottomRight) && (value?.hasOwnProperty("bottomRight"))) { return true } else { - throw new Error("Can not discriminate value typeof NavigationMenuItem") + throw new Error("Can not discriminate value typeof LITERAL_TopLeftLengthTopRightLengthBottomLeftLengthBottomRightLength") } } - static isPopInfo(value: object|string|number|undefined|null, duplicated_info: boolean, duplicated_result: boolean): boolean { - if ((!duplicated_info) && (value?.hasOwnProperty("info"))) { + static isLITERAL_TopOutlineStyleRightOutlineStyleBottomOutlineStyleLeftOutlineStyle(value: object|string|number|undefined|null, duplicated_top: boolean, duplicated_right: boolean, duplicated_bottom: boolean, duplicated_left: boolean): boolean { + if ((!duplicated_top) && (value?.hasOwnProperty("top"))) { return true } - else if ((!duplicated_result) && (value?.hasOwnProperty("result"))) { + else if ((!duplicated_right) && (value?.hasOwnProperty("right"))) { + return true + } + else if ((!duplicated_bottom) && (value?.hasOwnProperty("bottom"))) { + return true + } + else if ((!duplicated_left) && (value?.hasOwnProperty("left"))) { return true } else { - throw new Error("Can not discriminate value typeof PopInfo") + throw new Error("Can not discriminate value typeof LITERAL_TopOutlineStyleRightOutlineStyleBottomOutlineStyleLeftOutlineStyle") } } - static isNavigationOptions(value: object|string|number|undefined|null, duplicated_launchMode: boolean, duplicated_animated: boolean): boolean { - if ((!duplicated_launchMode) && (value?.hasOwnProperty("launchMode"))) { + static isLITERAL_TopDimensionRightDimensionBottomDimensionLeftDimension(value: object|string|number|undefined|null, duplicated_top: boolean, duplicated_right: boolean, duplicated_bottom: boolean, duplicated_left: boolean): boolean { + if ((!duplicated_top) && (value?.hasOwnProperty("top"))) { return true } - else if ((!duplicated_animated) && (value?.hasOwnProperty("animated"))) { + else if ((!duplicated_right) && (value?.hasOwnProperty("right"))) { + return true + } + else if ((!duplicated_bottom) && (value?.hasOwnProperty("bottom"))) { + return true + } + else if ((!duplicated_left) && (value?.hasOwnProperty("left"))) { return true } else { - throw new Error("Can not discriminate value typeof NavigationOptions") + throw new Error("Can not discriminate value typeof LITERAL_TopDimensionRightDimensionBottomDimensionLeftDimension") } } - static isNavigationInterception(value: object|string|number|undefined|null, duplicated_willShow: boolean, duplicated_didShow: boolean, duplicated_modeChange: boolean): boolean { - if ((!duplicated_willShow) && (value?.hasOwnProperty("willShow"))) { + static isLITERAL_TopLeftDimensionTopRightDimensionBottomLeftDimensionBottomRightDimension(value: object|string|number|undefined|null, duplicated_topLeft: boolean, duplicated_topRight: boolean, duplicated_bottomLeft: boolean, duplicated_bottomRight: boolean): boolean { + if ((!duplicated_topLeft) && (value?.hasOwnProperty("topLeft"))) { return true } - else if ((!duplicated_didShow) && (value?.hasOwnProperty("didShow"))) { + else if ((!duplicated_topRight) && (value?.hasOwnProperty("topRight"))) { return true } - else if ((!duplicated_modeChange) && (value?.hasOwnProperty("modeChange"))) { + else if ((!duplicated_bottomLeft) && (value?.hasOwnProperty("bottomLeft"))) { + return true + } + else if ((!duplicated_bottomRight) && (value?.hasOwnProperty("bottomRight"))) { return true } else { - throw new Error("Can not discriminate value typeof NavigationInterception") + throw new Error("Can not discriminate value typeof LITERAL_TopLeftDimensionTopRightDimensionBottomLeftDimensionBottomRightDimension") } } - static isNavigationCommonTitle(value: object|string|number|undefined|null, duplicated_main: boolean, duplicated_sub: boolean): boolean { - if ((!duplicated_main) && (value?.hasOwnProperty("main"))) { + static isLITERAL_SpanNumberOffsetNumber(value: object|string|number|undefined|null, duplicated_span: boolean, duplicated_offset: boolean): boolean { + if ((!duplicated_span) && (value?.hasOwnProperty("span"))) { return true } - else if ((!duplicated_sub) && (value?.hasOwnProperty("sub"))) { + else if ((!duplicated_offset) && (value?.hasOwnProperty("offset"))) { return true } else { - throw new Error("Can not discriminate value typeof NavigationCommonTitle") + throw new Error("Can not discriminate value typeof LITERAL_SpanNumberOffsetNumber") } } - static isNavigationCustomTitle(value: object|string|number|undefined|null, duplicated_builder: boolean, duplicated_height: boolean): boolean { - if ((!duplicated_builder) && (value?.hasOwnProperty("builder"))) { + static isLITERAL_XsNumberLITERALSpanNumberOffsetNumberSmNumberLITERALSpanNumberOffsetNumberMdNumberLITERALSpanNumberOffsetNumberLgNumberLITERALSpanNumberOffsetNumber(value: object|string|number|undefined|null, duplicated_xs: boolean, duplicated_sm: boolean, duplicated_md: boolean, duplicated_lg: boolean): boolean { + if ((!duplicated_xs) && (value?.hasOwnProperty("xs"))) { return true } - else if ((!duplicated_height) && (value?.hasOwnProperty("height"))) { + else if ((!duplicated_sm) && (value?.hasOwnProperty("sm"))) { + return true + } + else if ((!duplicated_md) && (value?.hasOwnProperty("md"))) { + return true + } + else if ((!duplicated_lg) && (value?.hasOwnProperty("lg"))) { return true } else { - throw new Error("Can not discriminate value typeof NavigationCustomTitle") + throw new Error("Can not discriminate value typeof LITERAL_XsNumberLITERALSpanNumberOffsetNumberSmNumberLITERALSpanNumberOffsetNumberMdNumberLITERALSpanNumberOffsetNumberLgNumberLITERALSpanNumberOffsetNumber") } } - static isToolbarItem(value: object|string|number|undefined|null, duplicated_value: boolean, duplicated_icon: boolean, duplicated_symbolIcon: boolean, duplicated_action: boolean, duplicated_status: boolean, duplicated_activeIcon: boolean, duplicated_activeSymbolIcon: boolean): boolean { - if ((!duplicated_value) && (value?.hasOwnProperty("value"))) { + static isLITERAL_AngleNumberstringDirectionGradientDirectionColorsArrayResourceColornumberRepeatingBoolean(value: object|string|number|undefined|null, duplicated_angle: boolean, duplicated_direction: boolean, duplicated_colors: boolean, duplicated_repeating: boolean): boolean { + if ((!duplicated_colors) && (value?.hasOwnProperty("colors"))) { return true } - else if ((!duplicated_icon) && (value?.hasOwnProperty("icon"))) { + else if ((!duplicated_angle) && (value?.hasOwnProperty("angle"))) { return true } - else if ((!duplicated_symbolIcon) && (value?.hasOwnProperty("symbolIcon"))) { + else if ((!duplicated_direction) && (value?.hasOwnProperty("direction"))) { return true } - else if ((!duplicated_action) && (value?.hasOwnProperty("action"))) { + else if ((!duplicated_repeating) && (value?.hasOwnProperty("repeating"))) { return true } - else if ((!duplicated_status) && (value?.hasOwnProperty("status"))) { + else { + throw new Error("Can not discriminate value typeof LITERAL_AngleNumberstringDirectionGradientDirectionColorsArrayResourceColornumberRepeatingBoolean") + } + } + static isLITERAL_CenterLengthLengthStartNumberstringEndNumberstringRotationNumberstringColorsArrayResourceColornumberRepeatingBoolean(value: object|string|number|undefined|null, duplicated_center: boolean, duplicated_start: boolean, duplicated_end: boolean, duplicated_rotation: boolean, duplicated_colors: boolean, duplicated_repeating: boolean): boolean { + if ((!duplicated_center) && (value?.hasOwnProperty("center"))) { return true } - else if ((!duplicated_activeIcon) && (value?.hasOwnProperty("activeIcon"))) { + else if ((!duplicated_colors) && (value?.hasOwnProperty("colors"))) { return true } - else if ((!duplicated_activeSymbolIcon) && (value?.hasOwnProperty("activeSymbolIcon"))) { + else if ((!duplicated_start) && (value?.hasOwnProperty("start"))) { + return true + } + else if ((!duplicated_end) && (value?.hasOwnProperty("end"))) { + return true + } + else if ((!duplicated_rotation) && (value?.hasOwnProperty("rotation"))) { + return true + } + else if ((!duplicated_repeating) && (value?.hasOwnProperty("repeating"))) { return true } else { - throw new Error("Can not discriminate value typeof ToolbarItem") + throw new Error("Can not discriminate value typeof LITERAL_CenterLengthLengthStartNumberstringEndNumberstringRotationNumberstringColorsArrayResourceColornumberRepeatingBoolean") } } - static isNavigationToolbarOptions(value: object|string|number|undefined|null, duplicated_backgroundColor: boolean, duplicated_backgroundBlurStyle: boolean): boolean { - if ((!duplicated_backgroundColor) && (value?.hasOwnProperty("backgroundColor"))) { + static isLITERAL_CenterLengthLengthRadiusNumberstringColorsArrayResourceColornumberRepeatingBoolean(value: object|string|number|undefined|null, duplicated_center: boolean, duplicated_radius: boolean, duplicated_colors: boolean, duplicated_repeating: boolean): boolean { + if ((!duplicated_center) && (value?.hasOwnProperty("center"))) { return true } - else if ((!duplicated_backgroundBlurStyle) && (value?.hasOwnProperty("backgroundBlurStyle"))) { + else if ((!duplicated_radius) && (value?.hasOwnProperty("radius"))) { + return true + } + else if ((!duplicated_colors) && (value?.hasOwnProperty("colors"))) { + return true + } + else if ((!duplicated_repeating) && (value?.hasOwnProperty("repeating"))) { return true } else { - throw new Error("Can not discriminate value typeof NavigationToolbarOptions") + throw new Error("Can not discriminate value typeof LITERAL_CenterLengthLengthRadiusNumberstringColorsArrayResourceColornumberRepeatingBoolean") } } - static isNavContentInfo(value: object|string|number|undefined|null, duplicated_name: boolean, duplicated_index: boolean, duplicated_mode: boolean, duplicated_param: boolean, duplicated_navDestinationId: boolean): boolean { - if ((!duplicated_index) && (value?.hasOwnProperty("index"))) { + static isLITERAL_AppearTransitionEffectLITERALMoveTransitionEdgeDisappearTransitionEffectLITERALMoveTransitionEdge(value: object|string|number|undefined|null, duplicated_appear: boolean, duplicated_disappear: boolean): boolean { + if ((!duplicated_appear) && (value?.hasOwnProperty("appear"))) { return true } - else if ((!duplicated_name) && (value?.hasOwnProperty("name"))) { + else if ((!duplicated_disappear) && (value?.hasOwnProperty("disappear"))) { return true } - else if ((!duplicated_mode) && (value?.hasOwnProperty("mode"))) { + else { + throw new Error("Can not discriminate value typeof LITERAL_AppearTransitionEffectLITERALMoveTransitionEdgeDisappearTransitionEffectLITERALMoveTransitionEdge") + } + } + static isLITERAL_FingersNumberRepeatBooleanDurationNumber(value: object|string|number|undefined|null, duplicated_fingers: boolean, duplicated_repeat: boolean, duplicated_duration: boolean): boolean { + if ((!duplicated_fingers) && (value?.hasOwnProperty("fingers"))) { return true } - else if ((!duplicated_param) && (value?.hasOwnProperty("param"))) { + else if ((!duplicated_repeat) && (value?.hasOwnProperty("repeat"))) { return true } - else if ((!duplicated_navDestinationId) && (value?.hasOwnProperty("navDestinationId"))) { + else if ((!duplicated_duration) && (value?.hasOwnProperty("duration"))) { return true } else { - throw new Error("Can not discriminate value typeof NavContentInfo") + throw new Error("Can not discriminate value typeof LITERAL_FingersNumberRepeatBooleanDurationNumber") } } - static isNavigationAnimatedTransition(value: object|string|number|undefined|null, duplicated_onTransitionEnd: boolean, duplicated_timeout: boolean, duplicated_isInteractive: boolean, duplicated_transition: boolean): boolean { - if ((!duplicated_transition) && (value?.hasOwnProperty("transition"))) { + static isLITERAL_FingersNumberDirectionPanDirectionDistanceNumber(value: object|string|number|undefined|null, duplicated_fingers: boolean, duplicated_direction: boolean, duplicated_distance: boolean): boolean { + if ((!duplicated_fingers) && (value?.hasOwnProperty("fingers"))) { return true } - else if ((!duplicated_onTransitionEnd) && (value?.hasOwnProperty("onTransitionEnd"))) { + else if ((!duplicated_direction) && (value?.hasOwnProperty("direction"))) { return true } - else if ((!duplicated_timeout) && (value?.hasOwnProperty("timeout"))) { + else if ((!duplicated_distance) && (value?.hasOwnProperty("distance"))) { return true } - else if ((!duplicated_isInteractive) && (value?.hasOwnProperty("isInteractive"))) { + else { + throw new Error("Can not discriminate value typeof LITERAL_FingersNumberDirectionPanDirectionDistanceNumber") + } + } + static isLITERAL_FingersNumberDistanceNumber(value: object|string|number|undefined|null, duplicated_fingers: boolean, duplicated_distance: boolean): boolean { + if ((!duplicated_fingers) && (value?.hasOwnProperty("fingers"))) { + return true + } + else if ((!duplicated_distance) && (value?.hasOwnProperty("distance"))) { return true } else { - throw new Error("Can not discriminate value typeof NavigationAnimatedTransition") + throw new Error("Can not discriminate value typeof LITERAL_FingersNumberDistanceNumber") } } - static isScrollAnimationOptions(value: object|string|number|undefined|null, duplicated_duration: boolean, duplicated_curve: boolean, duplicated_canOverScroll: boolean): boolean { - if ((!duplicated_duration) && (value?.hasOwnProperty("duration"))) { + static isLITERAL_FingersNumberDirectionSwipeDirectionSpeedNumber(value: object|string|number|undefined|null, duplicated_fingers: boolean, duplicated_direction: boolean, duplicated_speed: boolean): boolean { + if ((!duplicated_fingers) && (value?.hasOwnProperty("fingers"))) { return true } - else if ((!duplicated_curve) && (value?.hasOwnProperty("curve"))) { + else if ((!duplicated_direction) && (value?.hasOwnProperty("direction"))) { return true } - else if ((!duplicated_canOverScroll) && (value?.hasOwnProperty("canOverScroll"))) { + else if ((!duplicated_speed) && (value?.hasOwnProperty("speed"))) { return true } else { - throw new Error("Can not discriminate value typeof ScrollAnimationOptions") + throw new Error("Can not discriminate value typeof LITERAL_FingersNumberDirectionSwipeDirectionSpeedNumber") } } - static isMenuItemConfiguration(value: object|string|number|undefined|null, duplicated_enabled: boolean, duplicated_contentModifier: boolean, duplicated_value: boolean, duplicated_icon: boolean): boolean { - if ((!duplicated_enabled) && (value?.hasOwnProperty("enabled"))) { + static isLITERAL_FingersNumberAngleNumber(value: object|string|number|undefined|null, duplicated_fingers: boolean, duplicated_angle: boolean): boolean { + if ((!duplicated_fingers) && (value?.hasOwnProperty("fingers"))) { return true } - else if ((!duplicated_contentModifier) && (value?.hasOwnProperty("contentModifier"))) { + else if ((!duplicated_angle) && (value?.hasOwnProperty("angle"))) { return true } - else if ((!duplicated_value) && (value?.hasOwnProperty("value"))) { + else { + throw new Error("Can not discriminate value typeof LITERAL_FingersNumberAngleNumber") + } + } + static isLITERAL_AnchorStringAlignHorizontalAlign(value: object|string|number|undefined|null, duplicated_anchor: boolean, duplicated_align: boolean): boolean { + if ((!duplicated_anchor) && (value?.hasOwnProperty("anchor"))) { return true } - else if ((!duplicated_icon) && (value?.hasOwnProperty("icon"))) { + else if ((!duplicated_align) && (value?.hasOwnProperty("align"))) { return true } else { - throw new Error("Can not discriminate value typeof MenuItemConfiguration") + throw new Error("Can not discriminate value typeof LITERAL_AnchorStringAlignHorizontalAlign") } } - static isSelectOption(value: object|string|number|undefined|null, duplicated_value: boolean, duplicated_icon: boolean, duplicated_symbolIcon: boolean): boolean { + static isLITERAL_AnchorStringAlignVerticalAlign(value: object|string|number|undefined|null, duplicated_anchor: boolean, duplicated_align: boolean): boolean { + if ((!duplicated_anchor) && (value?.hasOwnProperty("anchor"))) { + return true + } + else if ((!duplicated_align) && (value?.hasOwnProperty("align"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof LITERAL_AnchorStringAlignVerticalAlign") + } + } + static isLITERAL_ValueStringActionVoid(value: object|string|number|undefined|null, duplicated_value: boolean, duplicated_action: boolean): boolean { if ((!duplicated_value) && (value?.hasOwnProperty("value"))) { return true } - else if ((!duplicated_icon) && (value?.hasOwnProperty("icon"))) { + else if ((!duplicated_action) && (value?.hasOwnProperty("action"))) { return true } - else if ((!duplicated_symbolIcon) && (value?.hasOwnProperty("symbolIcon"))) { + else { + throw new Error("Can not discriminate value typeof LITERAL_ValueStringActionVoid") + } + } + static isLITERAL_IsVisibleBoolean(value: object|string|number|undefined|null, duplicated_isVisible: boolean): boolean { + if ((!duplicated_isVisible) && (value?.hasOwnProperty("isVisible"))) { return true } else { - throw new Error("Can not discriminate value typeof SelectOption") + throw new Error("Can not discriminate value typeof LITERAL_IsVisibleBoolean") } } - static isIndicatorStyle(value: object|string|number|undefined|null, duplicated_color: boolean): boolean { + static isLITERAL_ColorResourceColor(value: object|string|number|undefined|null, duplicated_color: boolean): boolean { if ((!duplicated_color) && (value?.hasOwnProperty("color"))) { return true } else { - throw new Error("Can not discriminate value typeof IndicatorStyle") + throw new Error("Can not discriminate value typeof LITERAL_ColorResourceColor") } } - static isBoardStyle(value: object|string|number|undefined|null, duplicated_borderRadius: boolean): boolean { - if ((!duplicated_borderRadius) && (value?.hasOwnProperty("borderRadius"))) { + static isLITERAL_WantIMPORTdefaultFROMapiohosappabilityWant(value: object|string|number|undefined|null, duplicated_want: boolean): boolean { + if ((!duplicated_want) && (value?.hasOwnProperty("want"))) { return true } else { - throw new Error("Can not discriminate value typeof BoardStyle") + throw new Error("Can not discriminate value typeof LITERAL_WantIMPORTdefaultFROMapiohosappabilityWant") + } + } + static isLITERAL_YearNumberMonthNumberDayNumber(value: object|string|number|undefined|null, duplicated_year: boolean, duplicated_month: boolean, duplicated_day: boolean): boolean { + if ((!duplicated_year) && (value?.hasOwnProperty("year"))) { + return true + } + else if ((!duplicated_month) && (value?.hasOwnProperty("month"))) { + return true + } + else if ((!duplicated_day) && (value?.hasOwnProperty("day"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof LITERAL_YearNumberMonthNumberDayNumber") + } + } + static isLITERAL_DateLITERALYearNumberMonthNumberDayNumberCurrentDataMonthDataPreDataMonthDataNextDataMonthDataControllerCalendarController(value: object|string|number|undefined|null, duplicated_date: boolean, duplicated_currentData: boolean, duplicated_preData: boolean, duplicated_nextData: boolean, duplicated_controller: boolean): boolean { + if ((!duplicated_date) && (value?.hasOwnProperty("date"))) { + return true + } + else if ((!duplicated_currentData) && (value?.hasOwnProperty("currentData"))) { + return true + } + else if ((!duplicated_preData) && (value?.hasOwnProperty("preData"))) { + return true + } + else if ((!duplicated_nextData) && (value?.hasOwnProperty("nextData"))) { + return true + } + else if ((!duplicated_controller) && (value?.hasOwnProperty("controller"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof LITERAL_DateLITERALYearNumberMonthNumberDayNumberCurrentDataMonthDataPreDataMonthDataNextDataMonthDataControllerCalendarController") } } - static isBooleanInterfaceDTS(value: object|string|number|undefined|null, duplicated_valBool: boolean): boolean { - if ((!duplicated_valBool) && (value?.hasOwnProperty("valBool"))) { + static isLITERAL_DxLengthDyLength(value: object|string|number|undefined|null, duplicated_dx: boolean, duplicated_dy: boolean): boolean { + if ((!duplicated_dx) && (value?.hasOwnProperty("dx"))) { + return true + } + else if ((!duplicated_dy) && (value?.hasOwnProperty("dy"))) { return true } else { - throw new Error("Can not discriminate value typeof BooleanInterfaceDTS") + throw new Error("Can not discriminate value typeof LITERAL_DxLengthDyLength") } } - static isNumberInterfaceDTS(value: object|string|number|undefined|null, duplicated_valNumber: boolean): boolean { - if ((!duplicated_valNumber) && (value?.hasOwnProperty("valNumber"))) { + static isLITERAL_WidthStringnumberHeightStringnumber(value: object|string|number|undefined|null, duplicated_width: boolean, duplicated_height: boolean): boolean { + if ((!duplicated_width) && (value?.hasOwnProperty("width"))) { return true } - else { - throw new Error("Can not discriminate value typeof NumberInterfaceDTS") - } - } - static isStringInterfaceDTS(value: object|string|number|undefined|null, duplicated_valString: boolean): boolean { - if ((!duplicated_valString) && (value?.hasOwnProperty("valString"))) { + else if ((!duplicated_height) && (value?.hasOwnProperty("height"))) { return true } else { - throw new Error("Can not discriminate value typeof StringInterfaceDTS") + throw new Error("Can not discriminate value typeof LITERAL_WidthStringnumberHeightStringnumber") } } - static isUnionInterfaceDTS(value: object|string|number|undefined|null, duplicated_unionProp: boolean): boolean { - if ((!duplicated_unionProp) && (value?.hasOwnProperty("unionProp"))) { + static isLITERAL_WidthNumberHeightNumber(value: object|string|number|undefined|null, duplicated_width: boolean, duplicated_height: boolean): boolean { + if ((!duplicated_width) && (value?.hasOwnProperty("width"))) { return true } - else { - throw new Error("Can not discriminate value typeof UnionInterfaceDTS") - } - } - static isUnionOptionalInterfaceDTS(value: object|string|number|undefined|null, duplicated_unionProp: boolean): boolean { - if ((!duplicated_unionProp) && (value?.hasOwnProperty("unionProp"))) { + else if ((!duplicated_height) && (value?.hasOwnProperty("height"))) { return true } else { - throw new Error("Can not discriminate value typeof UnionOptionalInterfaceDTS") + throw new Error("Can not discriminate value typeof LITERAL_WidthNumberHeightNumber") } } - static isTupleInterfaceDTS(value: object|string|number|undefined|null, duplicated_tuple: boolean): boolean { - if ((!duplicated_tuple) && (value?.hasOwnProperty("tuple"))) { + static isLITERAL_ErrcodeNumberMsgString(value: object|string|number|undefined|null, duplicated_errcode: boolean, duplicated_msg: boolean): boolean { + if ((!duplicated_errcode) && (value?.hasOwnProperty("errcode"))) { return true } - else { - throw new Error("Can not discriminate value typeof TupleInterfaceDTS") - } - } - static isOptionInterfaceDTS(value: object|string|number|undefined|null, duplicated_tuple: boolean): boolean { - if ((!duplicated_tuple) && (value?.hasOwnProperty("tuple"))) { + else if ((!duplicated_msg) && (value?.hasOwnProperty("msg"))) { return true } else { - throw new Error("Can not discriminate value typeof OptionInterfaceDTS") + throw new Error("Can not discriminate value typeof LITERAL_ErrcodeNumberMsgString") } } - static isArrayRefNumberInterfaceDTS(value: object|string|number|undefined|null, duplicated_tuple: boolean): boolean { - if ((!duplicated_tuple) && (value?.hasOwnProperty("tuple"))) { + static isLITERAL_OffsetRemainNumber(value: object|string|number|undefined|null, duplicated_offsetRemain: boolean): boolean { + if ((!duplicated_offsetRemain) && (value?.hasOwnProperty("offsetRemain"))) { return true } else { - throw new Error("Can not discriminate value typeof ArrayRefNumberInterfaceDTS") + throw new Error("Can not discriminate value typeof LITERAL_OffsetRemainNumber") } } - static isTextOptions(value: object|string|number|undefined|null, duplicated_controller: boolean): boolean { - if ((!duplicated_controller) && (value?.hasOwnProperty("controller"))) { + static isLITERAL_NextBoolean(value: object|string|number|undefined|null, duplicated_next: boolean): boolean { + if ((!duplicated_next) && (value?.hasOwnProperty("next"))) { return true } else { - throw new Error("Can not discriminate value typeof TextOptions") + throw new Error("Can not discriminate value typeof LITERAL_NextBoolean") } } - static isTextInputOptions(value: object|string|number|undefined|null, duplicated_placeholder: boolean, duplicated_text: boolean): boolean { - if ((!duplicated_placeholder) && (value?.hasOwnProperty("placeholder"))) { + static isLITERAL_NextBooleanDirectionAxis(value: object|string|number|undefined|null, duplicated_next: boolean, duplicated_direction: boolean): boolean { + if ((!duplicated_next) && (value?.hasOwnProperty("next"))) { return true } - else if ((!duplicated_text) && (value?.hasOwnProperty("text"))) { + else if ((!duplicated_direction) && (value?.hasOwnProperty("direction"))) { return true } else { - throw new Error("Can not discriminate value typeof TextInputOptions") + throw new Error("Can not discriminate value typeof LITERAL_NextBooleanDirectionAxis") } } - static isDividerOptions(value: object|string|number|undefined|null, duplicated_strokeWidth: boolean, duplicated_color: boolean, duplicated_startMargin: boolean, duplicated_endMargin: boolean): boolean { - if ((!duplicated_strokeWidth) && (value?.hasOwnProperty("strokeWidth"))) { + static isLITERAL_WidthNumberHeightNumberComponentWidthNumberComponentHeightNumberLoadingStatusNumberContentWidthNumberContentHeightNumberContentOffsetXNumberContentOffsetYNumber(value: object|string|number|undefined|null, duplicated_width: boolean, duplicated_height: boolean, duplicated_componentWidth: boolean, duplicated_componentHeight: boolean, duplicated_loadingStatus: boolean, duplicated_contentWidth: boolean, duplicated_contentHeight: boolean, duplicated_contentOffsetX: boolean, duplicated_contentOffsetY: boolean): boolean { + if ((!duplicated_width) && (value?.hasOwnProperty("width"))) { return true } - else if ((!duplicated_color) && (value?.hasOwnProperty("color"))) { + else if ((!duplicated_height) && (value?.hasOwnProperty("height"))) { return true } - else if ((!duplicated_startMargin) && (value?.hasOwnProperty("startMargin"))) { + else if ((!duplicated_componentWidth) && (value?.hasOwnProperty("componentWidth"))) { return true } - else if ((!duplicated_endMargin) && (value?.hasOwnProperty("endMargin"))) { + else if ((!duplicated_componentHeight) && (value?.hasOwnProperty("componentHeight"))) { return true } - else { - throw new Error("Can not discriminate value typeof DividerOptions") - } - } - static isTextPickerOptions(value: object|string|number|undefined|null, duplicated_range: boolean, duplicated_value: boolean, duplicated_selected: boolean): boolean { - if ((!duplicated_range) && (value?.hasOwnProperty("range"))) { + else if ((!duplicated_loadingStatus) && (value?.hasOwnProperty("loadingStatus"))) { return true } - else if ((!duplicated_value) && (value?.hasOwnProperty("value"))) { + else if ((!duplicated_contentWidth) && (value?.hasOwnProperty("contentWidth"))) { return true } - else if ((!duplicated_selected) && (value?.hasOwnProperty("selected"))) { + else if ((!duplicated_contentHeight) && (value?.hasOwnProperty("contentHeight"))) { return true } - else { - throw new Error("Can not discriminate value typeof TextPickerOptions") - } - } - static isTextPickerRangeContent(value: object|string|number|undefined|null, duplicated_icon: boolean, duplicated_text: boolean): boolean { - if ((!duplicated_icon) && (value?.hasOwnProperty("icon"))) { + else if ((!duplicated_contentOffsetX) && (value?.hasOwnProperty("contentOffsetX"))) { return true } - else if ((!duplicated_text) && (value?.hasOwnProperty("text"))) { + else if ((!duplicated_contentOffsetY) && (value?.hasOwnProperty("contentOffsetY"))) { return true } else { - throw new Error("Can not discriminate value typeof TextPickerRangeContent") + throw new Error("Can not discriminate value typeof LITERAL_WidthNumberHeightNumberComponentWidthNumberComponentHeightNumberLoadingStatusNumberContentWidthNumberContentHeightNumberContentOffsetXNumberContentOffsetYNumber") } } - static isTextCascadePickerRangeContent(value: object|string|number|undefined|null, duplicated_text: boolean, duplicated_children: boolean): boolean { - if ((!duplicated_text) && (value?.hasOwnProperty("text"))) { + static isLITERAL_MinLengthLengthMaxLengthLength(value: object|string|number|undefined|null, duplicated_minLength: boolean, duplicated_maxLength: boolean): boolean { + if ((!duplicated_minLength) && (value?.hasOwnProperty("minLength"))) { return true } - else if ((!duplicated_children) && (value?.hasOwnProperty("children"))) { + else if ((!duplicated_maxLength) && (value?.hasOwnProperty("maxLength"))) { return true } else { - throw new Error("Can not discriminate value typeof TextCascadePickerRangeContent") + throw new Error("Can not discriminate value typeof LITERAL_MinLengthLengthMaxLengthLength") } } - static isUIExtensionOptions(value: object|string|number|undefined|null, duplicated_isTransferringCaller: boolean, duplicated_placeholder: boolean, duplicated_dpiFollowStrategy: boolean): boolean { - if ((!duplicated_isTransferringCaller) && (value?.hasOwnProperty("isTransferringCaller"))) { - return true - } - else if ((!duplicated_placeholder) && (value?.hasOwnProperty("placeholder"))) { + static isLITERAL_TargetStringTypeNavigationType(value: object|string|number|undefined|null, duplicated_target: boolean, duplicated_type: boolean): boolean { + if ((!duplicated_target) && (value?.hasOwnProperty("target"))) { return true } - else if ((!duplicated_dpiFollowStrategy) && (value?.hasOwnProperty("dpiFollowStrategy"))) { + else if ((!duplicated_type) && (value?.hasOwnProperty("type"))) { return true } else { - throw new Error("Can not discriminate value typeof UIExtensionOptions") + throw new Error("Can not discriminate value typeof LITERAL_TargetStringTypeNavigationType") } } - static isFont(value: object|string|number|undefined|null, duplicated_size: boolean, duplicated_weight: boolean, duplicated_family: boolean, duplicated_style: boolean): boolean { - if ((!duplicated_size) && (value?.hasOwnProperty("size"))) { - return true - } - else if ((!duplicated_weight) && (value?.hasOwnProperty("weight"))) { + static isLITERAL_WidthNumberstringHeightNumberstringCommandsString(value: object|string|number|undefined|null, duplicated_width: boolean, duplicated_height: boolean, duplicated_commands: boolean): boolean { + if ((!duplicated_width) && (value?.hasOwnProperty("width"))) { return true } - else if ((!duplicated_family) && (value?.hasOwnProperty("family"))) { + else if ((!duplicated_height) && (value?.hasOwnProperty("height"))) { return true } - else if ((!duplicated_style) && (value?.hasOwnProperty("style"))) { + else if ((!duplicated_commands) && (value?.hasOwnProperty("commands"))) { return true } else { - throw new Error("Can not discriminate value typeof Font") + throw new Error("Can not discriminate value typeof LITERAL_WidthNumberstringHeightNumberstringCommandsString") } } - static isOffset(value: object|string|number|undefined|null, duplicated_dx: boolean, duplicated_dy: boolean): boolean { - if ((!duplicated_dx) && (value?.hasOwnProperty("dx"))) { + static isLITERAL_TemplatePluginComponentTemplateDataObject(value: object|string|number|undefined|null, duplicated_template: boolean, duplicated_data: boolean): boolean { + if ((!duplicated_template) && (value?.hasOwnProperty("template"))) { return true } - else if ((!duplicated_dy) && (value?.hasOwnProperty("dy"))) { + else if ((!duplicated_data) && (value?.hasOwnProperty("data"))) { return true } else { - throw new Error("Can not discriminate value typeof Offset") + throw new Error("Can not discriminate value typeof LITERAL_TemplatePluginComponentTemplateDataObject") } } - static isAltOffset(value: object|string|number|undefined|null, duplicated_dx1: boolean, duplicated_dy2: boolean): boolean { - if ((!duplicated_dx1) && (value?.hasOwnProperty("dx1"))) { + static isLITERAL_WidthNumberstringHeightNumberstringRadiusNumberstringArrayObject(value: object|string|number|undefined|null, duplicated_width: boolean, duplicated_height: boolean, duplicated_radius: boolean): boolean { + if ((!duplicated_width) && (value?.hasOwnProperty("width"))) { return true } - else if ((!duplicated_dy2) && (value?.hasOwnProperty("dy2"))) { + else if ((!duplicated_height) && (value?.hasOwnProperty("height"))) { + return true + } + else if ((!duplicated_radius) && (value?.hasOwnProperty("radius"))) { return true } else { - throw new Error("Can not discriminate value typeof AltOffset") + throw new Error("Can not discriminate value typeof LITERAL_WidthNumberstringHeightNumberstringRadiusNumberstringArrayObject") } } - static isLocalizedPadding(value: object|string|number|undefined|null, duplicated_top: boolean, duplicated_end: boolean, duplicated_bottom: boolean, duplicated_start: boolean): boolean { - if ((!duplicated_top) && (value?.hasOwnProperty("top"))) { + static isLITERAL_WidthNumberstringHeightNumberstringRadiusWidthNumberstringRadiusHeightNumberstring(value: object|string|number|undefined|null, duplicated_width: boolean, duplicated_height: boolean, duplicated_radiusWidth: boolean, duplicated_radiusHeight: boolean): boolean { + if ((!duplicated_width) && (value?.hasOwnProperty("width"))) { return true } - else if ((!duplicated_end) && (value?.hasOwnProperty("end"))) { + else if ((!duplicated_height) && (value?.hasOwnProperty("height"))) { return true } - else if ((!duplicated_bottom) && (value?.hasOwnProperty("bottom"))) { + else if ((!duplicated_radiusWidth) && (value?.hasOwnProperty("radiusWidth"))) { return true } - else if ((!duplicated_start) && (value?.hasOwnProperty("start"))) { + else if ((!duplicated_radiusHeight) && (value?.hasOwnProperty("radiusHeight"))) { return true } else { - throw new Error("Can not discriminate value typeof LocalizedPadding") + throw new Error("Can not discriminate value typeof LITERAL_WidthNumberstringHeightNumberstringRadiusWidthNumberstringRadiusHeightNumberstring") } } - static isVector1(value: object|string|number|undefined|null, duplicated_x0: boolean, duplicated_x1: boolean, duplicated_x2: boolean, duplicated_x3: boolean): boolean { - if ((!duplicated_x0) && (value?.hasOwnProperty("x0"))) { + static isLITERAL_ValueStringPlaceholderResourceStrIconStringControllerSearchController(value: object|string|number|undefined|null, duplicated_value: boolean, duplicated_placeholder: boolean, duplicated_icon: boolean, duplicated_controller: boolean): boolean { + if ((!duplicated_value) && (value?.hasOwnProperty("value"))) { return true } - else if ((!duplicated_x1) && (value?.hasOwnProperty("x1"))) { + else if ((!duplicated_placeholder) && (value?.hasOwnProperty("placeholder"))) { return true } - else if ((!duplicated_x2) && (value?.hasOwnProperty("x2"))) { + else if ((!duplicated_icon) && (value?.hasOwnProperty("icon"))) { return true } - else if ((!duplicated_x3) && (value?.hasOwnProperty("x3"))) { + else if ((!duplicated_controller) && (value?.hasOwnProperty("controller"))) { return true } else { - throw new Error("Can not discriminate value typeof Vector1") + throw new Error("Can not discriminate value typeof LITERAL_ValueStringPlaceholderResourceStrIconStringControllerSearchController") } } - static isVector2(value: object|string|number|undefined|null, duplicated_t: boolean, duplicated_x: boolean, duplicated_y: boolean, duplicated_z: boolean): boolean { - if ((!duplicated_t) && (value?.hasOwnProperty("t"))) { + static isLITERAL_XNumberstringYNumberstringWidthNumberstringHeightNumberstring(value: object|string|number|undefined|null, duplicated_x: boolean, duplicated_y: boolean, duplicated_width: boolean, duplicated_height: boolean): boolean { + if ((!duplicated_x) && (value?.hasOwnProperty("x"))) { return true } - else if ((!duplicated_x) && (value?.hasOwnProperty("x"))) { + else if ((!duplicated_y) && (value?.hasOwnProperty("y"))) { return true } - else if ((!duplicated_y) && (value?.hasOwnProperty("y"))) { + else if ((!duplicated_width) && (value?.hasOwnProperty("width"))) { return true } - else if ((!duplicated_z) && (value?.hasOwnProperty("z"))) { + else if ((!duplicated_height) && (value?.hasOwnProperty("height"))) { return true } else { - throw new Error("Can not discriminate value typeof Vector2") + throw new Error("Can not discriminate value typeof LITERAL_XNumberstringYNumberstringWidthNumberstringHeightNumberstring") } } - static isNativeEmbedDataInfo(value: object|string|number|undefined|null, duplicated_info: boolean): boolean { - if ((!duplicated_info) && (value?.hasOwnProperty("info"))) { + static isLITERAL_IndexNumber(value: object|string|number|undefined|null, duplicated_index: boolean): boolean { + if ((!duplicated_index) && (value?.hasOwnProperty("index"))) { return true } else { - throw new Error("Can not discriminate value typeof NativeEmbedDataInfo") + throw new Error("Can not discriminate value typeof LITERAL_IndexNumber") } } - static isNativeEmbedInfo(value: object|string|number|undefined|null, duplicated_params: boolean): boolean { - if ((!duplicated_params) && (value?.hasOwnProperty("params"))) { + static isLITERAL_MinSizeVP(value: object|string|number|undefined|null, duplicated_minSize: boolean): boolean { + if ((!duplicated_minSize) && (value?.hasOwnProperty("minSize"))) { return true } else { - throw new Error("Can not discriminate value typeof NativeEmbedInfo") + throw new Error("Can not discriminate value typeof LITERAL_MinSizeVP") } } - static isOnRenderExitedEvent(value: object|string|number|undefined|null, duplicated_renderExitReason: boolean): boolean { - if ((!duplicated_renderExitReason) && (value?.hasOwnProperty("renderExitReason"))) { + static isLITERAL_BarPositionBarPositionIndexNumberControllerTabsController(value: object|string|number|undefined|null, duplicated_barPosition: boolean, duplicated_index: boolean, duplicated_controller: boolean): boolean { + if ((!duplicated_barPosition) && (value?.hasOwnProperty("barPosition"))) { return true } - else { - throw new Error("Can not discriminate value typeof OnRenderExitedEvent") + else if ((!duplicated_index) && (value?.hasOwnProperty("index"))) { + return true } - } - static isOnHttpErrorReceiveEvent(value: object|string|number|undefined|null, duplicated_response: boolean): boolean { - if ((!duplicated_response) && (value?.hasOwnProperty("response"))) { + else if ((!duplicated_controller) && (value?.hasOwnProperty("controller"))) { return true } else { - throw new Error("Can not discriminate value typeof OnHttpErrorReceiveEvent") + throw new Error("Can not discriminate value typeof LITERAL_BarPositionBarPositionIndexNumberControllerTabsController") } } - static isLITERAL_TopLengthRightLengthBottomLengthLeftLength(value: object|string|number|undefined|null, duplicated_top: boolean, duplicated_right: boolean, duplicated_bottom: boolean, duplicated_left: boolean): boolean { - if ((!duplicated_top) && (value?.hasOwnProperty("top"))) { + static isLITERAL_IconStringResourceTextStringResource(value: object|string|number|undefined|null, duplicated_icon: boolean, duplicated_text: boolean): boolean { + if ((!duplicated_icon) && (value?.hasOwnProperty("icon"))) { return true } - else if ((!duplicated_right) && (value?.hasOwnProperty("right"))) { + else if ((!duplicated_text) && (value?.hasOwnProperty("text"))) { return true } - else if ((!duplicated_bottom) && (value?.hasOwnProperty("bottom"))) { + else { + throw new Error("Can not discriminate value typeof LITERAL_IconStringResourceTextStringResource") + } + } + static isLITERAL_StyleCancelButtonStyleIconIconOptions(value: object|string|number|undefined|null, duplicated_style: boolean, duplicated_icon: boolean): boolean { + if ((!duplicated_style) && (value?.hasOwnProperty("style"))) { return true } - else if ((!duplicated_left) && (value?.hasOwnProperty("left"))) { + else if ((!duplicated_icon) && (value?.hasOwnProperty("icon"))) { return true } else { - throw new Error("Can not discriminate value typeof LITERAL_TopLengthRightLengthBottomLengthLeftLength") + throw new Error("Can not discriminate value typeof LITERAL_StyleCancelButtonStyleIconIconOptions") } } - static isLITERAL_AngleNumberstringDirectionGradientDirectionColorsArrayResourceColornumberRepeatingBoolean(value: object|string|number|undefined|null, duplicated_angle: boolean, duplicated_direction: boolean, duplicated_colors: boolean, duplicated_repeating: boolean): boolean { - if ((!duplicated_colors) && (value?.hasOwnProperty("colors"))) { + static isLITERAL_FullscreenBoolean(value: object|string|number|undefined|null, duplicated_fullscreen: boolean): boolean { + if ((!duplicated_fullscreen) && (value?.hasOwnProperty("fullscreen"))) { return true } - else if ((!duplicated_angle) && (value?.hasOwnProperty("angle"))) { - return true + else { + throw new Error("Can not discriminate value typeof LITERAL_FullscreenBoolean") } - else if ((!duplicated_direction) && (value?.hasOwnProperty("direction"))) { + } + static isLITERAL_DurationNumber(value: object|string|number|undefined|null, duplicated_duration: boolean): boolean { + if ((!duplicated_duration) && (value?.hasOwnProperty("duration"))) { return true } - else if ((!duplicated_repeating) && (value?.hasOwnProperty("repeating"))) { + else { + throw new Error("Can not discriminate value typeof LITERAL_DurationNumber") + } + } + static isLITERAL_TimeNumber(value: object|string|number|undefined|null, duplicated_time: boolean): boolean { + if ((!duplicated_time) && (value?.hasOwnProperty("time"))) { return true } else { - throw new Error("Can not discriminate value typeof LITERAL_AngleNumberstringDirectionGradientDirectionColorsArrayResourceColornumberRepeatingBoolean") + throw new Error("Can not discriminate value typeof LITERAL_TimeNumber") } } - static isLITERAL_TopResourceColorRightResourceColorBottomResourceColorLeftResourceColor(value: object|string|number|undefined|null, duplicated_top: boolean, duplicated_right: boolean, duplicated_bottom: boolean, duplicated_left: boolean): boolean { - if ((!duplicated_top) && (value?.hasOwnProperty("top"))) { + static isLITERAL_DataStringWebResourceRequest(value: object|string|number|undefined|null, duplicated_data: boolean): boolean { + if ((!duplicated_data) && (value?.hasOwnProperty("data"))) { return true } - else if ((!duplicated_right) && (value?.hasOwnProperty("right"))) { - return true + else { + throw new Error("Can not discriminate value typeof LITERAL_DataStringWebResourceRequest") } - else if ((!duplicated_bottom) && (value?.hasOwnProperty("bottom"))) { + } + static isLITERAL_HandlerFunctionErrorObject(value: object|string|number|undefined|null, duplicated_handler: boolean, duplicated_error: boolean): boolean { + if ((!duplicated_handler) && (value?.hasOwnProperty("handler"))) { return true } - else if ((!duplicated_left) && (value?.hasOwnProperty("left"))) { + else if ((!duplicated_error) && (value?.hasOwnProperty("error"))) { return true } else { - throw new Error("Can not discriminate value typeof LITERAL_TopResourceColorRightResourceColorBottomResourceColorLeftResourceColor") + throw new Error("Can not discriminate value typeof LITERAL_HandlerFunctionErrorObject") } } - static isLITERAL_TopBorderStyleRightBorderStyleBottomBorderStyleLeftBorderStyle(value: object|string|number|undefined|null, duplicated_top: boolean, duplicated_right: boolean, duplicated_bottom: boolean, duplicated_left: boolean): boolean { - if ((!duplicated_top) && (value?.hasOwnProperty("top"))) { + static isLITERAL_DetailObject(value: object|string|number|undefined|null, duplicated_detail: boolean): boolean { + if ((!duplicated_detail) && (value?.hasOwnProperty("detail"))) { return true } - else if ((!duplicated_right) && (value?.hasOwnProperty("right"))) { - return true + else { + throw new Error("Can not discriminate value typeof LITERAL_DetailObject") } - else if ((!duplicated_bottom) && (value?.hasOwnProperty("bottom"))) { + } + static isLITERAL_CallbackFunctionFileSelectorObject(value: object|string|number|undefined|null, duplicated_callback: boolean, duplicated_fileSelector: boolean): boolean { + if ((!duplicated_callback) && (value?.hasOwnProperty("callback"))) { return true } - else if ((!duplicated_left) && (value?.hasOwnProperty("left"))) { + else if ((!duplicated_fileSelector) && (value?.hasOwnProperty("fileSelector"))) { return true } else { - throw new Error("Can not discriminate value typeof LITERAL_TopBorderStyleRightBorderStyleBottomBorderStyleLeftBorderStyle") + throw new Error("Can not discriminate value typeof LITERAL_CallbackFunctionFileSelectorObject") } } - static isLITERAL_DxLengthDyLength(value: object|string|number|undefined|null, duplicated_dx: boolean, duplicated_dy: boolean): boolean { - if ((!duplicated_dx) && (value?.hasOwnProperty("dx"))) { + static isLITERAL_ScriptStringCallbackResultstringvoid(value: object|string|number|undefined|null, duplicated_script: boolean, duplicated_callback: boolean): boolean { + if ((!duplicated_script) && (value?.hasOwnProperty("script"))) { return true } - else if ((!duplicated_dy) && (value?.hasOwnProperty("dy"))) { + else if ((!duplicated_callback) && (value?.hasOwnProperty("callback"))) { return true } else { - throw new Error("Can not discriminate value typeof LITERAL_DxLengthDyLength") + throw new Error("Can not discriminate value typeof LITERAL_ScriptStringCallbackResultstringvoid") } } - static isLITERAL_Dx1LengthDy2Length(value: object|string|number|undefined|null, duplicated_dx1: boolean, duplicated_dy2: boolean): boolean { - if ((!duplicated_dx1) && (value?.hasOwnProperty("dx1"))) { + static isLITERAL_DataStringMimeTypeStringEncodingStringBaseUrlStringHistoryUrlString(value: object|string|number|undefined|null, duplicated_data: boolean, duplicated_mimeType: boolean, duplicated_encoding: boolean, duplicated_baseUrl: boolean, duplicated_historyUrl: boolean): boolean { + if ((!duplicated_data) && (value?.hasOwnProperty("data"))) { return true } - else if ((!duplicated_dy2) && (value?.hasOwnProperty("dy2"))) { + else if ((!duplicated_mimeType) && (value?.hasOwnProperty("mimeType"))) { + return true + } + else if ((!duplicated_encoding) && (value?.hasOwnProperty("encoding"))) { + return true + } + else if ((!duplicated_baseUrl) && (value?.hasOwnProperty("baseUrl"))) { + return true + } + else if ((!duplicated_historyUrl) && (value?.hasOwnProperty("historyUrl"))) { return true } else { - throw new Error("Can not discriminate value typeof LITERAL_Dx1LengthDy2Length") + throw new Error("Can not discriminate value typeof LITERAL_DataStringMimeTypeStringEncodingStringBaseUrlStringHistoryUrlString") } } - static isLITERAL_WidthNumberHeightNumber(value: object|string|number|undefined|null, duplicated_width: boolean, duplicated_height: boolean): boolean { - if ((!duplicated_width) && (value?.hasOwnProperty("width"))) { + static isLITERAL_UrlStringResourceHeadersArrayHeader(value: object|string|number|undefined|null, duplicated_url: boolean, duplicated_headers: boolean): boolean { + if ((!duplicated_url) && (value?.hasOwnProperty("url"))) { return true } - else if ((!duplicated_height) && (value?.hasOwnProperty("height"))) { + else if ((!duplicated_headers) && (value?.hasOwnProperty("headers"))) { return true } else { - throw new Error("Can not discriminate value typeof LITERAL_WidthNumberHeightNumber") + throw new Error("Can not discriminate value typeof LITERAL_UrlStringResourceHeadersArrayHeader") } } - static isLITERAL_WidthNumberstringHeightNumberstringRadiusNumberstringArrayObject(value: object|string|number|undefined|null, duplicated_width: boolean, duplicated_height: boolean, duplicated_radius: boolean): boolean { - if ((!duplicated_width) && (value?.hasOwnProperty("width"))) { + static isLITERAL_ObjectObjectNameStringMethodListArraystring(value: object|string|number|undefined|null, duplicated_object: boolean, duplicated_name: boolean, duplicated_methodList: boolean): boolean { + if ((!duplicated_object) && (value?.hasOwnProperty("object"))) { return true } - else if ((!duplicated_height) && (value?.hasOwnProperty("height"))) { + else if ((!duplicated_name) && (value?.hasOwnProperty("name"))) { return true } - else if ((!duplicated_radius) && (value?.hasOwnProperty("radius"))) { + else if ((!duplicated_methodList) && (value?.hasOwnProperty("methodList"))) { return true } else { - throw new Error("Can not discriminate value typeof LITERAL_WidthNumberstringHeightNumberstringRadiusNumberstringArrayObject") + throw new Error("Can not discriminate value typeof LITERAL_ObjectObjectNameStringMethodListArraystring") } } - static isLITERAL_WidthNumberstringHeightNumberstringRadiusWidthNumberstringRadiusHeightNumberstring(value: object|string|number|undefined|null, duplicated_width: boolean, duplicated_height: boolean, duplicated_radiusWidth: boolean, duplicated_radiusHeight: boolean): boolean { - if ((!duplicated_width) && (value?.hasOwnProperty("width"))) { + static isLITERAL_PlainTextString(value: object|string|number|undefined|null, duplicated_plainText: boolean): boolean { + if ((!duplicated_plainText) && (value?.hasOwnProperty("plainText"))) { return true } - else if ((!duplicated_height) && (value?.hasOwnProperty("height"))) { + else { + throw new Error("Can not discriminate value typeof LITERAL_PlainTextString") + } + } + static isLITERAL_IdStringTypeStringLibrarynameStringControllerXComponentController(value: object|string|number|undefined|null, duplicated_id: boolean, duplicated_type: boolean, duplicated_libraryname: boolean, duplicated_controller: boolean): boolean { + if ((!duplicated_id) && (value?.hasOwnProperty("id"))) { return true } - else if ((!duplicated_radiusWidth) && (value?.hasOwnProperty("radiusWidth"))) { + else if ((!duplicated_type) && (value?.hasOwnProperty("type"))) { return true } - else if ((!duplicated_radiusHeight) && (value?.hasOwnProperty("radiusHeight"))) { + else if ((!duplicated_libraryname) && (value?.hasOwnProperty("libraryname"))) { + return true + } + else if ((!duplicated_controller) && (value?.hasOwnProperty("controller"))) { return true } else { - throw new Error("Can not discriminate value typeof LITERAL_WidthNumberstringHeightNumberstringRadiusWidthNumberstringRadiusHeightNumberstring") + throw new Error("Can not discriminate value typeof LITERAL_IdStringTypeStringLibrarynameStringControllerXComponentController") } } - static isLITERAL_XOffsetNumberstringYOffsetNumberstringAnimationScrollAnimationOptionsboolean(value: object|string|number|undefined|null, duplicated_xOffset: boolean, duplicated_yOffset: boolean, duplicated_animation: boolean): boolean { - if ((!duplicated_xOffset) && (value?.hasOwnProperty("xOffset"))) { + static isLITERAL_IdStringTypeXComponentTypeLibrarynameStringControllerXComponentController(value: object|string|number|undefined|null, duplicated_id: boolean, duplicated_type: boolean, duplicated_libraryname: boolean, duplicated_controller: boolean): boolean { + if ((!duplicated_id) && (value?.hasOwnProperty("id"))) { return true } - else if ((!duplicated_yOffset) && (value?.hasOwnProperty("yOffset"))) { + else if ((!duplicated_type) && (value?.hasOwnProperty("type"))) { return true } - else if ((!duplicated_animation) && (value?.hasOwnProperty("animation"))) { + else if ((!duplicated_libraryname) && (value?.hasOwnProperty("libraryname"))) { + return true + } + else if ((!duplicated_controller) && (value?.hasOwnProperty("controller"))) { return true } else { - throw new Error("Can not discriminate value typeof LITERAL_XOffsetNumberstringYOffsetNumberstringAnimationScrollAnimationOptionsboolean") + throw new Error("Can not discriminate value typeof LITERAL_IdStringTypeXComponentTypeLibrarynameStringControllerXComponentController") } } - static isLITERAL_NextBoolean(value: object|string|number|undefined|null, duplicated_next: boolean): boolean { - if ((!duplicated_next) && (value?.hasOwnProperty("next"))) { + static isLITERAL_SurfaceWidthNumberSurfaceHeightNumber(value: object|string|number|undefined|null, duplicated_surfaceWidth: boolean, duplicated_surfaceHeight: boolean): boolean { + if ((!duplicated_surfaceWidth) && (value?.hasOwnProperty("surfaceWidth"))) { + return true + } + else if ((!duplicated_surfaceHeight) && (value?.hasOwnProperty("surfaceHeight"))) { return true } else { - throw new Error("Can not discriminate value typeof LITERAL_NextBoolean") + throw new Error("Can not discriminate value typeof LITERAL_SurfaceWidthNumberSurfaceHeightNumber") } } - static isLITERAL_NextBooleanDirectionAxis(value: object|string|number|undefined|null, duplicated_next: boolean, duplicated_direction: boolean): boolean { - if ((!duplicated_next) && (value?.hasOwnProperty("next"))) { + static isLITERAL_ShownStringPixelMapResourceHiddenStringPixelMapResourceSwitchingStringPixelMapResource(value: object|string|number|undefined|null, duplicated_shown: boolean, duplicated_hidden: boolean, duplicated_switching: boolean): boolean { + if ((!duplicated_shown) && (value?.hasOwnProperty("shown"))) { return true } - else if ((!duplicated_direction) && (value?.hasOwnProperty("direction"))) { + else if ((!duplicated_hidden) && (value?.hasOwnProperty("hidden"))) { + return true + } + else if ((!duplicated_switching) && (value?.hasOwnProperty("switching"))) { return true } else { - throw new Error("Can not discriminate value typeof LITERAL_NextBooleanDirectionAxis") + throw new Error("Can not discriminate value typeof LITERAL_ShownStringPixelMapResourceHiddenStringPixelMapResourceSwitchingStringPixelMapResource") } } static isLITERAL_CodeNumberWantIMPORTdefaultFROMapiohosappabilityWant(value: object|string|number|undefined|null, duplicated_code: boolean, duplicated_want: boolean): boolean { @@ -1291,92 +7642,87 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof LITERAL_CodeNumberWantIMPORTdefaultFROMapiohosappabilityWant") } } - static isLITERAL_X0NumberX1NumberX2NumberX3Number(value: object|string|number|undefined|null, duplicated_x0: boolean, duplicated_x1: boolean, duplicated_x2: boolean, duplicated_x3: boolean): boolean { - if ((!duplicated_x0) && (value?.hasOwnProperty("x0"))) { - return true - } - else if ((!duplicated_x1) && (value?.hasOwnProperty("x1"))) { + static isINTERFACE_NavDestinationContext(value: object|string|number|undefined|null, duplicated_pathInfo: boolean, duplicated_pathStack: boolean, duplicated_navDestinationId: boolean): boolean { + if ((!duplicated_pathInfo) && (value?.hasOwnProperty("pathInfo"))) { return true } - else if ((!duplicated_x2) && (value?.hasOwnProperty("x2"))) { + else if ((!duplicated_pathStack) && (value?.hasOwnProperty("pathStack"))) { return true } - else if ((!duplicated_x3) && (value?.hasOwnProperty("x3"))) { + else if ((!duplicated_navDestinationId) && (value?.hasOwnProperty("navDestinationId"))) { return true } else { - throw new Error("Can not discriminate value typeof LITERAL_X0NumberX1NumberX2NumberX3Number") + throw new Error("Can not discriminate value typeof INTERFACE_NavDestinationContext") } } - static isLITERAL_TNumberXNumberYNumberZNumber(value: object|string|number|undefined|null, duplicated_t: boolean, duplicated_x: boolean, duplicated_y: boolean, duplicated_z: boolean): boolean { - if ((!duplicated_t) && (value?.hasOwnProperty("t"))) { - return true - } - else if ((!duplicated_x) && (value?.hasOwnProperty("x"))) { + static isINTERFACE_NavigationTransitionProxy(value: object|string|number|undefined|null, duplicated_from: boolean, duplicated_to: boolean, duplicated_isInteractive: boolean): boolean { + if ((!duplicated_from) && (value?.hasOwnProperty("from"))) { return true } - else if ((!duplicated_y) && (value?.hasOwnProperty("y"))) { + else if ((!duplicated_to) && (value?.hasOwnProperty("to"))) { return true } - else if ((!duplicated_z) && (value?.hasOwnProperty("z"))) { + else if ((!duplicated_isInteractive) && (value?.hasOwnProperty("isInteractive"))) { return true } else { - throw new Error("Can not discriminate value typeof LITERAL_TNumberXNumberYNumberZNumber") + throw new Error("Can not discriminate value typeof INTERFACE_NavigationTransitionProxy") } } - static isLITERAL_DetailObject(value: object|string|number|undefined|null, duplicated_detail: boolean): boolean { - if ((!duplicated_detail) && (value?.hasOwnProperty("detail"))) { + static isINTERFACE_SwiperContentTransitionProxy(value: object|string|number|undefined|null, duplicated_selectedIndex: boolean, duplicated_index: boolean, duplicated_position: boolean, duplicated_mainAxisLength: boolean): boolean { + if ((!duplicated_selectedIndex) && (value?.hasOwnProperty("selectedIndex"))) { return true } - else { - throw new Error("Can not discriminate value typeof LITERAL_DetailObject") - } - } - static isINTERFACE_NavDestinationContext(value: object|string|number|undefined|null, duplicated_pathInfo: boolean, duplicated_pathStack: boolean, duplicated_navDestinationId: boolean): boolean { - if ((!duplicated_pathInfo) && (value?.hasOwnProperty("pathInfo"))) { + else if ((!duplicated_index) && (value?.hasOwnProperty("index"))) { return true } - else if ((!duplicated_pathStack) && (value?.hasOwnProperty("pathStack"))) { + else if ((!duplicated_position) && (value?.hasOwnProperty("position"))) { return true } - else if ((!duplicated_navDestinationId) && (value?.hasOwnProperty("navDestinationId"))) { + else if ((!duplicated_mainAxisLength) && (value?.hasOwnProperty("mainAxisLength"))) { return true } else { - throw new Error("Can not discriminate value typeof INTERFACE_NavDestinationContext") + throw new Error("Can not discriminate value typeof INTERFACE_SwiperContentTransitionProxy") } } - static isINTERFACE_NavigationTransitionProxy(value: object|string|number|undefined|null, duplicated_from: boolean, duplicated_to: boolean, duplicated_isInteractive: boolean): boolean { + static isINTERFACE_TabContentTransitionProxy(value: object|string|number|undefined|null, duplicated_from: boolean, duplicated_to: boolean): boolean { if ((!duplicated_from) && (value?.hasOwnProperty("from"))) { return true } else if ((!duplicated_to) && (value?.hasOwnProperty("to"))) { return true - } - else if ((!duplicated_isInteractive) && (value?.hasOwnProperty("isInteractive"))) { - return true } else { - throw new Error("Can not discriminate value typeof INTERFACE_NavigationTransitionProxy") + throw new Error("Can not discriminate value typeof INTERFACE_TabContentTransitionProxy") } } + static isTouchObjectBracketsArray(value: object|string|number|undefined|null): boolean { + return Array.isArray(value) + } static isFingerInfoBracketsArray(value: object|string|number|undefined|null): boolean { return Array.isArray(value) } - static isstringBracketsArray(value: object|string|number|undefined|null): boolean { + static isGestureTypeBracketsArray(value: object|string|number|undefined|null): boolean { + return Array.isArray(value) + } + static isFractionStopBracketsArray(value: object|string|number|undefined|null): boolean { return Array.isArray(value) } - static isbooleanBracketsArray(value: object|string|number|undefined|null): boolean { + static isCalendarDayBracketsArray(value: object|string|number|undefined|null): boolean { return Array.isArray(value) } static isnumberBracketsArray(value: object|string|number|undefined|null): boolean { return Array.isArray(value) } - static isEnumDTSBracketsArray(value: object|string|number|undefined|null): boolean { + static isImageAnalyzerTypeBracketsArray(value: object|string|number|undefined|null): boolean { + return Array.isArray(value) + } + static isTextDataDetectorTypeBracketsArray(value: object|string|number|undefined|null): boolean { return Array.isArray(value) } - static isBooleanInterfaceDTSBracketsArray(value: object|string|number|undefined|null): boolean { + static isstringBracketsArray(value: object|string|number|undefined|null): boolean { return Array.isArray(value) } static isstringBracketsArrayBracketsArray(value: object|string|number|undefined|null): boolean { -- Gitee From 59edd84a9f21cb0f7c0761b3f119f1a8a11c4354 Mon Sep 17 00:00:00 2001 From: naumovdmitrii Date: Tue, 22 Oct 2024 18:56:10 +0300 Subject: [PATCH 03/14] CircleAttribute Signed-off-by: naumovdmitrii --- .../arkui/src/generated/peers/Serializer.ts | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/arkoala-arkts/arkui/src/generated/peers/Serializer.ts b/arkoala-arkts/arkui/src/generated/peers/Serializer.ts index 663c870b0..2d3e8153e 100644 --- a/arkoala-arkts/arkui/src/generated/peers/Serializer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/Serializer.ts @@ -10509,26 +10509,6 @@ export class Serializer extends SerializerBase { const value_shape_value = value_shape! let value_shape_value_type = RuntimeType.UNDEFINED value_shape_value_type = runtimeType(value_shape_value) - if (((RuntimeType.OBJECT) == (value_shape_value_type)) && (value_shape_value instanceof CircleAttribute)) { - valueSerializer.writeInt8(0 as int32) - const value_shape_value_0 = value_shape_value as CircleAttribute - valueSerializer.writeCircleAttribute(value_shape_value_0) - } - else if (((RuntimeType.OBJECT) == (value_shape_value_type)) && (value_shape_value instanceof EllipseAttribute)) { - valueSerializer.writeInt8(1 as int32) - const value_shape_value_1 = value_shape_value as EllipseAttribute - valueSerializer.writeEllipseAttribute(value_shape_value_1) - } - else if (((RuntimeType.OBJECT) == (value_shape_value_type)) && (value_shape_value instanceof PathAttribute)) { - valueSerializer.writeInt8(2 as int32) - const value_shape_value_2 = value_shape_value as PathAttribute - valueSerializer.writePathAttribute(value_shape_value_2) - } - else if (((RuntimeType.OBJECT) == (value_shape_value_type)) && (value_shape_value instanceof RectAttribute)) { - valueSerializer.writeInt8(3 as int32) - const value_shape_value_3 = value_shape_value as RectAttribute - valueSerializer.writeRectAttribute(value_shape_value_3) - } } } writeSliderOptions(value: SliderOptions): void { -- Gitee From b1c636415abfc3f6f7fc011a6bb06c73aa382c38 Mon Sep 17 00:00:00 2001 From: naumovdmitrii Date: Tue, 22 Oct 2024 18:57:56 +0300 Subject: [PATCH 04/14] isGesture Signed-off-by: naumovdmitrii --- .../src/generated/peers/ArkCommonPeer.ts | 35 ------------------- 1 file changed, 35 deletions(-) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkCommonPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkCommonPeer.ts index 9afa57d54..f0124310a 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkCommonPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkCommonPeer.ts @@ -1522,41 +1522,6 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer = SerializerBase.hold(createSerializer) let gesture_type = RuntimeType.UNDEFINED gesture_type = runtimeType(gesture) - if (TypeChecker.isTapGestureInterface(gesture)) { - thisSerializer.writeInt8(0 as int32) - const gesture_0 = gesture as TapGestureInterface - thisSerializer.writeTapGestureInterface(gesture_0) - } - else if (TypeChecker.isLongPressGestureInterface(gesture)) { - thisSerializer.writeInt8(1 as int32) - const gesture_1 = gesture as LongPressGestureInterface - thisSerializer.writeLongPressGestureInterface(gesture_1) - } - else if (TypeChecker.isPanGestureInterface(gesture)) { - thisSerializer.writeInt8(2 as int32) - const gesture_2 = gesture as PanGestureInterface - thisSerializer.writePanGestureInterface(gesture_2) - } - else if (TypeChecker.isPinchGestureInterface(gesture)) { - thisSerializer.writeInt8(3 as int32) - const gesture_3 = gesture as PinchGestureInterface - thisSerializer.writePinchGestureInterface(gesture_3) - } - else if (TypeChecker.isSwipeGestureInterface(gesture)) { - thisSerializer.writeInt8(4 as int32) - const gesture_4 = gesture as SwipeGestureInterface - thisSerializer.writeSwipeGestureInterface(gesture_4) - } - else if (TypeChecker.isRotationGestureInterface(gesture)) { - thisSerializer.writeInt8(5 as int32) - const gesture_5 = gesture as RotationGestureInterface - thisSerializer.writeRotationGestureInterface(gesture_5) - } - else if (TypeChecker.isGestureGroupInterface(gesture)) { - thisSerializer.writeInt8(6 as int32) - const gesture_6 = gesture as GestureGroupInterface - thisSerializer.writeGestureGroupInterface(gesture_6) - } let mask_type = RuntimeType.UNDEFINED if (mask != undefined) { mask_type = RuntimeType.OBJECT -- Gitee From b99885cb4826ab6d113ba1f7df9a643c0fe8b70d Mon Sep 17 00:00:00 2001 From: naumovdmitrii Date: Tue, 22 Oct 2024 18:57:56 +0300 Subject: [PATCH 05/14] isGesture Signed-off-by: naumovdmitrii --- .../src/generated/peers/ArkCommonPeer.ts | 70 ------------------- 1 file changed, 70 deletions(-) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkCommonPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkCommonPeer.ts index f0124310a..0d2a6b87f 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkCommonPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkCommonPeer.ts @@ -1420,41 +1420,6 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer = SerializerBase.hold(createSerializer) let gesture_type = RuntimeType.UNDEFINED gesture_type = runtimeType(gesture) - if (TypeChecker.isTapGestureInterface(gesture)) { - thisSerializer.writeInt8(0 as int32) - const gesture_0 = gesture as TapGestureInterface - thisSerializer.writeTapGestureInterface(gesture_0) - } - else if (TypeChecker.isLongPressGestureInterface(gesture)) { - thisSerializer.writeInt8(1 as int32) - const gesture_1 = gesture as LongPressGestureInterface - thisSerializer.writeLongPressGestureInterface(gesture_1) - } - else if (TypeChecker.isPanGestureInterface(gesture)) { - thisSerializer.writeInt8(2 as int32) - const gesture_2 = gesture as PanGestureInterface - thisSerializer.writePanGestureInterface(gesture_2) - } - else if (TypeChecker.isPinchGestureInterface(gesture)) { - thisSerializer.writeInt8(3 as int32) - const gesture_3 = gesture as PinchGestureInterface - thisSerializer.writePinchGestureInterface(gesture_3) - } - else if (TypeChecker.isSwipeGestureInterface(gesture)) { - thisSerializer.writeInt8(4 as int32) - const gesture_4 = gesture as SwipeGestureInterface - thisSerializer.writeSwipeGestureInterface(gesture_4) - } - else if (TypeChecker.isRotationGestureInterface(gesture)) { - thisSerializer.writeInt8(5 as int32) - const gesture_5 = gesture as RotationGestureInterface - thisSerializer.writeRotationGestureInterface(gesture_5) - } - else if (TypeChecker.isGestureGroupInterface(gesture)) { - thisSerializer.writeInt8(6 as int32) - const gesture_6 = gesture as GestureGroupInterface - thisSerializer.writeGestureGroupInterface(gesture_6) - } let mask_type = RuntimeType.UNDEFINED if (mask != undefined) { mask_type = RuntimeType.OBJECT @@ -1471,41 +1436,6 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer = SerializerBase.hold(createSerializer) let gesture_type = RuntimeType.UNDEFINED gesture_type = runtimeType(gesture) - if (TypeChecker.isTapGestureInterface(gesture)) { - thisSerializer.writeInt8(0 as int32) - const gesture_0 = gesture as TapGestureInterface - thisSerializer.writeTapGestureInterface(gesture_0) - } - else if (TypeChecker.isLongPressGestureInterface(gesture)) { - thisSerializer.writeInt8(1 as int32) - const gesture_1 = gesture as LongPressGestureInterface - thisSerializer.writeLongPressGestureInterface(gesture_1) - } - else if (TypeChecker.isPanGestureInterface(gesture)) { - thisSerializer.writeInt8(2 as int32) - const gesture_2 = gesture as PanGestureInterface - thisSerializer.writePanGestureInterface(gesture_2) - } - else if (TypeChecker.isPinchGestureInterface(gesture)) { - thisSerializer.writeInt8(3 as int32) - const gesture_3 = gesture as PinchGestureInterface - thisSerializer.writePinchGestureInterface(gesture_3) - } - else if (TypeChecker.isSwipeGestureInterface(gesture)) { - thisSerializer.writeInt8(4 as int32) - const gesture_4 = gesture as SwipeGestureInterface - thisSerializer.writeSwipeGestureInterface(gesture_4) - } - else if (TypeChecker.isRotationGestureInterface(gesture)) { - thisSerializer.writeInt8(5 as int32) - const gesture_5 = gesture as RotationGestureInterface - thisSerializer.writeRotationGestureInterface(gesture_5) - } - else if (TypeChecker.isGestureGroupInterface(gesture)) { - thisSerializer.writeInt8(6 as int32) - const gesture_6 = gesture as GestureGroupInterface - thisSerializer.writeGestureGroupInterface(gesture_6) - } let mask_type = RuntimeType.UNDEFINED if (mask != undefined) { mask_type = RuntimeType.OBJECT -- Gitee From 7988d7d8f5819f69de230c440a30fe39fe7b2d7c Mon Sep 17 00:00:00 2001 From: naumovdmitrii Date: Tue, 22 Oct 2024 19:03:20 +0300 Subject: [PATCH 06/14] shape attribute Signed-off-by: naumovdmitrii --- .../src/generated/peers/ArkCommonPeer.ts | 42 +------------------ 1 file changed, 1 insertion(+), 41 deletions(-) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkCommonPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkCommonPeer.ts index 0d2a6b87f..587d42091 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkCommonPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkCommonPeer.ts @@ -2355,26 +2355,6 @@ export class ArkCommonMethodPeer extends PeerNode { const value_0 = value as boolean thisSerializer.writeBoolean(value_0) } - else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof CircleAttribute)) { - thisSerializer.writeInt8(1 as int32) - const value_1 = value as CircleAttribute - thisSerializer.writeCircleAttribute(value_1) - } - else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof EllipseAttribute)) { - thisSerializer.writeInt8(2 as int32) - const value_2 = value as EllipseAttribute - thisSerializer.writeEllipseAttribute(value_2) - } - else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof PathAttribute)) { - thisSerializer.writeInt8(3 as int32) - const value_3 = value as PathAttribute - thisSerializer.writePathAttribute(value_3) - } - else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof RectAttribute)) { - thisSerializer.writeInt8(4 as int32) - const value_4 = value as RectAttribute - thisSerializer.writeRectAttribute(value_4) - } NativeModule._CommonMethod_clip1(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); thisSerializer.release(); } @@ -2415,27 +2395,7 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer = SerializerBase.hold(createSerializer) let value_type = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof CircleAttribute)) { - thisSerializer.writeInt8(0 as int32) - const value_0 = value as CircleAttribute - thisSerializer.writeCircleAttribute(value_0) - } - else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof EllipseAttribute)) { - thisSerializer.writeInt8(1 as int32) - const value_1 = value as EllipseAttribute - thisSerializer.writeEllipseAttribute(value_1) - } - else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof PathAttribute)) { - thisSerializer.writeInt8(2 as int32) - const value_2 = value as PathAttribute - thisSerializer.writePathAttribute(value_2) - } - else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof RectAttribute)) { - thisSerializer.writeInt8(3 as int32) - const value_3 = value as RectAttribute - thisSerializer.writeRectAttribute(value_3) - } - else if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof ProgressMask)) { + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof ProgressMask)) { thisSerializer.writeInt8(4 as int32) const value_4 = value as ProgressMask thisSerializer.writeMaterialized(value_4) -- Gitee From 7d49e535b60b348e3f96a2318e7c6a12e69224e4 Mon Sep 17 00:00:00 2001 From: naumovdmitrii Date: Tue, 22 Oct 2024 19:04:40 +0300 Subject: [PATCH 07/14] template Signed-off-by: naumovdmitrii --- arkoala-arkts/arkui/src/generated/SyntheticDeclarations.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arkoala-arkts/arkui/src/generated/SyntheticDeclarations.ts b/arkoala-arkts/arkui/src/generated/SyntheticDeclarations.ts index a8159cd12..9f6973459 100644 --- a/arkoala-arkts/arkui/src/generated/SyntheticDeclarations.ts +++ b/arkoala-arkts/arkui/src/generated/SyntheticDeclarations.ts @@ -336,7 +336,7 @@ export interface LITERAL_WidthNumberstringHeightNumberstringCommandsString { } export declare type IMPORT_Callback_number_FROM_api_ohos_base = Object export interface LITERAL_TemplatePluginComponentTemplateDataObject { - template: PluginComponentTemplate + template_: PluginComponentTemplate data: Object } export interface LITERAL_WidthNumberstringHeightNumberstringRadiusNumberstringArrayObject { -- Gitee From 29c7ccf96b347214463b7e4ffb86d84ab8afc48d Mon Sep 17 00:00:00 2001 From: naumovdmitrii Date: Tue, 22 Oct 2024 19:05:40 +0300 Subject: [PATCH 08/14] scroll Signed-off-by: naumovdmitrii --- arkoala-arkts/arkui/src/generated/ArkScroll.ts | 18 ------------------ .../arkui/src/generated/peers/ArkScrollPeer.ts | 6 ------ 2 files changed, 24 deletions(-) diff --git a/arkoala-arkts/arkui/src/generated/ArkScroll.ts b/arkoala-arkts/arkui/src/generated/ArkScroll.ts index 2c97ae6c9..4ccc0285e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkScroll.ts +++ b/arkoala-arkts/arkui/src/generated/ArkScroll.ts @@ -58,24 +58,6 @@ export class ArkScrollComponent extends ArkScrollableCommonMethodComponent { return this } /** @memo */ - onScroll(event: ((xOffset: number, yOffset: number) => void)): this { - if (this.checkPriority("onScroll")) { - const event_casted = event as (((xOffset: number, yOffset: number) => void)) - this.peer?.onScrollAttribute(event_casted) - return this - } - return this - } - /** @memo */ - onDidScroll(handler: ScrollOnScrollCallback): this { - if (this.checkPriority("onDidScroll")) { - const handler_casted = handler as (ScrollOnScrollCallback) - this.peer?.onDidScrollAttribute(handler_casted) - return this - } - return this - } - /** @memo */ onScrollEdge(event: OnScrollEdgeCallback): this { if (this.checkPriority("onScrollEdge")) { const event_casted = event as (OnScrollEdgeCallback) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkScrollPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkScrollPeer.ts index 8fdd39c19..97cca0bff 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkScrollPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkScrollPeer.ts @@ -67,12 +67,6 @@ export class ArkScrollPeer extends ArkScrollableCommonMethodPeer { scrollableAttribute(value: ScrollDirection): void { NativeModule._ScrollAttribute_scrollable(this.peer.ptr, (value.value as int32)); } - onScrollAttribute(event: ((xOffset: number, yOffset: number) => void)): void { - NativeModule._ScrollAttribute_onScroll(this.peer.ptr, registerCallback(event)); - } - onDidScrollAttribute(handler: ScrollOnScrollCallback): void { - NativeModule._ScrollAttribute_onDidScroll(this.peer.ptr, registerCallback(handler)); - } onScrollEdgeAttribute(event: OnScrollEdgeCallback): void { NativeModule._ScrollAttribute_onScrollEdge(this.peer.ptr, registerCallback(event)); } -- Gitee From 452dd5b4e8c86ceb16f141f4953910a7e9d639b8 Mon Sep 17 00:00:00 2001 From: naumovdmitrii Date: Tue, 22 Oct 2024 19:06:49 +0300 Subject: [PATCH 09/14] ArkTest Signed-off-by: naumovdmitrii --- arkoala-arkts/arkui/src/generated/ArkTest.ts | 491 --------------- .../arkui/src/generated/peers/ArkTestPeer.ts | 566 ------------------ 2 files changed, 1057 deletions(-) delete mode 100644 arkoala-arkts/arkui/src/generated/ArkTest.ts delete mode 100644 arkoala-arkts/arkui/src/generated/peers/ArkTestPeer.ts diff --git a/arkoala-arkts/arkui/src/generated/ArkTest.ts b/arkoala-arkts/arkui/src/generated/ArkTest.ts deleted file mode 100644 index 841ccf1cf..000000000 --- a/arkoala-arkts/arkui/src/generated/ArkTest.ts +++ /dev/null @@ -1,491 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! - -import { NodeAttach, remember } from "@koalaui/runtime" -import { ArkUINodeType } from "./peers/ArkUINodeType" -import { runtimeType, RuntimeType, isPixelMap, isResource, isInstanceOf } from "./peers/SerializerBase" -import { ComponentBase } from "./ComponentBase" -import { TypeChecker } from "#components" -import { ArkCommonMethodComponent } from "./ArkCommon" -import { ArkTestPeer } from "./peers/ArkTestPeer" -import { UseEventsProperties } from "./use_properties" -import { TestAttribute, EnumDTS, BooleanInterfaceDTS, NumberInterfaceDTS, StringInterfaceDTS, UnionInterfaceDTS, UnionOptionalInterfaceDTS, TupleInterfaceDTS, OptionInterfaceDTS, ArrayRefNumberInterfaceDTS, ClassDTS, ClassWithConstructorDTS, ClassWithConstructorAndFieldsDTS, TestInterface } from "./ArkTestInterfaces" -import { ClassWithConstructorAndMethodsDTS } from "./ArkClassWithConstructorAndMethodsDTSMaterialized" -import { ClassWithConstructorAndStaticMethodsDTS } from "./ArkClassWithConstructorAndStaticMethodsDTSMaterialized" -import { ClassWithConstructorAndFieldsAndMethodsDTS } from "./ArkClassWithConstructorAndFieldsAndMethodsDTSMaterialized" -import { ClassWithConstructorAndNonOptionalParamsDTS } from "./ArkClassWithConstructorAndNonOptionalParamsDTSMaterialized" -import { ClassWithConstructorAndSomeOptionalParamsDTS } from "./ArkClassWithConstructorAndSomeOptionalParamsDTSMaterialized" -import { ClassWithConstructorAndAllOptionalParamsDTS } from "./ArkClassWithConstructorAndAllOptionalParamsDTSMaterialized" -import { ClassWithConstructorAndWithoutParamsDTS } from "./ArkClassWithConstructorAndWithoutParamsDTSMaterialized" -/** @memo:stable */ -export class ArkTestComponent extends ArkCommonMethodComponent { - protected peer?: ArkTestPeer - /** @memo */ - setTestOptions(): this { - if (this.checkPriority("setTestOptions")) { - this.peer?.setTestOptionsAttribute() - return this - } - return this - } - /** @memo */ - testBoolean(value: boolean): this { - if (this.checkPriority("testBoolean")) { - const value_casted = value as (boolean) - this.peer?.testBooleanAttribute(value_casted) - return this - } - return this - } - /** @memo */ - testNumber(value: number): this { - if (this.checkPriority("testNumber")) { - const value_casted = value as (number) - this.peer?.testNumberAttribute(value_casted) - return this - } - return this - } - /** @memo */ - testString(value: string): this { - if (this.checkPriority("testString")) { - const value_casted = value as (string) - this.peer?.testStringAttribute(value_casted) - return this - } - return this - } - /** @memo */ - testEnum(value: EnumDTS): this { - if (this.checkPriority("testEnum")) { - const value_casted = value as (EnumDTS) - this.peer?.testEnumAttribute(value_casted) - return this - } - return this - } - /** @memo */ - testFunction(value: ((a: number) => boolean)): this { - if (this.checkPriority("testFunction")) { - const value_casted = value as (((a: number) => boolean)) - this.peer?.testFunctionAttribute(value_casted) - return this - } - return this - } - /** @memo */ - testBasicMix(v1: number, v2: string, v3: number): this { - if (this.checkPriority("testBasicMix")) { - const v1_casted = v1 as (number) - const v2_casted = v2 as (string) - const v3_casted = v3 as (number) - this.peer?.testBasicMixAttribute(v1_casted, v2_casted, v3_casted) - return this - } - return this - } - /** @memo */ - testBooleanUndefined(value: boolean | undefined): this { - if (this.checkPriority("testBooleanUndefined")) { - const value_casted = value as (boolean | undefined) - this.peer?.testBooleanUndefinedAttribute(value_casted) - return this - } - return this - } - /** @memo */ - testNumberUndefined(value: number | undefined): this { - if (this.checkPriority("testNumberUndefined")) { - const value_casted = value as (number | undefined) - this.peer?.testNumberUndefinedAttribute(value_casted) - return this - } - return this - } - /** @memo */ - testStringUndefined(value: string | undefined): this { - if (this.checkPriority("testStringUndefined")) { - const value_casted = value as (string | undefined) - this.peer?.testStringUndefinedAttribute(value_casted) - return this - } - return this - } - /** @memo */ - testEnumUndefined(value: EnumDTS | undefined): this { - if (this.checkPriority("testEnumUndefined")) { - const value_casted = value as (EnumDTS | undefined) - this.peer?.testEnumUndefinedAttribute(value_casted) - return this - } - return this - } - /** @memo */ - testFunctionUndefined(value: ((a: number) => boolean | undefined)): this { - if (this.checkPriority("testFunctionUndefined")) { - const value_casted = value as (((a: number) => boolean | undefined)) - this.peer?.testFunctionUndefinedAttribute(value_casted) - return this - } - return this - } - /** @memo */ - testUnionNumberEnum(val: number | EnumDTS): this { - if (this.checkPriority("testUnionNumberEnum")) { - const val_casted = val as (number | EnumDTS) - this.peer?.testUnionNumberEnumAttribute(val_casted) - return this - } - return this - } - /** @memo */ - testUnionBooleanString(val: boolean | string): this { - if (this.checkPriority("testUnionBooleanString")) { - const val_casted = val as (boolean | string) - this.peer?.testUnionBooleanStringAttribute(val_casted) - return this - } - return this - } - /** @memo */ - testUnionStringNumber(val: string | number): this { - if (this.checkPriority("testUnionStringNumber")) { - const val_casted = val as (string | number) - this.peer?.testUnionStringNumberAttribute(val_casted) - return this - } - return this - } - /** @memo */ - testUnionBooleanStringNumberUndefined(val: boolean | string | number | undefined): this { - if (this.checkPriority("testUnionBooleanStringNumberUndefined")) { - const val_casted = val as (boolean | string | number | undefined) - this.peer?.testUnionBooleanStringNumberUndefinedAttribute(val_casted) - return this - } - return this - } - /** @memo */ - testUnionWithGenericArray(value: number | Array): this { - if (this.checkPriority("testUnionWithGenericArray")) { - const value_casted = value as (number | Array) - this.peer?.testUnionWithGenericArrayAttribute(value_casted) - return this - } - return this - } - /** @memo */ - testUnionWithArrayType(value: number | string[]): this { - if (this.checkPriority("testUnionWithArrayType")) { - const value_casted = value as (number | string[]) - this.peer?.testUnionWithArrayTypeAttribute(value_casted) - return this - } - return this - } - /** @memo */ - testBooleanArray(value: boolean[]): this { - if (this.checkPriority("testBooleanArray")) { - const value_casted = value as (boolean[]) - this.peer?.testBooleanArrayAttribute(value_casted) - return this - } - return this - } - /** @memo */ - testNumberArray(value: number[]): this { - if (this.checkPriority("testNumberArray")) { - const value_casted = value as (number[]) - this.peer?.testNumberArrayAttribute(value_casted) - return this - } - return this - } - /** @memo */ - testStringArray(value: string[]): this { - if (this.checkPriority("testStringArray")) { - const value_casted = value as (string[]) - this.peer?.testStringArrayAttribute(value_casted) - return this - } - return this - } - /** @memo */ - testEnumArray(value: EnumDTS[]): this { - if (this.checkPriority("testEnumArray")) { - const value_casted = value as (EnumDTS[]) - this.peer?.testEnumArrayAttribute(value_casted) - return this - } - return this - } - /** @memo */ - testArrayMix(v1: number[], v2: string[], v3: EnumDTS[]): this { - if (this.checkPriority("testArrayMix")) { - const v1_casted = v1 as (number[]) - const v2_casted = v2 as (string[]) - const v3_casted = v3 as (EnumDTS[]) - this.peer?.testArrayMixAttribute(v1_casted, v2_casted, v3_casted) - return this - } - return this - } - /** @memo */ - testTupleBooleanNumber(value: [boolean, number]): this { - if (this.checkPriority("testTupleBooleanNumber")) { - const value_casted = value as ([boolean, number]) - this.peer?.testTupleBooleanNumberAttribute(value_casted) - return this - } - return this - } - /** @memo */ - testArrayRefBoolean(value: Array): this { - if (this.checkPriority("testArrayRefBoolean")) { - const value_casted = value as (Array) - this.peer?.testArrayRefBooleanAttribute(value_casted) - return this - } - return this - } - /** @memo */ - testArrayRefNumber(value: Array): this { - if (this.checkPriority("testArrayRefNumber")) { - const value_casted = value as (Array) - this.peer?.testArrayRefNumberAttribute(value_casted) - return this - } - return this - } - /** @memo */ - testBooleanInterface(value: BooleanInterfaceDTS): this { - if (this.checkPriority("testBooleanInterface")) { - const value_casted = value as (BooleanInterfaceDTS) - this.peer?.testBooleanInterfaceAttribute(value_casted) - return this - } - return this - } - /** @memo */ - testNumberInterface(value: NumberInterfaceDTS): this { - if (this.checkPriority("testNumberInterface")) { - const value_casted = value as (NumberInterfaceDTS) - this.peer?.testNumberInterfaceAttribute(value_casted) - return this - } - return this - } - /** @memo */ - testStringInterface(value: StringInterfaceDTS): this { - if (this.checkPriority("testStringInterface")) { - const value_casted = value as (StringInterfaceDTS) - this.peer?.testStringInterfaceAttribute(value_casted) - return this - } - return this - } - /** @memo */ - testUnionInterface(value: UnionInterfaceDTS): this { - if (this.checkPriority("testUnionInterface")) { - const value_casted = value as (UnionInterfaceDTS) - this.peer?.testUnionInterfaceAttribute(value_casted) - return this - } - return this - } - /** @memo */ - testUnionOptional(value: UnionOptionalInterfaceDTS): this { - if (this.checkPriority("testUnionOptional")) { - const value_casted = value as (UnionOptionalInterfaceDTS) - this.peer?.testUnionOptionalAttribute(value_casted) - return this - } - return this - } - /** @memo */ - testTupleInterface(value: TupleInterfaceDTS): this { - if (this.checkPriority("testTupleInterface")) { - const value_casted = value as (TupleInterfaceDTS) - this.peer?.testTupleInterfaceAttribute(value_casted) - return this - } - return this - } - /** @memo */ - testOptionInterface(value: OptionInterfaceDTS): this { - if (this.checkPriority("testOptionInterface")) { - const value_casted = value as (OptionInterfaceDTS) - this.peer?.testOptionInterfaceAttribute(value_casted) - return this - } - return this - } - /** @memo */ - testArrayRefNumberInterface(value: ArrayRefNumberInterfaceDTS): this { - if (this.checkPriority("testArrayRefNumberInterface")) { - const value_casted = value as (ArrayRefNumberInterfaceDTS) - this.peer?.testArrayRefNumberInterfaceAttribute(value_casted) - return this - } - return this - } - /** @memo */ - testBooleanInterfaceOption(value?: BooleanInterfaceDTS): this { - if (this.checkPriority("testBooleanInterfaceOption")) { - if ((value) == (undefined)) { - throw new Error("Arg 'value' is null"); - } - const value_casted = value as (BooleanInterfaceDTS) - this.peer?.testBooleanInterfaceOptionAttribute(value_casted) - return this - } - return this - } - /** @memo */ - testBooleanInterfaceTuple(value: [BooleanInterfaceDTS]): this { - if (this.checkPriority("testBooleanInterfaceTuple")) { - const value_casted = value as ([BooleanInterfaceDTS]) - this.peer?.testBooleanInterfaceTupleAttribute(value_casted) - return this - } - return this - } - /** @memo */ - testBooleanInterfaceArray(value: BooleanInterfaceDTS[]): this { - if (this.checkPriority("testBooleanInterfaceArray")) { - const value_casted = value as (BooleanInterfaceDTS[]) - this.peer?.testBooleanInterfaceArrayAttribute(value_casted) - return this - } - return this - } - /** @memo */ - testBooleanInterfaceArrayRef(value: Array): this { - if (this.checkPriority("testBooleanInterfaceArrayRef")) { - const value_casted = value as (Array) - this.peer?.testBooleanInterfaceArrayRefAttribute(value_casted) - return this - } - return this - } - /** @memo */ - testInterfaceMixed(v1: UnionInterfaceDTS, v2: number, v3: TupleInterfaceDTS): this { - if (this.checkPriority("testInterfaceMixed")) { - const v1_casted = v1 as (UnionInterfaceDTS) - const v2_casted = v2 as (number) - const v3_casted = v3 as (TupleInterfaceDTS) - this.peer?.testInterfaceMixedAttribute(v1_casted, v2_casted, v3_casted) - return this - } - return this - } - /** @memo */ - testClass(value: ClassDTS): this { - if (this.checkPriority("testClass")) { - const value_casted = value as (ClassDTS) - this.peer?.testClassAttribute(value_casted) - return this - } - return this - } - /** @memo */ - testClassWithConstructor(value: ClassWithConstructorDTS): this { - if (this.checkPriority("testClassWithConstructor")) { - const value_casted = value as (ClassWithConstructorDTS) - this.peer?.testClassWithConstructorAttribute(value_casted) - return this - } - return this - } - /** @memo */ - testClassWithConstructorAndFields(value: ClassWithConstructorAndFieldsDTS): this { - if (this.checkPriority("testClassWithConstructorAndFields")) { - const value_casted = value as (ClassWithConstructorAndFieldsDTS) - this.peer?.testClassWithConstructorAndFieldsAttribute(value_casted) - return this - } - return this - } - /** @memo */ - testClassWithConstructorAndMethods(value: ClassWithConstructorAndMethodsDTS): this { - if (this.checkPriority("testClassWithConstructorAndMethods")) { - const value_casted = value as (ClassWithConstructorAndMethodsDTS) - this.peer?.testClassWithConstructorAndMethodsAttribute(value_casted) - return this - } - return this - } - /** @memo */ - testClassWithConstructorAndStaticMethods(value: ClassWithConstructorAndStaticMethodsDTS): this { - if (this.checkPriority("testClassWithConstructorAndStaticMethods")) { - const value_casted = value as (ClassWithConstructorAndStaticMethodsDTS) - this.peer?.testClassWithConstructorAndStaticMethodsAttribute(value_casted) - return this - } - return this - } - /** @memo */ - testClassWithConstructorAndFieldsAndMethods(value: ClassWithConstructorAndFieldsAndMethodsDTS): this { - if (this.checkPriority("testClassWithConstructorAndFieldsAndMethods")) { - const value_casted = value as (ClassWithConstructorAndFieldsAndMethodsDTS) - this.peer?.testClassWithConstructorAndFieldsAndMethodsAttribute(value_casted) - return this - } - return this - } - /** @memo */ - testClassWithConstructorAndNonOptionalParams(value: ClassWithConstructorAndNonOptionalParamsDTS): this { - if (this.checkPriority("testClassWithConstructorAndNonOptionalParams")) { - const value_casted = value as (ClassWithConstructorAndNonOptionalParamsDTS) - this.peer?.testClassWithConstructorAndNonOptionalParamsAttribute(value_casted) - return this - } - return this - } - /** @memo */ - testClassWithConstructorAndSomeOptionalParams(value: ClassWithConstructorAndSomeOptionalParamsDTS): this { - if (this.checkPriority("testClassWithConstructorAndSomeOptionalParams")) { - const value_casted = value as (ClassWithConstructorAndSomeOptionalParamsDTS) - this.peer?.testClassWithConstructorAndSomeOptionalParamsAttribute(value_casted) - return this - } - return this - } - /** @memo */ - testClassWithConstructorAndAllOptionalParams(value: ClassWithConstructorAndAllOptionalParamsDTS): this { - if (this.checkPriority("testClassWithConstructorAndAllOptionalParams")) { - const value_casted = value as (ClassWithConstructorAndAllOptionalParamsDTS) - this.peer?.testClassWithConstructorAndAllOptionalParamsAttribute(value_casted) - return this - } - return this - } - /** @memo */ - testClassWithConstructorAndWithoutParams(value: ClassWithConstructorAndWithoutParamsDTS): this { - if (this.checkPriority("testClassWithConstructorAndWithoutParams")) { - const value_casted = value as (ClassWithConstructorAndWithoutParamsDTS) - this.peer?.testClassWithConstructorAndWithoutParamsAttribute(value_casted) - return this - } - return this - } - public applyAttributesFinish(): void { - // we calls this function outside of class, so need to make it public - super.applyAttributesFinish() - } -} diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkTestPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkTestPeer.ts deleted file mode 100644 index 02cb7766c..000000000 --- a/arkoala-arkts/arkui/src/generated/peers/ArkTestPeer.ts +++ /dev/null @@ -1,566 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! - -import { int32 } from "@koalaui/common" -import { nullptr, KPointer, KInt } from "@koalaui/interop" -import { isPixelMap, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase } from "./SerializerBase" -import { createSerializer, Serializer } from "./Serializer" -import { ArkUINodeType } from "./ArkUINodeType" -import { ComponentBase } from "../ComponentBase" -import { NativeModule } from "#components" -import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { TestAttribute, EnumDTS, BooleanInterfaceDTS, NumberInterfaceDTS, StringInterfaceDTS, UnionInterfaceDTS, UnionOptionalInterfaceDTS, TupleInterfaceDTS, OptionInterfaceDTS, ArrayRefNumberInterfaceDTS, ClassDTS, ClassWithConstructorDTS, ClassWithConstructorAndFieldsDTS, TestInterface } from "./../ArkTestInterfaces" -import { ClassWithConstructorAndMethodsDTS } from "./../ArkClassWithConstructorAndMethodsDTSMaterialized" -import { ClassWithConstructorAndStaticMethodsDTS } from "./../ArkClassWithConstructorAndStaticMethodsDTSMaterialized" -import { ClassWithConstructorAndFieldsAndMethodsDTS } from "./../ArkClassWithConstructorAndFieldsAndMethodsDTSMaterialized" -import { ClassWithConstructorAndNonOptionalParamsDTS } from "./../ArkClassWithConstructorAndNonOptionalParamsDTSMaterialized" -import { ClassWithConstructorAndSomeOptionalParamsDTS } from "./../ArkClassWithConstructorAndSomeOptionalParamsDTSMaterialized" -import { ClassWithConstructorAndAllOptionalParamsDTS } from "./../ArkClassWithConstructorAndAllOptionalParamsDTSMaterialized" -import { ClassWithConstructorAndWithoutParamsDTS } from "./../ArkClassWithConstructorAndWithoutParamsDTSMaterialized" -import { GestureName, GestureComponent } from "./../shared/generated-utils" -import { TypeChecker } from "#components" -import { registerCallback } from "./SerializerBase" -import { wrapCallback } from "@koalaui/interop" -import { DotIndicator } from "./../ArkDotIndicatorBuilder" -import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" -import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" -export class ArkTestPeer extends ArkCommonMethodPeer { - protected constructor(nodeType: ArkUINodeType, flags: int32 = 0, name: string = "") { - super(nodeType, flags, name); - } - public static create(nodeType: ArkUINodeType, component?: ComponentBase, flags: int32 = 0): ArkTestPeer { - const _peer = new ArkTestPeer(nodeType, flags, "Test") - component?.setPeer(_peer) - return _peer - } - setTestOptionsAttribute(): void { - NativeModule._TestInterface_setTestOptions(this.peer.ptr); - } - testBooleanAttribute(value: boolean): void { - NativeModule._TestAttribute_testBoolean(this.peer.ptr, value ? 1 : 0); - } - testNumberAttribute(value: number): void { - NativeModule._TestAttribute_testNumber(this.peer.ptr, value); - } - testStringAttribute(value: string): void { - NativeModule._TestAttribute_testString(this.peer.ptr, value); - } - testEnumAttribute(value: EnumDTS): void { - NativeModule._TestAttribute_testEnum(this.peer.ptr, (value.value as int32)); - } - testFunctionAttribute(value: ((a: number) => boolean)): void { - NativeModule._TestAttribute_testFunction(this.peer.ptr, registerCallback(value)); - } - testBasicMixAttribute(v1: number, v2: string, v3: number): void { - NativeModule._TestAttribute_testBasicMix(this.peer.ptr, v1, v2, v3); - } - testBooleanUndefinedAttribute(value: boolean | undefined): void { - const thisSerializer = SerializerBase.hold(createSerializer) - let value_type = RuntimeType.UNDEFINED - value_type = runtimeType(value) - if (((RuntimeType.BOOLEAN == value_type))) { - thisSerializer.writeInt8(0 as int32) - const value_0 = value as boolean - thisSerializer.writeBoolean(value_0) - } - else if (((RuntimeType.UNDEFINED == value_type))) { - thisSerializer.writeInt8(1 as int32) - } - NativeModule._TestAttribute_testBooleanUndefined(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); - thisSerializer.release(); - } - testNumberUndefinedAttribute(value: number | undefined): void { - const thisSerializer = SerializerBase.hold(createSerializer) - let value_type = RuntimeType.UNDEFINED - value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { - thisSerializer.writeInt8(0 as int32) - const value_0 = value as number - thisSerializer.writeNumber(value_0) - } - else if (((RuntimeType.UNDEFINED == value_type))) { - thisSerializer.writeInt8(1 as int32) - } - NativeModule._TestAttribute_testNumberUndefined(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); - thisSerializer.release(); - } - testStringUndefinedAttribute(value: string | undefined): void { - const thisSerializer = SerializerBase.hold(createSerializer) - let value_type = RuntimeType.UNDEFINED - value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { - thisSerializer.writeInt8(0 as int32) - const value_0 = value as string - thisSerializer.writeString(value_0) - } - else if (((RuntimeType.UNDEFINED == value_type))) { - thisSerializer.writeInt8(1 as int32) - } - NativeModule._TestAttribute_testStringUndefined(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); - thisSerializer.release(); - } - testEnumUndefinedAttribute(value: EnumDTS | undefined): void { - const thisSerializer = SerializerBase.hold(createSerializer) - let value_type = RuntimeType.UNDEFINED - value_type = runtimeType(value) - if (((value instanceof EnumDTS))) { - thisSerializer.writeInt8(0 as int32) - const value_0 = value as EnumDTS - thisSerializer.writeInt32((value_0.value as int32)) - } - else if (((RuntimeType.UNDEFINED == value_type))) { - thisSerializer.writeInt8(1 as int32) - } - NativeModule._TestAttribute_testEnumUndefined(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); - thisSerializer.release(); - } - testFunctionUndefinedAttribute(value: ((a: number) => boolean | undefined)): void { - NativeModule._TestAttribute_testFunctionUndefined(this.peer.ptr, registerCallback(value)); - } - testUnionNumberEnumAttribute(val: number | EnumDTS): void { - const thisSerializer = SerializerBase.hold(createSerializer) - let val_type = RuntimeType.UNDEFINED - val_type = runtimeType(val) - if (((RuntimeType.NUMBER == val_type))) { - thisSerializer.writeInt8(0 as int32) - const val_0 = val as number - thisSerializer.writeNumber(val_0) - } - else if (((val instanceof EnumDTS))) { - thisSerializer.writeInt8(1 as int32) - const val_1 = val as EnumDTS - thisSerializer.writeInt32((val_1.value as int32)) - } - NativeModule._TestAttribute_testUnionNumberEnum(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); - thisSerializer.release(); - } - testUnionBooleanStringAttribute(val: boolean | string): void { - const thisSerializer = SerializerBase.hold(createSerializer) - let val_type = RuntimeType.UNDEFINED - val_type = runtimeType(val) - if (((RuntimeType.BOOLEAN == val_type))) { - thisSerializer.writeInt8(0 as int32) - const val_0 = val as boolean - thisSerializer.writeBoolean(val_0) - } - else if (((RuntimeType.STRING == val_type))) { - thisSerializer.writeInt8(1 as int32) - const val_1 = val as string - thisSerializer.writeString(val_1) - } - NativeModule._TestAttribute_testUnionBooleanString(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); - thisSerializer.release(); - } - testUnionStringNumberAttribute(val: string | number): void { - const thisSerializer = SerializerBase.hold(createSerializer) - let val_type = RuntimeType.UNDEFINED - val_type = runtimeType(val) - if (((RuntimeType.STRING == val_type))) { - thisSerializer.writeInt8(0 as int32) - const val_0 = val as string - thisSerializer.writeString(val_0) - } - else if (((RuntimeType.NUMBER == val_type))) { - thisSerializer.writeInt8(1 as int32) - const val_1 = val as number - thisSerializer.writeNumber(val_1) - } - NativeModule._TestAttribute_testUnionStringNumber(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); - thisSerializer.release(); - } - testUnionBooleanStringNumberUndefinedAttribute(val: boolean | string | number | undefined): void { - const thisSerializer = SerializerBase.hold(createSerializer) - let val_type = RuntimeType.UNDEFINED - val_type = runtimeType(val) - if (((RuntimeType.BOOLEAN == val_type))) { - thisSerializer.writeInt8(0 as int32) - const val_0 = val as boolean - thisSerializer.writeBoolean(val_0) - } - else if (((RuntimeType.STRING == val_type))) { - thisSerializer.writeInt8(1 as int32) - const val_1 = val as string - thisSerializer.writeString(val_1) - } - else if (((RuntimeType.NUMBER == val_type))) { - thisSerializer.writeInt8(2 as int32) - const val_2 = val as number - thisSerializer.writeNumber(val_2) - } - else if (((RuntimeType.UNDEFINED == val_type))) { - thisSerializer.writeInt8(3 as int32) - } - NativeModule._TestAttribute_testUnionBooleanStringNumberUndefined(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); - thisSerializer.release(); - } - testUnionWithGenericArrayAttribute(value: number | Array): void { - const thisSerializer = SerializerBase.hold(createSerializer) - let value_type = RuntimeType.UNDEFINED - value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { - thisSerializer.writeInt8(0 as int32) - const value_0 = value as number - thisSerializer.writeNumber(value_0) - } - else if (((RuntimeType.OBJECT == value_type))) { - thisSerializer.writeInt8(1 as int32) - const value_1 = value as Array - thisSerializer.writeInt8(runtimeType(value_1) as int32) - thisSerializer.writeInt32(value_1.length as int32) - for (let i = 0; i < value_1.length; i++) { - const value_1_element = value_1[i] - thisSerializer.writeString(value_1_element) - } - } - NativeModule._TestAttribute_testUnionWithGenericArray(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); - thisSerializer.release(); - } - testUnionWithArrayTypeAttribute(value: number | string[]): void { - const thisSerializer = SerializerBase.hold(createSerializer) - let value_type = RuntimeType.UNDEFINED - value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { - thisSerializer.writeInt8(0 as int32) - const value_0 = value as number - thisSerializer.writeNumber(value_0) - } - else if (((RuntimeType.OBJECT == value_type))) { - thisSerializer.writeInt8(1 as int32) - const value_1 = value as string[] - thisSerializer.writeInt8(runtimeType(value_1) as int32) - thisSerializer.writeInt32(value_1.length as int32) - for (let i = 0; i < value_1.length; i++) { - const value_1_element = value_1[i] - thisSerializer.writeString(value_1_element) - } - } - NativeModule._TestAttribute_testUnionWithArrayType(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); - thisSerializer.release(); - } - testBooleanArrayAttribute(value: boolean[]): void { - const thisSerializer = SerializerBase.hold(createSerializer) - thisSerializer.writeInt8(runtimeType(value) as int32) - thisSerializer.writeInt32(value.length as int32) - for (let i = 0; i < value.length; i++) { - const value_element = value[i] - thisSerializer.writeBoolean(value_element) - } - NativeModule._TestAttribute_testBooleanArray(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); - thisSerializer.release(); - } - testNumberArrayAttribute(value: number[]): void { - const thisSerializer = SerializerBase.hold(createSerializer) - thisSerializer.writeInt8(runtimeType(value) as int32) - thisSerializer.writeInt32(value.length as int32) - for (let i = 0; i < value.length; i++) { - const value_element = value[i] - thisSerializer.writeNumber(value_element) - } - NativeModule._TestAttribute_testNumberArray(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); - thisSerializer.release(); - } - testStringArrayAttribute(value: string[]): void { - const thisSerializer = SerializerBase.hold(createSerializer) - thisSerializer.writeInt8(runtimeType(value) as int32) - thisSerializer.writeInt32(value.length as int32) - for (let i = 0; i < value.length; i++) { - const value_element = value[i] - thisSerializer.writeString(value_element) - } - NativeModule._TestAttribute_testStringArray(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); - thisSerializer.release(); - } - testEnumArrayAttribute(value: EnumDTS[]): void { - const thisSerializer = SerializerBase.hold(createSerializer) - thisSerializer.writeInt8(runtimeType(value) as int32) - thisSerializer.writeInt32(value.length as int32) - for (let i = 0; i < value.length; i++) { - const value_element = value[i] - thisSerializer.writeInt32((value_element.value as int32)) - } - NativeModule._TestAttribute_testEnumArray(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); - thisSerializer.release(); - } - testArrayMixAttribute(v1: number[], v2: string[], v3: EnumDTS[]): void { - const thisSerializer = SerializerBase.hold(createSerializer) - thisSerializer.writeInt8(runtimeType(v1) as int32) - thisSerializer.writeInt32(v1.length as int32) - for (let i = 0; i < v1.length; i++) { - const v1_element = v1[i] - thisSerializer.writeNumber(v1_element) - } - thisSerializer.writeInt8(runtimeType(v2) as int32) - thisSerializer.writeInt32(v2.length as int32) - for (let i = 0; i < v2.length; i++) { - const v2_element = v2[i] - thisSerializer.writeString(v2_element) - } - thisSerializer.writeInt8(runtimeType(v3) as int32) - thisSerializer.writeInt32(v3.length as int32) - for (let i = 0; i < v3.length; i++) { - const v3_element = v3[i] - thisSerializer.writeInt32((v3_element.value as int32)) - } - NativeModule._TestAttribute_testArrayMix(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); - thisSerializer.release(); - } - testTupleBooleanNumberAttribute(value: [boolean, number]): void { - const thisSerializer = SerializerBase.hold(createSerializer) - thisSerializer.writeInt8(runtimeType(value) as int32) - const value_0 = value[0] - thisSerializer.writeBoolean(value_0) - const value_1 = value[1] - thisSerializer.writeNumber(value_1) - NativeModule._TestAttribute_testTupleBooleanNumber(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); - thisSerializer.release(); - } - testArrayRefBooleanAttribute(value: Array): void { - const thisSerializer = SerializerBase.hold(createSerializer) - thisSerializer.writeInt8(runtimeType(value) as int32) - thisSerializer.writeInt32(value.length as int32) - for (let i = 0; i < value.length; i++) { - const value_element = value[i] - thisSerializer.writeBoolean(value_element) - } - NativeModule._TestAttribute_testArrayRefBoolean(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); - thisSerializer.release(); - } - testArrayRefNumberAttribute(value: Array): void { - const thisSerializer = SerializerBase.hold(createSerializer) - thisSerializer.writeInt8(runtimeType(value) as int32) - thisSerializer.writeInt32(value.length as int32) - for (let i = 0; i < value.length; i++) { - const value_element = value[i] - thisSerializer.writeNumber(value_element) - } - NativeModule._TestAttribute_testArrayRefNumber(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); - thisSerializer.release(); - } - testBooleanInterfaceAttribute(value: BooleanInterfaceDTS): void { - const thisSerializer = SerializerBase.hold(createSerializer) - thisSerializer.writeBooleanInterfaceDTS(value) - NativeModule._TestAttribute_testBooleanInterface(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); - thisSerializer.release(); - } - testNumberInterfaceAttribute(value: NumberInterfaceDTS): void { - const thisSerializer = SerializerBase.hold(createSerializer) - thisSerializer.writeNumberInterfaceDTS(value) - NativeModule._TestAttribute_testNumberInterface(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); - thisSerializer.release(); - } - testStringInterfaceAttribute(value: StringInterfaceDTS): void { - const thisSerializer = SerializerBase.hold(createSerializer) - thisSerializer.writeStringInterfaceDTS(value) - NativeModule._TestAttribute_testStringInterface(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); - thisSerializer.release(); - } - testUnionInterfaceAttribute(value: UnionInterfaceDTS): void { - const thisSerializer = SerializerBase.hold(createSerializer) - thisSerializer.writeUnionInterfaceDTS(value) - NativeModule._TestAttribute_testUnionInterface(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); - thisSerializer.release(); - } - testUnionOptionalAttribute(value: UnionOptionalInterfaceDTS): void { - const thisSerializer = SerializerBase.hold(createSerializer) - thisSerializer.writeUnionOptionalInterfaceDTS(value) - NativeModule._TestAttribute_testUnionOptional(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); - thisSerializer.release(); - } - testTupleInterfaceAttribute(value: TupleInterfaceDTS): void { - const thisSerializer = SerializerBase.hold(createSerializer) - thisSerializer.writeTupleInterfaceDTS(value) - NativeModule._TestAttribute_testTupleInterface(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); - thisSerializer.release(); - } - testOptionInterfaceAttribute(value: OptionInterfaceDTS): void { - const thisSerializer = SerializerBase.hold(createSerializer) - thisSerializer.writeOptionInterfaceDTS(value) - NativeModule._TestAttribute_testOptionInterface(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); - thisSerializer.release(); - } - testArrayRefNumberInterfaceAttribute(value: ArrayRefNumberInterfaceDTS): void { - const thisSerializer = SerializerBase.hold(createSerializer) - thisSerializer.writeArrayRefNumberInterfaceDTS(value) - NativeModule._TestAttribute_testArrayRefNumberInterface(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); - thisSerializer.release(); - } - testBooleanInterfaceOptionAttribute(value?: BooleanInterfaceDTS): void { - const thisSerializer = SerializerBase.hold(createSerializer) - let value_type = RuntimeType.UNDEFINED - if (value != undefined) { - value_type = RuntimeType.OBJECT - } - thisSerializer.writeInt8(value_type as int32) - if ((RuntimeType.UNDEFINED) != (value_type)) { - const value_value = value! - thisSerializer.writeBooleanInterfaceDTS(value_value) - } - NativeModule._TestAttribute_testBooleanInterfaceOption(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); - thisSerializer.release(); - } - testBooleanInterfaceTupleAttribute(value: [BooleanInterfaceDTS]): void { - const thisSerializer = SerializerBase.hold(createSerializer) - thisSerializer.writeInt8(runtimeType(value) as int32) - const value_0 = value[0] - thisSerializer.writeBooleanInterfaceDTS(value_0) - NativeModule._TestAttribute_testBooleanInterfaceTuple(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); - thisSerializer.release(); - } - testBooleanInterfaceArrayAttribute(value: BooleanInterfaceDTS[]): void { - const thisSerializer = SerializerBase.hold(createSerializer) - thisSerializer.writeInt8(runtimeType(value) as int32) - thisSerializer.writeInt32(value.length as int32) - for (let i = 0; i < value.length; i++) { - const value_element = value[i] - thisSerializer.writeBooleanInterfaceDTS(value_element) - } - NativeModule._TestAttribute_testBooleanInterfaceArray(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); - thisSerializer.release(); - } - testBooleanInterfaceArrayRefAttribute(value: Array): void { - const thisSerializer = SerializerBase.hold(createSerializer) - thisSerializer.writeInt8(runtimeType(value) as int32) - thisSerializer.writeInt32(value.length as int32) - for (let i = 0; i < value.length; i++) { - const value_element = value[i] - thisSerializer.writeBooleanInterfaceDTS(value_element) - } - NativeModule._TestAttribute_testBooleanInterfaceArrayRef(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); - thisSerializer.release(); - } - testInterfaceMixedAttribute(v1: UnionInterfaceDTS, v2: number, v3: TupleInterfaceDTS): void { - const thisSerializer = SerializerBase.hold(createSerializer) - thisSerializer.writeUnionInterfaceDTS(v1) - thisSerializer.writeTupleInterfaceDTS(v3) - NativeModule._TestAttribute_testInterfaceMixed(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length(), v2); - thisSerializer.release(); - } - testClassAttribute(value: ClassDTS): void { - const thisSerializer = SerializerBase.hold(createSerializer) - thisSerializer.writeClassDTS(value) - NativeModule._TestAttribute_testClass(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); - thisSerializer.release(); - } - testClassWithConstructorAttribute(value: ClassWithConstructorDTS): void { - const thisSerializer = SerializerBase.hold(createSerializer) - thisSerializer.writeClassWithConstructorDTS(value) - NativeModule._TestAttribute_testClassWithConstructor(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); - thisSerializer.release(); - } - testClassWithConstructorAndFieldsAttribute(value: ClassWithConstructorAndFieldsDTS): void { - const thisSerializer = SerializerBase.hold(createSerializer) - thisSerializer.writeClassWithConstructorAndFieldsDTS(value) - NativeModule._TestAttribute_testClassWithConstructorAndFields(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); - thisSerializer.release(); - } - testClassWithConstructorAndMethodsAttribute(value: ClassWithConstructorAndMethodsDTS): void { - const thisSerializer = SerializerBase.hold(createSerializer) - thisSerializer.writeMaterialized(value) - NativeModule._TestAttribute_testClassWithConstructorAndMethods(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); - thisSerializer.release(); - } - testClassWithConstructorAndStaticMethodsAttribute(value: ClassWithConstructorAndStaticMethodsDTS): void { - const thisSerializer = SerializerBase.hold(createSerializer) - thisSerializer.writeMaterialized(value) - NativeModule._TestAttribute_testClassWithConstructorAndStaticMethods(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); - thisSerializer.release(); - } - testClassWithConstructorAndFieldsAndMethodsAttribute(value: ClassWithConstructorAndFieldsAndMethodsDTS): void { - const thisSerializer = SerializerBase.hold(createSerializer) - thisSerializer.writeMaterialized(value) - NativeModule._TestAttribute_testClassWithConstructorAndFieldsAndMethods(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); - thisSerializer.release(); - } - testClassWithConstructorAndNonOptionalParamsAttribute(value: ClassWithConstructorAndNonOptionalParamsDTS): void { - const thisSerializer = SerializerBase.hold(createSerializer) - thisSerializer.writeMaterialized(value) - NativeModule._TestAttribute_testClassWithConstructorAndNonOptionalParams(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); - thisSerializer.release(); - } - testClassWithConstructorAndSomeOptionalParamsAttribute(value: ClassWithConstructorAndSomeOptionalParamsDTS): void { - const thisSerializer = SerializerBase.hold(createSerializer) - thisSerializer.writeMaterialized(value) - NativeModule._TestAttribute_testClassWithConstructorAndSomeOptionalParams(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); - thisSerializer.release(); - } - testClassWithConstructorAndAllOptionalParamsAttribute(value: ClassWithConstructorAndAllOptionalParamsDTS): void { - const thisSerializer = SerializerBase.hold(createSerializer) - thisSerializer.writeMaterialized(value) - NativeModule._TestAttribute_testClassWithConstructorAndAllOptionalParams(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); - thisSerializer.release(); - } - testClassWithConstructorAndWithoutParamsAttribute(value: ClassWithConstructorAndWithoutParamsDTS): void { - const thisSerializer = SerializerBase.hold(createSerializer) - thisSerializer.writeMaterialized(value) - NativeModule._TestAttribute_testClassWithConstructorAndWithoutParams(this.peer.ptr, thisSerializer.asArray(), thisSerializer.length()); - thisSerializer.release(); - } - applyAttributes(attributes: T): void { - super.applyAttributes(attributes) - } -} -export interface ArkTestAttributes extends ArkCommonMethodAttributes { - testBoolean?: boolean - testNumber?: number - testString?: string - testEnum?: EnumDTS - testFunction?: ((a: number) => boolean) - testBooleanUndefined?: boolean | undefined - testNumberUndefined?: number | undefined - testStringUndefined?: string | undefined - testEnumUndefined?: EnumDTS | undefined - testFunctionUndefined?: ((a: number) => boolean | undefined) - testUnionNumberEnum?: number | EnumDTS - testUnionBooleanString?: boolean | string - testUnionStringNumber?: string | number - testUnionBooleanStringNumberUndefined?: boolean | string | number | undefined - testUnionWithGenericArray?: number | Array - testUnionWithArrayType?: number | string[] - testBooleanArray?: boolean[] - testNumberArray?: number[] - testStringArray?: string[] - testEnumArray?: EnumDTS[] - testTupleBooleanNumber?: [boolean, number] - testTupleNumberStringEnum?: [number, string, EnumDTS] - testTupleOptional?: [number, string, boolean, EnumDTS] - testTupleUnion?: [(number | string), (boolean | EnumDTS), (string | EnumDTS | boolean)] - testArrayRefBoolean?: Array - testArrayRefNumber?: Array - testBooleanInterface?: BooleanInterfaceDTS - testNumberInterface?: NumberInterfaceDTS - testStringInterface?: StringInterfaceDTS - testUnionInterface?: UnionInterfaceDTS - testUnionOptional?: UnionOptionalInterfaceDTS - testTupleInterface?: TupleInterfaceDTS - testOptionInterface?: OptionInterfaceDTS - testArrayRefNumberInterface?: ArrayRefNumberInterfaceDTS - testBooleanInterfaceOption?: BooleanInterfaceDTS - testBooleanInterfaceTuple?: [BooleanInterfaceDTS] - testBooleanInterfaceArray?: BooleanInterfaceDTS[] - testBooleanInterfaceArrayRef?: Array - testClass?: ClassDTS - testClassWithConstructor?: ClassWithConstructorDTS - testClassWithConstructorAndFields?: ClassWithConstructorAndFieldsDTS - testClassWithConstructorAndMethods?: ClassWithConstructorAndMethodsDTS - testClassWithConstructorAndStaticMethods?: ClassWithConstructorAndStaticMethodsDTS - testClassWithConstructorAndFieldsAndMethods?: ClassWithConstructorAndFieldsAndMethodsDTS - testClassWithConstructorAndNonOptionalParams?: ClassWithConstructorAndNonOptionalParamsDTS - testClassWithConstructorAndSomeOptionalParams?: ClassWithConstructorAndSomeOptionalParamsDTS - testClassWithConstructorAndAllOptionalParams?: ClassWithConstructorAndAllOptionalParamsDTS - testClassWithConstructorAndWithoutParams?: ClassWithConstructorAndWithoutParamsDTS -} -- Gitee From 280faec8202b4b011f656cb2ed99f1c55ae41cbc Mon Sep 17 00:00:00 2001 From: naumovdmitrii Date: Tue, 22 Oct 2024 19:09:35 +0300 Subject: [PATCH 10/14] ArkVector Signed-off-by: naumovdmitrii --- arkoala-arkts/arkui/src/generated/ArkVector.ts | 1 - arkoala-arkts/arkui/src/generated/ArkVectorInterfaces.ts | 1 - arkoala-arkts/arkui/src/generated/peers/ArkVectorPeer.ts | 1 - 3 files changed, 3 deletions(-) diff --git a/arkoala-arkts/arkui/src/generated/ArkVector.ts b/arkoala-arkts/arkui/src/generated/ArkVector.ts index f9079473e..c3f0f0b8e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkVector.ts +++ b/arkoala-arkts/arkui/src/generated/ArkVector.ts @@ -24,7 +24,6 @@ import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkVectorPeer } from "./peers/ArkVectorPeer" import { Vector1, VectorAttribute, Vector2, VectorInterface } from "./ArkVectorInterfaces" -import { LITERAL_X0NumberX1NumberX2NumberX3Number, LITERAL_TNumberXNumberYNumberZNumber } from "./SyntheticDeclarations" /** @memo:stable */ export class ArkVectorComponent extends ArkCommonMethodComponent { protected peer?: ArkVectorPeer diff --git a/arkoala-arkts/arkui/src/generated/ArkVectorInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkVectorInterfaces.ts index 10700f1ff..5b4f46e13 100644 --- a/arkoala-arkts/arkui/src/generated/ArkVectorInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkVectorInterfaces.ts @@ -1,4 +1,3 @@ -import { LITERAL_X0NumberX1NumberX2NumberX3Number, LITERAL_TNumberXNumberYNumberZNumber } from "./SyntheticDeclarations" import { KInt } from "@koalaui/interop" export interface VectorAttribute { testVector1(value: Vector1): VectorAttribute; diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkVectorPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkVectorPeer.ts index 5354ccffa..388d7f619 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkVectorPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkVectorPeer.ts @@ -25,7 +25,6 @@ import { ComponentBase } from "../ComponentBase" import { NativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { Vector1, VectorAttribute, Vector2, VectorInterface } from "./../ArkVectorInterfaces" -import { LITERAL_X0NumberX1NumberX2NumberX3Number, LITERAL_TNumberXNumberYNumberZNumber } from "./../SyntheticDeclarations" import { GestureName, GestureComponent } from "./../shared/generated-utils" import { TypeChecker } from "#components" import { registerCallback } from "./SerializerBase" -- Gitee From 44f3932a3fac8fd00fa8a1a3d2dc2f9298400f24 Mon Sep 17 00:00:00 2001 From: naumovdmitrii Date: Tue, 22 Oct 2024 19:10:08 +0300 Subject: [PATCH 11/14] ArkUINodeType Vector Signed-off-by: naumovdmitrii --- arkoala-arkts/arkui/src/generated/ArkVector.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arkoala-arkts/arkui/src/generated/ArkVector.ts b/arkoala-arkts/arkui/src/generated/ArkVector.ts index c3f0f0b8e..68abd68a4 100644 --- a/arkoala-arkts/arkui/src/generated/ArkVector.ts +++ b/arkoala-arkts/arkui/src/generated/ArkVector.ts @@ -88,7 +88,7 @@ export function ArkVector( const receiver = remember(() => { return new ArkVectorComponent() }) - NodeAttach((): ArkVectorPeer => ArkVectorPeer.create(ArkUINodeType.Vector, receiver), (_: ArkVectorPeer) => { + NodeAttach((): ArkVectorPeer => ArkVectorPeer.create(ArkUINodeType.Blank, receiver), (_: ArkVectorPeer) => { receiver.setVectorOptions() style?.(receiver) content_?.() -- Gitee From 429cfc7128bc96591a96e94864bd68f10872c4e8 Mon Sep 17 00:00:00 2001 From: naumovdmitrii Date: Wed, 23 Oct 2024 12:17:43 +0300 Subject: [PATCH 12/14] fix scripts --- arkoala-arkts/loader/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arkoala-arkts/loader/package.json b/arkoala-arkts/loader/package.json index 3b7f99b2e..8aa315049 100644 --- a/arkoala-arkts/loader/package.json +++ b/arkoala-arkts/loader/package.json @@ -12,11 +12,11 @@ "compile:ets": "npm run compile:plugin && cd src/ets && ets-tsc -p ./tsconfig.ets.json", "unmemoize": "npm run compile:ets && memo-tsc -b tsconfig-unmemoize.json", - "compile:arkts": "npm run unmemoize && npm run unmemoize --prefix ../arkui && npm run compile:unmemoize --prefix ../../incremental/runtime && bash -x ../../incremental/tools/panda/arkts/arktsc --arktsconfig ./arktsconfig-run-unmemoized.json --ets-module", + "compile:arkts": "npm run unmemoize && bash -x ../../incremental/tools/panda/arkts/arktsc --arktsconfig ./arktsconfig-run-unmemoized.json --ets-module", "compile:runner:arkts": "bash -x ../../incremental/tools/panda/arkts/arktsc --arktsconfig ./arktsconfig-run-unmemoized-runner.json", "execute:panda": "LD_LIBRARY_PATH=. bash -x ../../incremental/tools/panda/arkts/ark build/abc/unmemoized/src/runner.abc --ark-boot-files build/abc/unmemoized/generated/hello.abc:../arkui/build/arkoala.abc --ark-entry-point ETSGLOBAL::main", - "run": "npm run compile:arkts && npm run link:arkoala && npm run execute:panda" + "run": "npm run link:arkoala && npm run compile:arkts && npm run execute:panda" }, "keywords": [], "dependencies": {}, -- Gitee From 46f0eea517ead2faf8262a2939676812e23effa8 Mon Sep 17 00:00:00 2001 From: naumovdmitrii Date: Wed, 23 Oct 2024 12:39:26 +0300 Subject: [PATCH 13/14] link incremental before arkoala compilation --- arkoala-arkts/arkui/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arkoala-arkts/arkui/package.json b/arkoala-arkts/arkui/package.json index bfe0cf2b1..4caf50b07 100644 --- a/arkoala-arkts/arkui/package.json +++ b/arkoala-arkts/arkui/package.json @@ -8,7 +8,7 @@ "compile:arkts:unmemoized": "npm run unmemoize && bash ../../incremental/tools/panda/arkts/arktsc --arktsconfig arktsconfig-unmemoized.json --ets-module", "compile:ts": "memo-tsc -b ./tsconfig.json", "link:incremental": "cd ../../incremental/runtime && npm run link:incremental", - "link:arkoala": "npm run compile:arkts:unmemoized; npm run link:incremental && bash ../../incremental/tools/panda/arkts/arklink --output build/arkoala.abc -- ../../incremental/runtime/build/incremental.abc $(find build/abc -name '*.abc' ! -name 'index.abc') $(find ../../arkoala/arkui-common/build/abc -name '*.abc' ! -name 'index.abc')", + "link:arkoala": "npm run link:incremental && npm run compile:arkts:unmemoized; bash ../../incremental/tools/panda/arkts/arklink --output build/arkoala.abc -- ../../incremental/runtime/build/incremental.abc $(find build/abc -name '*.abc' ! -name 'index.abc') $(find ../../arkoala/arkui-common/build/abc -name '*.abc' ! -name 'index.abc')", "unmemoize": "memo-tsc -b ./tsconfig-unmemoize.json && cp -r ./src/generated/arkts ./unmemoized/src/generated" } } -- Gitee From 6137a45c703be5d9b6063cbdbf7f90dea946b1f2 Mon Sep 17 00:00:00 2001 From: naumovdmitrii Date: Wed, 23 Oct 2024 15:40:02 +0300 Subject: [PATCH 14/14] arkui-common --- arkoala-arkts/arkui/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arkoala-arkts/arkui/package.json b/arkoala-arkts/arkui/package.json index 4caf50b07..56830114f 100644 --- a/arkoala-arkts/arkui/package.json +++ b/arkoala-arkts/arkui/package.json @@ -8,7 +8,8 @@ "compile:arkts:unmemoized": "npm run unmemoize && bash ../../incremental/tools/panda/arkts/arktsc --arktsconfig arktsconfig-unmemoized.json --ets-module", "compile:ts": "memo-tsc -b ./tsconfig.json", "link:incremental": "cd ../../incremental/runtime && npm run link:incremental", - "link:arkoala": "npm run link:incremental && npm run compile:arkts:unmemoized; bash ../../incremental/tools/panda/arkts/arklink --output build/arkoala.abc -- ../../incremental/runtime/build/incremental.abc $(find build/abc -name '*.abc' ! -name 'index.abc') $(find ../../arkoala/arkui-common/build/abc -name '*.abc' ! -name 'index.abc')", + "compile:arkui:common": "cd ../../arkoala/arkui-common && npm run compile:arkts", + "link:arkoala": "npm run link:incremental && npm run compile:arkui:common && npm run compile:arkts:unmemoized; bash ../../incremental/tools/panda/arkts/arklink --output build/arkoala.abc -- ../../incremental/runtime/build/incremental.abc $(find build/abc -name '*.abc' ! -name 'index.abc') $(find ../../arkoala/arkui-common/build/abc -name '*.abc' ! -name 'index.abc')", "unmemoize": "memo-tsc -b ./tsconfig-unmemoize.json && cp -r ./src/generated/arkts ./unmemoized/src/generated" } } -- Gitee