summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/qtjava/QWheelEvent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qtjava/javalib/qtjava/QWheelEvent.cpp')
-rw-r--r--qtjava/javalib/qtjava/QWheelEvent.cpp165
1 files changed, 165 insertions, 0 deletions
diff --git a/qtjava/javalib/qtjava/QWheelEvent.cpp b/qtjava/javalib/qtjava/QWheelEvent.cpp
new file mode 100644
index 00000000..cff862d8
--- /dev/null
+++ b/qtjava/javalib/qtjava/QWheelEvent.cpp
@@ -0,0 +1,165 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+#include <qpoint.h>
+#include <qevent.h>
+#include <qnamespace.h>
+
+#include <qtjava/QtSupport.h>
+#include <qtjava/QWheelEvent.h>
+
+class QWheelEventJBridge : public QWheelEvent
+{
+public:
+ QWheelEventJBridge(const QPoint& arg1,int arg2,int arg3,Qt::Orientation arg4) : QWheelEvent(arg1,arg2,arg3,arg4) {};
+ QWheelEventJBridge(const QPoint& arg1,int arg2,int arg3) : QWheelEvent(arg1,arg2,arg3) {};
+ QWheelEventJBridge(const QPoint& arg1,const QPoint& arg2,int arg3,int arg4,Qt::Orientation arg5) : QWheelEvent(arg1,arg2,arg3,arg4,arg5) {};
+ QWheelEventJBridge(const QPoint& arg1,const QPoint& arg2,int arg3,int arg4) : QWheelEvent(arg1,arg2,arg3,arg4) {};
+ ~QWheelEventJBridge() {QtSupport::qtKeyDeleted(this);}
+};
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QWheelEvent_accept(JNIEnv* env, jobject obj)
+{
+ ((QWheelEvent*) QtSupport::getQt(env, obj))->accept();
+ return;
+}
+
+JNIEXPORT jint JNICALL
+Java_org_kde_qt_QWheelEvent_delta(JNIEnv* env, jobject obj)
+{
+ jint xret = (jint) ((QWheelEvent*) QtSupport::getQt(env, obj))->delta();
+ return xret;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QWheelEvent_dispose(JNIEnv* env, jobject obj)
+{
+ Java_org_kde_qt_QWheelEvent_finalize(env, obj);
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QWheelEvent_finalize(JNIEnv* env, jobject obj)
+{
+ if (QtSupport::allocatedInJavaWorld(env, obj)) {
+ delete (QWheelEvent*)QtSupport::getQt(env, obj);
+ QtSupport::setQt(env, obj, 0);
+ }
+ return;
+}
+
+JNIEXPORT jobject JNICALL
+Java_org_kde_qt_QWheelEvent_globalPos(JNIEnv* env, jobject obj)
+{
+ jobject xret = QtSupport::objectForQtKey(env, (void*)(QPoint *) &((QWheelEvent*) QtSupport::getQt(env, obj))->globalPos(), "org.kde.qt.QPoint");
+ return xret;
+}
+
+JNIEXPORT jint JNICALL
+Java_org_kde_qt_QWheelEvent_globalX(JNIEnv* env, jobject obj)
+{
+ jint xret = (jint) ((QWheelEvent*) QtSupport::getQt(env, obj))->globalX();
+ return xret;
+}
+
+JNIEXPORT jint JNICALL
+Java_org_kde_qt_QWheelEvent_globalY(JNIEnv* env, jobject obj)
+{
+ jint xret = (jint) ((QWheelEvent*) QtSupport::getQt(env, obj))->globalY();
+ return xret;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QWheelEvent_ignore(JNIEnv* env, jobject obj)
+{
+ ((QWheelEvent*) QtSupport::getQt(env, obj))->ignore();
+ return;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QWheelEvent_isAccepted(JNIEnv* env, jobject obj)
+{
+ jboolean xret = (jboolean) ((QWheelEvent*) QtSupport::getQt(env, obj))->isAccepted();
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QWheelEvent_isDisposed(JNIEnv* env, jobject obj)
+{
+ return (QtSupport::getQt(env, obj) == 0);
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QWheelEvent_newQWheelEvent__Lorg_kde_qt_QPoint_2II(JNIEnv* env, jobject obj, jobject pos, jint delta, jint state)
+{
+ if (QtSupport::getQt(env, obj) == 0) {
+ QtSupport::setQt(env, obj, new QWheelEventJBridge((const QPoint&)*(const QPoint*) QtSupport::getQt(env, pos), (int) delta, (int) state));
+ QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
+ }
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QWheelEvent_newQWheelEvent__Lorg_kde_qt_QPoint_2III(JNIEnv* env, jobject obj, jobject pos, jint delta, jint state, jint orient)
+{
+ if (QtSupport::getQt(env, obj) == 0) {
+ QtSupport::setQt(env, obj, new QWheelEventJBridge((const QPoint&)*(const QPoint*) QtSupport::getQt(env, pos), (int) delta, (int) state, (Qt::Orientation) orient));
+ QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
+ }
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QWheelEvent_newQWheelEvent__Lorg_kde_qt_QPoint_2Lorg_kde_qt_QPoint_2II(JNIEnv* env, jobject obj, jobject pos, jobject globalPos, jint delta, jint state)
+{
+ if (QtSupport::getQt(env, obj) == 0) {
+ QtSupport::setQt(env, obj, new QWheelEventJBridge((const QPoint&)*(const QPoint*) QtSupport::getQt(env, pos), (const QPoint&)*(const QPoint*) QtSupport::getQt(env, globalPos), (int) delta, (int) state));
+ QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
+ }
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QWheelEvent_newQWheelEvent__Lorg_kde_qt_QPoint_2Lorg_kde_qt_QPoint_2III(JNIEnv* env, jobject obj, jobject pos, jobject globalPos, jint delta, jint state, jint orient)
+{
+ if (QtSupport::getQt(env, obj) == 0) {
+ QtSupport::setQt(env, obj, new QWheelEventJBridge((const QPoint&)*(const QPoint*) QtSupport::getQt(env, pos), (const QPoint&)*(const QPoint*) QtSupport::getQt(env, globalPos), (int) delta, (int) state, (Qt::Orientation) orient));
+ QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
+ }
+ return;
+}
+
+JNIEXPORT jint JNICALL
+Java_org_kde_qt_QWheelEvent_orientation(JNIEnv* env, jobject obj)
+{
+ jint xret = (jint) ((QWheelEvent*) QtSupport::getQt(env, obj))->orientation();
+ return xret;
+}
+
+JNIEXPORT jobject JNICALL
+Java_org_kde_qt_QWheelEvent_pos(JNIEnv* env, jobject obj)
+{
+ jobject xret = QtSupport::objectForQtKey(env, (void*)(QPoint *) &((QWheelEvent*) QtSupport::getQt(env, obj))->pos(), "org.kde.qt.QPoint");
+ return xret;
+}
+
+JNIEXPORT jint JNICALL
+Java_org_kde_qt_QWheelEvent_state(JNIEnv* env, jobject obj)
+{
+ jint xret = (jint) ((QWheelEvent*) QtSupport::getQt(env, obj))->state();
+ return xret;
+}
+
+JNIEXPORT jint JNICALL
+Java_org_kde_qt_QWheelEvent_x(JNIEnv* env, jobject obj)
+{
+ jint xret = (jint) ((QWheelEvent*) QtSupport::getQt(env, obj))->x();
+ return xret;
+}
+
+JNIEXPORT jint JNICALL
+Java_org_kde_qt_QWheelEvent_y(JNIEnv* env, jobject obj)
+{
+ jint xret = (jint) ((QWheelEvent*) QtSupport::getQt(env, obj))->y();
+ return xret;
+}
+