/***************************************************************************
                            qt_QCanvasLine.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_QCanvasLine.h"
}

#include <qcanvas.h>

class QCanvasLineBridge : public QCanvasLine
{
public:
	QCanvasLineBridge(QCanvas* canvas) : QCanvasLine(canvas) {}
	~QCanvasLineBridge() {}
	void protected_drawShape(QPainter& arg1) {
		QCanvasLine::drawShape(arg1);
		return;
	}
	QPointArray  protected_areaPoints() {
		return (QPointArray ) QCanvasLine::areaPoints();
	}
};

qt_QCanvasLine * qt_new_QCanvasLine(qt_QCanvas* canvas){
	return (qt_QCanvasLine *) new QCanvasLineBridge((QCanvas*)canvas);
}
void qt_del_QCanvasLine( qt_QCanvasLine* p ){
	delete (QCanvasLineBridge*) p;
}
void qt_QCanvasLine_setPoints( qt_QCanvasLine* instPointer,int x1, int y1, int x2, int y2){
	((QCanvasLineBridge*)instPointer)->setPoints((int)x1, (int)y1, (int)x2, (int)y2);
	return;
}
qt_QPoint* qt_QCanvasLine_startPoint( qt_QCanvasLine* instPointer){
	QPoint _p= ((QCanvasLineBridge*)instPointer)->startPoint();
	return (qt_QPoint*)new QPoint(_p.x(),_p.y());
}
qt_QPoint* qt_QCanvasLine_endPoint( qt_QCanvasLine* instPointer){
	QPoint _p= ((QCanvasLineBridge*)instPointer)->endPoint();
	return (qt_QPoint*)new QPoint(_p.x(),_p.y());
}
int qt_QCanvasLine_rtti( qt_QCanvasLine* instPointer){
	return (int) ((QCanvasLineBridge*)instPointer)->rtti();
}
void qt_QCanvasLine_setPen( qt_QCanvasLine* instPointer,qt_QPen* p){
	((QCanvasLineBridge*)instPointer)->setPen((QPen)* (QPen*)p);
	return;
}
void qt_QCanvasLine_drawShape( qt_QCanvasLine* instPointer,qt_QPainter* arg1){
	((QCanvasLineBridge*)instPointer)->protected_drawShape((QPainter&)* (QPainter*)arg1);
	return;
}
qt_QPointArray* qt_QCanvasLine_areaPoints( qt_QCanvasLine* instPointer){
	return (qt_QPointArray*)new QPointArray(((QCanvasLineBridge*)instPointer)->protected_areaPoints());
}
