//Auto-generated by kalyptus. DO NOT EDIT.
#include <kiconeffect.h>
#include <qrect.h>
#include <qpixmap.h>
#include <qimage.h>
#include <qstring.h>
#include <qcolor.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 QImage(((KIconEffect*) QtSupport::getQt(env, obj))->apply((QImage)*(QImage*) QtSupport::getQt(env, src), (int) effect, (float) value, (const QColor)*(const QColor*) QtSupport::getQt(env, rgb), (const QColor)*(const QColor*) QtSupport::getQt(env, rgb2), (bool) trans)), "org.kde.qt.QImage", 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 QImage(((KIconEffect*) QtSupport::getQt(env, obj))->apply((QImage)*(QImage*) QtSupport::getQt(env, src), (int) effect, (float) value, (const QColor)*(const QColor*) QtSupport::getQt(env, rgb), (bool) trans)), "org.kde.qt.QImage", 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 QImage(((KIconEffect*) QtSupport::getQt(env, obj))->apply((QImage)*(QImage*) QtSupport::getQt(env, src), (int) group, (int) state)), "org.kde.qt.QImage", 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 QPixmap(((KIconEffect*) QtSupport::getQt(env, obj))->apply((QPixmap)*(QPixmap*) QtSupport::getQt(env, src), (int) effect, (float) value, (const QColor)*(const QColor*) QtSupport::getQt(env, rgb), (const QColor)*(const QColor*) QtSupport::getQt(env, rgb2), (bool) trans)), "org.kde.qt.QPixmap", 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 QPixmap(((KIconEffect*) QtSupport::getQt(env, obj))->apply((QPixmap)*(QPixmap*) QtSupport::getQt(env, src), (int) effect, (float) value, (const QColor)*(const QColor*) QtSupport::getQt(env, rgb), (bool) trans)), "org.kde.qt.QPixmap", 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 QPixmap(((KIconEffect*) QtSupport::getQt(env, obj))->apply((QPixmap)*(QPixmap*) QtSupport::getQt(env, src), (int) group, (int) state)), "org.kde.qt.QPixmap", 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((QImage&)*(QImage*) QtSupport::getQt(env, image), (const QColor&)*(const QColor*) 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((QImage&)*(QImage*) 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 QImage(((KIconEffect*) QtSupport::getQt(env, obj))->doublePixels((QImage)*(QImage*) QtSupport::getQt(env, src))), "org.kde.qt.QImage", 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)
{
	QString  _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((QImage&)*(QImage*) QtSupport::getQt(env, src), (QImage&)*(QImage*) 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((QImage&)*(QImage*) 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((QPixmap&)*(QPixmap*) 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((QImage&)*(QImage*) 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((QImage&)*(QImage*) 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((QImage&)*(QImage*) QtSupport::getQt(env, image), (const QColor&)*(const QColor*) QtSupport::getQt(env, black), (const QColor&)*(const QColor*) 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((QWidget*) QtSupport::getQt(env, widget), (QRect)*(QRect*) QtSupport::getQt(env, rect));
	return;
}

