summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/org/kde/qt/QRect.java
blob: cac71544f421676a8bf3e9651810404be95aaaec (plain)
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.qt;

import org.kde.qt.Qt;

public class QRect implements QtSupport {
	private long _qt;
	private boolean _allocatedInJavaWorld = true;
	protected QRect(Class dummy){}

	public QRect() {
		newQRect();
	}
	private native void newQRect();
	public QRect(QPoint topleft, QPoint bottomright) {
		newQRect(topleft,bottomright);
	}
	private native void newQRect(QPoint topleft, QPoint bottomright);
	public QRect(QPoint topleft, QSize size) {
		newQRect(topleft,size);
	}
	private native void newQRect(QPoint topleft, QSize size);
	public QRect(int left, int top, int width, int height) {
		newQRect(left,top,width,height);
	}
	private native void newQRect(int left, int top, int width, int height);
	public native boolean isNull();
	public native boolean isEmpty();
	public native boolean isValid();
	public native QRect normalize();
	public native int left();
	public native int top();
	public native int right();
	public native int bottom();
	public native short rLeft();
	public native short rTop();
	public native short rRight();
	public native short rBottom();
	public native int x();
	public native int y();
	public native void setLeft(int pos);
	public native void setTop(int pos);
	public native void setRight(int pos);
	public native void setBottom(int pos);
	public native void setX(int x);
	public native void setY(int y);
	public native void setTopLeft(QPoint p);
	public native void setBottomRight(QPoint p);
	public native void setTopRight(QPoint p);
	public native void setBottomLeft(QPoint p);
	public native QPoint topLeft();
	public native QPoint bottomRight();
	public native QPoint topRight();
	public native QPoint bottomLeft();
	public native QPoint center();
	public native void rect(int[] x, int[] y, int[] w, int[] h);
	public native void coords(int[] x1, int[] y1, int[] x2, int[] y2);
	public native void moveLeft(int pos);
	public native void moveTop(int pos);
	public native void moveRight(int pos);
	public native void moveBottom(int pos);
	public native void moveTopLeft(QPoint p);
	public native void moveBottomRight(QPoint p);
	public native void moveTopRight(QPoint p);
	public native void moveBottomLeft(QPoint p);
	public native void moveCenter(QPoint p);
	public native void moveBy(int dx, int dy);
	public native void setRect(int x, int y, int w, int h);
	public native void setCoords(int x1, int y1, int x2, int y2);
	public native void addCoords(int x1, int y1, int x2, int y2);
	public native QSize size();
	public native int width();
	public native int height();
	public native void setWidth(int w);
	public native void setHeight(int h);
	public native void setSize(QSize s);
	public native QRect op_or(QRect r);
	public native QRect op_and(QRect r);
	public native QRect op_or_assign(QRect r);
	public native QRect op_and_assign(QRect r);
	public native boolean contains(QPoint p, boolean proper);
	public native boolean contains(QPoint p);
	public native boolean contains(int x, int y);
	public native boolean contains(int x, int y, boolean proper);
	public native boolean contains(QRect r, boolean proper);
	public native boolean contains(QRect r);
	public native QRect unite(QRect r);
	public native QRect intersect(QRect r);
	public native boolean intersects(QRect r);
	/** Deletes the wrapped C++ instance */
	protected native void finalize() throws InternalError;
	/** Delete the wrapped C++ instance ahead of finalize() */
	public native void dispose();
	/** Has the wrapped C++ instance been deleted? */
	public native boolean isDisposed();
}