You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdebindings/qtjava/javalib/qtjava/TQDragObject.cpp

173 lines
5.8 KiB

//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqpixmap.h>
#include <tqstring.h>
#include <tqpoint.h>
#include <tqdragobject.h>
#include <tqcstring.h>
#include <tqmime.h>
#include <qtjava/QtSupport.h>
#include <qtjava/TQDragObject.h>
JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QDragObject_className(JNIEnv* env, jobject obj)
{
const char* _qstring;
_qstring = ((TQDragObject*) QtSupport::getQt(env, obj))->className();
return QtSupport::fromCharString(env, (char *) _qstring);
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QDragObject_dragCopy(JNIEnv* env, jobject obj)
{
((TQDragObject*) QtSupport::getQt(env, obj))->dragCopy();
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QDragObject_dragLink(JNIEnv* env, jobject obj)
{
((TQDragObject*) QtSupport::getQt(env, obj))->dragLink();
return;
}
JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QDragObject_dragMove(JNIEnv* env, jobject obj)
{
jboolean xret = (jboolean) ((TQDragObject*) QtSupport::getQt(env, obj))->dragMove();
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QDragObject_drag(JNIEnv* env, jobject obj)
{
jboolean xret = (jboolean) ((TQDragObject*) QtSupport::getQt(env, obj))->drag();
return xret;
}
JNIEXPORT jbyteArray JNICALL
Java_org_trinitydesktop_qt_QDragObject_encodedData(JNIEnv* env, jobject obj, jstring arg1)
{
TQByteArray _qbyteArray;
static TQCString* _qstring_arg1 = 0;
_qbyteArray = ((TQMimeSource*)(TQDragObject*) QtSupport::getQt(env, obj))->encodedData((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
return QtSupport::fromTQByteArray(env, &_qbyteArray);
}
JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QDragObject_format__(JNIEnv* env, jobject obj)
{
const char* _qstring;
_qstring = ((TQMimeSource*)(TQDragObject*) QtSupport::getQt(env, obj))->format();
return QtSupport::fromCharString(env, (char *) _qstring);
}
JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QDragObject_format__I(JNIEnv* env, jobject obj, jint n)
{
const char* _qstring;
_qstring = ((TQMimeSource*)(TQDragObject*) QtSupport::getQt(env, obj))->format((int) n);
return QtSupport::fromCharString(env, (char *) _qstring);
}
JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDragObject_metaObject(JNIEnv* env, jobject obj)
{
jobject xret = QtSupport::objectForQtKey(env, (void*)((TQDragObject*) QtSupport::getQt(env, obj))->metaObject(), "org.trinitydesktop.qt.TQMetaObject");
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDragObject_pixmapHotSpot(JNIEnv* env, jobject obj)
{
jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPoint(((TQDragObject*) QtSupport::getQt(env, obj))->pixmapHotSpot()), "org.trinitydesktop.qt.TQPoint", TRUE);
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDragObject_pixmap(JNIEnv* env, jobject obj)
{
jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPixmap(((TQDragObject*) QtSupport::getQt(env, obj))->pixmap()), "org.trinitydesktop.qt.TQPixmap", TRUE);
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QDragObject_provides(JNIEnv* env, jobject obj, jstring arg1)
{
static TQCString* _qstring_arg1 = 0;
jboolean xret = (jboolean) ((TQMimeSource*)(TQDragObject*) QtSupport::getQt(env, obj))->provides((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
return xret;
}
JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QDragObject_serialNumber(JNIEnv* env, jobject obj)
{
jint xret = (jint) ((TQMimeSource*)(TQDragObject*) QtSupport::getQt(env, obj))->serialNumber();
return xret;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QDragObject_setPixmap__Lorg_trinitydesktop_qt_QPixmap_2(JNIEnv* env, jobject obj, jobject arg1)
{
((TQDragObject*) QtSupport::getQt(env, obj))->setPixmap((TQPixmap)*(TQPixmap*) QtSupport::getQt(env, arg1));
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QDragObject_setPixmap__Lorg_trinitydesktop_qt_QPixmap_2Lorg_trinitydesktop_qt_QPoint_2(JNIEnv* env, jobject obj, jobject arg1, jobject hotspot)
{
((TQDragObject*) QtSupport::getQt(env, obj))->setPixmap((TQPixmap)*(TQPixmap*) QtSupport::getQt(env, arg1), (const TQPoint&)*(const TQPoint*) QtSupport::getQt(env, hotspot));
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QDragObject_setTarget(JNIEnv* env, jclass cls, jobject arg1)
{
(void) cls;
TQDragObject::setTarget((TQWidget*) QtSupport::getQt(env, arg1));
return;
}
JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDragObject_source(JNIEnv* env, jobject obj)
{
jobject xret = QtSupport::objectForQtKey(env, (void*)((TQDragObject*) QtSupport::getQt(env, obj))->source(), "org.trinitydesktop.qt.TQWidget");
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QDragObject_target(JNIEnv* env, jclass cls)
{
(void) cls;
jobject xret = QtSupport::objectForQtKey(env, (void*)TQDragObject::target(), "org.trinitydesktop.qt.TQWidget");
return xret;
}
JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QDragObject_tr__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1)
{
TQString _qstring;
(void) cls;
static TQCString* _qstring_arg1 = 0;
_qstring = TQDragObject::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QDragObject_tr__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1, jstring arg2)
{
TQString _qstring;
(void) cls;
static TQCString* _qstring_arg1 = 0;
static TQCString* _qstring_arg2 = 0;
_qstring = TQDragObject::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT jlong JNICALL
Java_org_trinitydesktop_qt_QDragObject_mimeSource(JNIEnv* env, jobject obj)
{
return (jlong) (TQMimeSource*) (TQDragObject*) QtSupport::getQt(env, obj);
}