//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 <kdejava/KDESupport.h>
#include <kdejava/KIconEffect.h>

class KIconEffectJBridge : public KIconEffect
{
public:
	KIconEffectJBridge() : KIconEffect() {};
	~KIconEffectJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KIconEffect_apply__Lorg_kde_qt_QImage_2IFLorg_kde_qt_QColor_2Lorg_kde_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(((KIconEffect*) 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.kde.qt.TQImage", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KIconEffect_apply__Lorg_kde_qt_QImage_2IFLorg_kde_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(((KIconEffect*) 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.kde.qt.TQImage", TRUE);
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KIconEffect_apply__Lorg_kde_qt_QPixmap_2IFLorg_kde_qt_QColor_2Lorg_kde_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(((KIconEffect*) 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.kde.qt.TQPixmap", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KIconEffect_apply__Lorg_kde_qt_QPixmap_2IFLorg_kde_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(((KIconEffect*) 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.kde.qt.TQPixmap", TRUE);
	return xret;
}

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KIconEffect_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KIconEffect_finalize(env, obj);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KIconEffect_doublePixels(JNIEnv* env, jobject obj, jobject src)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQImage(((KIconEffect*) QtSupport::getQt(env, obj))->doublePixels((TQImage)*(TQImage*) QtSupport::getQt(env, src))), "org.kde.qt.TQImage", TRUE);
	return xret;
}

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

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

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

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

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

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KIconEffect_toMonochrome(JNIEnv* env, jclass cls, jobject image, jobject black, jobject white, jfloat value)
{
	(void) cls;
	KIconEffectJBridge::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_kde_koala_KIconEffect_visualActivate(JNIEnv* env, jclass cls, jobject widget, jobject rect)
{
	(void) cls;
	KIconEffectJBridge::visualActivate((TQWidget*) QtSupport::getQt(env, widget), (TQRect)*(TQRect*) QtSupport::getQt(env, rect));
	return;
}

