//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqrect.h>
#include <tqcanvas.h>
#include <tqpainter.h>

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

class TQCanvasSpriteJBridge : public TQCanvasSprite
{
public:
	TQCanvasSpriteJBridge(TQCanvasPixmapArray* arg1,TQCanvas* arg2) : TQCanvasSprite(arg1,arg2) {};
	void public_setFrameAnimation() {
		TQCanvasSprite::setFrameAnimation();
		return;
	}
	~TQCanvasSpriteJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvasSprite_advance(JNIEnv* env, jobject obj, jint stage)
{
	((TQCanvasSprite*) QtSupport::getQt(env, obj))->advance((int) stage);
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QCanvasSprite_bottomEdge__(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQCanvasSprite*) QtSupport::getQt(env, obj))->bottomEdge();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QCanvasSprite_bottomEdge__I(JNIEnv* env, jobject obj, jint ny)
{
	jint xret = (jint) ((TQCanvasSprite*) QtSupport::getQt(env, obj))->bottomEdge((int) ny);
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QCanvasSprite_collidesWith(JNIEnv* env, jobject obj, jobject arg1)
{
	jboolean xret = (jboolean) ((TQCanvasSprite*) QtSupport::getQt(env, obj))->collidesWith((const TQCanvasItem*) QtSupport::getQt(env, arg1));
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvasSprite_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QCanvasSprite_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvasSprite_draw(JNIEnv* env, jobject obj, jobject painter)
{
	((TQCanvasSprite*) QtSupport::getQt(env, obj))->draw((TQPainter&)*(TQPainter*) QtSupport::getQt(env, painter));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvasSprite_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj)) {
		delete (TQCanvasSprite*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QCanvasSprite_frameCount(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQCanvasSprite*) QtSupport::getQt(env, obj))->frameCount();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QCanvasSprite_frame(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQCanvasSprite*) QtSupport::getQt(env, obj))->frame();
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QCanvasSprite_imageAdvanced(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQCanvasSprite*) QtSupport::getQt(env, obj))->imageAdvanced(), "org.trinitydesktop.qt.TQCanvasPixmap");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QCanvasSprite_image__(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQCanvasSprite*) QtSupport::getQt(env, obj))->image(), "org.trinitydesktop.qt.TQCanvasPixmap");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QCanvasSprite_image__I(JNIEnv* env, jobject obj, jint f)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQCanvasSprite*) QtSupport::getQt(env, obj))->image((int) f), "org.trinitydesktop.qt.TQCanvasPixmap");
	return xret;
}

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

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QCanvasSprite_leftEdge__(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQCanvasSprite*) QtSupport::getQt(env, obj))->leftEdge();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QCanvasSprite_leftEdge__I(JNIEnv* env, jobject obj, jint nx)
{
	jint xret = (jint) ((TQCanvasSprite*) QtSupport::getQt(env, obj))->leftEdge((int) nx);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvasSprite_move__DD(JNIEnv* env, jobject obj, jdouble x, jdouble y)
{
	((TQCanvasSprite*) QtSupport::getQt(env, obj))->move((double) x, (double) y);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvasSprite_move__DDI(JNIEnv* env, jobject obj, jdouble x, jdouble y, jint frame)
{
	((TQCanvasSprite*) QtSupport::getQt(env, obj))->move((double) x, (double) y, (int) frame);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvasSprite_newTQCanvasSprite(JNIEnv* env, jobject obj, jobject array, jobject canvas)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQCanvasSpriteJBridge((TQCanvasPixmapArray*) QtSupport::getQt(env, array), (TQCanvas*) QtSupport::getQt(env, canvas)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QCanvasSprite_rightEdge__(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQCanvasSprite*) QtSupport::getQt(env, obj))->rightEdge();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QCanvasSprite_rightEdge__I(JNIEnv* env, jobject obj, jint nx)
{
	jint xret = (jint) ((TQCanvasSprite*) QtSupport::getQt(env, obj))->rightEdge((int) nx);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QCanvasSprite_rtti(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQCanvasSprite*) QtSupport::getQt(env, obj))->rtti();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvasSprite_setFrameAnimation__(JNIEnv* env, jobject obj)
{
	((TQCanvasSpriteJBridge*) QtSupport::getQt(env, obj))->public_setFrameAnimation();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvasSprite_setFrameAnimation__I(JNIEnv* env, jobject obj, jint arg1)
{
	((TQCanvasSprite*) QtSupport::getQt(env, obj))->setFrameAnimation((TQCanvasSprite::FrameAnimationType) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvasSprite_setFrameAnimation__II(JNIEnv* env, jobject obj, jint arg1, jint step)
{
	((TQCanvasSprite*) QtSupport::getQt(env, obj))->setFrameAnimation((TQCanvasSprite::FrameAnimationType) arg1, (int) step);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvasSprite_setFrameAnimation__III(JNIEnv* env, jobject obj, jint arg1, jint step, jint state)
{
	((TQCanvasSprite*) QtSupport::getQt(env, obj))->setFrameAnimation((TQCanvasSprite::FrameAnimationType) arg1, (int) step, (int) state);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvasSprite_setFrame(JNIEnv* env, jobject obj, jint arg1)
{
	((TQCanvasSprite*) QtSupport::getQt(env, obj))->setFrame((int) arg1);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QCanvasSprite_setSequence(JNIEnv* env, jobject obj, jobject seq)
{
	((TQCanvasSprite*) QtSupport::getQt(env, obj))->setSequence((TQCanvasPixmapArray*) QtSupport::getQt(env, seq));
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QCanvasSprite_topEdge__(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQCanvasSprite*) QtSupport::getQt(env, obj))->topEdge();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QCanvasSprite_topEdge__I(JNIEnv* env, jobject obj, jint ny)
{
	jint xret = (jint) ((TQCanvasSprite*) QtSupport::getQt(env, obj))->topEdge((int) ny);
	return xret;
}

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

