//Auto-generated by kalyptus. DO NOT EDIT.
#include <qwindowdefs.h>
#include <qstring.h>
#include <qstringlist.h>
#include <qcolor.h>

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

class QColorJBridge : public QColor
{
public:
	QColorJBridge() : QColor() {};
	QColorJBridge(int arg1,int arg2,int arg3) : QColor(arg1,arg2,arg3) {};
	QColorJBridge(int arg1,int arg2,int arg3,QColor::Spec arg4) : QColor(arg1,arg2,arg3,arg4) {};
	QColorJBridge(QRgb arg1,uint arg2) : QColor(arg1,arg2) {};
	QColorJBridge(QRgb arg1) : QColor(arg1) {};
	QColorJBridge(const QString& arg1) : QColor(arg1) {};
	QColorJBridge(const QColor& arg1) : QColor(arg1) {};
	~QColorJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jint JNICALL
Java_org_kde_qt_QColor_alloc(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QColor*) QtSupport::getQt(env, obj))->alloc();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QColor_blue(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QColor*) QtSupport::getQt(env, obj))->blue();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QColor_cleanup(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	QColorJBridge::cleanup();
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QColor_colorNames(JNIEnv* env, jclass cls)
{
	QStringList  _qlist;
	(void) cls;
	_qlist = QColorJBridge::colorNames();
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QColor_currentAllocContext(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jint xret = (jint) QColorJBridge::currentAllocContext();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QColor_dark__(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QColor(((QColor*) QtSupport::getQt(env, obj))->dark()), "org.kde.qt.QColor", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QColor_dark__I(JNIEnv* env, jobject obj, jint f)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QColor(((QColor*) QtSupport::getQt(env, obj))->dark((int) f)), "org.kde.qt.QColor", TRUE);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QColor_destroyAllocContext(JNIEnv* env, jclass cls, jint arg1)
{
	(void) cls;
	(void) env;
	QColorJBridge::destroyAllocContext((int) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QColor_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QColor_finalize(env, obj);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QColor_enterAllocContext(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jint xret = (jint) QColorJBridge::enterAllocContext();
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QColor_getHsv(JNIEnv* env, jobject obj, jintArray h, jintArray s, jintArray v)
{
	int* _int_h = QtSupport::toIntPtr(env, h);
	int* _int_s = QtSupport::toIntPtr(env, s);
	int* _int_v = QtSupport::toIntPtr(env, v);
	((QColor*) QtSupport::getQt(env, obj))->getHsv( (int*) _int_h,  (int*) _int_s,  (int*) _int_v);
	env->SetIntArrayRegion(h, 0, 1, (jint *) _int_h);
	env->SetIntArrayRegion(s, 0, 1, (jint *) _int_s);
	env->SetIntArrayRegion(v, 0, 1, (jint *) _int_v);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QColor_getRgb(JNIEnv* env, jobject obj, jintArray r, jintArray g, jintArray b)
{
	int* _int_r = QtSupport::toIntPtr(env, r);
	int* _int_g = QtSupport::toIntPtr(env, g);
	int* _int_b = QtSupport::toIntPtr(env, b);
	((QColor*) QtSupport::getQt(env, obj))->getRgb( (int*) _int_r,  (int*) _int_g,  (int*) _int_b);
	env->SetIntArrayRegion(r, 0, 1, (jint *) _int_r);
	env->SetIntArrayRegion(g, 0, 1, (jint *) _int_g);
	env->SetIntArrayRegion(b, 0, 1, (jint *) _int_b);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QColor_green(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QColor*) QtSupport::getQt(env, obj))->green();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QColor_hsv(JNIEnv* env, jobject obj, jintArray h, jintArray s, jintArray v)
{
	int* _int_h = QtSupport::toIntPtr(env, h);
	int* _int_s = QtSupport::toIntPtr(env, s);
	int* _int_v = QtSupport::toIntPtr(env, v);
	((QColor*) QtSupport::getQt(env, obj))->hsv( (int*) _int_h,  (int*) _int_s,  (int*) _int_v);
	env->SetIntArrayRegion(h, 0, 1, (jint *) _int_h);
	env->SetIntArrayRegion(s, 0, 1, (jint *) _int_s);
	env->SetIntArrayRegion(v, 0, 1, (jint *) _int_v);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QColor_initialize(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	QColorJBridge::initialize();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QColor_isDirty(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QColor*) QtSupport::getQt(env, obj))->isDirty();
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QColor_isValid(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QColor*) QtSupport::getQt(env, obj))->isValid();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QColor_leaveAllocContext(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	QColorJBridge::leaveAllocContext();
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QColor_light__(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QColor(((QColor*) QtSupport::getQt(env, obj))->light()), "org.kde.qt.QColor", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QColor_light__I(JNIEnv* env, jobject obj, jint f)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QColor(((QColor*) QtSupport::getQt(env, obj))->light((int) f)), "org.kde.qt.QColor", TRUE);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QColor_maxColors(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jint xret = (jint) QColorJBridge::maxColors();
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QColor_name(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((QColor*) QtSupport::getQt(env, obj))->name();
	return QtSupport::fromQString(env, &_qstring);
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QColor_newQColor__I(JNIEnv* env, jobject obj, jint rgb)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QColorJBridge((QRgb) rgb));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QColor_newQColor__II(JNIEnv* env, jobject obj, jint rgb, jint pixel)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QColorJBridge((QRgb) rgb, (uint) pixel));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QColor_newQColor__III(JNIEnv* env, jobject obj, jint r, jint g, jint b)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QColorJBridge((int) r, (int) g, (int) b));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QColor_newQColor__IIII(JNIEnv* env, jobject obj, jint x, jint y, jint z, jint arg4)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QColorJBridge((int) x, (int) y, (int) z, (QColor::Spec) arg4));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QColor_newQColor__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name)
{
static QString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QColorJBridge((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

JNIEXPORT jint JNICALL
Java_org_kde_qt_QColor_numBitPlanes(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jint xret = (jint) QColorJBridge::numBitPlanes();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QColor_op_1equals(JNIEnv* env, jobject obj, jobject c)
{
	jboolean xret = (jboolean) ((QColor*) QtSupport::getQt(env, obj))->operator==((const QColor&)*(const QColor*) QtSupport::getQt(env, c));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QColor_op_1not_1equals(JNIEnv* env, jobject obj, jobject c)
{
	jboolean xret = (jboolean) ((QColor*) QtSupport::getQt(env, obj))->operator!=((const QColor&)*(const QColor*) QtSupport::getQt(env, c));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QColor_pixel(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QColor*) QtSupport::getQt(env, obj))->pixel();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QColor_red(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QColor*) QtSupport::getQt(env, obj))->red();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QColor_rgb__(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QColor*) QtSupport::getQt(env, obj))->rgb();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QColor_rgb___3I_3I_3I(JNIEnv* env, jobject obj, jintArray r, jintArray g, jintArray b)
{
	int* _int_r = QtSupport::toIntPtr(env, r);
	int* _int_g = QtSupport::toIntPtr(env, g);
	int* _int_b = QtSupport::toIntPtr(env, b);
	((QColor*) QtSupport::getQt(env, obj))->rgb( (int*) _int_r,  (int*) _int_g,  (int*) _int_b);
	env->SetIntArrayRegion(r, 0, 1, (jint *) _int_r);
	env->SetIntArrayRegion(g, 0, 1, (jint *) _int_g);
	env->SetIntArrayRegion(b, 0, 1, (jint *) _int_b);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QColor_setHsv(JNIEnv* env, jobject obj, jint h, jint s, jint v)
{
	((QColor*) QtSupport::getQt(env, obj))->setHsv((int) h, (int) s, (int) v);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QColor_setNamedColor(JNIEnv* env, jobject obj, jstring name)
{
static QString* _qstring_name = 0;
	((QColor*) QtSupport::getQt(env, obj))->setNamedColor((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QColor_setRgb__I(JNIEnv* env, jobject obj, jint rgb)
{
	((QColor*) QtSupport::getQt(env, obj))->setRgb((QRgb) rgb);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QColor_setRgb__III(JNIEnv* env, jobject obj, jint r, jint g, jint b)
{
	((QColor*) QtSupport::getQt(env, obj))->setRgb((int) r, (int) g, (int) b);
	return;
}

