//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqsize.h>
#include <tqrect.h>
#include <tqpixmap.h>
#include <tqstring.h>
#include <tqpoint.h>
#include <tqcanvas.h>
#include <tqpointarray.h>
#include <tqpainter.h>
#include <tqcolor.h>

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

class TQCanvasJBridge : public TQCanvas
{
public:
	TQCanvasJBridge(TQObject* arg1,const char* arg2) : TQCanvas(arg1,arg2) {};
	TQCanvasJBridge(TQObject* arg1) : TQCanvas(arg1) {};
	TQCanvasJBridge() : TQCanvas() {};
	TQCanvasJBridge(int arg1,int arg2) : TQCanvas(arg1,arg2) {};
	TQCanvasJBridge(TQPixmap arg1,int arg2,int arg3,int arg4,int arg5) : TQCanvas(arg1,arg2,arg3,arg4,arg5) {};
	void public_setAllChanged() {
		TQCanvas::setAllChanged();
		return;
	}
	void public_advance() {
		TQCanvas::advance();
		return;
	}
	void public_update() {
		TQCanvas::update();
		return;
	}
	void protected_drawBackground(TQPainter& arg1,const TQRect& arg2) {
		TQCanvas::drawBackground(arg1,arg2);
		return;
	}
	void protected_drawForeground(TQPainter& arg1,const TQRect& arg2) {
		TQCanvas::drawForeground(arg1,arg2);
		return;
	}
	~TQCanvasJBridge() {QtSupport::qtKeyDeleted(this);}
	void removeItem(TQCanvasItem* arg1) {
		if (!QtSupport::eventDelegate(this,"removeItem",(void*)arg1,"org.trinitydesktop.qt.TQCanvasItem")) {
			TQCanvas::removeItem(arg1);
		}
		return;
	}
	void addItem(TQCanvasItem* arg1) {
		if (!QtSupport::eventDelegate(this,"addItem",(void*)arg1,"org.trinitydesktop.qt.TQCanvasItem")) {
			TQCanvas::addItem(arg1);
		}
		return;
	}
	void removeAnimation(TQCanvasItem* arg1) {
		if (!QtSupport::eventDelegate(this,"removeAnimation",(void*)arg1,"org.trinitydesktop.qt.TQCanvasItem")) {
			TQCanvas::removeAnimation(arg1);
		}
		return;
	}
	void update() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.qt.TQCanvas","update")) {
			TQCanvas::update();
		}
		return;
	}
	void removeChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
			TQObject::removeChild(arg1);
		}
		return;
	}
	void removeView(TQCanvasView* arg1) {
		if (!QtSupport::eventDelegate(this,"removeView",(void*)arg1,"org.trinitydesktop.qt.TQCanvasView")) {
			TQCanvas::removeView(arg1);
		}
		return;
	}
	void setAllChanged() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.qt.TQCanvas","setAllChanged")) {
			TQCanvas::setAllChanged();
		}
		return;
	}
	void setChanged(const TQRect& arg1) {
		if (!QtSupport::eventDelegate(this,"setChanged",(void*)&arg1,"org.trinitydesktop.qt.TQRect")) {
			TQCanvas::setChanged(arg1);
		}
		return;
	}
	void setBackgroundPixmap(const TQPixmap& arg1) {
		if (!QtSupport::eventDelegate(this,"setBackgroundPixmap",(void*)&arg1,"org.trinitydesktop.qt.TQPixmap")) {
			TQCanvas::setBackgroundPixmap(arg1);
		}
		return;
	}
	void customEvent(TQCustomEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.trinitydesktop.qt.TQCustomEvent")) {
			TQObject::customEvent(arg1);
		}
		return;
	}
	void addAnimation(TQCanvasItem* arg1) {
		if (!QtSupport::eventDelegate(this,"addAnimation",(void*)arg1,"org.trinitydesktop.qt.TQCanvasItem")) {
			TQCanvas::addAnimation(arg1);
		}
		return;
	}
	void timerEvent(TQTimerEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.trinitydesktop.qt.TQTimerEvent")) {
			TQObject::timerEvent(arg1);
		}
		return;
	}
	void childEvent(TQChildEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.trinitydesktop.qt.TQChildEvent")) {
			TQObject::childEvent(arg1);
		}
		return;
	}
	void setUnchanged(const TQRect& arg1) {
		if (!QtSupport::eventDelegate(this,"setUnchanged",(void*)&arg1,"org.trinitydesktop.qt.TQRect")) {
			TQCanvas::setUnchanged(arg1);
		}
		return;
	}
	void addView(TQCanvasView* arg1) {
		if (!QtSupport::eventDelegate(this,"addView",(void*)arg1,"org.trinitydesktop.qt.TQCanvasView")) {
			TQCanvas::addView(arg1);
		}
		return;
	}
	void setBackgroundColor(const TQColor& arg1) {
		if (!QtSupport::eventDelegate(this,"setBackgroundColor",(void*)&arg1,"org.trinitydesktop.qt.TQColor")) {
			TQCanvas::setBackgroundColor(arg1);
		}
		return;
	}
	void insertChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
			TQObject::insertChild(arg1);
		}
		return;
	}
	bool eventFilter(TQObject* object,TQEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.trinitydesktop.qt.TQCanvas",object,event)) {
			return TQObject::eventFilter(object,event);
		} else {
			return TRUE;
		}
	}
	void advance() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.qt.TQCanvas","advance")) {
			TQCanvas::advance();
		}
		return;
	}
};

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvas_addAnimation(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQCanvas*) QtSupport::getQt(env, obj))->addAnimation((TQCanvasItem*) QtSupport::getQt(env, arg1));
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvas_addItem(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQCanvas*) QtSupport::getQt(env, obj))->addItem((TQCanvasItem*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvas_addView(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQCanvas*) QtSupport::getQt(env, obj))->addView((TQCanvasView*) QtSupport::getQt(env, arg1));
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QCanvas_allItems(JNIEnv* env, jobject obj)
{
	TQCanvasItemList  _qlist;
	_qlist = ((TQCanvas*) QtSupport::getQt(env, obj))->allItems();
	return (jobject) QtSupport::arrayWithTQCanvasItemList(env, (TQCanvasItemList*) &_qlist);
}

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

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

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

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QCanvas_collisions__Lorg_trinitydesktop_qt_QPointArray_2Lorg_trinitydesktop_qt_QCanvasItem_2Z(JNIEnv* env, jobject obj, jobject pa, jobject item, jboolean exact)
{
	TQCanvasItemList  _qlist;
	_qlist = ((TQCanvas*) QtSupport::getQt(env, obj))->collisions((const TQPointArray&)*(const TQPointArray*) QtSupport::getQt(env, pa), (const TQCanvasItem*) QtSupport::getQt(env, item), (bool) exact);
	return (jobject) QtSupport::arrayWithTQCanvasItemList(env, (TQCanvasItemList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QCanvas_collisions__Lorg_trinitydesktop_qt_QPoint_2(JNIEnv* env, jobject obj, jobject arg1)
{
	TQCanvasItemList  _qlist;
	_qlist = ((TQCanvas*) QtSupport::getQt(env, obj))->collisions((const TQPoint&)*(const TQPoint*) QtSupport::getQt(env, arg1));
	return (jobject) QtSupport::arrayWithTQCanvasItemList(env, (TQCanvasItemList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QCanvas_collisions__Lorg_trinitydesktop_qt_QRect_2(JNIEnv* env, jobject obj, jobject arg1)
{
	TQCanvasItemList  _qlist;
	_qlist = ((TQCanvas*) QtSupport::getQt(env, obj))->collisions((const TQRect&)*(const TQRect*) QtSupport::getQt(env, arg1));
	return (jobject) QtSupport::arrayWithTQCanvasItemList(env, (TQCanvasItemList*) &_qlist);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvas_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QCanvas_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvas_drawArea__Lorg_trinitydesktop_qt_QRect_2Lorg_trinitydesktop_qt_QPainter_2(JNIEnv* env, jobject obj, jobject arg1, jobject p)
{
	((TQCanvas*) QtSupport::getQt(env, obj))->drawArea((const TQRect&)*(const TQRect*) QtSupport::getQt(env, arg1), (TQPainter*) QtSupport::getQt(env, p));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvas_drawArea__Lorg_trinitydesktop_qt_QRect_2Lorg_trinitydesktop_qt_QPainter_2Z(JNIEnv* env, jobject obj, jobject arg1, jobject p, jboolean double_buffer)
{
	((TQCanvas*) QtSupport::getQt(env, obj))->drawArea((const TQRect&)*(const TQRect*) QtSupport::getQt(env, arg1), (TQPainter*) QtSupport::getQt(env, p), (bool) double_buffer);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvas_drawBackground(JNIEnv* env, jobject obj, jobject arg1, jobject area)
{
	((TQCanvasJBridge*) QtSupport::getQt(env, obj))->protected_drawBackground((TQPainter&)*(TQPainter*) QtSupport::getQt(env, arg1), (const TQRect&)*(const TQRect*) QtSupport::getQt(env, area));
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvas_drawCanvasArea__Lorg_trinitydesktop_qt_QRect_2Lorg_trinitydesktop_qt_QPainter_2(JNIEnv* env, jobject obj, jobject arg1, jobject p)
{
	((TQCanvas*) QtSupport::getQt(env, obj))->drawCanvasArea((const TQRect&)*(const TQRect*) QtSupport::getQt(env, arg1), (TQPainter*) QtSupport::getQt(env, p));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvas_drawCanvasArea__Lorg_trinitydesktop_qt_QRect_2Lorg_trinitydesktop_qt_QPainter_2Z(JNIEnv* env, jobject obj, jobject arg1, jobject p, jboolean double_buffer)
{
	((TQCanvas*) QtSupport::getQt(env, obj))->drawCanvasArea((const TQRect&)*(const TQRect*) QtSupport::getQt(env, arg1), (TQPainter*) QtSupport::getQt(env, p), (bool) double_buffer);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvas_drawForeground(JNIEnv* env, jobject obj, jobject arg1, jobject area)
{
	((TQCanvasJBridge*) QtSupport::getQt(env, obj))->protected_drawForeground((TQPainter&)*(TQPainter*) QtSupport::getQt(env, arg1), (const TQRect&)*(const TQRect*) QtSupport::getQt(env, area));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvas_drawViewArea(JNIEnv* env, jobject obj, jobject view, jobject p, jobject r, jboolean dbuf)
{
	((TQCanvas*) QtSupport::getQt(env, obj))->drawViewArea((TQCanvasView*) QtSupport::getQt(env, view), (TQPainter*) QtSupport::getQt(env, p), (const TQRect&)*(const TQRect*) QtSupport::getQt(env, r), (bool) dbuf);
	return;
}

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

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

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QCanvas_metaObject(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQCanvas*) QtSupport::getQt(env, obj))->metaObject(), "org.trinitydesktop.qt.TQMetaObject");
	return xret;
}

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvas_newTQCanvas__Lorg_trinitydesktop_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parent, jstring name)
{
static TQCString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQCanvasJBridge((TQObject*) 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_trinitydesktop_qt_QCanvas_newTQCanvas__Lorg_trinitydesktop_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 TQCanvasJBridge((TQPixmap)*(TQPixmap*) 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_trinitydesktop_qt_QCanvas_onCanvas__II(JNIEnv* env, jobject obj, jint x, jint y)
{
	jboolean xret = (jboolean) ((TQCanvas*) QtSupport::getQt(env, obj))->onCanvas((int) x, (int) y);
	return xret;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvas_removeAnimation(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQCanvas*) QtSupport::getQt(env, obj))->removeAnimation((TQCanvasItem*) QtSupport::getQt(env, arg1));
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvas_removeItem(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQCanvas*) QtSupport::getQt(env, obj))->removeItem((TQCanvasItem*) QtSupport::getQt(env, arg1));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvas_removeView(JNIEnv* env, jobject obj, jobject arg1)
{
	((TQCanvas*) QtSupport::getQt(env, obj))->removeView((TQCanvasView*) QtSupport::getQt(env, arg1));
	return;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QCanvas_tr__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1)
{
	TQString  _qstring;
	(void) cls;
static TQCString* _qstring_arg1 = 0;
	_qstring = TQCanvasJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QCanvas_tr__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1, jstring arg2)
{
	TQString  _qstring;
	(void) cls;
static TQCString* _qstring_arg1 = 0;
static TQCString* _qstring_arg2 = 0;
	_qstring = TQCanvasJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvas_update(JNIEnv* env, jobject obj)
{
	((TQCanvasJBridge*) QtSupport::getQt(env, obj))->public_update();
	return;
}

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

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

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

