• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2022 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  * Round rect.
18  *
19  * @systemapi
20  * @since 9
21  */
22interface RRect {
23  left: number;
24
25  top: number;
26
27  width: number;
28
29  height: number;
30
31  radius: number;
32}
33
34/**
35 * Window animation target.
36 *
37 * @systemapi
38 * @since 9
39 */
40interface WindowAnimationTarget {
41  readonly bundleName: string;
42
43  readonly abilityName: string;
44
45  readonly windowBounds: RRect;
46
47  readonly missionId: number;
48}
49
50/**
51 * Provides an interface for controlling the remote window.
52 *
53 * @systemapi
54 * @since 9
55 */
56interface RemoteWindowInterface {
57  /**
58   * Called when the remote window interface is used.
59   *
60   * @systemapi
61   * @since 9
62   */
63  (target: WindowAnimationTarget): RemoteWindowAttribute;
64}
65
66/**
67 * Inheritance CommonMethod Set Styles
68 *
69 * @systemapi
70 * @since 9
71 */
72declare class RemoteWindowAttribute extends CommonMethod<RemoteWindowAttribute> {}
73
74/**
75 * Defines RemoteWindow Component.
76 * @since 9
77 * @systemapi
78 */
79declare const RemoteWindow: RemoteWindowInterface;
80
81/**
82 * Defines RemoteWindow Component instance.
83 * @since 9
84 * @systemapi
85 */
86declare const RemoteWindowInstance: RemoteWindowAttribute;
87