//Auto-generated by kalyptus. DO NOT EDIT.
#include <dom/css_value.h>
#include <tqwindowdefs.h>

#include <qtjava/QtSupport.h>
#include <tdejava/TDESupport.h>
#include <tdejava/RGBColor.h>

class RGBColorJBridge : public DOM::RGBColor
{
public:
	RGBColorJBridge() : DOM::RGBColor() {};
	RGBColorJBridge(TQRgb arg1) : DOM::RGBColor(arg1) {};
	RGBColorJBridge(const DOM::RGBColor& arg1) : DOM::RGBColor(arg1) {};
};

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_RGBColor_blue(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::CSSPrimitiveValue(((DOM::RGBColor*) QtSupport::getQt(env, obj))->blue()), "org.trinitydesktop.koala.CSSPrimitiveValue", TRUE);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_RGBColor_color(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((DOM::RGBColor*) QtSupport::getQt(env, obj))->color();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_RGBColor_green(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::CSSPrimitiveValue(((DOM::RGBColor*) QtSupport::getQt(env, obj))->green()), "org.trinitydesktop.koala.CSSPrimitiveValue", TRUE);
	return xret;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_RGBColor_newRGBColor__Lorg_trinitydesktop_koala_RGBColor_2(JNIEnv* env, jobject obj, jobject other)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new RGBColorJBridge((const DOM::RGBColor&)*(const DOM::RGBColor*) QtSupport::getQt(env, other)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_RGBColor_red(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::CSSPrimitiveValue(((DOM::RGBColor*) QtSupport::getQt(env, obj))->red()), "org.trinitydesktop.koala.CSSPrimitiveValue", TRUE);
	return xret;
}

