//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqrect.h>
#include <tqstring.h>
#include <tqwmatrix.h>
#include <tqpoint.h>
#include <tqpaintdevice.h>
#include <tqsize.h>
#include <tqbitmap.h>
#include <tqpixmap.h>
#include <tqimage.h>
#include <tqcolor.h>
#include <tqcstring.h>

#include <qtjava/QtSupport.h>
#include <qtjava/TQPixmap.h>

class TQPixmapJBridge : public TQPixmap
{
public:
	TQPixmapJBridge() : TQPixmap() {};
	TQPixmapJBridge(const TQImage& arg1) : TQPixmap(arg1) {};
	TQPixmapJBridge(int arg1,int arg2,int arg3,TQPixmap::Optimization arg4) : TQPixmap(arg1,arg2,arg3,arg4) {};
	TQPixmapJBridge(int arg1,int arg2,int arg3) : TQPixmap(arg1,arg2,arg3) {};
	TQPixmapJBridge(int arg1,int arg2) : TQPixmap(arg1,arg2) {};
	TQPixmapJBridge(const TQSize& arg1,int arg2,TQPixmap::Optimization arg3) : TQPixmap(arg1,arg2,arg3) {};
	TQPixmapJBridge(const TQSize& arg1,int arg2) : TQPixmap(arg1,arg2) {};
	TQPixmapJBridge(const TQSize& arg1) : TQPixmap(arg1) {};
	TQPixmapJBridge(const TQString& arg1,const char* arg2,TQPixmap::ColorMode arg3) : TQPixmap(arg1,arg2,arg3) {};
	TQPixmapJBridge(const TQString& arg1,const char* arg2) : TQPixmap(arg1,arg2) {};
	TQPixmapJBridge(const TQString& arg1) : TQPixmap(arg1) {};
	TQPixmapJBridge(const char** arg1) : TQPixmap(arg1) {};
	TQPixmapJBridge(const TQByteArray& arg1) : TQPixmap(arg1) {};
	TQPixmapJBridge(const TQPixmap& arg1) : TQPixmap(arg1) {};
	void public_detach() {
		TQPixmap::detach();
		return;
	}
	TQPixmapJBridge(int arg1,int arg2,const uchar* arg3,bool arg4) : TQPixmap(arg1,arg2,arg3,arg4) {};
	int protected_metric(int arg1) {
		return (int) TQPixmap::metric(arg1);
	}
	~TQPixmapJBridge() {QtSupport::qtKeyDeleted(this);}
	int protected_fontMet(TQFont* arg1,int arg2,const char* arg3,int arg4) {
		return (int) TQPaintDevice::fontMet(arg1,arg2,arg3,arg4);
	}
	int protected_fontMet(TQFont* arg1,int arg2,const char* arg3) {
		return (int) TQPaintDevice::fontMet(arg1,arg2,arg3);
	}
	int protected_fontMet(TQFont* arg1,int arg2) {
		return (int) TQPaintDevice::fontMet(arg1,arg2);
	}
	int protected_fontInf(TQFont* arg1,int arg2) {
		return (int) TQPaintDevice::fontInf(arg1,arg2);
	}
};

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QPixmap_convertFromImage__Lorg_trinitydesktop_qt_QImage_2(JNIEnv* env, jobject obj, jobject arg1)
{
	jboolean xret = (jboolean) ((TQPixmap*) QtSupport::getQt(env, obj))->convertFromImage((const TQImage&)*(const TQImage*) QtSupport::getQt(env, arg1));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QPixmap_convertFromImage__Lorg_trinitydesktop_qt_QImage_2I(JNIEnv* env, jobject obj, jobject arg1, jint mode)
{
	jboolean xret = (jboolean) ((TQPixmap*) QtSupport::getQt(env, obj))->convertFromImage((const TQImage&)*(const TQImage*) QtSupport::getQt(env, arg1), (TQPixmap::ColorMode) mode);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QPixmap_convertToImage(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQPixmap*) QtSupport::getQt(env, obj))->convertToImage()), "org.trinitydesktop.qt.TQImage", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QPixmap_createHeuristicMask__(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQBitmap(((TQPixmap*) QtSupport::getQt(env, obj))->createHeuristicMask()), "org.trinitydesktop.qt.TQBitmap", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QPixmap_createHeuristicMask__Z(JNIEnv* env, jobject obj, jboolean clipTight)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQBitmap(((TQPixmap*) QtSupport::getQt(env, obj))->createHeuristicMask((bool) clipTight)), "org.trinitydesktop.qt.TQBitmap", true);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPixmap_defaultDepth(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jint xret = (jint) TQPixmapJBridge::defaultDepth();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPixmap_defaultOptimization(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jint xret = (jint) TQPixmapJBridge::defaultOptimization();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPixmap_depth(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQPixmap*) QtSupport::getQt(env, obj))->depth();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPixmap_detach(JNIEnv* env, jobject obj)
{
	((TQPixmapJBridge*) QtSupport::getQt(env, obj))->public_detach();
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPixmap_devType(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQPaintDevice*)(TQPixmap*) QtSupport::getQt(env, obj))->devType();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPixmap_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QPixmap_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPixmap_fill__(JNIEnv* env, jobject obj)
{
	((TQPixmap*) QtSupport::getQt(env, obj))->fill();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPixmap_fill__Lorg_trinitydesktop_qt_QColor_2(JNIEnv* env, jobject obj, jobject fillColor)
{
	((TQPixmap*) QtSupport::getQt(env, obj))->fill((const TQColor&)*(const TQColor*) QtSupport::getQt(env, fillColor));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPixmap_fill__Lorg_trinitydesktop_qt_QWidget_2II(JNIEnv* env, jobject obj, jobject arg1, jint xofs, jint yofs)
{
	((TQPixmap*) QtSupport::getQt(env, obj))->fill((const TQWidget*) QtSupport::getQt(env, arg1), (int) xofs, (int) yofs);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPixmap_fill__Lorg_trinitydesktop_qt_QWidget_2Lorg_trinitydesktop_qt_QPoint_2(JNIEnv* env, jobject obj, jobject arg1, jobject ofs)
{
	((TQPixmap*) QtSupport::getQt(env, obj))->fill((const TQWidget*) QtSupport::getQt(env, arg1), (const TQPoint&)*(const TQPoint*) QtSupport::getQt(env, ofs));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPixmap_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj)) {
		delete (TQPixmap*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPixmap_fontInf(JNIEnv* env, jobject obj, jobject arg1, jint arg2)
{
	jint xret = (jint) ((TQPixmapJBridge*) QtSupport::getQt(env, obj))->protected_fontInf((TQFont*) QtSupport::getQt(env, arg1), (int) arg2);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPixmap_fontMet__Lorg_trinitydesktop_qt_QFont_2I(JNIEnv* env, jobject obj, jobject arg1, jint arg2)
{
	jint xret = (jint) ((TQPixmapJBridge*) QtSupport::getQt(env, obj))->protected_fontMet((TQFont*) QtSupport::getQt(env, arg1), (int) arg2);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPixmap_fontMet__Lorg_trinitydesktop_qt_QFont_2ILjava_lang_String_2(JNIEnv* env, jobject obj, jobject arg1, jint arg2, jstring arg3)
{
static TQCString* _qstring_arg3 = 0;
	jint xret = (jint) ((TQPixmapJBridge*) QtSupport::getQt(env, obj))->protected_fontMet((TQFont*) QtSupport::getQt(env, arg1), (int) arg2, (const char*) QtSupport::toCharString(env, arg3, &_qstring_arg3));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPixmap_fontMet__Lorg_trinitydesktop_qt_QFont_2ILjava_lang_String_2I(JNIEnv* env, jobject obj, jobject arg1, jint arg2, jstring arg3, jint arg4)
{
static TQCString* _qstring_arg3 = 0;
	jint xret = (jint) ((TQPixmapJBridge*) QtSupport::getQt(env, obj))->protected_fontMet((TQFont*) QtSupport::getQt(env, arg1), (int) arg2, (const char*) QtSupport::toCharString(env, arg3, &_qstring_arg3), (int) arg4);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QPixmap_fromMimeSource(JNIEnv* env, jclass cls, jstring abs_name)
{
	(void) cls;
static TQString* _qstring_abs_name = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPixmap(TQPixmapJBridge::fromMimeSource((const TQString&)*(TQString*) QtSupport::toTQString(env, abs_name, &_qstring_abs_name))), "org.trinitydesktop.qt.TQPixmap", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QPixmap_grabWidget__Lorg_trinitydesktop_qt_QWidget_2(JNIEnv* env, jclass cls, jobject widget)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPixmap(TQPixmapJBridge::grabWidget((TQWidget*) QtSupport::getQt(env, widget))), "org.trinitydesktop.qt.TQPixmap", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QPixmap_grabWidget__Lorg_trinitydesktop_qt_QWidget_2I(JNIEnv* env, jclass cls, jobject widget, jint x)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPixmap(TQPixmapJBridge::grabWidget((TQWidget*) QtSupport::getQt(env, widget), (int) x)), "org.trinitydesktop.qt.TQPixmap", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QPixmap_grabWidget__Lorg_trinitydesktop_qt_QWidget_2II(JNIEnv* env, jclass cls, jobject widget, jint x, jint y)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPixmap(TQPixmapJBridge::grabWidget((TQWidget*) QtSupport::getQt(env, widget), (int) x, (int) y)), "org.trinitydesktop.qt.TQPixmap", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QPixmap_grabWidget__Lorg_trinitydesktop_qt_QWidget_2III(JNIEnv* env, jclass cls, jobject widget, jint x, jint y, jint w)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPixmap(TQPixmapJBridge::grabWidget((TQWidget*) QtSupport::getQt(env, widget), (int) x, (int) y, (int) w)), "org.trinitydesktop.qt.TQPixmap", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QPixmap_grabWidget__Lorg_trinitydesktop_qt_QWidget_2IIII(JNIEnv* env, jclass cls, jobject widget, jint x, jint y, jint w, jint h)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPixmap(TQPixmapJBridge::grabWidget((TQWidget*) QtSupport::getQt(env, widget), (int) x, (int) y, (int) w, (int) h)), "org.trinitydesktop.qt.TQPixmap", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QPixmap_grabWindow__J(JNIEnv* env, jclass cls, jlong arg1)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPixmap(TQPixmapJBridge::grabWindow((WId) arg1)), "org.trinitydesktop.qt.TQPixmap", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QPixmap_grabWindow__JI(JNIEnv* env, jclass cls, jlong arg1, jint x)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPixmap(TQPixmapJBridge::grabWindow((WId) arg1, (int) x)), "org.trinitydesktop.qt.TQPixmap", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QPixmap_grabWindow__JII(JNIEnv* env, jclass cls, jlong arg1, jint x, jint y)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPixmap(TQPixmapJBridge::grabWindow((WId) arg1, (int) x, (int) y)), "org.trinitydesktop.qt.TQPixmap", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QPixmap_grabWindow__JIII(JNIEnv* env, jclass cls, jlong arg1, jint x, jint y, jint w)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPixmap(TQPixmapJBridge::grabWindow((WId) arg1, (int) x, (int) y, (int) w)), "org.trinitydesktop.qt.TQPixmap", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QPixmap_grabWindow__JIIII(JNIEnv* env, jclass cls, jlong arg1, jint x, jint y, jint w, jint h)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPixmap(TQPixmapJBridge::grabWindow((WId) arg1, (int) x, (int) y, (int) w, (int) h)), "org.trinitydesktop.qt.TQPixmap", true);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QPixmap_hasAlphaChannel(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQPixmap*) QtSupport::getQt(env, obj))->hasAlphaChannel();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QPixmap_hasAlpha(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQPixmap*) QtSupport::getQt(env, obj))->hasAlpha();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPixmap_height(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQPixmap*) QtSupport::getQt(env, obj))->height();
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QPixmap_imageFormat(JNIEnv* env, jclass cls, jstring fileName)
{
	const char* _qstring;
	(void) cls;
static TQString* _qstring_fileName = 0;
	_qstring = TQPixmapJBridge::imageFormat((const TQString&)*(TQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName));
	return QtSupport::fromCharString(env, (char *) _qstring);
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QPixmap_isDisposed(JNIEnv* env, jobject obj)
{
	return (QtSupport::getQt(env, obj) == 0);
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QPixmap_isExtDev(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQPaintDevice*)(TQPixmap*) QtSupport::getQt(env, obj))->isExtDev();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QPixmap_isNull(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQPixmap*) QtSupport::getQt(env, obj))->isNull();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QPixmap_isTQBitmap(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQPixmap*) QtSupport::getQt(env, obj))->isTQBitmap();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QPixmap_loadFromData___3B(JNIEnv* env, jobject obj, jbyteArray data)
{
static TQByteArray* _qbyteArray_data = 0;
	jboolean xret = (jboolean) ((TQPixmap*) QtSupport::getQt(env, obj))->loadFromData((const TQByteArray&)*(TQByteArray*) QtSupport::toTQByteArray(env, data, &_qbyteArray_data));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QPixmap_loadFromData___3BLjava_lang_String_2(JNIEnv* env, jobject obj, jbyteArray data, jstring format)
{
static TQByteArray* _qbyteArray_data = 0;
static TQCString* _qstring_format = 0;
	jboolean xret = (jboolean) ((TQPixmap*) QtSupport::getQt(env, obj))->loadFromData((const TQByteArray&)*(TQByteArray*) QtSupport::toTQByteArray(env, data, &_qbyteArray_data), (const char*) QtSupport::toCharString(env, format, &_qstring_format));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QPixmap_loadFromData___3BLjava_lang_String_2I(JNIEnv* env, jobject obj, jbyteArray data, jstring format, jint conversion_flags)
{
static TQByteArray* _qbyteArray_data = 0;
static TQCString* _qstring_format = 0;
	jboolean xret = (jboolean) ((TQPixmap*) QtSupport::getQt(env, obj))->loadFromData((const TQByteArray&)*(TQByteArray*) QtSupport::toTQByteArray(env, data, &_qbyteArray_data), (const char*) QtSupport::toCharString(env, format, &_qstring_format), (int) conversion_flags);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QPixmap_loadFromData___3CI(JNIEnv* env, jobject obj, jcharArray buf, jint len)
{
static TQByteArray* _qbytearray_buf = 0;
	jboolean xret = (jboolean) ((TQPixmap*) QtSupport::getQt(env, obj))->loadFromData((const uchar*) QtSupport::toUcharArray(env, buf, &_qbytearray_buf), (uint) len);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QPixmap_loadFromData___3CILjava_lang_String_2(JNIEnv* env, jobject obj, jcharArray buf, jint len, jstring format)
{
static TQByteArray* _qbytearray_buf = 0;
static TQCString* _qstring_format = 0;
	jboolean xret = (jboolean) ((TQPixmap*) QtSupport::getQt(env, obj))->loadFromData((const uchar*) QtSupport::toUcharArray(env, buf, &_qbytearray_buf), (uint) len, (const char*) QtSupport::toCharString(env, format, &_qstring_format));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QPixmap_loadFromData___3CILjava_lang_String_2I(JNIEnv* env, jobject obj, jcharArray buf, jint len, jstring format, jint mode)
{
static TQByteArray* _qbytearray_buf = 0;
static TQCString* _qstring_format = 0;
	jboolean xret = (jboolean) ((TQPixmap*) QtSupport::getQt(env, obj))->loadFromData((const uchar*) QtSupport::toUcharArray(env, buf, &_qbytearray_buf), (uint) len, (const char*) QtSupport::toCharString(env, format, &_qstring_format), (TQPixmap::ColorMode) mode);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QPixmap_load__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring fileName)
{
static TQString* _qstring_fileName = 0;
	jboolean xret = (jboolean) ((TQPixmap*) QtSupport::getQt(env, obj))->load((const TQString&)*(TQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QPixmap_load__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring fileName, jstring format)
{
static TQString* _qstring_fileName = 0;
static TQCString* _qstring_format = 0;
	jboolean xret = (jboolean) ((TQPixmap*) QtSupport::getQt(env, obj))->load((const TQString&)*(TQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName), (const char*) QtSupport::toCharString(env, format, &_qstring_format));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QPixmap_load__Ljava_lang_String_2Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring fileName, jstring format, jint mode)
{
static TQString* _qstring_fileName = 0;
static TQCString* _qstring_format = 0;
	jboolean xret = (jboolean) ((TQPixmap*) QtSupport::getQt(env, obj))->load((const TQString&)*(TQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName), (const char*) QtSupport::toCharString(env, format, &_qstring_format), (TQPixmap::ColorMode) mode);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QPixmap_mask(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQPixmap*) QtSupport::getQt(env, obj))->mask(), "org.trinitydesktop.qt.TQBitmap");
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPixmap_metric(JNIEnv* env, jobject obj, jint arg1)
{
	jint xret = (jint) ((TQPixmapJBridge*) QtSupport::getQt(env, obj))->protected_metric((int) arg1);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPixmap_newTQPixmap__(JNIEnv* env, jobject obj)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQPixmapJBridge());
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPixmap_newTQPixmap__II(JNIEnv* env, jobject obj, jint w, jint h)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQPixmapJBridge((int) w, (int) h));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPixmap_newTQPixmap__III(JNIEnv* env, jobject obj, jint w, jint h, jint depth)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQPixmapJBridge((int) w, (int) h, (int) depth));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPixmap_newTQPixmap__IIII(JNIEnv* env, jobject obj, jint w, jint h, jint depth, jint arg4)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQPixmapJBridge((int) w, (int) h, (int) depth, (TQPixmap::Optimization) arg4));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPixmap_newTQPixmap__II_3CZ(JNIEnv* env, jobject obj, jint w, jint h, jcharArray data, jboolean isXbitmap)
{
static TQByteArray* _qbytearray_data = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQPixmapJBridge((int) w, (int) h, (const uchar*) QtSupport::toUcharArray(env, data, &_qbytearray_data), (bool) isXbitmap));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPixmap_newTQPixmap__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring fileName)
{
static TQString* _qstring_fileName = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQPixmapJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPixmap_newTQPixmap__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring fileName, jstring format)
{
static TQString* _qstring_fileName = 0;
static TQCString* _qstring_format = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQPixmapJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName), (const char*) QtSupport::toCharString(env, format, &_qstring_format)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPixmap_newTQPixmap__Ljava_lang_String_2Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring fileName, jstring format, jint mode)
{
static TQString* _qstring_fileName = 0;
static TQCString* _qstring_format = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQPixmapJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName), (const char*) QtSupport::toCharString(env, format, &_qstring_format), (TQPixmap::ColorMode) mode));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPixmap_newTQPixmap__Lorg_trinitydesktop_qt_QImage_2(JNIEnv* env, jobject obj, jobject image)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQPixmapJBridge((const TQImage&)*(const TQImage*) QtSupport::getQt(env, image)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPixmap_newTQPixmap__Lorg_trinitydesktop_qt_QPixmap_2(JNIEnv* env, jobject obj, jobject arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQPixmapJBridge((const TQPixmap&)*(const TQPixmap*) QtSupport::getQt(env, arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPixmap_newTQPixmap__Lorg_trinitydesktop_qt_QSize_2(JNIEnv* env, jobject obj, jobject arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQPixmapJBridge((const TQSize&)*(const TQSize*) QtSupport::getQt(env, arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPixmap_newTQPixmap__Lorg_trinitydesktop_qt_QSize_2I(JNIEnv* env, jobject obj, jobject arg1, jint depth)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQPixmapJBridge((const TQSize&)*(const TQSize*) QtSupport::getQt(env, arg1), (int) depth));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPixmap_newTQPixmap__Lorg_trinitydesktop_qt_QSize_2II(JNIEnv* env, jobject obj, jobject arg1, jint depth, jint arg3)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQPixmapJBridge((const TQSize&)*(const TQSize*) QtSupport::getQt(env, arg1), (int) depth, (TQPixmap::Optimization) arg3));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPixmap_newTQPixmap___3B(JNIEnv* env, jobject obj, jbyteArray data)
{
static TQByteArray* _qbyteArray_data = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQPixmapJBridge((const TQByteArray&)*(TQByteArray*) QtSupport::toTQByteArray(env, data, &_qbyteArray_data)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPixmap_newTQPixmap___3Ljava_lang_String_2(JNIEnv* env, jobject obj, jobjectArray xpm)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQPixmapJBridge((const char**) QtSupport::toStringArray(env, xpm)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPixmap_optimization(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQPixmap*) QtSupport::getQt(env, obj))->optimization();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QPixmap_paintingActive(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQPaintDevice*)(TQPixmap*) QtSupport::getQt(env, obj))->paintingActive();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QPixmap_rect(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQRect(((TQPixmap*) QtSupport::getQt(env, obj))->rect()), "org.trinitydesktop.qt.TQRect", true);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPixmap_resize__II(JNIEnv* env, jobject obj, jint width, jint height)
{
	((TQPixmap*) QtSupport::getQt(env, obj))->resize((int) width, (int) height);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPixmap_resize__Lorg_trinitydesktop_qt_QSize_2(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQPixmap*) QtSupport::getQt(env, obj))->resize((const TQSize&)*(const TQSize*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPixmap_resolution(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQPaintDevice*)(TQPixmap*) QtSupport::getQt(env, obj))->resolution();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QPixmap_save__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring fileName, jstring format)
{
static TQString* _qstring_fileName = 0;
static TQCString* _qstring_format = 0;
	jboolean xret = (jboolean) ((TQPixmap*) QtSupport::getQt(env, obj))->save((const TQString&)*(TQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName), (const char*) QtSupport::toCharString(env, format, &_qstring_format));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QPixmap_save__Ljava_lang_String_2Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring fileName, jstring format, jint quality)
{
static TQString* _qstring_fileName = 0;
static TQCString* _qstring_format = 0;
	jboolean xret = (jboolean) ((TQPixmap*) QtSupport::getQt(env, obj))->save((const TQString&)*(TQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName), (const char*) QtSupport::toCharString(env, format, &_qstring_format), (int) quality);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QPixmap_save__Lorg_trinitydesktop_qt_QIODeviceInterface_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject device, jstring format)
{
static TQCString* _qstring_format = 0;
	jboolean xret = (jboolean) ((TQPixmap*) QtSupport::getQt(env, obj))->save((TQIODevice*) QtSupport::getQt(env, device), (const char*) QtSupport::toCharString(env, format, &_qstring_format));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QPixmap_save__Lorg_trinitydesktop_qt_QIODeviceInterface_2Ljava_lang_String_2I(JNIEnv* env, jobject obj, jobject device, jstring format, jint quality)
{
static TQCString* _qstring_format = 0;
	jboolean xret = (jboolean) ((TQPixmap*) QtSupport::getQt(env, obj))->save((TQIODevice*) QtSupport::getQt(env, device), (const char*) QtSupport::toCharString(env, format, &_qstring_format), (int) quality);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QPixmap_selfMask(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQPixmap*) QtSupport::getQt(env, obj))->selfMask();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPixmap_serialNumber(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQPixmap*) QtSupport::getQt(env, obj))->serialNumber();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPixmap_setDefaultOptimization(JNIEnv* env, jclass cls, jint arg1)
{
	(void) cls;
	(void) env;
	TQPixmapJBridge::setDefaultOptimization((TQPixmap::Optimization) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPixmap_setMask(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQPixmap*) QtSupport::getQt(env, obj))->setMask((const TQBitmap&)*(const TQBitmap*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPixmap_setOptimization(JNIEnv* env, jobject obj, jint arg1)
{
	((TQPixmap*) QtSupport::getQt(env, obj))->setOptimization((TQPixmap::Optimization) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPixmap_setResolution(JNIEnv* env, jobject obj, jint arg1)
{
	((TQPaintDevice*)(TQPixmap*) QtSupport::getQt(env, obj))->setResolution((int) arg1);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QPixmap_size(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQSize(((TQPixmap*) QtSupport::getQt(env, obj))->size()), "org.trinitydesktop.qt.TQSize", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QPixmap_trueMatrix(JNIEnv* env, jclass cls, jobject arg1, jint w, jint h)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQWMatrix(TQPixmapJBridge::trueMatrix((const TQWMatrix&)*(const TQWMatrix*) QtSupport::getQt(env, arg1), (int) w, (int) h)), "org.trinitydesktop.qt.TQWMatrix", true);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPixmap_width(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQPixmap*) QtSupport::getQt(env, obj))->width();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QPixmap_xForm(JNIEnv* env, jobject obj, jobject arg1)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPixmap(((TQPixmap*) QtSupport::getQt(env, obj))->xForm((const TQWMatrix&)*(const TQWMatrix*) QtSupport::getQt(env, arg1))), "org.trinitydesktop.qt.TQPixmap", true);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QPixmap_loadFromData___3C(JNIEnv *env, jobject obj, jcharArray data)
{
static TQByteArray * _qbyteArray_data = 0;
	return (jboolean) ((TQPixmapJBridge*) QtSupport::getQt(env, obj))->loadFromData((uchar *) QtSupport::toUcharArray(env, data, &_qbyteArray_data), env->GetArrayLength(data), 0, 0);
}
	
JNIEXPORT jlong JNICALL
Java_org_trinitydesktop_qt_QPixmap_paintDevice(JNIEnv* env, jobject obj)
{
	return (jlong) (TQPaintDevice*)(TQPixmap*) QtSupport::getQt(env, obj);
}

