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

#include <qtjava/QtSupport.h>
#include <kdejava/KDESupport.h>
#include <kdejava/RGBColor.h>

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_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_kde_koala_RGBColor_newRGBColor__I(JNIEnv* env, jobject obj, jint color)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new RGBColorJBridge((QRgb) color));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_RGBColor_newRGBColor__Lorg_kde_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_kde_koala_RGBColor_red(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::CSSPrimitiveValue(((DOM::RGBColor*) QtSupport::getQt(env, obj))->red()), "org.kde.koala.CSSPrimitiveValue", TRUE);
	return xret;
}

