//Auto-generated by kalyptus. DO NOT EDIT.
#include <qrect.h>
#include <qcanvas.h>
#include <qpainter.h>

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

class QCanvasSpriteJBridge : public QCanvasSprite
{
public:
	QCanvasSpriteJBridge(QCanvasPixmapArray* arg1,QCanvas* arg2) : QCanvasSprite(arg1,arg2) {};
	void public_setFrameAnimation() {
		QCanvasSprite::setFrameAnimation();
		return;
	}
	~QCanvasSpriteJBridge() {QtSupport::qtKeyDeleted(this);}
};

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvasSprite_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QCanvasSprite_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvasSprite_draw(JNIEnv* env, jobject obj, jobject painter)
{
	((QCanvasSprite*) QtSupport::getQt(env, obj))->draw((QPainter&)*(QPainter*) QtSupport::getQt(env, painter));
	return;
}

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

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

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

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QCanvasSprite_imageAdvanced(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QCanvasSprite*) QtSupport::getQt(env, obj))->imageAdvanced(), "org.kde.qt.QCanvasPixmap");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QCanvasSprite_image__(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QCanvasSprite*) QtSupport::getQt(env, obj))->image(), "org.kde.qt.QCanvasPixmap");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QCanvasSprite_image__I(JNIEnv* env, jobject obj, jint f)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QCanvasSprite*) QtSupport::getQt(env, obj))->image((int) f), "org.kde.qt.QCanvasPixmap");
	return xret;
}

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvasSprite_newQCanvasSprite(JNIEnv* env, jobject obj, jobject array, jobject canvas)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QCanvasSpriteJBridge((QCanvasPixmapArray*) QtSupport::getQt(env, array), (QCanvas*) QtSupport::getQt(env, canvas)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QCanvasSprite_setSequence(JNIEnv* env, jobject obj, jobject seq)
{
	((QCanvasSprite*) QtSupport::getQt(env, obj))->setSequence((QCanvasPixmapArray*) QtSupport::getQt(env, seq));
	return;
}

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

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

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

