You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdebindings/qtjava/javalib/qtjava/TQCanvasPixmap.cpp

95 lines
3.1 KiB

//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/TQCanvasPixmap.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_trinitydesktop_qt_QCanvasPixmap_dispose(JNIEnv* env, jobject obj)
{
Java_org_trinitydesktop_qt_QCanvasPixmap_finalize(env, obj);
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_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_trinitydesktop_qt_QCanvasPixmap_isDisposed(JNIEnv* env, jobject obj)
{
return (QtSupport::getQt(env, obj) == 0);
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_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_trinitydesktop_qt_QCanvasPixmap_newTQCanvasPixmap__Lorg_trinitydesktop_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_trinitydesktop_qt_QCanvasPixmap_newTQCanvasPixmap__Lorg_trinitydesktop_qt_QPixmap_2Lorg_trinitydesktop_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_trinitydesktop_qt_QCanvasPixmap_offsetX(JNIEnv* env, jobject obj)
{
jint xret = (jint) ((TQCanvasPixmap*) QtSupport::getQt(env, obj))->offsetX();
return xret;
}
JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QCanvasPixmap_offsetY(JNIEnv* env, jobject obj)
{
jint xret = (jint) ((TQCanvasPixmap*) QtSupport::getQt(env, obj))->offsetY();
return xret;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvasPixmap_setOffset(JNIEnv* env, jobject obj, jint x, jint y)
{
((TQCanvasPixmap*) QtSupport::getQt(env, obj))->setOffset((int) x, (int) y);
return;
}