//Auto-generated by kalyptus. DO NOT EDIT.
#include <qrect.h>
#include <qstring.h>
#include <qpoint.h>
#include <qpalette.h>
#include <qtooltip.h>
#include <qfont.h>

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QToolTip_add__Lorg_kde_qt_QWidget_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jobject arg1, jstring arg2)
{
	(void) cls;
static QString* _qstring_arg2 = 0;
	QToolTip::add((QWidget*) QtSupport::getQt(env, arg1), (const QString&)*(QString*) QtSupport::toQString(env, arg2, &_qstring_arg2));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QToolTip_add__Lorg_kde_qt_QWidget_2Ljava_lang_String_2Lorg_kde_qt_QToolTipGroup_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jobject arg1, jstring arg2, jobject arg3, jstring arg4)
{
	(void) cls;
static QString* _qstring_arg2 = 0;
static QString* _qstring_arg4 = 0;
	QToolTip::add((QWidget*) QtSupport::getQt(env, arg1), (const QString&)*(QString*) QtSupport::toQString(env, arg2, &_qstring_arg2), (QToolTipGroup*) QtSupport::getQt(env, arg3), (const QString&)*(QString*) QtSupport::toQString(env, arg4, &_qstring_arg4));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QToolTip_add__Lorg_kde_qt_QWidget_2Lorg_kde_qt_QRect_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jobject arg1, jobject arg2, jstring arg3)
{
	(void) cls;
static QString* _qstring_arg3 = 0;
	QToolTip::add((QWidget*) QtSupport::getQt(env, arg1), (const QRect&)*(const QRect*) QtSupport::getQt(env, arg2), (const QString&)*(QString*) QtSupport::toQString(env, arg3, &_qstring_arg3));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QToolTip_add__Lorg_kde_qt_QWidget_2Lorg_kde_qt_QRect_2Ljava_lang_String_2Lorg_kde_qt_QToolTipGroup_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jobject arg1, jobject arg2, jstring arg3, jobject arg4, jstring arg5)
{
	(void) cls;
static QString* _qstring_arg3 = 0;
static QString* _qstring_arg5 = 0;
	QToolTip::add((QWidget*) QtSupport::getQt(env, arg1), (const QRect&)*(const QRect*) QtSupport::getQt(env, arg2), (const QString&)*(QString*) QtSupport::toQString(env, arg3, &_qstring_arg3), (QToolTipGroup*) QtSupport::getQt(env, arg4), (const QString&)*(QString*) QtSupport::toQString(env, arg5, &_qstring_arg5));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QToolTip_enabled(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jboolean xret = (jboolean) QToolTip::enabled();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QToolTip_font(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QFont(QToolTip::font()), "org.kde.qt.QFont", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QToolTip_group(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QToolTip*) QtSupport::getQt(env, obj))->group(), "org.kde.qt.QToolTipGroup");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QToolTip_hide(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	QToolTip::hide();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QToolTip_isGloballyEnabled(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jboolean xret = (jboolean) QToolTip::isGloballyEnabled();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QToolTip_palette(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QPalette(QToolTip::palette()), "org.kde.qt.QPalette", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QToolTip_parentWidget(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QToolTip*) QtSupport::getQt(env, obj))->parentWidget(), "org.kde.qt.QWidget");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QToolTip_remove__Lorg_kde_qt_QWidget_2(JNIEnv* env, jclass cls, jobject arg1)
{
	(void) cls;
	QToolTip::remove((QWidget*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QToolTip_remove__Lorg_kde_qt_QWidget_2Lorg_kde_qt_QRect_2(JNIEnv* env, jclass cls, jobject arg1, jobject arg2)
{
	(void) cls;
	QToolTip::remove((QWidget*) QtSupport::getQt(env, arg1), (const QRect&)*(const QRect*) QtSupport::getQt(env, arg2));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QToolTip_setEnabled(JNIEnv* env, jclass cls, jboolean enable)
{
	(void) cls;
	(void) env;
	QToolTip::setEnabled((bool) enable);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QToolTip_setFont(JNIEnv* env, jclass cls, jobject arg1)
{
	(void) cls;
	QToolTip::setFont((const QFont&)*(const QFont*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QToolTip_setGloballyEnabled(JNIEnv* env, jclass cls, jboolean arg1)
{
	(void) cls;
	(void) env;
	QToolTip::setGloballyEnabled((bool) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QToolTip_setPalette(JNIEnv* env, jclass cls, jobject arg1)
{
	(void) cls;
	QToolTip::setPalette((const QPalette&)*(const QPalette*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QToolTip_setWakeUpDelay(JNIEnv* env, jclass cls, jint arg1)
{
	(void) cls;
	(void) env;
	QToolTip::setWakeUpDelay((int) arg1);
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QToolTip_textFor__Lorg_kde_qt_QWidget_2(JNIEnv* env, jclass cls, jobject arg1)
{
	QString  _qstring;
	(void) cls;
	_qstring = QToolTip::textFor((QWidget*) QtSupport::getQt(env, arg1));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QToolTip_textFor__Lorg_kde_qt_QWidget_2Lorg_kde_qt_QPoint_2(JNIEnv* env, jclass cls, jobject arg1, jobject pos)
{
	QString  _qstring;
	(void) cls;
	_qstring = QToolTip::textFor((QWidget*) QtSupport::getQt(env, arg1), (const QPoint&)*(const QPoint*) QtSupport::getQt(env, pos));
	return QtSupport::fromQString(env, &_qstring);
}

