/***************************************************************************
                            qt_QPen.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_QPen.h"
}

#include <qpen.h>

class QPenBridge : public QPen
{
public:
	QPenBridge() : QPen() {}
	QPenBridge(PenStyle arg1) : QPen(arg1) {}
	QPenBridge(const QColor& color, uint width, PenStyle style) : QPen(color, width, style) {}
	QPenBridge(const QColor& cl, uint w, PenStyle s, PenCapStyle c, PenJoinStyle j) : QPen(cl, w, s, c, j) {}
	QPenBridge(const QPen& arg1) : QPen(arg1) {}
	~QPenBridge() {}
};

qt_QPen * qt_new_QPen(){
	return (qt_QPen *) new QPenBridge();
}
qt_QPen * qt_new_QPen1(int arg1){
	return (qt_QPen *) new QPenBridge((Qt::PenStyle)arg1);
}
qt_QPen * qt_new_QPen2(qt_QColor * color, unsigned int width, int style){
	return (qt_QPen *) new QPenBridge((QColor&)* (QColor*)color, (uint)width, (Qt::PenStyle)style);
}
qt_QPen * qt_new_QPen3(qt_QColor * cl, unsigned int w, int s, int c, int j){
	return (qt_QPen *) new QPenBridge((QColor&)* (QColor*)cl, (uint)w, (Qt::PenStyle)s, (Qt::PenCapStyle)c, (Qt::PenJoinStyle)j);
}
qt_QPen * qt_new_QPen4(qt_QPen * arg1){
	return (qt_QPen *) new QPenBridge((QPen&)* (QPen*)arg1);
}
void qt_del_QPen( qt_QPen* p ){
	delete (QPenBridge*) p;
}
int qt_QPen_style( qt_QPen* instPointer){
	return (int) ((QPenBridge*)instPointer)->style();
}
void qt_QPen_setStyle( qt_QPen* instPointer,int arg1){
	((QPenBridge*)instPointer)->setStyle((Qt::PenStyle)arg1);
	return;
}
unsigned int qt_QPen_width( qt_QPen* instPointer){
	return (unsigned int) ((QPenBridge*)instPointer)->width();
}
void qt_QPen_setWidth( qt_QPen* instPointer,unsigned int arg1){
	((QPenBridge*)instPointer)->setWidth((uint)arg1);
	return;
}
qt_QColor * qt_QPen_color( qt_QPen* instPointer){
	return (qt_QColor *) (const QColor *)&((QPenBridge*)instPointer)->color();
}
void qt_QPen_setColor( qt_QPen* instPointer,qt_QColor * arg1){
	((QPenBridge*)instPointer)->setColor((QColor&)* (QColor*)arg1);
	return;
}
int qt_QPen_capStyle( qt_QPen* instPointer){
	return (int) ((QPenBridge*)instPointer)->capStyle();
}
void qt_QPen_setCapStyle( qt_QPen* instPointer,int arg1){
	((QPenBridge*)instPointer)->setCapStyle((Qt::PenCapStyle)arg1);
	return;
}
int qt_QPen_joinStyle( qt_QPen* instPointer){
	return (int) ((QPenBridge*)instPointer)->joinStyle();
}
void qt_QPen_setJoinStyle( qt_QPen* instPointer,int arg1){
	((QPenBridge*)instPointer)->setJoinStyle((Qt::PenJoinStyle)arg1);
	return;
}
