-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGUI.js
48 lines (48 loc) · 1.1 KB
/
GUI.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//This put unreal android controls.
if (typeof Gravity == "undefined") {
var Gravity = { }
Gravity.LEFT = 1,
Gravity.BOTTOM = 2,
Gravity.CENTER = 3,
Gravity.FILL = 4,
Gravity.RIGHT = 5,
Gravity.TOP = 6
}
class widget {
constructor(Document) {
this.document = document;
}
}
class PopupWindow extends widget {
constructor(Document) {
super(document);
}
setContentView(View) {
//TODO : setVIew.
}
setWidth(Width) {
this.width = Width;
}
setHeight(Height) {
this.height = Height;
}
showAtLocation(gravity1, gravity2, gravity3, gravity4) {
this.dialog = document.createElement("p");
}
}
class Button extends widget {
constructor(Document) {
super(document);
}
}
class TextView extends widget {
constructor(Document) {
super(document);
}
}
class ImageView extends widget {
constructor(Document) {
super(document);
}
}