/***************************************************************************
                            qt_QCanvasRectangle.cpp -  description
                             -------------------
    begin                : Tue Nov 20 20:51:20 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Tue Nov 20 20:51:20 2001, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This library is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU Library General Public License as       *
 *   published by the Free Software Foundation; either version 2 of the    *
 *   License, or (at your option) any later version.                       *
 *                                                                         *
 ***************************************************************************/

extern "C" {
#include "qt_QCanvasRectangle.h"
}

#include <qcanvas.h>

class QCanvasRectangleBridge : public QCanvasRectangle
{
public:
	QCanvasRectangleBridge(QCanvas* canvas) : QCanvasRectangle(canvas) {}
	QCanvasRectangleBridge(const QRect& arg1, QCanvas* canvas) : QCanvasRectangle(arg1, canvas) {}
	QCanvasRectangleBridge(int x, int y, int width, int height, QCanvas* canvas) : QCanvasRectangle(x, y, width, height, canvas) {}
	~QCanvasRectangleBridge() {}
	void protected_drawShape(QPainter& arg1) {
		QCanvasRectangle::drawShape(arg1);
		return;
	}
	QPointArray  protected_chunks() {
		return (QPointArray ) QCanvasRectangle::chunks();
	}
};

qt_QCanvasRectangle * qt_new_QCanvasRectangle(qt_QCanvas* canvas){
	return (qt_QCanvasRectangle *) new QCanvasRectangleBridge((QCanvas*)canvas);
}
qt_QCanvasRectangle * qt_new_QCanvasRectangle1(qt_QRect* arg1, qt_QCanvas* canvas){
	return (qt_QCanvasRectangle *) new QCanvasRectangleBridge((QRect&)* (QRect*)arg1, (QCanvas*)canvas);
}
qt_QCanvasRectangle * qt_new_QCanvasRectangle2(int x, int y, int width, int height, qt_QCanvas* canvas){
	return (qt_QCanvasRectangle *) new QCanvasRectangleBridge((int)x, (int)y, (int)width, (int)height, (QCanvas*)canvas);
}
void qt_del_QCanvasRectangle( qt_QCanvasRectangle* p ){
	delete (QCanvasRectangleBridge*) p;
}
int qt_QCanvasRectangle_width( qt_QCanvasRectangle* instPointer){
	return (int) ((QCanvasRectangleBridge*)instPointer)->width();
}
int qt_QCanvasRectangle_height( qt_QCanvasRectangle* instPointer){
	return (int) ((QCanvasRectangleBridge*)instPointer)->height();
}
void qt_QCanvasRectangle_setSize( qt_QCanvasRectangle* instPointer,int w, int h){
	((QCanvasRectangleBridge*)instPointer)->setSize((int)w, (int)h);
	return;
}
qt_QSize * qt_QCanvasRectangle_size( qt_QCanvasRectangle* instPointer){
	QSize _s= ((QCanvasRectangleBridge*)instPointer)->size();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
qt_QPointArray* qt_QCanvasRectangle_areaPoints( qt_QCanvasRectangle* instPointer){
	return (qt_QPointArray*)new QPointArray(((QCanvasRectangleBridge*)instPointer)->areaPoints());
}
qt_QRect* qt_QCanvasRectangle_rect( qt_QCanvasRectangle* instPointer){
	QRect _r= ((QCanvasRectangleBridge*)instPointer)->rect();
	return (qt_QRect*)new QRect(_r.left(),_r.top(),_r.width(),_r.height());
}
int qt_QCanvasRectangle_collidesWith( qt_QCanvasRectangle* instPointer,qt_QCanvasItem* arg1){
	return (int) ((QCanvasRectangleBridge*)instPointer)->collidesWith((QCanvasItem*)arg1);
}
int qt_QCanvasRectangle_rtti( qt_QCanvasRectangle* instPointer){
	return (int) ((QCanvasRectangleBridge*)instPointer)->rtti();
}
void qt_QCanvasRectangle_drawShape( qt_QCanvasRectangle* instPointer,qt_QPainter* arg1){
	((QCanvasRectangleBridge*)instPointer)->protected_drawShape((QPainter&)* (QPainter*)arg1);
	return;
}
qt_QPointArray* qt_QCanvasRectangle_chunks( qt_QCanvasRectangle* instPointer){
	return (qt_QPointArray*)new QPointArray(((QCanvasRectangleBridge*)instPointer)->protected_chunks());
}
