/***************************************************************************
                            qt_QCanvasText.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_QCanvasText.h"
}

#include <qcanvas.h>

class QCanvasTextBridge : public QCanvasText
{
public:
	QCanvasTextBridge(QCanvas* canvas) : QCanvasText(canvas) {}
	QCanvasTextBridge(const QString& arg1, QCanvas* canvas) : QCanvasText(arg1, canvas) {}
	QCanvasTextBridge(const QString& arg1, QFont arg2, QCanvas* canvas) : QCanvasText(arg1, arg2, canvas) {}
	~QCanvasTextBridge() {}
	void protected_draw(QPainter& arg1) {
		QCanvasText::draw(arg1);
		return;
	}
};

qt_QCanvasText * qt_new_QCanvasText(qt_QCanvas* canvas){
	return (qt_QCanvasText *) new QCanvasTextBridge((QCanvas*)canvas);
}
qt_QCanvasText * qt_new_QCanvasText1(qt_QString * arg1, qt_QCanvas* canvas){
	return (qt_QCanvasText *) new QCanvasTextBridge((QString&)* (QString*)arg1, (QCanvas*)canvas);
}
qt_QCanvasText * qt_new_QCanvasText2(qt_QString * arg1, qt_QFont * arg2, qt_QCanvas* canvas){
	return (qt_QCanvasText *) new QCanvasTextBridge((QString&)* (QString*)arg1, (QFont)* (QFont*)arg2, (QCanvas*)canvas);
}
void qt_del_QCanvasText( qt_QCanvasText* p ){
	delete (QCanvasTextBridge*) p;
}
void qt_QCanvasText_setText( qt_QCanvasText* instPointer,qt_QString * arg1){
	((QCanvasTextBridge*)instPointer)->setText((QString&)* (QString*)arg1);
	return;
}
void qt_QCanvasText_setFont( qt_QCanvasText* instPointer,qt_QFont * arg1){
	((QCanvasTextBridge*)instPointer)->setFont((QFont&)* (QFont*)arg1);
	return;
}
void qt_QCanvasText_setColor( qt_QCanvasText* instPointer,qt_QColor * arg1){
	((QCanvasTextBridge*)instPointer)->setColor((QColor&)* (QColor*)arg1);
	return;
}
qt_QString * qt_QCanvasText_text( qt_QCanvasText* instPointer){
	return (qt_QString *)new QString(((QCanvasTextBridge*)instPointer)->text());
}
qt_QFont * qt_QCanvasText_font( qt_QCanvasText* instPointer){
	return (qt_QFont *)new QFont(((QCanvasTextBridge*)instPointer)->font());
}
qt_QColor * qt_QCanvasText_color( qt_QCanvasText* instPointer){
	return (qt_QColor *)new QColor(((QCanvasTextBridge*)instPointer)->color());
}
void qt_QCanvasText_moveBy( qt_QCanvasText* instPointer,double dx, double dy){
	((QCanvasTextBridge*)instPointer)->moveBy((double)dx, (double)dy);
	return;
}
int qt_QCanvasText_textFlags( qt_QCanvasText* instPointer){
	return (int) ((QCanvasTextBridge*)instPointer)->textFlags();
}
void qt_QCanvasText_setTextFlags( qt_QCanvasText* instPointer,int arg1){
	((QCanvasTextBridge*)instPointer)->setTextFlags((int)arg1);
	return;
}
qt_QRect* qt_QCanvasText_boundingRect( qt_QCanvasText* instPointer){
	QRect _r= ((QCanvasTextBridge*)instPointer)->boundingRect();
	return (qt_QRect*)new QRect(_r.left(),_r.top(),_r.width(),_r.height());
}
int qt_QCanvasText_collidesWith( qt_QCanvasText* instPointer,qt_QCanvasItem* arg1){
	return (int) ((QCanvasTextBridge*)instPointer)->collidesWith((QCanvasItem*)arg1);
}
int qt_QCanvasText_rtti( qt_QCanvasText* instPointer){
	return (int) ((QCanvasTextBridge*)instPointer)->rtti();
}
void qt_QCanvasText_draw( qt_QCanvasText* instPointer,qt_QPainter* arg1){
	((QCanvasTextBridge*)instPointer)->protected_draw((QPainter&)* (QPainter*)arg1);
	return;
}
