//Auto-generated by kalyptus. DO NOT EDIT.
#include <qsize.h>
#include <qmenudata.h>
#include <qfont.h>
#include <qpalette.h>

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QCustomMenuItem_fullSpan(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QCustomMenuItem*) QtSupport::getQt(env, obj))->fullSpan();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QCustomMenuItem_isSeparator(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QCustomMenuItem*) QtSupport::getQt(env, obj))->isSeparator();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QCustomMenuItem_paint(JNIEnv* env, jobject obj, jobject p, jobject cg, jboolean act, jboolean enabled, jint x, jint y, jint w, jint h)
{
	((QCustomMenuItem*) QtSupport::getQt(env, obj))->paint((QPainter*) QtSupport::getQt(env, p), (const QColorGroup&)*(const QColorGroup*) QtSupport::getQt(env, cg), (bool) act, (bool) enabled, (int) x, (int) y, (int) w, (int) h);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QCustomMenuItem_setFont(JNIEnv* env, jobject obj, jobject font)
{
	((QCustomMenuItem*) QtSupport::getQt(env, obj))->setFont((const QFont&)*(const QFont*) QtSupport::getQt(env, font));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QCustomMenuItem_sizeHint(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QSize(((QCustomMenuItem*) QtSupport::getQt(env, obj))->sizeHint()), "org.kde.qt.QSize", TRUE);
	return xret;
}

