//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqwindowdefs.h>
#include <tqstring.h>
#include <tqstringlist.h>
#include <tqcolor.h>

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

class TQColorJBridge : public TQColor
{
public:
	TQColorJBridge() : TQColor() {};
	TQColorJBridge(int arg1,int arg2,int arg3) : TQColor(arg1,arg2,arg3) {};
	TQColorJBridge(int arg1,int arg2,int arg3,TQColor::Spec arg4) : TQColor(arg1,arg2,arg3,arg4) {};
	TQColorJBridge(TQRgb arg1,uint arg2) : TQColor(arg1,arg2) {};
	TQColorJBridge(TQRgb arg1) : TQColor(arg1) {};
	TQColorJBridge(const TQString& arg1) : TQColor(arg1) {};
	TQColorJBridge(const TQColor& arg1) : TQColor(arg1) {};
	~TQColorJBridge() {QtSupport::qtKeyDeleted(this);}
};

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

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

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QColor_colorNames(JNIEnv* env, jclass cls)
{
	TQStringList  _qlist;
	(void) cls;
	_qlist = TQColorJBridge::colorNames();
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

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

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QColor_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QColor_finalize(env, obj);
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_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);
	((TQColor*) 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_trinitydesktop_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);
	((TQColor*) 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_trinitydesktop_qt_QColor_green(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQColor*) QtSupport::getQt(env, obj))->green();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_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);
	((TQColor*) 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_trinitydesktop_qt_QColor_initialize(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	TQColorJBridge::initialize();
	return;
}

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

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

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

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

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

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

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QColor_name(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TQColor*) QtSupport::getQt(env, obj))->name();
	return QtSupport::fromTQString(env, &_qstring);
}

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QColor_newTQColor__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name)
{
static TQString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQColorJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_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);
	((TQColor*) 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_trinitydesktop_qt_QColor_setHsv(JNIEnv* env, jobject obj, jint h, jint s, jint v)
{
	((TQColor*) QtSupport::getQt(env, obj))->setHsv((int) h, (int) s, (int) v);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QColor_setNamedColor(JNIEnv* env, jobject obj, jstring name)
{
static TQString* _qstring_name = 0;
	((TQColor*) QtSupport::getQt(env, obj))->setNamedColor((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QColor_setRgb__I(JNIEnv* env, jobject obj, jint rgb)
{
	((TQColor*) QtSupport::getQt(env, obj))->setRgb((TQRgb) rgb);
	return;
}

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

