diff options
Diffstat (limited to 'qtjava/javalib/qtjava/QCanvasPixmap.cpp')
-rw-r--r-- | qtjava/javalib/qtjava/QCanvasPixmap.cpp | 94 |
1 files changed, 0 insertions, 94 deletions
diff --git a/qtjava/javalib/qtjava/QCanvasPixmap.cpp b/qtjava/javalib/qtjava/QCanvasPixmap.cpp deleted file mode 100644 index 786aa416..00000000 --- a/qtjava/javalib/qtjava/QCanvasPixmap.cpp +++ /dev/null @@ -1,94 +0,0 @@ -//Auto-generated by kalyptus. DO NOT EDIT. -#include <tqpixmap.h> -#include <tqimage.h> -#include <tqstring.h> -#include <tqpoint.h> -#include <tqcanvas.h> - -#include <qtjava/QtSupport.h> -#include <qtjava/QCanvasPixmap.h> - -class TQCanvasPixmapJBridge : public TQCanvasPixmap -{ -public: - TQCanvasPixmapJBridge(const TQString& arg1) : TQCanvasPixmap(arg1) {}; - TQCanvasPixmapJBridge(const TQImage& arg1) : TQCanvasPixmap(arg1) {}; - TQCanvasPixmapJBridge(const TQPixmap& arg1,const TQPoint& arg2) : TQCanvasPixmap(arg1,arg2) {}; - ~TQCanvasPixmapJBridge() {QtSupport::qtKeyDeleted(this);} -}; - -JNIEXPORT void JNICALL -Java_org_kde_qt_QCanvasPixmap_dispose(JNIEnv* env, jobject obj) -{ - Java_org_kde_qt_QCanvasPixmap_finalize(env, obj); - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_qt_QCanvasPixmap_finalize(JNIEnv* env, jobject obj) -{ - if (QtSupport::allocatedInJavaWorld(env, obj)) { - delete (TQCanvasPixmap*)QtSupport::getQt(env, obj); - QtSupport::setQt(env, obj, 0); - } - return; -} - -JNIEXPORT jboolean JNICALL -Java_org_kde_qt_QCanvasPixmap_isDisposed(JNIEnv* env, jobject obj) -{ - return (QtSupport::getQt(env, obj) == 0); -} - -JNIEXPORT void JNICALL -Java_org_kde_qt_QCanvasPixmap_newTQCanvasPixmap__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring datafilename) -{ -static TQString* _qstring_datafilename = 0; - if (QtSupport::getQt(env, obj) == 0) { - QtSupport::setQt(env, obj, new TQCanvasPixmapJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, datafilename, &_qstring_datafilename))); - QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); - } - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_qt_QCanvasPixmap_newTQCanvasPixmap__Lorg_kde_qt_QImage_2(JNIEnv* env, jobject obj, jobject image) -{ - if (QtSupport::getQt(env, obj) == 0) { - QtSupport::setQt(env, obj, new TQCanvasPixmapJBridge((const TQImage&)*(const TQImage*) QtSupport::getQt(env, image))); - QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); - } - return; -} - -JNIEXPORT void JNICALL -Java_org_kde_qt_QCanvasPixmap_newTQCanvasPixmap__Lorg_kde_qt_QPixmap_2Lorg_kde_qt_QPoint_2(JNIEnv* env, jobject obj, jobject arg1, jobject hotspot) -{ - if (QtSupport::getQt(env, obj) == 0) { - QtSupport::setQt(env, obj, new TQCanvasPixmapJBridge((const TQPixmap&)*(const TQPixmap*) QtSupport::getQt(env, arg1), (const TQPoint&)*(const TQPoint*) QtSupport::getQt(env, hotspot))); - QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj)); - } - return; -} - -JNIEXPORT jint JNICALL -Java_org_kde_qt_QCanvasPixmap_offsetX(JNIEnv* env, jobject obj) -{ - jint xret = (jint) ((TQCanvasPixmap*) QtSupport::getQt(env, obj))->offsetX(); - return xret; -} - -JNIEXPORT jint JNICALL -Java_org_kde_qt_QCanvasPixmap_offsetY(JNIEnv* env, jobject obj) -{ - jint xret = (jint) ((TQCanvasPixmap*) QtSupport::getQt(env, obj))->offsetY(); - return xret; -} - -JNIEXPORT void JNICALL -Java_org_kde_qt_QCanvasPixmap_setOffset(JNIEnv* env, jobject obj, jint x, jint y) -{ - ((TQCanvasPixmap*) QtSupport::getQt(env, obj))->setOffset((int) x, (int) y); - return; -} - |