1/* 2 * Copyright (c) 2021-2023 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16/** 17 * Provides ports for stacking containers. 18 * 19 * @interface StackInterface 20 * @syscap SystemCapability.ArkUI.ArkUI.Full 21 * @since 7 22 */ 23/** 24 * Provides ports for stacking containers. 25 * 26 * @interface StackInterface 27 * @syscap SystemCapability.ArkUI.ArkUI.Full 28 * @since 9 29 * @form 30 */ 31/** 32 * Provides ports for stacking containers. 33 * 34 * @interface StackInterface 35 * @syscap SystemCapability.ArkUI.ArkUI.Full 36 * @crossplatform 37 * @since 10 38 * @form 39 */ 40interface StackInterface { 41 /** 42 * Set the value. 43 * 44 * @param { object } value 45 * @returns { StackAttribute } 46 * @syscap SystemCapability.ArkUI.ArkUI.Full 47 * @since 7 48 */ 49 /** 50 * Set the value. 51 * 52 * @param { object } value 53 * @returns { StackAttribute } 54 * @syscap SystemCapability.ArkUI.ArkUI.Full 55 * @since 9 56 * @form 57 */ 58 /** 59 * Set the value. 60 * 61 * @param { object } value 62 * @returns { StackAttribute } 63 * @syscap SystemCapability.ArkUI.ArkUI.Full 64 * @crossplatform 65 * @since 10 66 * @form 67 */ 68 (value?: { alignContent?: Alignment }): StackAttribute; 69} 70 71/** 72 * @extends CommonMethod 73 * @syscap SystemCapability.ArkUI.ArkUI.Full 74 * @since 7 75 */ 76/** 77 * @extends CommonMethod 78 * @syscap SystemCapability.ArkUI.ArkUI.Full 79 * @since 9 80 * @form 81 */ 82/** 83 * @extends CommonMethod 84 * @syscap SystemCapability.ArkUI.ArkUI.Full 85 * @crossplatform 86 * @since 10 87 * @form 88 */ 89declare class StackAttribute extends CommonMethod<StackAttribute> { 90 /** 91 * Called when the occupancy of items in the container is set. 92 * 93 * @param { Alignment } value 94 * @returns { StackAttribute } 95 * @syscap SystemCapability.ArkUI.ArkUI.Full 96 * @since 7 97 */ 98 /** 99 * Called when the occupancy of items in the container is set. 100 * 101 * @param { Alignment } value 102 * @returns { StackAttribute } 103 * @syscap SystemCapability.ArkUI.ArkUI.Full 104 * @since 9 105 * @form 106 */ 107 /** 108 * Called when the occupancy of items in the container is set. 109 * 110 * @param { Alignment } value 111 * @returns { StackAttribute } 112 * @syscap SystemCapability.ArkUI.ArkUI.Full 113 * @crossplatform 114 * @since 10 115 * @form 116 */ 117 alignContent(value: Alignment): StackAttribute; 118} 119 120/** 121 * Defines Stack Component. 122 * 123 * @syscap SystemCapability.ArkUI.ArkUI.Full 124 * @since 7 125 */ 126/** 127 * Defines Stack Component. 128 * 129 * @syscap SystemCapability.ArkUI.ArkUI.Full 130 * @since 9 131 * @form 132 */ 133/** 134 * Defines Stack Component. 135 * 136 * @syscap SystemCapability.ArkUI.ArkUI.Full 137 * @crossplatform 138 * @since 10 139 * @form 140 */ 141declare const Stack: StackInterface; 142 143/** 144 * Defines Stack Component instance. 145 * 146 * @syscap SystemCapability.ArkUI.ArkUI.Full 147 * @since 7 148 */ 149/** 150 * Defines Stack Component instance. 151 * 152 * @syscap SystemCapability.ArkUI.ArkUI.Full 153 * @since 9 154 * @form 155 */ 156/** 157 * Defines Stack Component instance. 158 * 159 * @syscap SystemCapability.ArkUI.ArkUI.Full 160 * @crossplatform 161 * @since 10 162 * @form 163 */ 164declare const StackInstance: StackAttribute; 165