/***************************************************************************
                            qt_QCanvasPolygonalItem.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_QCanvasPolygonalItem.h"
}

#include <qcanvas.h>

void qt_del_QCanvasPolygonalItem( qt_QCanvasPolygonalItem* p ){
	delete (QCanvasPolygonalItem*) p;
}
int qt_QCanvasPolygonalItem_collidesWith( qt_QCanvasPolygonalItem* instPointer,qt_QCanvasItem* arg1){
	return (int) ((QCanvasPolygonalItem*)instPointer)->collidesWith((QCanvasItem*)arg1);
}
void qt_QCanvasPolygonalItem_setPen( qt_QCanvasPolygonalItem* instPointer,qt_QPen* p){
	((QCanvasPolygonalItem*)instPointer)->setPen((QPen)* (QPen*)p);
	return;
}
void qt_QCanvasPolygonalItem_setBrush( qt_QCanvasPolygonalItem* instPointer,qt_QBrush* b){
	((QCanvasPolygonalItem*)instPointer)->setBrush((QBrush)* (QBrush*)b);
	return;
}
qt_QPen* qt_QCanvasPolygonalItem_pen( qt_QCanvasPolygonalItem* instPointer){
	QPen _b= ((QCanvasPolygonalItem*)instPointer)->pen();
	return (qt_QPen*)new QPen(_b.color(),_b.width(),_b.style());
}
qt_QBrush* qt_QCanvasPolygonalItem_brush( qt_QCanvasPolygonalItem* instPointer){
	QBrush _b= ((QCanvasPolygonalItem*)instPointer)->brush();
	return (qt_QBrush*)new QBrush(_b.color(),_b.style());
}
qt_QPointArray* qt_QCanvasPolygonalItem_areaPoints( qt_QCanvasPolygonalItem* instPointer){
	return (qt_QPointArray*)new QPointArray(((QCanvasPolygonalItem*)instPointer)->areaPoints());
}
qt_QPointArray* qt_QCanvasPolygonalItem_areaPointsAdvanced( qt_QCanvasPolygonalItem* instPointer){
	return (qt_QPointArray*)new QPointArray(((QCanvasPolygonalItem*)instPointer)->areaPointsAdvanced());
}
qt_QRect* qt_QCanvasPolygonalItem_boundingRect( qt_QCanvasPolygonalItem* instPointer){
	QRect _r= ((QCanvasPolygonalItem*)instPointer)->boundingRect();
	return (qt_QRect*)new QRect(_r.left(),_r.top(),_r.width(),_r.height());
}
int qt_QCanvasPolygonalItem_rtti( qt_QCanvasPolygonalItem* instPointer){
	return (int) ((QCanvasPolygonalItem*)instPointer)->rtti();
}
