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

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_MouseEvent_altKey(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((DOM::MouseEvent*) QtSupport::getQt(env, obj))->altKey();
	return xret;
}

JNIEXPORT jshort JNICALL
Java_org_trinitydesktop_koala_MouseEvent_button(JNIEnv* env, jobject obj)
{
	jshort xret = (jshort) ((DOM::MouseEvent*) QtSupport::getQt(env, obj))->button();
	return xret;
}

JNIEXPORT jlong JNICALL
Java_org_trinitydesktop_koala_MouseEvent_clientX(JNIEnv* env, jobject obj)
{
	jlong xret = (jlong) ((DOM::MouseEvent*) QtSupport::getQt(env, obj))->clientX();
	return xret;
}

JNIEXPORT jlong JNICALL
Java_org_trinitydesktop_koala_MouseEvent_clientY(JNIEnv* env, jobject obj)
{
	jlong xret = (jlong) ((DOM::MouseEvent*) QtSupport::getQt(env, obj))->clientY();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_MouseEvent_ctrlKey(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((DOM::MouseEvent*) QtSupport::getQt(env, obj))->ctrlKey();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_MouseEvent_initMouseEvent(JNIEnv* env, jobject obj, jstring typeArg, jboolean canBubbleArg, jboolean cancelableArg, jobject viewArg, jlong detailArg, jlong screenXArg, jlong screenYArg, jlong clientXArg, jlong clientYArg, jboolean ctrlKeyArg, jboolean altKeyArg, jboolean shiftKeyArg, jboolean metaKeyArg, jshort buttonArg, jobject relatedTargetArg)
{
static DOM::DOMString* _domstring_typeArg = 0;
	((DOM::MouseEvent*) QtSupport::getQt(env, obj))->initMouseEvent((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, (long) screenXArg, (long) screenYArg, (long) clientXArg, (long) clientYArg, (bool) ctrlKeyArg, (bool) altKeyArg, (bool) shiftKeyArg, (bool) metaKeyArg, (unsigned short) buttonArg, (const DOM::Node&)*(const DOM::Node*) QtSupport::getQt(env, relatedTargetArg));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_MouseEvent_metaKey(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((DOM::MouseEvent*) QtSupport::getQt(env, obj))->metaKey();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_MouseEvent_relatedTarget(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new DOM::Node(((DOM::MouseEvent*) QtSupport::getQt(env, obj))->relatedTarget()), "org.trinitydesktop.koala.Node", TRUE);
	return xret;
}

JNIEXPORT jlong JNICALL
Java_org_trinitydesktop_koala_MouseEvent_screenX(JNIEnv* env, jobject obj)
{
	jlong xret = (jlong) ((DOM::MouseEvent*) QtSupport::getQt(env, obj))->screenX();
	return xret;
}

JNIEXPORT jlong JNICALL
Java_org_trinitydesktop_koala_MouseEvent_screenY(JNIEnv* env, jobject obj)
{
	jlong xret = (jlong) ((DOM::MouseEvent*) QtSupport::getQt(env, obj))->screenY();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_MouseEvent_shiftKey(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((DOM::MouseEvent*) QtSupport::getQt(env, obj))->shiftKey();
	return xret;
}

