//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqpalette.h>
#include <tqbrush.h>
#include <tqcolor.h>
#include <tqnamespace.h>

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

class TQPaletteJBridge : public TQPalette
{
public:
	TQPaletteJBridge() : TQPalette() {};
	TQPaletteJBridge(const TQColor& arg1) : TQPalette(arg1) {};
	TQPaletteJBridge(const TQColor& arg1,const TQColor& arg2) : TQPalette(arg1,arg2) {};
	TQPaletteJBridge(const TQColorGroup& arg1,const TQColorGroup& arg2,const TQColorGroup& arg3) : TQPalette(arg1,arg2,arg3) {};
	TQPaletteJBridge(const TQPalette& arg1) : TQPalette(arg1) {};
	~TQPaletteJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QPalette_active(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(TQColorGroup *) &((TQPalette*) QtSupport::getQt(env, obj))->active(), "org.trinitydesktop.qt.TQColorGroup");
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPalette_backgroundRoleFromMode(JNIEnv* env, jclass cls, jint mode)
{
	(void) cls;
	(void) env;
	jint xret = (jint) TQPaletteJBridge::backgroundRoleFromMode((TQt::BackgroundMode) mode);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QPalette_brush(JNIEnv* env, jobject obj, jint arg1, jint arg2)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(TQBrush *) &((TQPalette*) QtSupport::getQt(env, obj))->brush((TQPalette::ColorGroup) arg1, (TQColorGroup::ColorRole) arg2), "org.trinitydesktop.qt.TQBrush");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QPalette_color(JNIEnv* env, jobject obj, jint arg1, jint arg2)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(TQColor *) &((TQPalette*) QtSupport::getQt(env, obj))->color((TQPalette::ColorGroup) arg1, (TQColorGroup::ColorRole) arg2), "org.trinitydesktop.qt.TQColor");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QPalette_copy(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQPalette(((TQPalette*) QtSupport::getQt(env, obj))->copy()), "org.trinitydesktop.qt.TQPalette", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QPalette_disabled(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(TQColorGroup *) &((TQPalette*) QtSupport::getQt(env, obj))->disabled(), "org.trinitydesktop.qt.TQColorGroup");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPalette_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QPalette_finalize(env, obj);
	return;
}

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

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPalette_foregroundRoleFromMode(JNIEnv* env, jclass cls, jint mode)
{
	(void) cls;
	(void) env;
	jint xret = (jint) TQPaletteJBridge::foregroundRoleFromMode((TQt::BackgroundMode) mode);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QPalette_inactive(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(TQColorGroup *) &((TQPalette*) QtSupport::getQt(env, obj))->inactive(), "org.trinitydesktop.qt.TQColorGroup");
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QPalette_isCopyOf(JNIEnv* env, jobject obj, jobject arg1)
{
	jboolean xret = (jboolean) ((TQPalette*) QtSupport::getQt(env, obj))->isCopyOf((const TQPalette&)*(const TQPalette*) QtSupport::getQt(env, arg1));
	return xret;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPalette_newTQPalette__Lorg_trinitydesktop_qt_QColorGroup_2Lorg_trinitydesktop_qt_QColorGroup_2Lorg_trinitydesktop_qt_QColorGroup_2(JNIEnv* env, jobject obj, jobject active, jobject disabled, jobject inactive)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQPaletteJBridge((const TQColorGroup&)*(const TQColorGroup*) QtSupport::getQt(env, active), (const TQColorGroup&)*(const TQColorGroup*) QtSupport::getQt(env, disabled), (const TQColorGroup&)*(const TQColorGroup*) QtSupport::getQt(env, inactive)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPalette_newTQPalette__Lorg_trinitydesktop_qt_QColor_2(JNIEnv* env, jobject obj, jobject button)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQPaletteJBridge((const TQColor&)*(const TQColor*) QtSupport::getQt(env, button)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPalette_newTQPalette__Lorg_trinitydesktop_qt_QColor_2Lorg_trinitydesktop_qt_QColor_2(JNIEnv* env, jobject obj, jobject button, jobject background)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQPaletteJBridge((const TQColor&)*(const TQColor*) QtSupport::getQt(env, button), (const TQColor&)*(const TQColor*) QtSupport::getQt(env, background)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPalette_newTQPalette__Lorg_trinitydesktop_qt_QPalette_2(JNIEnv* env, jobject obj, jobject arg1)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQPaletteJBridge((const TQPalette&)*(const TQPalette*) QtSupport::getQt(env, arg1)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QPalette_normal(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)(TQColorGroup *) &((TQPalette*) QtSupport::getQt(env, obj))->normal(), "org.trinitydesktop.qt.TQColorGroup");
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QPalette_op_1equals(JNIEnv* env, jobject obj, jobject p)
{
	jboolean xret = (jboolean) ((TQPalette*) QtSupport::getQt(env, obj))->operator==((const TQPalette&)*(const TQPalette*) QtSupport::getQt(env, p));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QPalette_op_1not_1equals(JNIEnv* env, jobject obj, jobject p)
{
	jboolean xret = (jboolean) ((TQPalette*) QtSupport::getQt(env, obj))->operator!=((const TQPalette&)*(const TQPalette*) QtSupport::getQt(env, p));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QPalette_serialNumber(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQPalette*) QtSupport::getQt(env, obj))->serialNumber();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPalette_setActive(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQPalette*) QtSupport::getQt(env, obj))->setActive((const TQColorGroup&)*(const TQColorGroup*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPalette_setBrush__IILorg_trinitydesktop_qt_QBrush_2(JNIEnv* env, jobject obj, jint arg1, jint arg2, jobject arg3)
{
	((TQPalette*) QtSupport::getQt(env, obj))->setBrush((TQPalette::ColorGroup) arg1, (TQColorGroup::ColorRole) arg2, (const TQBrush&)*(const TQBrush*) QtSupport::getQt(env, arg3));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPalette_setBrush__ILorg_trinitydesktop_qt_QBrush_2(JNIEnv* env, jobject obj, jint arg1, jobject arg2)
{
	((TQPalette*) QtSupport::getQt(env, obj))->setBrush((TQColorGroup::ColorRole) arg1, (const TQBrush&)*(const TQBrush*) QtSupport::getQt(env, arg2));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPalette_setColor__IILorg_trinitydesktop_qt_QColor_2(JNIEnv* env, jobject obj, jint arg1, jint arg2, jobject arg3)
{
	((TQPalette*) QtSupport::getQt(env, obj))->setColor((TQPalette::ColorGroup) arg1, (TQColorGroup::ColorRole) arg2, (const TQColor&)*(const TQColor*) QtSupport::getQt(env, arg3));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPalette_setColor__ILorg_trinitydesktop_qt_QColor_2(JNIEnv* env, jobject obj, jint arg1, jobject arg2)
{
	((TQPalette*) QtSupport::getQt(env, obj))->setColor((TQColorGroup::ColorRole) arg1, (const TQColor&)*(const TQColor*) QtSupport::getQt(env, arg2));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPalette_setDisabled(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQPalette*) QtSupport::getQt(env, obj))->setDisabled((const TQColorGroup&)*(const TQColorGroup*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPalette_setInactive(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQPalette*) QtSupport::getQt(env, obj))->setInactive((const TQColorGroup&)*(const TQColorGroup*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QPalette_setNormal(JNIEnv* env, jobject obj, jobject cg)
{
	((TQPalette*) QtSupport::getQt(env, obj))->setNormal((const TQColorGroup&)*(const TQColorGroup*) QtSupport::getQt(env, cg));
	return;
}

