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

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

class TQPaintDeviceMetricsJBridge : public TQPaintDeviceMetrics
{
public:
	TQPaintDeviceMetricsJBridge(const TQPaintDevice* arg1) : TQPaintDeviceMetrics(arg1) {};
	~TQPaintDeviceMetricsJBridge() {QtSupport::qtKeyDeleted(this);}
};

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPaintDeviceMetrics_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QPaintDeviceMetrics_finalize(env, obj);
	return;
}

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

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

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

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

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

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

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

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

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

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

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

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

