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

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

class QPaintDeviceMetricsJBridge : public QPaintDeviceMetrics
{
public:
	QPaintDeviceMetricsJBridge(const QPaintDevice* arg1) : QPaintDeviceMetrics(arg1) {};
	~QPaintDeviceMetricsJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPaintDeviceMetrics_depth(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QPaintDeviceMetrics*) QtSupport::getQt(env, obj))->depth();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPaintDeviceMetrics_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QPaintDeviceMetrics_finalize(env, obj);
	return;
}

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

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPaintDeviceMetrics_heightMM(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QPaintDeviceMetrics*) QtSupport::getQt(env, obj))->heightMM();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPaintDeviceMetrics_height(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QPaintDeviceMetrics*) QtSupport::getQt(env, obj))->height();
	return xret;
}

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

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPaintDeviceMetrics_logicalDpiX(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QPaintDeviceMetrics*) QtSupport::getQt(env, obj))->logicalDpiX();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPaintDeviceMetrics_logicalDpiY(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QPaintDeviceMetrics*) QtSupport::getQt(env, obj))->logicalDpiY();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QPaintDeviceMetrics_newQPaintDeviceMetrics(JNIEnv* env, jobject obj, jobject arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QPaintDeviceMetricsJBridge((const QPaintDevice*) QtSupport::paintDevice(env, arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPaintDeviceMetrics_numColors(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QPaintDeviceMetrics*) QtSupport::getQt(env, obj))->numColors();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPaintDeviceMetrics_physicalDpiX(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QPaintDeviceMetrics*) QtSupport::getQt(env, obj))->physicalDpiX();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPaintDeviceMetrics_physicalDpiY(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QPaintDeviceMetrics*) QtSupport::getQt(env, obj))->physicalDpiY();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPaintDeviceMetrics_widthMM(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QPaintDeviceMetrics*) QtSupport::getQt(env, obj))->widthMM();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QPaintDeviceMetrics_width(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QPaintDeviceMetrics*) QtSupport::getQt(env, obj))->width();
	return xret;
}

