diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 15:55:57 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 15:55:57 -0600 |
commit | 9ba04742771370f59740e32e11c5f3a1e6a1b70a (patch) | |
tree | c81c34dae2b3b1ea73801bf18a960265dc4207f7 /qtjava/javalib/org/kde/qt/QRect.java | |
parent | 1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff) | |
download | tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip |
Initial TQt conversion
Diffstat (limited to 'qtjava/javalib/org/kde/qt/QRect.java')
-rw-r--r-- | qtjava/javalib/org/kde/qt/QRect.java | 84 |
1 files changed, 42 insertions, 42 deletions
diff --git a/qtjava/javalib/org/kde/qt/QRect.java b/qtjava/javalib/org/kde/qt/QRect.java index cac71544..1db02d29 100644 --- a/qtjava/javalib/org/kde/qt/QRect.java +++ b/qtjava/javalib/org/kde/qt/QRect.java @@ -3,31 +3,31 @@ package org.kde.qt; import org.kde.qt.Qt; -public class QRect implements QtSupport { +public class TQRect implements QtSupport { private long _qt; private boolean _allocatedInJavaWorld = true; - protected QRect(Class dummy){} + protected TQRect(Class dummy){} - public QRect() { - newQRect(); + public TQRect() { + newTQRect(); } - private native void newQRect(); - public QRect(QPoint topleft, QPoint bottomright) { - newQRect(topleft,bottomright); + private native void newTQRect(); + public TQRect(TQPoint topleft, TQPoint bottomright) { + newTQRect(topleft,bottomright); } - private native void newQRect(QPoint topleft, QPoint bottomright); - public QRect(QPoint topleft, QSize size) { - newQRect(topleft,size); + private native void newTQRect(TQPoint topleft, TQPoint bottomright); + public TQRect(TQPoint topleft, TQSize size) { + newTQRect(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 newTQRect(TQPoint topleft, TQSize size); + public TQRect(int left, int top, int width, int height) { + newTQRect(left,top,width,height); } - private native void newQRect(int left, int top, int width, int height); + private native void newTQRect(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 TQRect normalize(); public native int left(); public native int top(); public native int right(); @@ -44,49 +44,49 @@ public class QRect implements QtSupport { 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 setTopLeft(TQPoint p); + public native void setBottomRight(TQPoint p); + public native void setTopRight(TQPoint p); + public native void setBottomLeft(TQPoint p); + public native TQPoint topLeft(); + public native TQPoint bottomRight(); + public native TQPoint topRight(); + public native TQPoint bottomLeft(); + public native TQPoint 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 moveTopLeft(TQPoint p); + public native void moveBottomRight(TQPoint p); + public native void moveTopRight(TQPoint p); + public native void moveBottomLeft(TQPoint p); + public native void moveCenter(TQPoint 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 TQSize 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 void setSize(TQSize s); + public native TQRect op_or(TQRect r); + public native TQRect op_and(TQRect r); + public native TQRect op_or_assign(TQRect r); + public native TQRect op_and_assign(TQRect r); + public native boolean contains(TQPoint p, boolean proper); + public native boolean contains(TQPoint 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); + public native boolean contains(TQRect r, boolean proper); + public native boolean contains(TQRect r); + public native TQRect unite(TQRect r); + public native TQRect intersect(TQRect r); + public native boolean intersects(TQRect r); /** Deletes the wrapped C++ instance */ protected native void finalize() throws InternalError; /** Delete the wrapped C++ instance ahead of finalize() */ |