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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QPaintDevice_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QPaintDevice_finalize(env, obj);
	return;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

