//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqsize.h>
#include <tqbitmap.h>
#include <tqpixmap.h>
#include <tqstring.h>
#include <tqwmatrix.h>

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

class TQBitmapJBridge : public TQBitmap
{
public:
	TQBitmapJBridge() : TQBitmap() {};
	TQBitmapJBridge(int arg1,int arg2,bool arg3,TQPixmap::Optimization arg4) : TQBitmap(arg1,arg2,arg3,arg4) {};
	TQBitmapJBridge(int arg1,int arg2,bool arg3) : TQBitmap(arg1,arg2,arg3) {};
	TQBitmapJBridge(int arg1,int arg2) : TQBitmap(arg1,arg2) {};
	TQBitmapJBridge(const TQSize& arg1,bool arg2,TQPixmap::Optimization arg3) : TQBitmap(arg1,arg2,arg3) {};
	TQBitmapJBridge(const TQSize& arg1,bool arg2) : TQBitmap(arg1,arg2) {};
	TQBitmapJBridge(const TQSize& arg1) : TQBitmap(arg1) {};
	TQBitmapJBridge(int arg1,int arg2,const uchar* arg3,bool arg4) : TQBitmap(arg1,arg2,arg3,arg4) {};
	TQBitmapJBridge(int arg1,int arg2,const uchar* arg3) : TQBitmap(arg1,arg2,arg3) {};
	TQBitmapJBridge(const TQSize& arg1,const uchar* arg2,bool arg3) : TQBitmap(arg1,arg2,arg3) {};
	TQBitmapJBridge(const TQSize& arg1,const uchar* arg2) : TQBitmap(arg1,arg2) {};
	TQBitmapJBridge(const TQBitmap& arg1) : TQBitmap(arg1) {};
	TQBitmapJBridge(const TQString& arg1,const char* arg2) : TQBitmap(arg1,arg2) {};
	TQBitmapJBridge(const TQString& arg1) : TQBitmap(arg1) {};
	~TQBitmapJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QBitmap_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QBitmap_finalize(env, obj);
	return;
}

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QBitmap_newTQBitmap__IIZI(JNIEnv* env, jobject obj, jint w, jint h, jboolean clear, jint arg4)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQBitmapJBridge((int) w, (int) h, (bool) clear, (TQPixmap::Optimization) arg4));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QBitmap_newTQBitmap__II_3C(JNIEnv* env, jobject obj, jint w, jint h, jcharArray bits)
{
static TQByteArray* _qbytearray_bits = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQBitmapJBridge((int) w, (int) h, (const uchar*) QtSupport::toUcharArray(env, bits, &_qbytearray_bits)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QBitmap_newTQBitmap__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 TQBitmapJBridge((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_QBitmap_newTQBitmap__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 TQBitmapJBridge((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_QBitmap_newTQBitmap__Lorg_trinitydesktop_qt_QBitmap_2(JNIEnv* env, jobject obj, jobject arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQBitmapJBridge((const TQBitmap&)*(const TQBitmap*) QtSupport::getQt(env, arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QBitmap_newTQBitmap__Lorg_trinitydesktop_qt_QSize_2ZI(JNIEnv* env, jobject obj, jobject arg1, jboolean clear, jint arg3)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQBitmapJBridge((const TQSize&)*(const TQSize*) QtSupport::getQt(env, arg1), (bool) clear, (TQPixmap::Optimization) arg3));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QBitmap_newTQBitmap__Lorg_trinitydesktop_qt_QSize_2_3C(JNIEnv* env, jobject obj, jobject arg1, jcharArray bits)
{
static TQByteArray* _qbytearray_bits = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQBitmapJBridge((const TQSize&)*(const TQSize*) QtSupport::getQt(env, arg1), (const uchar*) QtSupport::toUcharArray(env, bits, &_qbytearray_bits)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QBitmap_newTQBitmap__Lorg_trinitydesktop_qt_QSize_2_3CZ(JNIEnv* env, jobject obj, jobject arg1, jcharArray bits, jboolean isXbitmap)
{
static TQByteArray* _qbytearray_bits = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQBitmapJBridge((const TQSize&)*(const TQSize*) QtSupport::getQt(env, arg1), (const uchar*) QtSupport::toUcharArray(env, bits, &_qbytearray_bits), (bool) isXbitmap));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QBitmap_newTQBitmap__Lorg_trinitydesktop_qt_QPixmap_2(JNIEnv *env, jobject obj, jobject arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		TQBitmap temp;
		temp = (TQPixmap&) *(TQPixmap *) QtSupport::getQt(env, arg1);
		QtSupport::setQt(env, obj, new TQBitmapJBridge(temp));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QBitmap_newTQBitmap__Lorg_trinitydesktop_qt_QImage_2(JNIEnv *env, jobject obj, jobject arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		TQBitmap temp;
		temp = (TQImage&) *(TQImage *) QtSupport::getQt(env, arg1);
		QtSupport::setQt(env, obj, new TQBitmapJBridge(temp));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

