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 an interface for drawing rectangles. 18 * 19 * @interface RectInterface 20 * @syscap SystemCapability.ArkUI.ArkUI.Full 21 * @since 7 22 */ 23/** 24 * Provides an interface for drawing rectangles. 25 * 26 * @interface RectInterface 27 * @syscap SystemCapability.ArkUI.ArkUI.Full 28 * @since 9 29 * @form 30 */ 31/** 32 * Provides an interface for drawing rectangles. 33 * 34 * @interface RectInterface 35 * @syscap SystemCapability.ArkUI.ArkUI.Full 36 * @crossplatform 37 * @since 10 38 * @form 39 */ 40/** 41 * Provides an interface for drawing rectangles. 42 * 43 * @interface RectInterface 44 * @syscap SystemCapability.ArkUI.ArkUI.Full 45 * @crossplatform 46 * @atomicservice 47 * @since 11 48 * @form 49 */ 50interface RectInterface { 51 /** 52 * Use new function to create Rect. 53 * 54 * @param { object } value 55 * @returns { RectAttribute } 56 * @syscap SystemCapability.ArkUI.ArkUI.Full 57 * @since 7 58 */ 59 /** 60 * Use new function to create Rect. 61 * 62 * @param { object } value 63 * @returns { RectAttribute } 64 * @syscap SystemCapability.ArkUI.ArkUI.Full 65 * @since 9 66 * @form 67 */ 68 /** 69 * Use new function to create Rect. 70 * 71 * @param { object } value 72 * @returns { RectAttribute } 73 * @syscap SystemCapability.ArkUI.ArkUI.Full 74 * @crossplatform 75 * @since 10 76 * @form 77 */ 78 /** 79 * Use new function to create Rect. 80 * 81 * @param { object } value 82 * @returns { RectAttribute } 83 * @syscap SystemCapability.ArkUI.ArkUI.Full 84 * @crossplatform 85 * @atomicservice 86 * @since 11 87 * @form 88 */ 89 new ( 90 value?: 91 { 92 width?: number | string; 93 height?: number | string; 94 radius?: number | string | Array<any>; 95 } 96 | { 97 width?: number | string; 98 height?: number | string; 99 radiusWidth?: number | string; 100 radiusHeight?: number | string; 101 }, 102 ): RectAttribute; 103 104 /** 105 * Called when a rectangle is created. 106 * 107 * @param { {width?: number | string;height?: number | string;radius?: number | string | Array<any>;} | 108 * {width?: number | string;height?: number | string;radiusWidth?: number | string;radiusHeight?: number | string;} } value 109 * @returns { RectAttribute } 110 * @syscap SystemCapability.ArkUI.ArkUI.Full 111 * @since 7 112 */ 113 /** 114 * Called when a rectangle is created. 115 * 116 * @param { {width?: number | string;height?: number | string;radius?: number | string | Array<any>;} | 117 * {width?: number | string;height?: number | string;radiusWidth?: number | string;radiusHeight?: number | string;} } value 118 * @returns { RectAttribute } 119 * @syscap SystemCapability.ArkUI.ArkUI.Full 120 * @since 9 121 * @form 122 */ 123 /** 124 * Called when a rectangle is created. 125 * 126 * @param { {width?: number | string;height?: number | string;radius?: number | string | Array<any>;} | 127 * {width?: number | string;height?: number | string;radiusWidth?: number | string;radiusHeight?: number | string;} } value 128 * @returns { RectAttribute } 129 * @syscap SystemCapability.ArkUI.ArkUI.Full 130 * @crossplatform 131 * @since 10 132 * @form 133 */ 134 /** 135 * Called when a rectangle is created. 136 * 137 * @param { {width?: number | string;height?: number | string;radius?: number | string | Array<any>;} | 138 * {width?: number | string;height?: number | string;radiusWidth?: number | string;radiusHeight?: number | string;} } value 139 * @returns { RectAttribute } 140 * @syscap SystemCapability.ArkUI.ArkUI.Full 141 * @crossplatform 142 * @atomicservice 143 * @since 11 144 * @form 145 */ 146 ( 147 value?: 148 { 149 width?: number | string; 150 height?: number | string; 151 radius?: number | string | Array<any>; 152 } 153 | { 154 width?: number | string; 155 height?: number | string; 156 radiusWidth?: number | string; 157 radiusHeight?: number | string; 158 }, 159 ): RectAttribute; 160} 161 162/** 163 * rect attribute declaration. 164 * 165 * @extends CommonShapeMethod<RectAttribute> 166 * @syscap SystemCapability.ArkUI.ArkUI.Full 167 * @since 7 168 */ 169/** 170 * rect attribute declaration. 171 * 172 * @extends CommonShapeMethod<RectAttribute> 173 * @syscap SystemCapability.ArkUI.ArkUI.Full 174 * @since 9 175 * @form 176 */ 177/** 178 * rect attribute declaration. 179 * 180 * @extends CommonShapeMethod<RectAttribute> 181 * @syscap SystemCapability.ArkUI.ArkUI.Full 182 * @crossplatform 183 * @since 10 184 * @form 185 */ 186/** 187 * rect attribute declaration. 188 * 189 * @extends CommonShapeMethod<RectAttribute> 190 * @syscap SystemCapability.ArkUI.ArkUI.Full 191 * @crossplatform 192 * @atomicservice 193 * @since 11 194 * @form 195 */ 196declare class RectAttribute extends CommonShapeMethod<RectAttribute> { 197 /** 198 * Called when the fillet width is set. 199 * 200 * @param { number | string } value 201 * @returns { RectAttribute } 202 * @syscap SystemCapability.ArkUI.ArkUI.Full 203 * @since 7 204 */ 205 /** 206 * Called when the fillet width is set. 207 * 208 * @param { number | string } value 209 * @returns { RectAttribute } 210 * @syscap SystemCapability.ArkUI.ArkUI.Full 211 * @since 9 212 * @form 213 */ 214 /** 215 * Called when the fillet width is set. 216 * 217 * @param { number | string } value 218 * @returns { RectAttribute } 219 * @syscap SystemCapability.ArkUI.ArkUI.Full 220 * @crossplatform 221 * @since 10 222 * @form 223 */ 224 /** 225 * Called when the fillet width is set. 226 * 227 * @param { number | string } value 228 * @returns { RectAttribute } 229 * @syscap SystemCapability.ArkUI.ArkUI.Full 230 * @crossplatform 231 * @atomicservice 232 * @since 11 233 * @form 234 */ 235 radiusWidth(value: number | string): RectAttribute; 236 237 /** 238 * Called when the fillet height is set. 239 * 240 * @param { number | string } value 241 * @returns { RectAttribute } 242 * @syscap SystemCapability.ArkUI.ArkUI.Full 243 * @since 7 244 */ 245 /** 246 * Called when the fillet height is set. 247 * 248 * @param { number | string } value 249 * @returns { RectAttribute } 250 * @syscap SystemCapability.ArkUI.ArkUI.Full 251 * @since 9 252 * @form 253 */ 254 /** 255 * Called when the fillet height is set. 256 * 257 * @param { number | string } value 258 * @returns { RectAttribute } 259 * @syscap SystemCapability.ArkUI.ArkUI.Full 260 * @crossplatform 261 * @since 10 262 * @form 263 */ 264 /** 265 * Called when the fillet height is set. 266 * 267 * @param { number | string } value 268 * @returns { RectAttribute } 269 * @syscap SystemCapability.ArkUI.ArkUI.Full 270 * @crossplatform 271 * @atomicservice 272 * @since 11 273 * @form 274 */ 275 radiusHeight(value: number | string): RectAttribute; 276 277 /** 278 * Called when the fillet size is set. 279 * 280 * @param { number | string | Array<any> } value 281 * @returns { RectAttribute } 282 * @syscap SystemCapability.ArkUI.ArkUI.Full 283 * @since 7 284 */ 285 /** 286 * Called when the fillet size is set. 287 * 288 * @param { number | string | Array<any> } value 289 * @returns { RectAttribute } 290 * @syscap SystemCapability.ArkUI.ArkUI.Full 291 * @since 9 292 * @form 293 */ 294 /** 295 * Called when the fillet size is set. 296 * 297 * @param { number | string | Array<any> } value 298 * @returns { RectAttribute } 299 * @syscap SystemCapability.ArkUI.ArkUI.Full 300 * @crossplatform 301 * @since 10 302 * @form 303 */ 304 /** 305 * Called when the fillet size is set. 306 * 307 * @param { number | string | Array<any> } value 308 * @returns { RectAttribute } 309 * @syscap SystemCapability.ArkUI.ArkUI.Full 310 * @crossplatform 311 * @atomicservice 312 * @since 11 313 * @form 314 */ 315 radius(value: number | string | Array<any>): RectAttribute; 316} 317 318/** 319 * Defines Rect Component. 320 * 321 * @syscap SystemCapability.ArkUI.ArkUI.Full 322 * @since 9 323 * @form 324 */ 325/** 326 * Defines Rect Component. 327 * 328 * @syscap SystemCapability.ArkUI.ArkUI.Full 329 * @crossplatform 330 * @since 10 331 * @form 332 */ 333/** 334 * Defines Rect Component. 335 * 336 * @syscap SystemCapability.ArkUI.ArkUI.Full 337 * @crossplatform 338 * @atomicservice 339 * @since 11 340 * @form 341 */ 342declare const Rect: RectInterface; 343 344/** 345 * Rect attribute. 346 * 347 * @syscap SystemCapability.ArkUI.ArkUI.Full 348 * @since 7 349 * @deprecated since 9 350 */ 351declare const RectInStance: RectAttribute; 352 353/** 354 * Rect attribute. 355 * 356 * @syscap SystemCapability.ArkUI.ArkUI.Full 357 * @since 9 358 * @form 359 */ 360/** 361 * @syscap SystemCapability.ArkUI.ArkUI.Full 362 * @crossplatform 363 * @since 10 364 * @form 365 */ 366/** 367 * @syscap SystemCapability.ArkUI.ArkUI.Full 368 * @crossplatform 369 * @atomicservice 370 * @since 11 371 * @form 372 */ 373declare const RectInstance: RectAttribute; 374