//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqpaintdevice.h>

#include <qtjava/QtSupport.h>
#include <qtjava/TQPaintDevice.h>

class TQPaintDeviceJBridge : public TQPaintDevice
{
public:
	TQPaintDeviceJBridge(uint arg1) : TQPaintDevice(arg1) {};
	int protected_metric(int arg1) {
		return (int) TQPaintDevice::metric(arg1);
	}
	int protected_fontMet(TQFont* arg1,int arg2,const char* arg3,int arg4) {
		return (int) TQPaintDevice::fontMet(arg1,arg2,arg3,arg4);
	}
	int protected_fontMet(TQFont* arg1,int arg2,const char* arg3) {
		return (int) TQPaintDevice::fontMet(arg1,arg2,arg3);
	}
	int protected_fontMet(TQFont* arg1,int arg2) {
		return (int) TQPaintDevice::fontMet(arg1,arg2);
	}
	int protected_fontInf(TQFont* arg1,int arg2) {
		return (int) TQPaintDevice::fontInf(arg1,arg2);
	}
	~TQPaintDeviceJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPaintDevice_devType(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQPaintDevice*) QtSupport::getQt(env, obj))->devType();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPaintDevice_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QPaintDevice_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPaintDevice_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj)) {
		delete (TQPaintDevice*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPaintDevice_fontInf(JNIEnv* env, jobject obj, jobject arg1, jint arg2)
{
	jint xret = (jint) ((TQPaintDeviceJBridge*) QtSupport::getQt(env, obj))->protected_fontInf((TQFont*) QtSupport::getQt(env, arg1), (int) arg2);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPaintDevice_fontMet__Lorg_trinitydesktop_qt_QFont_2I(JNIEnv* env, jobject obj, jobject arg1, jint arg2)
{
	jint xret = (jint) ((TQPaintDeviceJBridge*) QtSupport::getQt(env, obj))->protected_fontMet((TQFont*) QtSupport::getQt(env, arg1), (int) arg2);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPaintDevice_fontMet__Lorg_trinitydesktop_qt_QFont_2ILjava_lang_String_2(JNIEnv* env, jobject obj, jobject arg1, jint arg2, jstring arg3)
{
static TQCString* _qstring_arg3 = 0;
	jint xret = (jint) ((TQPaintDeviceJBridge*) QtSupport::getQt(env, obj))->protected_fontMet((TQFont*) QtSupport::getQt(env, arg1), (int) arg2, (const char*) QtSupport::toCharString(env, arg3, &_qstring_arg3));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPaintDevice_fontMet__Lorg_trinitydesktop_qt_QFont_2ILjava_lang_String_2I(JNIEnv* env, jobject obj, jobject arg1, jint arg2, jstring arg3, jint arg4)
{
static TQCString* _qstring_arg3 = 0;
	jint xret = (jint) ((TQPaintDeviceJBridge*) QtSupport::getQt(env, obj))->protected_fontMet((TQFont*) QtSupport::getQt(env, arg1), (int) arg2, (const char*) QtSupport::toCharString(env, arg3, &_qstring_arg3), (int) arg4);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QPaintDevice_isDisposed(JNIEnv* env, jobject obj)
{
	return (QtSupport::getQt(env, obj) == 0);
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QPaintDevice_isExtDev(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQPaintDevice*) QtSupport::getQt(env, obj))->isExtDev();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPaintDevice_metric(JNIEnv* env, jobject obj, jint arg1)
{
	jint xret = (jint) ((TQPaintDeviceJBridge*) QtSupport::getQt(env, obj))->protected_metric((int) arg1);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPaintDevice_newTQPaintDevice(JNIEnv* env, jobject obj, jint devflags)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQPaintDeviceJBridge((uint) devflags));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QPaintDevice_paintingActive(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQPaintDevice*) QtSupport::getQt(env, obj))->paintingActive();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPaintDevice_resolution(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQPaintDevice*) QtSupport::getQt(env, obj))->resolution();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPaintDevice_setResolution(JNIEnv* env, jobject obj, jint arg1)
{
	((TQPaintDevice*) QtSupport::getQt(env, obj))->setResolution((int) arg1);
	return;
}

JNIEXPORT jlong JNICALL
Java_org_trinitydesktop_qt_QPaintDevice_paintDevice(JNIEnv* env, jobject obj)
{
	return (jlong) (TQPaintDevice *) QtSupport::getQt(env, obj);
}

