//Auto-generated by kalyptus. DO NOT EDIT.
#include <qsize.h>
#include <qrect.h>
#include <qpixmap.h>
#include <qstring.h>
#include <qpoint.h>
#include <qcanvas.h>
#include <qpointarray.h>
#include <qpainter.h>
#include <qcolor.h>

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

class QCanvasJBridge : public QCanvas
{
public:
	QCanvasJBridge(QObject* arg1,const char* arg2) : QCanvas(arg1,arg2) {};
	QCanvasJBridge(QObject* arg1) : QCanvas(arg1) {};
	QCanvasJBridge() : QCanvas() {};
	QCanvasJBridge(int arg1,int arg2) : QCanvas(arg1,arg2) {};
	QCanvasJBridge(QPixmap arg1,int arg2,int arg3,int arg4,int arg5) : QCanvas(arg1,arg2,arg3,arg4,arg5) {};
	void public_setAllChanged() {
		QCanvas::setAllChanged();
		return;
	}
	void public_advance() {
		QCanvas::advance();
		return;
	}
	void public_update() {
		QCanvas::update();
		return;
	}
	void protected_drawBackground(QPainter& arg1,const QRect& arg2) {
		QCanvas::drawBackground(arg1,arg2);
		return;
	}
	void protected_drawForeground(QPainter& arg1,const QRect& arg2) {
		QCanvas::drawForeground(arg1,arg2);
		return;
	}
	~QCanvasJBridge() {QtSupport::qtKeyDeleted(this);}
	void removeItem(QCanvasItem* arg1) {
		if (!QtSupport::eventDelegate(this,"removeItem",(void*)arg1,"org.kde.qt.QCanvasItem")) {
			QCanvas::removeItem(arg1);
		}
		return;
	}
	void addItem(QCanvasItem* arg1) {
		if (!QtSupport::eventDelegate(this,"addItem",(void*)arg1,"org.kde.qt.QCanvasItem")) {
			QCanvas::addItem(arg1);
		}
		return;
	}
	void removeAnimation(QCanvasItem* arg1) {
		if (!QtSupport::eventDelegate(this,"removeAnimation",(void*)arg1,"org.kde.qt.QCanvasItem")) {
			QCanvas::removeAnimation(arg1);
		}
		return;
	}
	void update() {
		if (!QtSupport::voidDelegate(this,"org.kde.qt.QCanvas","update")) {
			QCanvas::update();
		}
		return;
	}
	void removeChild(QObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.kde.qt.QObject")) {
			QObject::removeChild(arg1);
		}
		return;
	}
	void removeView(QCanvasView* arg1) {
		if (!QtSupport::eventDelegate(this,"removeView",(void*)arg1,"org.kde.qt.QCanvasView")) {
			QCanvas::removeView(arg1);
		}
		return;
	}
	void setAllChanged() {
		if (!QtSupport::voidDelegate(this,"org.kde.qt.QCanvas","setAllChanged")) {
			QCanvas::setAllChanged();
		}
		return;
	}
	void setChanged(const QRect& arg1) {
		if (!QtSupport::eventDelegate(this,"setChanged",(void*)&arg1,"org.kde.qt.QRect")) {
			QCanvas::setChanged(arg1);
		}
		return;
	}
	void setBackgroundPixmap(const QPixmap& arg1) {
		if (!QtSupport::eventDelegate(this,"setBackgroundPixmap",(void*)&arg1,"org.kde.qt.QPixmap")) {
			QCanvas::setBackgroundPixmap(arg1);
		}
		return;
	}
	void customEvent(QCustomEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.kde.qt.QCustomEvent")) {
			QObject::customEvent(arg1);
		}
		return;
	}
	void addAnimation(QCanvasItem* arg1) {
		if (!QtSupport::eventDelegate(this,"addAnimation",(void*)arg1,"org.kde.qt.QCanvasItem")) {
			QCanvas::addAnimation(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.kde.qt.QTimerEvent")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
	void childEvent(QChildEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.kde.qt.QChildEvent")) {
			QObject::childEvent(arg1);
		}
		return;
	}
	void setUnchanged(const QRect& arg1) {
		if (!QtSupport::eventDelegate(this,"setUnchanged",(void*)&arg1,"org.kde.qt.QRect")) {
			QCanvas::setUnchanged(arg1);
		}
		return;
	}
	void addView(QCanvasView* arg1) {
		if (!QtSupport::eventDelegate(this,"addView",(void*)arg1,"org.kde.qt.QCanvasView")) {
			QCanvas::addView(arg1);
		}
		return;
	}
	void setBackgroundColor(const QColor& arg1) {
		if (!QtSupport::eventDelegate(this,"setBackgroundColor",(void*)&arg1,"org.kde.qt.QColor")) {
			QCanvas::setBackgroundColor(arg1);
		}
		return;
	}
	void insertChild(QObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.kde.qt.QObject")) {
			QObject::insertChild(arg1);
		}
		return;
	}
	bool eventFilter(QObject* object,QEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.kde.qt.QCanvas",object,event)) {
			return QObject::eventFilter(object,event);
		} else {
			return TRUE;
		}
	}
	void advance() {
		if (!QtSupport::voidDelegate(this,"org.kde.qt.QCanvas","advance")) {
			QCanvas::advance();
		}
		return;
	}
};

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvas_addAnimation(JNIEnv* env, jobject obj, jobject arg1)
{
	((QCanvas*) QtSupport::getQt(env, obj))->addAnimation((QCanvasItem*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvas_addItemToChunkContaining(JNIEnv* env, jobject obj, jobject arg1, jint x, jint y)
{
	((QCanvas*) QtSupport::getQt(env, obj))->addItemToChunkContaining((QCanvasItem*) QtSupport::getQt(env, arg1), (int) x, (int) y);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvas_addItemToChunk(JNIEnv* env, jobject obj, jobject arg1, jint i, jint j)
{
	((QCanvas*) QtSupport::getQt(env, obj))->addItemToChunk((QCanvasItem*) QtSupport::getQt(env, arg1), (int) i, (int) j);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvas_addItem(JNIEnv* env, jobject obj, jobject arg1)
{
	((QCanvas*) QtSupport::getQt(env, obj))->addItem((QCanvasItem*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvas_addView(JNIEnv* env, jobject obj, jobject arg1)
{
	((QCanvas*) QtSupport::getQt(env, obj))->addView((QCanvasView*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvas_advance(JNIEnv* env, jobject obj)
{
	((QCanvasJBridge*) QtSupport::getQt(env, obj))->public_advance();
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QCanvas_allItems(JNIEnv* env, jobject obj)
{
	QCanvasItemList  _qlist;
	_qlist = ((QCanvas*) QtSupport::getQt(env, obj))->allItems();
	return (jobject) QtSupport::arrayWithQCanvasItemList(env, (QCanvasItemList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QCanvas_backgroundColor(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QColor(((QCanvas*) QtSupport::getQt(env, obj))->backgroundColor()), "org.kde.qt.QColor", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QCanvas_backgroundPixmap(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QPixmap(((QCanvas*) QtSupport::getQt(env, obj))->backgroundPixmap()), "org.kde.qt.QPixmap", TRUE);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QCanvas_chunkSize(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QCanvas*) QtSupport::getQt(env, obj))->chunkSize();
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QCanvas_collisions__Lorg_kde_qt_QPointArray_2Lorg_kde_qt_QCanvasItem_2Z(JNIEnv* env, jobject obj, jobject pa, jobject item, jboolean exact)
{
	QCanvasItemList  _qlist;
	_qlist = ((QCanvas*) QtSupport::getQt(env, obj))->collisions((const QPointArray&)*(const QPointArray*) QtSupport::getQt(env, pa), (const QCanvasItem*) QtSupport::getQt(env, item), (bool) exact);
	return (jobject) QtSupport::arrayWithQCanvasItemList(env, (QCanvasItemList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QCanvas_collisions__Lorg_kde_qt_QPoint_2(JNIEnv* env, jobject obj, jobject arg1)
{
	QCanvasItemList  _qlist;
	_qlist = ((QCanvas*) QtSupport::getQt(env, obj))->collisions((const QPoint&)*(const QPoint*) QtSupport::getQt(env, arg1));
	return (jobject) QtSupport::arrayWithQCanvasItemList(env, (QCanvasItemList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QCanvas_collisions__Lorg_kde_qt_QRect_2(JNIEnv* env, jobject obj, jobject arg1)
{
	QCanvasItemList  _qlist;
	_qlist = ((QCanvas*) QtSupport::getQt(env, obj))->collisions((const QRect&)*(const QRect*) QtSupport::getQt(env, arg1));
	return (jobject) QtSupport::arrayWithQCanvasItemList(env, (QCanvasItemList*) &_qlist);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvas_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QCanvas_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvas_drawArea__Lorg_kde_qt_QRect_2Lorg_kde_qt_QPainter_2(JNIEnv* env, jobject obj, jobject arg1, jobject p)
{
	((QCanvas*) QtSupport::getQt(env, obj))->drawArea((const QRect&)*(const QRect*) QtSupport::getQt(env, arg1), (QPainter*) QtSupport::getQt(env, p));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvas_drawArea__Lorg_kde_qt_QRect_2Lorg_kde_qt_QPainter_2Z(JNIEnv* env, jobject obj, jobject arg1, jobject p, jboolean double_buffer)
{
	((QCanvas*) QtSupport::getQt(env, obj))->drawArea((const QRect&)*(const QRect*) QtSupport::getQt(env, arg1), (QPainter*) QtSupport::getQt(env, p), (bool) double_buffer);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvas_drawBackground(JNIEnv* env, jobject obj, jobject arg1, jobject area)
{
	((QCanvasJBridge*) QtSupport::getQt(env, obj))->protected_drawBackground((QPainter&)*(QPainter*) QtSupport::getQt(env, arg1), (const QRect&)*(const QRect*) QtSupport::getQt(env, area));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvas_drawCanvasArea__Lorg_kde_qt_QRect_2(JNIEnv* env, jobject obj, jobject arg1)
{
	((QCanvas*) QtSupport::getQt(env, obj))->drawCanvasArea((const QRect&)*(const QRect*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvas_drawCanvasArea__Lorg_kde_qt_QRect_2Lorg_kde_qt_QPainter_2(JNIEnv* env, jobject obj, jobject arg1, jobject p)
{
	((QCanvas*) QtSupport::getQt(env, obj))->drawCanvasArea((const QRect&)*(const QRect*) QtSupport::getQt(env, arg1), (QPainter*) QtSupport::getQt(env, p));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvas_drawCanvasArea__Lorg_kde_qt_QRect_2Lorg_kde_qt_QPainter_2Z(JNIEnv* env, jobject obj, jobject arg1, jobject p, jboolean double_buffer)
{
	((QCanvas*) QtSupport::getQt(env, obj))->drawCanvasArea((const QRect&)*(const QRect*) QtSupport::getQt(env, arg1), (QPainter*) QtSupport::getQt(env, p), (bool) double_buffer);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvas_drawForeground(JNIEnv* env, jobject obj, jobject arg1, jobject area)
{
	((QCanvasJBridge*) QtSupport::getQt(env, obj))->protected_drawForeground((QPainter&)*(QPainter*) QtSupport::getQt(env, arg1), (const QRect&)*(const QRect*) QtSupport::getQt(env, area));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvas_drawViewArea(JNIEnv* env, jobject obj, jobject view, jobject p, jobject r, jboolean dbuf)
{
	((QCanvas*) QtSupport::getQt(env, obj))->drawViewArea((QCanvasView*) QtSupport::getQt(env, view), (QPainter*) QtSupport::getQt(env, p), (const QRect&)*(const QRect*) QtSupport::getQt(env, r), (bool) dbuf);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvas_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj) && ((QCanvas*)QtSupport::getQt(env, obj))->parent() == 0) {
		delete (QCanvas*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QCanvas_height(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QCanvas*) QtSupport::getQt(env, obj))->height();
	return xret;
}

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvas_newQCanvas__II(JNIEnv* env, jobject obj, jint w, jint h)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QCanvasJBridge((int) w, (int) h));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvas_newQCanvas__Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parent, jstring name)
{
static QCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QCanvasJBridge((QObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvas_newQCanvas__Lorg_kde_qt_QPixmap_2IIII(JNIEnv* env, jobject obj, jobject p, jint h, jint v, jint tilewidth, jint tileheight)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QCanvasJBridge((QPixmap)*(QPixmap*) QtSupport::getQt(env, p), (int) h, (int) v, (int) tilewidth, (int) tileheight));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QCanvas_onCanvas__II(JNIEnv* env, jobject obj, jint x, jint y)
{
	jboolean xret = (jboolean) ((QCanvas*) QtSupport::getQt(env, obj))->onCanvas((int) x, (int) y);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QCanvas_onCanvas__Lorg_kde_qt_QPoint_2(JNIEnv* env, jobject obj, jobject p)
{
	jboolean xret = (jboolean) ((QCanvas*) QtSupport::getQt(env, obj))->onCanvas((const QPoint&)*(const QPoint*) QtSupport::getQt(env, p));
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvas_removeAnimation(JNIEnv* env, jobject obj, jobject arg1)
{
	((QCanvas*) QtSupport::getQt(env, obj))->removeAnimation((QCanvasItem*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvas_removeItemFromChunkContaining(JNIEnv* env, jobject obj, jobject arg1, jint x, jint y)
{
	((QCanvas*) QtSupport::getQt(env, obj))->removeItemFromChunkContaining((QCanvasItem*) QtSupport::getQt(env, arg1), (int) x, (int) y);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvas_removeItemFromChunk(JNIEnv* env, jobject obj, jobject arg1, jint i, jint j)
{
	((QCanvas*) QtSupport::getQt(env, obj))->removeItemFromChunk((QCanvasItem*) QtSupport::getQt(env, arg1), (int) i, (int) j);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvas_removeItem(JNIEnv* env, jobject obj, jobject arg1)
{
	((QCanvas*) QtSupport::getQt(env, obj))->removeItem((QCanvasItem*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvas_removeView(JNIEnv* env, jobject obj, jobject arg1)
{
	((QCanvas*) QtSupport::getQt(env, obj))->removeView((QCanvasView*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvas_resize(JNIEnv* env, jobject obj, jint width, jint height)
{
	((QCanvas*) QtSupport::getQt(env, obj))->resize((int) width, (int) height);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvas_retune__I(JNIEnv* env, jobject obj, jint chunksize)
{
	((QCanvas*) QtSupport::getQt(env, obj))->retune((int) chunksize);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvas_retune__II(JNIEnv* env, jobject obj, jint chunksize, jint maxclusters)
{
	((QCanvas*) QtSupport::getQt(env, obj))->retune((int) chunksize, (int) maxclusters);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QCanvas_sameChunk(JNIEnv* env, jobject obj, jint x1, jint y1, jint x2, jint y2)
{
	jboolean xret = (jboolean) ((QCanvas*) QtSupport::getQt(env, obj))->sameChunk((int) x1, (int) y1, (int) x2, (int) y2);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvas_setAdvancePeriod(JNIEnv* env, jobject obj, jint ms)
{
	((QCanvas*) QtSupport::getQt(env, obj))->setAdvancePeriod((int) ms);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvas_setAllChanged(JNIEnv* env, jobject obj)
{
	((QCanvasJBridge*) QtSupport::getQt(env, obj))->public_setAllChanged();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvas_setBackgroundColor(JNIEnv* env, jobject obj, jobject c)
{
	((QCanvas*) QtSupport::getQt(env, obj))->setBackgroundColor((const QColor&)*(const QColor*) QtSupport::getQt(env, c));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvas_setBackgroundPixmap(JNIEnv* env, jobject obj, jobject p)
{
	((QCanvas*) QtSupport::getQt(env, obj))->setBackgroundPixmap((const QPixmap&)*(const QPixmap*) QtSupport::getQt(env, p));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvas_setChangedChunkContaining(JNIEnv* env, jobject obj, jint x, jint y)
{
	((QCanvas*) QtSupport::getQt(env, obj))->setChangedChunkContaining((int) x, (int) y);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvas_setChangedChunk(JNIEnv* env, jobject obj, jint i, jint j)
{
	((QCanvas*) QtSupport::getQt(env, obj))->setChangedChunk((int) i, (int) j);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvas_setChanged(JNIEnv* env, jobject obj, jobject area)
{
	((QCanvas*) QtSupport::getQt(env, obj))->setChanged((const QRect&)*(const QRect*) QtSupport::getQt(env, area));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvas_setDoubleBuffering(JNIEnv* env, jobject obj, jboolean y)
{
	((QCanvas*) QtSupport::getQt(env, obj))->setDoubleBuffering((bool) y);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvas_setTile(JNIEnv* env, jobject obj, jint x, jint y, jint tilenum)
{
	((QCanvas*) QtSupport::getQt(env, obj))->setTile((int) x, (int) y, (int) tilenum);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvas_setTiles(JNIEnv* env, jobject obj, jobject tiles, jint h, jint v, jint tilewidth, jint tileheight)
{
	((QCanvas*) QtSupport::getQt(env, obj))->setTiles((QPixmap)*(QPixmap*) QtSupport::getQt(env, tiles), (int) h, (int) v, (int) tilewidth, (int) tileheight);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvas_setUnchanged(JNIEnv* env, jobject obj, jobject area)
{
	((QCanvas*) QtSupport::getQt(env, obj))->setUnchanged((const QRect&)*(const QRect*) QtSupport::getQt(env, area));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvas_setUpdatePeriod(JNIEnv* env, jobject obj, jint ms)
{
	((QCanvas*) QtSupport::getQt(env, obj))->setUpdatePeriod((int) ms);
	return;
}

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

JNIEXPORT jint JNICALL
Java_org_kde_qt_QCanvas_tileHeight(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QCanvas*) QtSupport::getQt(env, obj))->tileHeight();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QCanvas_tileWidth(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QCanvas*) QtSupport::getQt(env, obj))->tileWidth();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QCanvas_tile(JNIEnv* env, jobject obj, jint x, jint y)
{
	jint xret = (jint) ((QCanvas*) QtSupport::getQt(env, obj))->tile((int) x, (int) y);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QCanvas_tilesHorizontally(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QCanvas*) QtSupport::getQt(env, obj))->tilesHorizontally();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QCanvas_tilesVertically(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QCanvas*) QtSupport::getQt(env, obj))->tilesVertically();
	return xret;
}

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

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QCanvas_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 = QCanvasJBridge::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_QCanvas_update(JNIEnv* env, jobject obj)
{
	((QCanvasJBridge*) QtSupport::getQt(env, obj))->public_update();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QCanvas_validChunk__II(JNIEnv* env, jobject obj, jint x, jint y)
{
	jboolean xret = (jboolean) ((QCanvas*) QtSupport::getQt(env, obj))->validChunk((int) x, (int) y);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QCanvas_validChunk__Lorg_kde_qt_QPoint_2(JNIEnv* env, jobject obj, jobject p)
{
	jboolean xret = (jboolean) ((QCanvas*) QtSupport::getQt(env, obj))->validChunk((const QPoint&)*(const QPoint*) QtSupport::getQt(env, p));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QCanvas_width(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QCanvas*) QtSupport::getQt(env, obj))->width();
	return xret;
}

