//Auto-generated by kalyptus. DO NOT EDIT.
#include <kiconeffect.h>
#include <tqrect.h>
#include <tqpixmap.h>
#include <tqimage.h>
#include <tqstring.h>
#include <tqcolor.h>

#include <qtjava/QtSupport.h>
#include <tdejava/TDESupport.h>
#include <tdejava/TDEIconEffect.h>

class TDEIconEffectJBridge : public TDEIconEffect
{
public:
	TDEIconEffectJBridge() : TDEIconEffect() {};
	~TDEIconEffectJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_TDEIconEffect_apply__Lorg_trinitydesktop_qt_QImage_2IFLorg_trinitydesktop_qt_QColor_2Lorg_trinitydesktop_qt_QColor_2Z(JNIEnv* env, jobject obj, jobject src, jint effect, jfloat value, jobject rgb, jobject rgb2, jboolean trans)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TDEIconEffect*) QtSupport::getQt(env, obj))->apply((TQImage)*(TQImage*) QtSupport::getQt(env, src), (int) effect, (float) value, (const TQColor)*(const TQColor*) QtSupport::getQt(env, rgb), (const TQColor)*(const TQColor*) QtSupport::getQt(env, rgb2), (bool) trans)), "org.trinitydesktop.qt.TQImage", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_TDEIconEffect_apply__Lorg_trinitydesktop_qt_QImage_2IFLorg_trinitydesktop_qt_QColor_2Z(JNIEnv* env, jobject obj, jobject src, jint effect, jfloat value, jobject rgb, jboolean trans)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TDEIconEffect*) QtSupport::getQt(env, obj))->apply((TQImage)*(TQImage*) QtSupport::getQt(env, src), (int) effect, (float) value, (const TQColor)*(const TQColor*) QtSupport::getQt(env, rgb), (bool) trans)), "org.trinitydesktop.qt.TQImage", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_TDEIconEffect_apply__Lorg_trinitydesktop_qt_QImage_2II(JNIEnv* env, jobject obj, jobject src, jint group, jint state)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TDEIconEffect*) QtSupport::getQt(env, obj))->apply((TQImage)*(TQImage*) QtSupport::getQt(env, src), (int) group, (int) state)), "org.trinitydesktop.qt.TQImage", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_TDEIconEffect_apply__Lorg_trinitydesktop_qt_QPixmap_2IFLorg_trinitydesktop_qt_QColor_2Lorg_trinitydesktop_qt_QColor_2Z(JNIEnv* env, jobject obj, jobject src, jint effect, jfloat value, jobject rgb, jobject rgb2, jboolean trans)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPixmap(((TDEIconEffect*) QtSupport::getQt(env, obj))->apply((TQPixmap)*(TQPixmap*) QtSupport::getQt(env, src), (int) effect, (float) value, (const TQColor)*(const TQColor*) QtSupport::getQt(env, rgb), (const TQColor)*(const TQColor*) QtSupport::getQt(env, rgb2), (bool) trans)), "org.trinitydesktop.qt.TQPixmap", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_TDEIconEffect_apply__Lorg_trinitydesktop_qt_QPixmap_2IFLorg_trinitydesktop_qt_QColor_2Z(JNIEnv* env, jobject obj, jobject src, jint effect, jfloat value, jobject rgb, jboolean trans)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPixmap(((TDEIconEffect*) QtSupport::getQt(env, obj))->apply((TQPixmap)*(TQPixmap*) QtSupport::getQt(env, src), (int) effect, (float) value, (const TQColor)*(const TQColor*) QtSupport::getQt(env, rgb), (bool) trans)), "org.trinitydesktop.qt.TQPixmap", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_TDEIconEffect_apply__Lorg_trinitydesktop_qt_QPixmap_2II(JNIEnv* env, jobject obj, jobject src, jint group, jint state)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPixmap(((TDEIconEffect*) QtSupport::getQt(env, obj))->apply((TQPixmap)*(TQPixmap*) QtSupport::getQt(env, src), (int) group, (int) state)), "org.trinitydesktop.qt.TQPixmap", true);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDEIconEffect_colorize(JNIEnv* env, jclass cls, jobject image, jobject col, jfloat value)
{
	(void) cls;
	TDEIconEffectJBridge::colorize((TQImage&)*(TQImage*) QtSupport::getQt(env, image), (const TQColor&)*(const TQColor*) QtSupport::getQt(env, col), (float) value);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDEIconEffect_deSaturate(JNIEnv* env, jclass cls, jobject image, jfloat value)
{
	(void) cls;
	TDEIconEffectJBridge::deSaturate((TQImage&)*(TQImage*) QtSupport::getQt(env, image), (float) value);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDEIconEffect_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_TDEIconEffect_finalize(env, obj);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_TDEIconEffect_doublePixels(JNIEnv* env, jobject obj, jobject src)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((TDEIconEffect*) QtSupport::getQt(env, obj))->doublePixels((TQImage)*(TQImage*) QtSupport::getQt(env, src))), "org.trinitydesktop.qt.TQImage", true);
	return xret;
}

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_TDEIconEffect_fingerprint(JNIEnv* env, jobject obj, jint group, jint state)
{
	TQString  _qstring;
	_qstring = ((TDEIconEffect*) QtSupport::getQt(env, obj))->fingerprint((int) group, (int) state);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_TDEIconEffect_hasEffect(JNIEnv* env, jobject obj, jint group, jint state)
{
	jboolean xret = (jboolean) ((TDEIconEffect*) QtSupport::getQt(env, obj))->hasEffect((int) group, (int) state);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDEIconEffect_init(JNIEnv* env, jobject obj)
{
	((TDEIconEffect*) QtSupport::getQt(env, obj))->init();
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDEIconEffect_newTDEIconEffect(JNIEnv* env, jobject obj)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TDEIconEffectJBridge());
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDEIconEffect_overlay(JNIEnv* env, jclass cls, jobject src, jobject overlay)
{
	(void) cls;
	TDEIconEffectJBridge::overlay((TQImage&)*(TQImage*) QtSupport::getQt(env, src), (TQImage&)*(TQImage*) QtSupport::getQt(env, overlay));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDEIconEffect_semiTransparent__Lorg_trinitydesktop_qt_QImage_2(JNIEnv* env, jclass cls, jobject image)
{
	(void) cls;
	TDEIconEffectJBridge::semiTransparent((TQImage&)*(TQImage*) QtSupport::getQt(env, image));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDEIconEffect_semiTransparent__Lorg_trinitydesktop_qt_QPixmap_2(JNIEnv* env, jclass cls, jobject pixmap)
{
	(void) cls;
	TDEIconEffectJBridge::semiTransparent((TQPixmap&)*(TQPixmap*) QtSupport::getQt(env, pixmap));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDEIconEffect_toGamma(JNIEnv* env, jclass cls, jobject image, jfloat value)
{
	(void) cls;
	TDEIconEffectJBridge::toGamma((TQImage&)*(TQImage*) QtSupport::getQt(env, image), (float) value);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDEIconEffect_toGray(JNIEnv* env, jclass cls, jobject image, jfloat value)
{
	(void) cls;
	TDEIconEffectJBridge::toGray((TQImage&)*(TQImage*) QtSupport::getQt(env, image), (float) value);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDEIconEffect_toMonochrome(JNIEnv* env, jclass cls, jobject image, jobject black, jobject white, jfloat value)
{
	(void) cls;
	TDEIconEffectJBridge::toMonochrome((TQImage&)*(TQImage*) QtSupport::getQt(env, image), (const TQColor&)*(const TQColor*) QtSupport::getQt(env, black), (const TQColor&)*(const TQColor*) QtSupport::getQt(env, white), (float) value);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDEIconEffect_visualActivate(JNIEnv* env, jclass cls, jobject widget, jobject rect)
{
	(void) cls;
	TDEIconEffectJBridge::visualActivate((TQWidget*) QtSupport::getQt(env, widget), (TQRect)*(TQRect*) QtSupport::getQt(env, rect));
	return;
}

