• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright 2020, The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *     http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17export interface Rectangle {
18  topLeft: Point;
19  bottomRight: Point;
20  label: string;
21  transform: RectTransform | null;
22  isVisible: boolean;
23  isDisplay: boolean;
24  ref: any;
25  id: string;
26  displayId: number;
27  isVirtual: boolean;
28  isClickable: boolean;
29  cornerRadius: number;
30  depth?: number;
31}
32
33export interface Point {
34  x: number;
35  y: number;
36}
37
38export interface Size {
39  width: number;
40  height: number;
41}
42
43export interface RectTransform {
44  matrix?: RectMatrix;
45  dsdx?: number;
46  dsdy?: number;
47  dtdx?: number;
48  dtdy?: number;
49  tx?: number;
50  ty?: number;
51}
52
53export interface RectMatrix {
54  dsdx: number;
55  dsdy: number;
56  dtdx: number;
57  dtdy: number;
58  tx: number;
59  ty: number;
60}
61