summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/qtjava/TQImage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qtjava/javalib/qtjava/TQImage.cpp')
-rw-r--r--qtjava/javalib/qtjava/TQImage.cpp908
1 files changed, 908 insertions, 0 deletions
diff --git a/qtjava/javalib/qtjava/TQImage.cpp b/qtjava/javalib/qtjava/TQImage.cpp
new file mode 100644
index 00000000..32cf21e6
--- /dev/null
+++ b/qtjava/javalib/qtjava/TQImage.cpp
@@ -0,0 +1,908 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+#include <tqrect.h>
+#include <tqstrlist.h>
+#include <tqstring.h>
+#include <tqwmatrix.h>
+#include <tqstringlist.h>
+#include <tqpoint.h>
+#include <tqsize.h>
+#include <tqwindowdefs.h>
+#include <tqimage.h>
+#include <tqcstring.h>
+
+#include <qtjava/QtSupport.h>
+#include <qtjava/TQImage.h>
+
+class TQImageJBridge : public TQImage
+{
+public:
+ TQImageJBridge() : TQImage() {};
+ TQImageJBridge(int arg1,int arg2,int arg3,int arg4,TQImage::Endian arg5) : TQImage(arg1,arg2,arg3,arg4,arg5) {};
+ TQImageJBridge(int arg1,int arg2,int arg3,int arg4) : TQImage(arg1,arg2,arg3,arg4) {};
+ TQImageJBridge(int arg1,int arg2,int arg3) : TQImage(arg1,arg2,arg3) {};
+ TQImageJBridge(const TQSize& arg1,int arg2,int arg3,TQImage::Endian arg4) : TQImage(arg1,arg2,arg3,arg4) {};
+ TQImageJBridge(const TQSize& arg1,int arg2,int arg3) : TQImage(arg1,arg2,arg3) {};
+ TQImageJBridge(const TQSize& arg1,int arg2) : TQImage(arg1,arg2) {};
+ TQImageJBridge(const TQString& arg1,const char* arg2) : TQImage(arg1,arg2) {};
+ TQImageJBridge(const TQString& arg1) : TQImage(arg1) {};
+ TQImageJBridge(const TQByteArray& arg1) : TQImage(arg1) {};
+ TQImageJBridge(uchar* arg1,int arg2,int arg3,int arg4,TQRgb* arg5,int arg6,TQImage::Endian arg7) : TQImage(arg1,arg2,arg3,arg4,arg5,arg6,arg7) {};
+ TQImageJBridge(const TQImage& arg1) : TQImage(arg1) {};
+ ~TQImageJBridge() {QtSupport::qtKeyDeleted(this);}
+};
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QImage_allGray(JNIEnv* env, jobject obj)
+{
+ jboolean xret = (jboolean) ((TQImage*) QtSupport::getQt(env, obj))->allGray();
+ return xret;
+}
+
+JNIEXPORT jint JNICALL
+Java_org_kde_qt_QImage_bitOrder(JNIEnv* env, jobject obj)
+{
+ jint xret = (jint) ((TQImage*) QtSupport::getQt(env, obj))->bitOrder();
+ return xret;
+}
+
+JNIEXPORT jint JNICALL
+Java_org_kde_qt_QImage_bytesPerLine(JNIEnv* env, jobject obj)
+{
+ jint xret = (jint) ((TQImage*) QtSupport::getQt(env, obj))->bytesPerLine();
+ return xret;
+}
+
+JNIEXPORT jint JNICALL
+Java_org_kde_qt_QImage_color(JNIEnv* env, jobject obj, jint i)
+{
+ jint xret = (jint) ((TQImage*) QtSupport::getQt(env, obj))->color((int) i);
+ return xret;
+}
+
+JNIEXPORT jobject JNICALL
+Java_org_kde_qt_QImage_convertBitOrder(JNIEnv* env, jobject obj, jint arg1)
+{
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->convertBitOrder((TQImage::Endian) arg1)), "org.kde.qt.TQImage", TRUE);
+ return xret;
+}
+
+JNIEXPORT jobject JNICALL
+Java_org_kde_qt_QImage_convertDepthWithPalette__I_3II(JNIEnv* env, jobject obj, jint arg1, jintArray p, jint pc)
+{
+ int* _int_p = QtSupport::toIntPtr(env, p);
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->convertDepthWithPalette((int) arg1, (TQRgb*) _int_p, (int) pc)), "org.kde.qt.TQImage", TRUE);
+ env->SetIntArrayRegion(p, 0, 1, (jint *) _int_p);
+ return xret;
+}
+
+JNIEXPORT jobject JNICALL
+Java_org_kde_qt_QImage_convertDepthWithPalette__I_3III(JNIEnv* env, jobject obj, jint arg1, jintArray p, jint pc, jint cf)
+{
+ int* _int_p = QtSupport::toIntPtr(env, p);
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->convertDepthWithPalette((int) arg1, (TQRgb*) _int_p, (int) pc, (int) cf)), "org.kde.qt.TQImage", TRUE);
+ env->SetIntArrayRegion(p, 0, 1, (jint *) _int_p);
+ return xret;
+}
+
+JNIEXPORT jobject JNICALL
+Java_org_kde_qt_QImage_convertDepth__I(JNIEnv* env, jobject obj, jint arg1)
+{
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->convertDepth((int) arg1)), "org.kde.qt.TQImage", TRUE);
+ return xret;
+}
+
+JNIEXPORT jobject JNICALL
+Java_org_kde_qt_QImage_convertDepth__II(JNIEnv* env, jobject obj, jint arg1, jint conversion_flags)
+{
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->convertDepth((int) arg1, (int) conversion_flags)), "org.kde.qt.TQImage", TRUE);
+ return xret;
+}
+
+JNIEXPORT jobject JNICALL
+Java_org_kde_qt_QImage_copy__(JNIEnv* env, jobject obj)
+{
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->copy()), "org.kde.qt.TQImage", TRUE);
+ return xret;
+}
+
+JNIEXPORT jobject JNICALL
+Java_org_kde_qt_QImage_copy__IIII(JNIEnv* env, jobject obj, jint x, jint y, jint w, jint h)
+{
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->copy((int) x, (int) y, (int) w, (int) h)), "org.kde.qt.TQImage", TRUE);
+ return xret;
+}
+
+JNIEXPORT jobject JNICALL
+Java_org_kde_qt_QImage_copy__IIIII(JNIEnv* env, jobject obj, jint x, jint y, jint w, jint h, jint conversion_flags)
+{
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->copy((int) x, (int) y, (int) w, (int) h, (int) conversion_flags)), "org.kde.qt.TQImage", TRUE);
+ return xret;
+}
+
+JNIEXPORT jobject JNICALL
+Java_org_kde_qt_QImage_copy__Lorg_kde_qt_QRect_2(JNIEnv* env, jobject obj, jobject arg1)
+{
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->copy((const TQRect&)*(const TQRect*) QtSupport::getQt(env, arg1))), "org.kde.qt.TQImage", TRUE);
+ return xret;
+}
+
+JNIEXPORT jobject JNICALL
+Java_org_kde_qt_QImage_createAlphaMask__(JNIEnv* env, jobject obj)
+{
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->createAlphaMask()), "org.kde.qt.TQImage", TRUE);
+ return xret;
+}
+
+JNIEXPORT jobject JNICALL
+Java_org_kde_qt_QImage_createAlphaMask__I(JNIEnv* env, jobject obj, jint conversion_flags)
+{
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->createAlphaMask((int) conversion_flags)), "org.kde.qt.TQImage", TRUE);
+ return xret;
+}
+
+JNIEXPORT jobject JNICALL
+Java_org_kde_qt_QImage_createHeuristicMask__(JNIEnv* env, jobject obj)
+{
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->createHeuristicMask()), "org.kde.qt.TQImage", TRUE);
+ return xret;
+}
+
+JNIEXPORT jobject JNICALL
+Java_org_kde_qt_QImage_createHeuristicMask__Z(JNIEnv* env, jobject obj, jboolean clipTight)
+{
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->createHeuristicMask((bool) clipTight)), "org.kde.qt.TQImage", TRUE);
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QImage_create__III(JNIEnv* env, jobject obj, jint width, jint height, jint depth)
+{
+ jboolean xret = (jboolean) ((TQImage*) QtSupport::getQt(env, obj))->create((int) width, (int) height, (int) depth);
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QImage_create__IIII(JNIEnv* env, jobject obj, jint width, jint height, jint depth, jint numColors)
+{
+ jboolean xret = (jboolean) ((TQImage*) QtSupport::getQt(env, obj))->create((int) width, (int) height, (int) depth, (int) numColors);
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QImage_create__IIIII(JNIEnv* env, jobject obj, jint width, jint height, jint depth, jint numColors, jint bitOrder)
+{
+ jboolean xret = (jboolean) ((TQImage*) QtSupport::getQt(env, obj))->create((int) width, (int) height, (int) depth, (int) numColors, (TQImage::Endian) bitOrder);
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QImage_create__Lorg_kde_qt_QSize_2I(JNIEnv* env, jobject obj, jobject arg1, jint depth)
+{
+ jboolean xret = (jboolean) ((TQImage*) QtSupport::getQt(env, obj))->create((const TQSize&)*(const TQSize*) QtSupport::getQt(env, arg1), (int) depth);
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QImage_create__Lorg_kde_qt_QSize_2II(JNIEnv* env, jobject obj, jobject arg1, jint depth, jint numColors)
+{
+ jboolean xret = (jboolean) ((TQImage*) QtSupport::getQt(env, obj))->create((const TQSize&)*(const TQSize*) QtSupport::getQt(env, arg1), (int) depth, (int) numColors);
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QImage_create__Lorg_kde_qt_QSize_2III(JNIEnv* env, jobject obj, jobject arg1, jint depth, jint numColors, jint bitOrder)
+{
+ jboolean xret = (jboolean) ((TQImage*) QtSupport::getQt(env, obj))->create((const TQSize&)*(const TQSize*) QtSupport::getQt(env, arg1), (int) depth, (int) numColors, (TQImage::Endian) bitOrder);
+ return xret;
+}
+
+JNIEXPORT jint JNICALL
+Java_org_kde_qt_QImage_depth(JNIEnv* env, jobject obj)
+{
+ jint xret = (jint) ((TQImage*) QtSupport::getQt(env, obj))->depth();
+ return xret;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QImage_detach(JNIEnv* env, jobject obj)
+{
+ ((TQImage*) QtSupport::getQt(env, obj))->detach();
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QImage_dispose(JNIEnv* env, jobject obj)
+{
+ Java_org_kde_qt_QImage_finalize(env, obj);
+ return;
+}
+
+JNIEXPORT jint JNICALL
+Java_org_kde_qt_QImage_dotsPerMeterX(JNIEnv* env, jobject obj)
+{
+ jint xret = (jint) ((TQImage*) QtSupport::getQt(env, obj))->dotsPerMeterX();
+ return xret;
+}
+
+JNIEXPORT jint JNICALL
+Java_org_kde_qt_QImage_dotsPerMeterY(JNIEnv* env, jobject obj)
+{
+ jint xret = (jint) ((TQImage*) QtSupport::getQt(env, obj))->dotsPerMeterY();
+ return xret;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QImage_fill(JNIEnv* env, jobject obj, jint pixel)
+{
+ ((TQImage*) QtSupport::getQt(env, obj))->fill((uint) pixel);
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QImage_finalize(JNIEnv* env, jobject obj)
+{
+ if (QtSupport::allocatedInJavaWorld(env, obj)) {
+ delete (TQImage*)QtSupport::getQt(env, obj);
+ QtSupport::setQt(env, obj, 0);
+ }
+ return;
+}
+
+JNIEXPORT jobject JNICALL
+Java_org_kde_qt_QImage_fromMimeSource(JNIEnv* env, jclass cls, jstring abs_name)
+{
+ (void) cls;
+static TQString* _qstring_abs_name = 0;
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(TQImageJBridge::fromMimeSource((const TQString&)*(TQString*) QtSupport::toTQString(env, abs_name, &_qstring_abs_name))), "org.kde.qt.TQImage", TRUE);
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QImage_hasAlphaBuffer(JNIEnv* env, jobject obj)
+{
+ jboolean xret = (jboolean) ((TQImage*) QtSupport::getQt(env, obj))->hasAlphaBuffer();
+ return xret;
+}
+
+JNIEXPORT jint JNICALL
+Java_org_kde_qt_QImage_height(JNIEnv* env, jobject obj)
+{
+ jint xret = (jint) ((TQImage*) QtSupport::getQt(env, obj))->height();
+ return xret;
+}
+
+JNIEXPORT jstring JNICALL
+Java_org_kde_qt_QImage_imageFormat(JNIEnv* env, jclass cls, jstring fileName)
+{
+ const char* _qstring;
+ (void) cls;
+static TQString* _qstring_fileName = 0;
+ _qstring = TQImageJBridge::imageFormat((const TQString&)*(TQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName));
+ return QtSupport::fromCharString(env, (char *) _qstring);
+}
+
+JNIEXPORT jobject JNICALL
+Java_org_kde_qt_QImage_inputFormatList(JNIEnv* env, jclass cls)
+{
+ TQStringList _qlist;
+ (void) cls;
+ _qlist = TQImageJBridge::inputFormatList();
+ return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
+}
+
+JNIEXPORT jobject JNICALL
+Java_org_kde_qt_QImage_inputFormats(JNIEnv* env, jclass cls)
+{
+ TQStrList _qlist;
+ (void) cls;
+ _qlist = TQImageJBridge::inputFormats();
+ return (jobject) QtSupport::arrayWithTQStrList(env, (TQStrList*) &_qlist);
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QImage_invertPixels__(JNIEnv* env, jobject obj)
+{
+ ((TQImage*) QtSupport::getQt(env, obj))->invertPixels();
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QImage_invertPixels__Z(JNIEnv* env, jobject obj, jboolean invertAlpha)
+{
+ ((TQImage*) QtSupport::getQt(env, obj))->invertPixels((bool) invertAlpha);
+ return;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QImage_isDisposed(JNIEnv* env, jobject obj)
+{
+ return (QtSupport::getQt(env, obj) == 0);
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QImage_isGrayscale(JNIEnv* env, jobject obj)
+{
+ jboolean xret = (jboolean) ((TQImage*) QtSupport::getQt(env, obj))->isGrayscale();
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QImage_isNull(JNIEnv* env, jobject obj)
+{
+ jboolean xret = (jboolean) ((TQImage*) QtSupport::getQt(env, obj))->isNull();
+ return xret;
+}
+
+JNIEXPORT jobject JNICALL
+Java_org_kde_qt_QImage_jumpTable(JNIEnv* env, jobject obj)
+{
+ uchar** _qlist;
+ _qlist = ((TQImage*) QtSupport::getQt(env, obj))->jumpTable();
+ return (jobject) _qlist;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QImage_loadFromData___3B(JNIEnv* env, jobject obj, jbyteArray data)
+{
+static TQByteArray* _qbyteArray_data = 0;
+ jboolean xret = (jboolean) ((TQImage*) QtSupport::getQt(env, obj))->loadFromData((TQByteArray)*(TQByteArray*) QtSupport::toTQByteArray(env, data, &_qbyteArray_data));
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QImage_loadFromData___3BLjava_lang_String_2(JNIEnv* env, jobject obj, jbyteArray data, jstring format)
+{
+static TQByteArray* _qbyteArray_data = 0;
+static TQCString* _qstring_format = 0;
+ jboolean xret = (jboolean) ((TQImage*) QtSupport::getQt(env, obj))->loadFromData((TQByteArray)*(TQByteArray*) QtSupport::toTQByteArray(env, data, &_qbyteArray_data), (const char*) QtSupport::toCharString(env, format, &_qstring_format));
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QImage_loadFromData___3CI(JNIEnv* env, jobject obj, jcharArray buf, jint len)
+{
+static TQByteArray* _qbytearray_buf = 0;
+ jboolean xret = (jboolean) ((TQImage*) QtSupport::getQt(env, obj))->loadFromData((const uchar*) QtSupport::toUcharArray(env, buf, &_qbytearray_buf), (uint) len);
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QImage_loadFromData___3CILjava_lang_String_2(JNIEnv* env, jobject obj, jcharArray buf, jint len, jstring format)
+{
+static TQByteArray* _qbytearray_buf = 0;
+static TQCString* _qstring_format = 0;
+ jboolean xret = (jboolean) ((TQImage*) QtSupport::getQt(env, obj))->loadFromData((const uchar*) QtSupport::toUcharArray(env, buf, &_qbytearray_buf), (uint) len, (const char*) QtSupport::toCharString(env, format, &_qstring_format));
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QImage_load__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring fileName)
+{
+static TQString* _qstring_fileName = 0;
+ jboolean xret = (jboolean) ((TQImage*) QtSupport::getQt(env, obj))->load((const TQString&)*(TQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName));
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QImage_load__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring fileName, jstring format)
+{
+static TQString* _qstring_fileName = 0;
+static TQCString* _qstring_format = 0;
+ jboolean xret = (jboolean) ((TQImage*) QtSupport::getQt(env, obj))->load((const TQString&)*(TQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName), (const char*) QtSupport::toCharString(env, format, &_qstring_format));
+ return xret;
+}
+
+JNIEXPORT jobject JNICALL
+Java_org_kde_qt_QImage_mirror__(JNIEnv* env, jobject obj)
+{
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->mirror()), "org.kde.qt.TQImage", TRUE);
+ return xret;
+}
+
+JNIEXPORT jobject JNICALL
+Java_org_kde_qt_QImage_mirror__ZZ(JNIEnv* env, jobject obj, jboolean horizontally, jboolean vertically)
+{
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->mirror((bool) horizontally, (bool) vertically)), "org.kde.qt.TQImage", TRUE);
+ return xret;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QImage_newTQImage__(JNIEnv* env, jobject obj)
+{
+ if (QtSupport::getQt(env, obj) == 0) {
+ QtSupport::setQt(env, obj, new TQImageJBridge());
+ QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
+ }
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QImage_newTQImage__III(JNIEnv* env, jobject obj, jint width, jint height, jint depth)
+{
+ if (QtSupport::getQt(env, obj) == 0) {
+ QtSupport::setQt(env, obj, new TQImageJBridge((int) width, (int) height, (int) depth));
+ QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
+ }
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QImage_newTQImage__IIII(JNIEnv* env, jobject obj, jint width, jint height, jint depth, jint numColors)
+{
+ if (QtSupport::getQt(env, obj) == 0) {
+ QtSupport::setQt(env, obj, new TQImageJBridge((int) width, (int) height, (int) depth, (int) numColors));
+ QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
+ }
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QImage_newTQImage__IIIII(JNIEnv* env, jobject obj, jint width, jint height, jint depth, jint numColors, jint bitOrder)
+{
+ if (QtSupport::getQt(env, obj) == 0) {
+ QtSupport::setQt(env, obj, new TQImageJBridge((int) width, (int) height, (int) depth, (int) numColors, (TQImage::Endian) bitOrder));
+ QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
+ }
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QImage_newTQImage__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring fileName)
+{
+static TQString* _qstring_fileName = 0;
+ if (QtSupport::getQt(env, obj) == 0) {
+ QtSupport::setQt(env, obj, new TQImageJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName)));
+ QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
+ }
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QImage_newTQImage__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring fileName, jstring format)
+{
+static TQString* _qstring_fileName = 0;
+static TQCString* _qstring_format = 0;
+ if (QtSupport::getQt(env, obj) == 0) {
+ QtSupport::setQt(env, obj, new TQImageJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName), (const char*) QtSupport::toCharString(env, format, &_qstring_format)));
+ QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
+ }
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QImage_newTQImage__Lorg_kde_qt_QImage_2(JNIEnv* env, jobject obj, jobject arg1)
+{
+ if (QtSupport::getQt(env, obj) == 0) {
+ QtSupport::setQt(env, obj, new TQImageJBridge((const TQImage&)*(const TQImage*) QtSupport::getQt(env, arg1)));
+ QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
+ }
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QImage_newTQImage__Lorg_kde_qt_QSize_2I(JNIEnv* env, jobject obj, jobject arg1, jint depth)
+{
+ if (QtSupport::getQt(env, obj) == 0) {
+ QtSupport::setQt(env, obj, new TQImageJBridge((const TQSize&)*(const TQSize*) QtSupport::getQt(env, arg1), (int) depth));
+ QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
+ }
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QImage_newTQImage__Lorg_kde_qt_QSize_2II(JNIEnv* env, jobject obj, jobject arg1, jint depth, jint numColors)
+{
+ if (QtSupport::getQt(env, obj) == 0) {
+ QtSupport::setQt(env, obj, new TQImageJBridge((const TQSize&)*(const TQSize*) QtSupport::getQt(env, arg1), (int) depth, (int) numColors));
+ QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
+ }
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QImage_newTQImage__Lorg_kde_qt_QSize_2III(JNIEnv* env, jobject obj, jobject arg1, jint depth, jint numColors, jint bitOrder)
+{
+ if (QtSupport::getQt(env, obj) == 0) {
+ QtSupport::setQt(env, obj, new TQImageJBridge((const TQSize&)*(const TQSize*) QtSupport::getQt(env, arg1), (int) depth, (int) numColors, (TQImage::Endian) bitOrder));
+ QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
+ }
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QImage_newTQImage___3B(JNIEnv* env, jobject obj, jbyteArray data)
+{
+static TQByteArray* _qbyteArray_data = 0;
+ if (QtSupport::getQt(env, obj) == 0) {
+ QtSupport::setQt(env, obj, new TQImageJBridge((const TQByteArray&)*(TQByteArray*) QtSupport::toTQByteArray(env, data, &_qbyteArray_data)));
+ QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
+ }
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QImage_newTQImage___3CIII_3III(JNIEnv* env, jobject obj, jcharArray data, jint w, jint h, jint depth, jintArray colortable, jint numColors, jint bitOrder)
+{
+static TQByteArray* _qbytearray_data = 0;
+ int* _int_colortable = QtSupport::toIntPtr(env, colortable);
+ if (QtSupport::getQt(env, obj) == 0) {
+ QtSupport::setQt(env, obj, new TQImageJBridge((uchar*) QtSupport::toUcharArray(env, data, &_qbytearray_data), (int) w, (int) h, (int) depth, (TQRgb*) _int_colortable, (int) numColors, (TQImage::Endian) bitOrder));
+ QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
+ env->SetIntArrayRegion(colortable, 0, 1, (jint *) _int_colortable);
+ }
+ return;
+}
+
+JNIEXPORT jint JNICALL
+Java_org_kde_qt_QImage_numBytes(JNIEnv* env, jobject obj)
+{
+ jint xret = (jint) ((TQImage*) QtSupport::getQt(env, obj))->numBytes();
+ return xret;
+}
+
+JNIEXPORT jint JNICALL
+Java_org_kde_qt_QImage_numColors(JNIEnv* env, jobject obj)
+{
+ jint xret = (jint) ((TQImage*) QtSupport::getQt(env, obj))->numColors();
+ return xret;
+}
+
+JNIEXPORT jobject JNICALL
+Java_org_kde_qt_QImage_offset(JNIEnv* env, jobject obj)
+{
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPoint(((TQImage*) QtSupport::getQt(env, obj))->offset()), "org.kde.qt.TQPoint", TRUE);
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QImage_op_1equals(JNIEnv* env, jobject obj, jobject arg1)
+{
+ jboolean xret = (jboolean) ((TQImage*) QtSupport::getQt(env, obj))->operator==((const TQImage&)*(const TQImage*) QtSupport::getQt(env, arg1));
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QImage_op_1not_1equals(JNIEnv* env, jobject obj, jobject arg1)
+{
+ jboolean xret = (jboolean) ((TQImage*) QtSupport::getQt(env, obj))->operator!=((const TQImage&)*(const TQImage*) QtSupport::getQt(env, arg1));
+ return xret;
+}
+
+JNIEXPORT jobject JNICALL
+Java_org_kde_qt_QImage_outputFormatList(JNIEnv* env, jclass cls)
+{
+ TQStringList _qlist;
+ (void) cls;
+ _qlist = TQImageJBridge::outputFormatList();
+ return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
+}
+
+JNIEXPORT jobject JNICALL
+Java_org_kde_qt_QImage_outputFormats(JNIEnv* env, jclass cls)
+{
+ TQStrList _qlist;
+ (void) cls;
+ _qlist = TQImageJBridge::outputFormats();
+ return (jobject) QtSupport::arrayWithTQStrList(env, (TQStrList*) &_qlist);
+}
+
+JNIEXPORT jint JNICALL
+Java_org_kde_qt_QImage_pixelIndex(JNIEnv* env, jobject obj, jint x, jint y)
+{
+ jint xret = (jint) ((TQImage*) QtSupport::getQt(env, obj))->pixelIndex((int) x, (int) y);
+ return xret;
+}
+
+JNIEXPORT jint JNICALL
+Java_org_kde_qt_QImage_pixel(JNIEnv* env, jobject obj, jint x, jint y)
+{
+ jint xret = (jint) ((TQImage*) QtSupport::getQt(env, obj))->pixel((int) x, (int) y);
+ return xret;
+}
+
+JNIEXPORT jobject JNICALL
+Java_org_kde_qt_QImage_rect(JNIEnv* env, jobject obj)
+{
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TQRect(((TQImage*) QtSupport::getQt(env, obj))->rect()), "org.kde.qt.TQRect", TRUE);
+ return xret;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QImage_reset(JNIEnv* env, jobject obj)
+{
+ ((TQImage*) QtSupport::getQt(env, obj))->reset();
+ return;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QImage_save__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring fileName, jstring format)
+{
+static TQString* _qstring_fileName = 0;
+static TQCString* _qstring_format = 0;
+ jboolean xret = (jboolean) ((TQImage*) QtSupport::getQt(env, obj))->save((const TQString&)*(TQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName), (const char*) QtSupport::toCharString(env, format, &_qstring_format));
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QImage_save__Ljava_lang_String_2Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring fileName, jstring format, jint quality)
+{
+static TQString* _qstring_fileName = 0;
+static TQCString* _qstring_format = 0;
+ jboolean xret = (jboolean) ((TQImage*) QtSupport::getQt(env, obj))->save((const TQString&)*(TQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName), (const char*) QtSupport::toCharString(env, format, &_qstring_format), (int) quality);
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QImage_save__Lorg_kde_qt_QIODeviceInterface_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject device, jstring format)
+{
+static TQCString* _qstring_format = 0;
+ jboolean xret = (jboolean) ((TQImage*) QtSupport::getQt(env, obj))->save((TQIODevice*) QtSupport::getQt(env, device), (const char*) QtSupport::toCharString(env, format, &_qstring_format));
+ return xret;
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QImage_save__Lorg_kde_qt_QIODeviceInterface_2Ljava_lang_String_2I(JNIEnv* env, jobject obj, jobject device, jstring format, jint quality)
+{
+static TQCString* _qstring_format = 0;
+ jboolean xret = (jboolean) ((TQImage*) QtSupport::getQt(env, obj))->save((TQIODevice*) QtSupport::getQt(env, device), (const char*) QtSupport::toCharString(env, format, &_qstring_format), (int) quality);
+ return xret;
+}
+
+JNIEXPORT jobject JNICALL
+Java_org_kde_qt_QImage_scaleHeight(JNIEnv* env, jobject obj, jint h)
+{
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->scaleHeight((int) h)), "org.kde.qt.TQImage", TRUE);
+ return xret;
+}
+
+JNIEXPORT jobject JNICALL
+Java_org_kde_qt_QImage_scaleWidth(JNIEnv* env, jobject obj, jint w)
+{
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->scaleWidth((int) w)), "org.kde.qt.TQImage", TRUE);
+ return xret;
+}
+
+JNIEXPORT jobject JNICALL
+Java_org_kde_qt_QImage_scale__II(JNIEnv* env, jobject obj, jint w, jint h)
+{
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->scale((int) w, (int) h)), "org.kde.qt.TQImage", TRUE);
+ return xret;
+}
+
+JNIEXPORT jobject JNICALL
+Java_org_kde_qt_QImage_scale__III(JNIEnv* env, jobject obj, jint w, jint h, jint mode)
+{
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->scale((int) w, (int) h, (TQImage::ScaleMode) mode)), "org.kde.qt.TQImage", TRUE);
+ return xret;
+}
+
+JNIEXPORT jobject JNICALL
+Java_org_kde_qt_QImage_scale__Lorg_kde_qt_QSize_2(JNIEnv* env, jobject obj, jobject s)
+{
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->scale((const TQSize&)*(const TQSize*) QtSupport::getQt(env, s))), "org.kde.qt.TQImage", TRUE);
+ return xret;
+}
+
+JNIEXPORT jobject JNICALL
+Java_org_kde_qt_QImage_scale__Lorg_kde_qt_QSize_2I(JNIEnv* env, jobject obj, jobject s, jint mode)
+{
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->scale((const TQSize&)*(const TQSize*) QtSupport::getQt(env, s), (TQImage::ScaleMode) mode)), "org.kde.qt.TQImage", TRUE);
+ return xret;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QImage_setAlphaBuffer(JNIEnv* env, jobject obj, jboolean arg1)
+{
+ ((TQImage*) QtSupport::getQt(env, obj))->setAlphaBuffer((bool) arg1);
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QImage_setColor(JNIEnv* env, jobject obj, jint i, jint c)
+{
+ ((TQImage*) QtSupport::getQt(env, obj))->setColor((int) i, (TQRgb) c);
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QImage_setDotsPerMeterX(JNIEnv* env, jobject obj, jint arg1)
+{
+ ((TQImage*) QtSupport::getQt(env, obj))->setDotsPerMeterX((int) arg1);
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QImage_setDotsPerMeterY(JNIEnv* env, jobject obj, jint arg1)
+{
+ ((TQImage*) QtSupport::getQt(env, obj))->setDotsPerMeterY((int) arg1);
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QImage_setNumColors(JNIEnv* env, jobject obj, jint arg1)
+{
+ ((TQImage*) QtSupport::getQt(env, obj))->setNumColors((int) arg1);
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QImage_setOffset(JNIEnv* env, jobject obj, jobject arg1)
+{
+ ((TQImage*) QtSupport::getQt(env, obj))->setOffset((const TQPoint&)*(const TQPoint*) QtSupport::getQt(env, arg1));
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QImage_setPixel(JNIEnv* env, jobject obj, jint x, jint y, jint index_or_rgb)
+{
+ ((TQImage*) QtSupport::getQt(env, obj))->setPixel((int) x, (int) y, (uint) index_or_rgb);
+ return;
+}
+
+JNIEXPORT void JNICALL
+Java_org_kde_qt_QImage_setText(JNIEnv* env, jobject obj, jstring key, jstring lang, jstring arg3)
+{
+static TQCString* _qstring_key = 0;
+static TQCString* _qstring_lang = 0;
+static TQString* _qstring_arg3 = 0;
+ ((TQImage*) QtSupport::getQt(env, obj))->setText((const char*) QtSupport::toCharString(env, key, &_qstring_key), (const char*) QtSupport::toCharString(env, lang, &_qstring_lang), (const TQString&)*(TQString*) QtSupport::toTQString(env, arg3, &_qstring_arg3));
+ return;
+}
+
+JNIEXPORT jobject JNICALL
+Java_org_kde_qt_QImage_size(JNIEnv* env, jobject obj)
+{
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TQSize(((TQImage*) QtSupport::getQt(env, obj))->size()), "org.kde.qt.TQSize", TRUE);
+ return xret;
+}
+
+JNIEXPORT jobject JNICALL
+Java_org_kde_qt_QImage_smoothScale__II(JNIEnv* env, jobject obj, jint w, jint h)
+{
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->smoothScale((int) w, (int) h)), "org.kde.qt.TQImage", TRUE);
+ return xret;
+}
+
+JNIEXPORT jobject JNICALL
+Java_org_kde_qt_QImage_smoothScale__III(JNIEnv* env, jobject obj, jint w, jint h, jint mode)
+{
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->smoothScale((int) w, (int) h, (TQImage::ScaleMode) mode)), "org.kde.qt.TQImage", TRUE);
+ return xret;
+}
+
+JNIEXPORT jobject JNICALL
+Java_org_kde_qt_QImage_smoothScale__Lorg_kde_qt_QSize_2(JNIEnv* env, jobject obj, jobject s)
+{
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->smoothScale((const TQSize&)*(const TQSize*) QtSupport::getQt(env, s))), "org.kde.qt.TQImage", TRUE);
+ return xret;
+}
+
+JNIEXPORT jobject JNICALL
+Java_org_kde_qt_QImage_smoothScale__Lorg_kde_qt_QSize_2I(JNIEnv* env, jobject obj, jobject s, jint mode)
+{
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->smoothScale((const TQSize&)*(const TQSize*) QtSupport::getQt(env, s), (TQImage::ScaleMode) mode)), "org.kde.qt.TQImage", TRUE);
+ return xret;
+}
+
+JNIEXPORT jobject JNICALL
+Java_org_kde_qt_QImage_swapRGB(JNIEnv* env, jobject obj)
+{
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->swapRGB()), "org.kde.qt.TQImage", TRUE);
+ return xret;
+}
+
+JNIEXPORT jint JNICALL
+Java_org_kde_qt_QImage_systemBitOrder(JNIEnv* env, jclass cls)
+{
+ (void) cls;
+ (void) env;
+ jint xret = (jint) TQImageJBridge::systemBitOrder();
+ return xret;
+}
+
+JNIEXPORT jint JNICALL
+Java_org_kde_qt_QImage_systemByteOrder(JNIEnv* env, jclass cls)
+{
+ (void) cls;
+ (void) env;
+ jint xret = (jint) TQImageJBridge::systemByteOrder();
+ return xret;
+}
+
+JNIEXPORT jobject JNICALL
+Java_org_kde_qt_QImage_textKeys(JNIEnv* env, jobject obj)
+{
+ TQStringList _qlist;
+ _qlist = ((TQImage*) QtSupport::getQt(env, obj))->textKeys();
+ return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
+}
+
+JNIEXPORT jobject JNICALL
+Java_org_kde_qt_QImage_textLanguages(JNIEnv* env, jobject obj)
+{
+ TQStringList _qlist;
+ _qlist = ((TQImage*) QtSupport::getQt(env, obj))->textLanguages();
+ return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
+}
+
+JNIEXPORT jstring JNICALL
+Java_org_kde_qt_QImage_text__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring key)
+{
+ TQString _qstring;
+static TQCString* _qstring_key = 0;
+ _qstring = ((TQImage*) QtSupport::getQt(env, obj))->text((const char*) QtSupport::toCharString(env, key, &_qstring_key));
+ return QtSupport::fromTQString(env, &_qstring);
+}
+
+JNIEXPORT jstring JNICALL
+Java_org_kde_qt_QImage_text__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring key, jstring lang)
+{
+ TQString _qstring;
+static TQCString* _qstring_key = 0;
+static TQCString* _qstring_lang = 0;
+ _qstring = ((TQImage*) QtSupport::getQt(env, obj))->text((const char*) QtSupport::toCharString(env, key, &_qstring_key), (const char*) QtSupport::toCharString(env, lang, &_qstring_lang));
+ return QtSupport::fromTQString(env, &_qstring);
+}
+
+JNIEXPORT jstring JNICALL
+Java_org_kde_qt_QImage_text__Lorg_kde_qt_QImageTextKeyLang_2(JNIEnv* env, jobject obj, jobject arg1)
+{
+ TQString _qstring;
+ _qstring = ((TQImage*) QtSupport::getQt(env, obj))->text((const TQImageTextKeyLang&)*(const TQImageTextKeyLang*) QtSupport::getQt(env, arg1));
+ return QtSupport::fromTQString(env, &_qstring);
+}
+
+JNIEXPORT jboolean JNICALL
+Java_org_kde_qt_QImage_valid(JNIEnv* env, jobject obj, jint x, jint y)
+{
+ jboolean xret = (jboolean) ((TQImage*) QtSupport::getQt(env, obj))->valid((int) x, (int) y);
+ return xret;
+}
+
+JNIEXPORT jint JNICALL
+Java_org_kde_qt_QImage_width(JNIEnv* env, jobject obj)
+{
+ jint xret = (jint) ((TQImage*) QtSupport::getQt(env, obj))->width();
+ return xret;
+}
+
+JNIEXPORT jobject JNICALL
+Java_org_kde_qt_QImage_xForm(JNIEnv* env, jobject obj, jobject matrix)
+{
+ jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TQImage*) QtSupport::getQt(env, obj))->xForm((const TQWMatrix&)*(const TQWMatrix*) QtSupport::getQt(env, matrix))), "org.kde.qt.TQImage", TRUE);
+ return xret;
+}
+
+JNIEXPORT jbyteArray JNICALL
+Java_org_kde_qt_QImage_bits(JNIEnv *env, jobject obj)
+{
+static uchar * ptr = 0;
+ ptr = ((TQImageJBridge*) QtSupport::getQt(env, obj))->bits();
+ int len = ((TQImageJBridge*) QtSupport::getQt(env, obj))->numBytes();
+ jbyteArray result = env->NewByteArray(len);
+ env->SetByteArrayRegion(result, 0, len, (jbyte *) ptr);
+ return result;
+}
+
+JNIEXPORT jbyteArray JNICALL
+Java_org_kde_qt_QImage_scanLine(JNIEnv *env, jobject obj, jint arg1)
+{
+static uchar * ptr = 0;
+ ptr = ((TQImageJBridge*) QtSupport::getQt(env, obj))->scanLine(arg1);
+ int len = ((TQImageJBridge*) QtSupport::getQt(env, obj))->numBytes() / ((TQImageJBridge*) QtSupport::getQt(env, obj))->height();
+ jbyteArray result = env->NewByteArray(len);
+ env->SetByteArrayRegion(result, 0, len, (jbyte *) ptr);
+ return result;
+}
+
+JNIEXPORT jintArray JNICALL
+Java_org_kde_qt_QImage_colorTable(JNIEnv *env, jobject obj)
+{
+static TQRgb * ptr = 0;
+ ptr = ((TQImageJBridge*) QtSupport::getQt(env, obj))->colorTable();
+ int len = ((TQImageJBridge*) QtSupport::getQt(env, obj))->numColors();
+ jintArray result = env->NewIntArray(len);
+ env->SetIntArrayRegion(result, 0, len, (jint *) ptr);
+ return result;
+}
+