//Auto-generated by kalyptus. DO NOT EDIT.
#include <qrect.h>
#include <qgridview.h>
#include <qstring.h>
#include <qsize.h>
#include <qnamespace.h>

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QGridView_cellGeometry(JNIEnv* env, jobject obj, jint row, jint column)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QRect(((QGridView*) QtSupport::getQt(env, obj))->cellGeometry((int) row, (int) column)), "org.kde.qt.QRect", TRUE);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QGridView_cellHeight(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QGridView*) QtSupport::getQt(env, obj))->cellHeight();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QGridView_cellRect(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QRect(((QGridView*) QtSupport::getQt(env, obj))->cellRect()), "org.kde.qt.QRect", TRUE);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QGridView_cellWidth(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QGridView*) QtSupport::getQt(env, obj))->cellWidth();
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QGridView_className(JNIEnv* env, jobject obj)
{
	const char* _qstring;
	_qstring = ((QGridView*) QtSupport::getQt(env, obj))->className();
	return QtSupport::fromCharString(env, (char *) _qstring);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QGridView_columnAt(JNIEnv* env, jobject obj, jint x)
{
	jint xret = (jint) ((QGridView*) QtSupport::getQt(env, obj))->columnAt((int) x);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QGridView_ensureCellVisible(JNIEnv* env, jobject obj, jint row, jint column)
{
	((QGridView*) QtSupport::getQt(env, obj))->ensureCellVisible((int) row, (int) column);
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QGridView_metaObject(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QGridView*) QtSupport::getQt(env, obj))->metaObject(), "org.kde.qt.QMetaObject");
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QGridView_numCols(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QGridView*) QtSupport::getQt(env, obj))->numCols();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QGridView_numRows(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QGridView*) QtSupport::getQt(env, obj))->numRows();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QGridView_repaintCell__II(JNIEnv* env, jobject obj, jint row, jint column)
{
	((QGridView*) QtSupport::getQt(env, obj))->repaintCell((int) row, (int) column);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QGridView_repaintCell__IIZ(JNIEnv* env, jobject obj, jint row, jint column, jboolean erase)
{
	((QGridView*) QtSupport::getQt(env, obj))->repaintCell((int) row, (int) column, (bool) erase);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QGridView_rowAt(JNIEnv* env, jobject obj, jint y)
{
	jint xret = (jint) ((QGridView*) QtSupport::getQt(env, obj))->rowAt((int) y);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QGridView_setCellHeight(JNIEnv* env, jobject obj, jint arg1)
{
	((QGridView*) QtSupport::getQt(env, obj))->setCellHeight((int) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QGridView_setCellWidth(JNIEnv* env, jobject obj, jint arg1)
{
	((QGridView*) QtSupport::getQt(env, obj))->setCellWidth((int) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QGridView_setNumCols(JNIEnv* env, jobject obj, jint arg1)
{
	((QGridView*) QtSupport::getQt(env, obj))->setNumCols((int) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QGridView_setNumRows(JNIEnv* env, jobject obj, jint arg1)
{
	((QGridView*) QtSupport::getQt(env, obj))->setNumRows((int) arg1);
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QGridView_tr__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1)
{
	QString  _qstring;
	(void) cls;
static QCString* _qstring_arg1 = 0;
	_qstring = QGridView::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QGridView_tr__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1, jstring arg2)
{
	QString  _qstring;
	(void) cls;
static QCString* _qstring_arg1 = 0;
static QCString* _qstring_arg2 = 0;
	_qstring = QGridView::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QGridView_updateCell(JNIEnv* env, jobject obj, jint row, jint column)
{
	((QGridView*) QtSupport::getQt(env, obj))->updateCell((int) row, (int) column);
	return;
}

