/***************************************************************************
                            qt_QCanvasPolygon.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_QCanvasPolygon.h"
}

#include <qcanvas.h>

class QCanvasPolygonBridge : public QCanvasPolygon
{
public:
	QCanvasPolygonBridge(QCanvas* canvas) : QCanvasPolygon(canvas) {}
	~QCanvasPolygonBridge() {}
	void protected_drawShape(QPainter& arg1) {
		QCanvasPolygon::drawShape(arg1);
		return;
	}
};

qt_QCanvasPolygon * qt_new_QCanvasPolygon(qt_QCanvas* canvas){
	return (qt_QCanvasPolygon *) new QCanvasPolygonBridge((QCanvas*)canvas);
}
void qt_del_QCanvasPolygon( qt_QCanvasPolygon* p ){
	delete (QCanvasPolygonBridge*) p;
}
void qt_QCanvasPolygon_setPoints( qt_QCanvasPolygon* instPointer,qt_QPointArray* arg1){
	((QCanvasPolygonBridge*)instPointer)->setPoints((QPointArray)* (QPointArray*)arg1);
	return;
}
qt_QPointArray* qt_QCanvasPolygon_points( qt_QCanvasPolygon* instPointer){
	return (qt_QPointArray*)new QPointArray(((QCanvasPolygonBridge*)instPointer)->points());
}
void qt_QCanvasPolygon_moveBy( qt_QCanvasPolygon* instPointer,double dx, double dy){
	((QCanvasPolygonBridge*)instPointer)->moveBy((double)dx, (double)dy);
	return;
}
qt_QPointArray* qt_QCanvasPolygon_areaPoints( qt_QCanvasPolygon* instPointer){
	return (qt_QPointArray*)new QPointArray(((QCanvasPolygonBridge*)instPointer)->areaPoints());
}
int qt_QCanvasPolygon_rtti( qt_QCanvasPolygon* instPointer){
	return (int) ((QCanvasPolygonBridge*)instPointer)->rtti();
}
void qt_QCanvasPolygon_drawShape( qt_QCanvasPolygon* instPointer,qt_QPainter* arg1){
	((QCanvasPolygonBridge*)instPointer)->protected_drawShape((QPainter&)* (QPainter*)arg1);
	return;
}
