-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathDOMRect.java
More file actions
55 lines (45 loc) · 1.1 KB
/
DOMRect.java
File metadata and controls
55 lines (45 loc) · 1.1 KB
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
49
50
51
52
53
54
55
package snap.webapi;
/**
* This class is a wrapper for Web API DOMRect (https://developer.mozilla.org/en-US/docs/Web/API/DOMRect).
*/
public class DOMRect extends JSProxy {
/**
* Constructor.
*/
public DOMRect(Object jsObj)
{
super(jsObj);
}
/**
* Return canvas X.
*/
public int getX() { return getMemberInt("x"); }
/**
* Set canvas X.
*/
public void setX(int aValue) { setMemberInt("x", aValue); }
/**
* Return canvas Y.
*/
public int getY() { return getMemberInt("y"); }
/**
* Set canvas Y.
*/
public void setY(int aValue) { setMemberInt("y", aValue); }
/**
* Return canvas width.
*/
public int getWidth() { return getMemberInt("width"); }
/**
* Set canvas height.
*/
public void setWidth(int aValue) { setMemberInt("width", aValue); }
/**
* Return canvas height.
*/
public int getHeight() { return getMemberInt("height"); }
/**
* Set canvas height.
*/
public void setHeight(int aValue) { setMemberInt("height", aValue);}
}