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

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

class UIEventJBridge : public DOM::UIEvent
{
public:
	UIEventJBridge() : DOM::UIEvent() {};
	UIEventJBridge(const DOM::UIEvent& arg1) : DOM::UIEvent(arg1) {};
	UIEventJBridge(const DOM::Event& arg1) : DOM::UIEvent(arg1) {};
};

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_UIEvent_charCode(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((DOM::UIEvent*) QtSupport::getQt(env, obj))->charCode();
	return xret;
}

JNIEXPORT jlong JNICALL
Java_org_trinitydesktop_koala_UIEvent_detail(JNIEnv* env, jobject obj)
{
	jlong xret = (jlong) ((DOM::UIEvent*) QtSupport::getQt(env, obj))->detail();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_UIEvent_initUIEvent(JNIEnv* env, jobject obj, jstring typeArg, jboolean canBubbleArg, jboolean cancelableArg, jobject viewArg, jlong detailArg)
{
static DOM::DOMString* _domstring_typeArg = 0;
	((DOM::UIEvent*) QtSupport::getQt(env, obj))->initUIEvent((DOM::DOMString)*(DOM::DOMString*) KDESupport::toDOMString(env, typeArg, &_domstring_typeArg), (bool) canBubbleArg, (bool) cancelableArg, (const DOM::AbstractView&)*(const DOM::AbstractView*) QtSupport::getQt(env, viewArg), (long) detailArg);
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_UIEvent_keyCode(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((DOM::UIEvent*) QtSupport::getQt(env, obj))->keyCode();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_UIEvent_layerX(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((DOM::UIEvent*) QtSupport::getQt(env, obj))->layerX();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_UIEvent_layerY(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((DOM::UIEvent*) QtSupport::getQt(env, obj))->layerY();
	return xret;
}

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

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

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

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_UIEvent_pageX(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((DOM::UIEvent*) QtSupport::getQt(env, obj))->pageX();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_UIEvent_pageY(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((DOM::UIEvent*) QtSupport::getQt(env, obj))->pageY();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_UIEvent_view(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::AbstractView(((DOM::UIEvent*) QtSupport::getQt(env, obj))->view()), "org.trinitydesktop.koala.AbstractView", TRUE);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_koala_UIEvent_which(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((DOM::UIEvent*) QtSupport::getQt(env, obj))->which();
	return xret;
}

