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

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

class RectJBridge : public DOM::Rect
{
public:
	RectJBridge() : DOM::Rect() {};
	RectJBridge(const DOM::Rect& arg1) : DOM::Rect(arg1) {};
};

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_Rect_bottom(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::CSSPrimitiveValue(((DOM::Rect*) QtSupport::getQt(env, obj))->bottom()), "org.trinitydesktop.koala.CSSPrimitiveValue", true);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_Rect_isNull(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((DOM::Rect*) QtSupport::getQt(env, obj))->isNull();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_Rect_left(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::CSSPrimitiveValue(((DOM::Rect*) QtSupport::getQt(env, obj))->left()), "org.trinitydesktop.koala.CSSPrimitiveValue", true);
	return xret;
}

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

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_Rect_right(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::CSSPrimitiveValue(((DOM::Rect*) QtSupport::getQt(env, obj))->right()), "org.trinitydesktop.koala.CSSPrimitiveValue", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_Rect_top(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::CSSPrimitiveValue(((DOM::Rect*) QtSupport::getQt(env, obj))->top()), "org.trinitydesktop.koala.CSSPrimitiveValue", true);
	return xret;
}

