//Auto-generated by kalyptus. DO NOT EDIT.
#include <qsize.h>
#include <qbitmap.h>
#include <qpixmap.h>
#include <qstring.h>
#include <qwmatrix.h>

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

class QBitmapJBridge : public QBitmap
{
public:
	QBitmapJBridge() : QBitmap() {};
	QBitmapJBridge(int arg1,int arg2,bool arg3,QPixmap::Optimization arg4) : QBitmap(arg1,arg2,arg3,arg4) {};
	QBitmapJBridge(int arg1,int arg2,bool arg3) : QBitmap(arg1,arg2,arg3) {};
	QBitmapJBridge(int arg1,int arg2) : QBitmap(arg1,arg2) {};
	QBitmapJBridge(const QSize& arg1,bool arg2,QPixmap::Optimization arg3) : QBitmap(arg1,arg2,arg3) {};
	QBitmapJBridge(const QSize& arg1,bool arg2) : QBitmap(arg1,arg2) {};
	QBitmapJBridge(const QSize& arg1) : QBitmap(arg1) {};
	QBitmapJBridge(int arg1,int arg2,const uchar* arg3,bool arg4) : QBitmap(arg1,arg2,arg3,arg4) {};
	QBitmapJBridge(int arg1,int arg2,const uchar* arg3) : QBitmap(arg1,arg2,arg3) {};
	QBitmapJBridge(const QSize& arg1,const uchar* arg2,bool arg3) : QBitmap(arg1,arg2,arg3) {};
	QBitmapJBridge(const QSize& arg1,const uchar* arg2) : QBitmap(arg1,arg2) {};
	QBitmapJBridge(const QBitmap& arg1) : QBitmap(arg1) {};
	QBitmapJBridge(const QString& arg1,const char* arg2) : QBitmap(arg1,arg2) {};
	QBitmapJBridge(const QString& arg1) : QBitmap(arg1) {};
	~QBitmapJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_kde_qt_QBitmap_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QBitmap_finalize(env, obj);
	return;
}

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QBitmap_newQBitmap__II_3C(JNIEnv* env, jobject obj, jint w, jint h, jcharArray bits)
{
static QByteArray* _qbytearray_bits = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QBitmapJBridge((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_kde_qt_QBitmap_newQBitmap__II_3CZ(JNIEnv* env, jobject obj, jint w, jint h, jcharArray bits, jboolean isXbitmap)
{
static QByteArray* _qbytearray_bits = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QBitmapJBridge((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_kde_qt_QBitmap_newQBitmap__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring fileName)
{
static QString* _qstring_fileName = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QBitmapJBridge((const QString&)*(QString*) QtSupport::toQString(env, fileName, &_qstring_fileName)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QBitmap_newQBitmap__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring fileName, jstring format)
{
static QString* _qstring_fileName = 0;
static QCString* _qstring_format = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QBitmapJBridge((const QString&)*(QString*) QtSupport::toQString(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_kde_qt_QBitmap_newQBitmap__Lorg_kde_qt_QBitmap_2(JNIEnv* env, jobject obj, jobject arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QBitmapJBridge((const QBitmap&)*(const QBitmap*) QtSupport::getQt(env, arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QBitmap_newQBitmap__Lorg_kde_qt_QSize_2_3C(JNIEnv* env, jobject obj, jobject arg1, jcharArray bits)
{
static QByteArray* _qbytearray_bits = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QBitmapJBridge((const QSize&)*(const QSize*) 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_kde_qt_QBitmap_newQBitmap__Lorg_kde_qt_QSize_2_3CZ(JNIEnv* env, jobject obj, jobject arg1, jcharArray bits, jboolean isXbitmap)
{
static QByteArray* _qbytearray_bits = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QBitmapJBridge((const QSize&)*(const QSize*) 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_kde_qt_QBitmap_xForm(JNIEnv* env, jobject obj, jobject arg1)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QBitmap(((QBitmap*) QtSupport::getQt(env, obj))->xForm((const QWMatrix&)*(const QWMatrix*) QtSupport::getQt(env, arg1))), "org.kde.qt.QBitmap", TRUE);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QBitmap_newQBitmap__Lorg_kde_qt_QPixmap_2(JNIEnv *env, jobject obj, jobject arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QBitmap temp;
		temp = (QPixmap&) *(QPixmap *) QtSupport::getQt(env, arg1);
		QtSupport::setQt(env, obj, new QBitmapJBridge(temp));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QBitmap_newQBitmap__Lorg_kde_qt_QImage_2(JNIEnv *env, jobject obj, jobject arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QBitmap temp;
		temp = (QImage&) *(QImage *) QtSupport::getQt(env, arg1);
		QtSupport::setQt(env, obj, new QBitmapJBridge(temp));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

