/***************************************************************************
                            qt_QPainter.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_QPainter.h"
}

#include <qpainter.h>

class QPainterBridge : public QPainter
{
public:
	QPainterBridge() : QPainter() {}
	QPainterBridge(const QPaintDevice* arg1, bool unclipped) : QPainter(arg1, unclipped) {}
	QPainterBridge(const QPaintDevice* arg1, const QWidget* arg2, bool unclipped) : QPainter(arg1, arg2, unclipped) {}
	~QPainterBridge() {}
//	void protected_initPaintDevice(bool force) {
//		QPainter::initPaintDevice(force);
//		return;
//	}
//	void protected_qt_format_text(const QFont& arg1, const QRect& r, int tf, const QString& str, int len, QRect* brect, int tabstops, int* tabarray, int tabarraylen, QTextParag* * internal, QPainter* painter) {
//		QPainter::qt_format_text(arg1, r, tf, str, len, brect, tabstops, tabarray, tabarraylen, internal, painter);
//		return;
//	}
};

qt_QPainter * qt_new_QPainter(){
	return (qt_QPainter *) new QPainterBridge();
}
qt_QPainter * qt_new_QPainter1(qt_QPaintDevice * arg1, int unclipped){
	return (qt_QPainter *) new QPainterBridge((QPaintDevice*)arg1, (bool)unclipped);
}
qt_QPainter * qt_new_QPainter2(qt_QPaintDevice * arg1, qt_QWidget * arg2, int unclipped){
	return (qt_QPainter *) new QPainterBridge((QPaintDevice*)arg1, (QWidget*)arg2, (bool)unclipped);
}
void qt_del_QPainter( qt_QPainter* p ){
	delete (QPainterBridge*) p;
}
int qt_QPainter_begin( qt_QPainter* instPointer,qt_QPaintDevice * arg1, int unclipped){
	return (int) ((QPainterBridge*)instPointer)->begin((QPaintDevice*)arg1, (bool)unclipped);
}
int qt_QPainter_begin1( qt_QPainter* instPointer,qt_QPaintDevice * arg1, qt_QWidget * arg2, int unclipped){
	return (int) ((QPainterBridge*)instPointer)->begin((QPaintDevice*)arg1, (QWidget*)arg2, (bool)unclipped);
}
int qt_QPainter_end( qt_QPainter* instPointer){
	return (int) ((QPainterBridge*)instPointer)->end();
}
qt_QPaintDevice * qt_QPainter_device( qt_QPainter* instPointer){
	return (qt_QPaintDevice *) ((QPainterBridge*)instPointer)->device();
}
//qt_QGfx* qt_QPainter_internalGfx( qt_QPainter* instPointer){
//	return (qt_QGfx*) ((QPainterBridge*)instPointer)->internalGfx();
//}
int qt_QPainter_isActive( qt_QPainter* instPointer){
	return (int) ((QPainterBridge*)instPointer)->isActive();
}
void qt_QPainter_flush( qt_QPainter* instPointer,qt_QRegion * region, int cm){
	((QPainterBridge*)instPointer)->flush((QRegion&)* (QRegion*)region, (QPainter::CoordinateMode)cm);
	return;
}
void qt_QPainter_flush1( qt_QPainter* instPointer){
	((QPainterBridge*)instPointer)->flush();
	return;
}
void qt_QPainter_save( qt_QPainter* instPointer){
	((QPainterBridge*)instPointer)->save();
	return;
}
void qt_QPainter_restore( qt_QPainter* instPointer){
	((QPainterBridge*)instPointer)->restore();
	return;
}
qt_QFontMetrics * qt_QPainter_fontMetrics( qt_QPainter* instPointer){
	return (qt_QFontMetrics *)new QFontMetrics(((QPainterBridge*)instPointer)->fontMetrics());
}
qt_QFontInfo * qt_QPainter_fontInfo( qt_QPainter* instPointer){
	return (qt_QFontInfo *)new QFontInfo(((QPainterBridge*)instPointer)->fontInfo());
}
qt_QFont * qt_QPainter_font( qt_QPainter* instPointer){
	return (qt_QFont *) (const QFont *)&((QPainterBridge*)instPointer)->font();
}
void qt_QPainter_setFont( qt_QPainter* instPointer,qt_QFont * arg1){
	((QPainterBridge*)instPointer)->setFont((QFont&)* (QFont*)arg1);
	return;
}
qt_QPen * qt_QPainter_pen( qt_QPainter* instPointer){
	return (qt_QPen *) (const QPen *)&((QPainterBridge*)instPointer)->pen();
}
void qt_QPainter_setPen( qt_QPainter* instPointer,qt_QPen * arg1){
	((QPainterBridge*)instPointer)->setPen((QPen&)* (QPen*)arg1);
	return;
}
void qt_QPainter_setPen1( qt_QPainter* instPointer,int arg1){
	((QPainterBridge*)instPointer)->setPen((Qt::PenStyle)arg1);
	return;
}
void qt_QPainter_setPen2( qt_QPainter* instPointer,qt_QColor * arg1){
	((QPainterBridge*)instPointer)->setPen((QColor&)* (QColor*)arg1);
	return;
}
qt_QBrush * qt_QPainter_brush( qt_QPainter* instPointer){
	return (qt_QBrush *) (const QBrush *)&((QPainterBridge*)instPointer)->brush();
}
void qt_QPainter_setBrush( qt_QPainter* instPointer,qt_QBrush * arg1){
	((QPainterBridge*)instPointer)->setBrush((QBrush&)* (QBrush*)arg1);
	return;
}
void qt_QPainter_setBrush1( qt_QPainter* instPointer,int arg1){
	((QPainterBridge*)instPointer)->setBrush((Qt::BrushStyle)arg1);
	return;
}
void qt_QPainter_setBrush2( qt_QPainter* instPointer,qt_QColor * arg1){
	((QPainterBridge*)instPointer)->setBrush((QColor&)* (QColor*)arg1);
	return;
}
qt_QPoint* qt_QPainter_pos( qt_QPainter* instPointer){
	QPoint _p= ((QPainterBridge*)instPointer)->pos();
	return (qt_QPoint*)new QPoint(_p.x(),_p.y());
}
qt_QColor * qt_QPainter_backgroundColor( qt_QPainter* instPointer){
	return (qt_QColor *) (const QColor *)&((QPainterBridge*)instPointer)->backgroundColor();
}
void qt_QPainter_setBackgroundColor( qt_QPainter* instPointer,qt_QColor * arg1){
	((QPainterBridge*)instPointer)->setBackgroundColor((QColor&)* (QColor*)arg1);
	return;
}
int qt_QPainter_backgroundMode( qt_QPainter* instPointer){
	return (int) ((QPainterBridge*)instPointer)->backgroundMode();
}
void qt_QPainter_setBackgroundMode( qt_QPainter* instPointer,int arg1){
	((QPainterBridge*)instPointer)->setBackgroundMode((Qt::BGMode)arg1);
	return;
}
int qt_QPainter_rasterOp( qt_QPainter* instPointer){
	return (int) ((QPainterBridge*)instPointer)->rasterOp();
}
void qt_QPainter_setRasterOp( qt_QPainter* instPointer,int arg1){
	((QPainterBridge*)instPointer)->setRasterOp((Qt::RasterOp)arg1);
	return;
}
qt_QPoint* qt_QPainter_brushOrigin( qt_QPainter* instPointer){
	QPoint _p= ((QPainterBridge*)instPointer)->brushOrigin();
	return (qt_QPoint*)new QPoint(_p.x(),_p.y());
}
void qt_QPainter_setBrushOrigin( qt_QPainter* instPointer,int x, int y){
	((QPainterBridge*)instPointer)->setBrushOrigin((int)x, (int)y);
	return;
}
void qt_QPainter_setBrushOrigin1( qt_QPainter* instPointer,qt_QPoint* arg1){
	((QPainterBridge*)instPointer)->setBrushOrigin((QPoint&)* (QPoint*)arg1);
	return;
}
int qt_QPainter_hasViewXForm( qt_QPainter* instPointer){
	return (int) ((QPainterBridge*)instPointer)->hasViewXForm();
}
int qt_QPainter_hasWorldXForm( qt_QPainter* instPointer){
	return (int) ((QPainterBridge*)instPointer)->hasWorldXForm();
}
void qt_QPainter_setViewXForm( qt_QPainter* instPointer,int arg1){
	((QPainterBridge*)instPointer)->setViewXForm((bool)arg1);
	return;
}
qt_QRect* qt_QPainter_window( qt_QPainter* instPointer){
	QRect _r= ((QPainterBridge*)instPointer)->window();
	return (qt_QRect*)new QRect(_r.left(),_r.top(),_r.width(),_r.height());
}
void qt_QPainter_setWindow( qt_QPainter* instPointer,qt_QRect* arg1){
	((QPainterBridge*)instPointer)->setWindow((QRect&)* (QRect*)arg1);
	return;
}
void qt_QPainter_setWindow1( qt_QPainter* instPointer,int x, int y, int w, int h){
	((QPainterBridge*)instPointer)->setWindow((int)x, (int)y, (int)w, (int)h);
	return;
}
qt_QRect* qt_QPainter_viewport( qt_QPainter* instPointer){
	QRect _r= ((QPainterBridge*)instPointer)->viewport();
	return (qt_QRect*)new QRect(_r.left(),_r.top(),_r.width(),_r.height());
}
void qt_QPainter_setViewport( qt_QPainter* instPointer,qt_QRect* arg1){
	((QPainterBridge*)instPointer)->setViewport((QRect&)* (QRect*)arg1);
	return;
}
void qt_QPainter_setViewport1( qt_QPainter* instPointer,int x, int y, int w, int h){
	((QPainterBridge*)instPointer)->setViewport((int)x, (int)y, (int)w, (int)h);
	return;
}
void qt_QPainter_setWorldXForm( qt_QPainter* instPointer,int arg1){
	((QPainterBridge*)instPointer)->setWorldXForm((bool)arg1);
	return;
}
qt_QWMatrix * qt_QPainter_worldMatrix( qt_QPainter* instPointer){
	return (qt_QWMatrix *) (const QWMatrix *)&((QPainterBridge*)instPointer)->worldMatrix();
}
void qt_QPainter_setWorldMatrix( qt_QPainter* instPointer,qt_QWMatrix * arg1, int combine){
	((QPainterBridge*)instPointer)->setWorldMatrix((QWMatrix&)* (QWMatrix*)arg1, (bool)combine);
	return;
}
void qt_QPainter_saveWorldMatrix( qt_QPainter* instPointer){
	((QPainterBridge*)instPointer)->saveWorldMatrix();
	return;
}
void qt_QPainter_restoreWorldMatrix( qt_QPainter* instPointer){
	((QPainterBridge*)instPointer)->restoreWorldMatrix();
	return;
}
void qt_QPainter_scale( qt_QPainter* instPointer,double sx, double sy){
	((QPainterBridge*)instPointer)->scale((double)sx, (double)sy);
	return;
}
void qt_QPainter_shear( qt_QPainter* instPointer,double sh, double sv){
	((QPainterBridge*)instPointer)->shear((double)sh, (double)sv);
	return;
}
void qt_QPainter_rotate( qt_QPainter* instPointer,double a){
	((QPainterBridge*)instPointer)->rotate((double)a);
	return;
}
void qt_QPainter_translate( qt_QPainter* instPointer,double dx, double dy){
	((QPainterBridge*)instPointer)->translate((double)dx, (double)dy);
	return;
}
void qt_QPainter_resetXForm( qt_QPainter* instPointer){
	((QPainterBridge*)instPointer)->resetXForm();
	return;
}
double qt_QPainter_translationX( qt_QPainter* instPointer){
	return (double) ((QPainterBridge*)instPointer)->translationX();
}
double qt_QPainter_translationY( qt_QPainter* instPointer){
	return (double) ((QPainterBridge*)instPointer)->translationY();
}
qt_QPoint* qt_QPainter_xForm( qt_QPainter* instPointer,qt_QPoint* arg1){
	QPoint _p= ((QPainterBridge*)instPointer)->xForm((QPoint&)* (QPoint*)arg1);
	return (qt_QPoint*)new QPoint(_p.x(),_p.y());
}
qt_QRect* qt_QPainter_xForm1( qt_QPainter* instPointer,qt_QRect* arg1){
	QRect _r= ((QPainterBridge*)instPointer)->xForm((QRect&)* (QRect*)arg1);
	return (qt_QRect*)new QRect(_r.left(),_r.top(),_r.width(),_r.height());
}
qt_QPointArray* qt_QPainter_xForm2( qt_QPainter* instPointer,qt_QPointArray* arg1){
	return (qt_QPointArray*)new QPointArray(((QPainterBridge*)instPointer)->xForm((QPointArray&)* (QPointArray*)arg1));
}
qt_QPointArray* qt_QPainter_xForm3( qt_QPainter* instPointer,qt_QPointArray* arg1, int index, int npoints){
	return (qt_QPointArray*)new QPointArray(((QPainterBridge*)instPointer)->xForm((QPointArray&)* (QPointArray*)arg1, (int)index, (int)npoints));
}
qt_QPoint* qt_QPainter_xFormDev( qt_QPainter* instPointer,qt_QPoint* arg1){
	QPoint _p= ((QPainterBridge*)instPointer)->xFormDev((QPoint&)* (QPoint*)arg1);
	return (qt_QPoint*)new QPoint(_p.x(),_p.y());
}
qt_QRect* qt_QPainter_xFormDev1( qt_QPainter* instPointer,qt_QRect* arg1){
	QRect _r= ((QPainterBridge*)instPointer)->xFormDev((QRect&)* (QRect*)arg1);
	return (qt_QRect*)new QRect(_r.left(),_r.top(),_r.width(),_r.height());
}
qt_QPointArray* qt_QPainter_xFormDev2( qt_QPainter* instPointer,qt_QPointArray* arg1){
	return (qt_QPointArray*)new QPointArray(((QPainterBridge*)instPointer)->xFormDev((QPointArray&)* (QPointArray*)arg1));
}
qt_QPointArray* qt_QPainter_xFormDev3( qt_QPainter* instPointer,qt_QPointArray* arg1, int index, int npoints){
	return (qt_QPointArray*)new QPointArray(((QPainterBridge*)instPointer)->xFormDev((QPointArray&)* (QPointArray*)arg1, (int)index, (int)npoints));
}
void qt_QPainter_setClipping( qt_QPainter* instPointer,int arg1){
	((QPainterBridge*)instPointer)->setClipping((bool)arg1);
	return;
}
int qt_QPainter_hasClipping( qt_QPainter* instPointer){
	return (int) ((QPainterBridge*)instPointer)->hasClipping();
}
qt_QRegion * qt_QPainter_clipRegion( qt_QPainter* instPointer,int arg1){
	return (qt_QRegion *)new QRegion(((QPainterBridge*)instPointer)->clipRegion((QPainter::CoordinateMode)arg1));
}
void qt_QPainter_setClipRect( qt_QPainter* instPointer,qt_QRect* arg1, int arg2){
	((QPainterBridge*)instPointer)->setClipRect((QRect&)* (QRect*)arg1, (QPainter::CoordinateMode)arg2);
	return;
}
void qt_QPainter_setClipRect1( qt_QPainter* instPointer,int x, int y, int w, int h, int arg1){
	((QPainterBridge*)instPointer)->setClipRect((int)x, (int)y, (int)w, (int)h, (QPainter::CoordinateMode)arg1);
	return;
}
void qt_QPainter_setClipRegion( qt_QPainter* instPointer,qt_QRegion * arg1, int arg2){
	((QPainterBridge*)instPointer)->setClipRegion((QRegion&)* (QRegion*)arg1, (QPainter::CoordinateMode)arg2);
	return;
}
void qt_QPainter_drawPoint( qt_QPainter* instPointer,int x, int y){
	((QPainterBridge*)instPointer)->drawPoint((int)x, (int)y);
	return;
}
void qt_QPainter_drawPoint1( qt_QPainter* instPointer,qt_QPoint* arg1){
	((QPainterBridge*)instPointer)->drawPoint((QPoint&)* (QPoint*)arg1);
	return;
}
void qt_QPainter_drawPoints( qt_QPainter* instPointer,qt_QPointArray* a, int index, int npoints){
	((QPainterBridge*)instPointer)->drawPoints((QPointArray&)* (QPointArray*)a, (int)index, (int)npoints);
	return;
}
void qt_QPainter_moveTo( qt_QPainter* instPointer,int x, int y){
	((QPainterBridge*)instPointer)->moveTo((int)x, (int)y);
	return;
}
void qt_QPainter_moveTo1( qt_QPainter* instPointer,qt_QPoint* arg1){
	((QPainterBridge*)instPointer)->moveTo((QPoint&)* (QPoint*)arg1);
	return;
}
void qt_QPainter_lineTo( qt_QPainter* instPointer,int x, int y){
	((QPainterBridge*)instPointer)->lineTo((int)x, (int)y);
	return;
}
void qt_QPainter_lineTo1( qt_QPainter* instPointer,qt_QPoint* arg1){
	((QPainterBridge*)instPointer)->lineTo((QPoint&)* (QPoint*)arg1);
	return;
}
void qt_QPainter_drawLine( qt_QPainter* instPointer,int x1, int y1, int x2, int y2){
	((QPainterBridge*)instPointer)->drawLine((int)x1, (int)y1, (int)x2, (int)y2);
	return;
}
void qt_QPainter_drawLine1( qt_QPainter* instPointer,qt_QPoint* arg1, qt_QPoint* arg2){
	((QPainterBridge*)instPointer)->drawLine((QPoint&)* (QPoint*)arg1, (QPoint&)* (QPoint*)arg2);
	return;
}
void qt_QPainter_drawRect( qt_QPainter* instPointer,int x, int y, int w, int h){
	((QPainterBridge*)instPointer)->drawRect((int)x, (int)y, (int)w, (int)h);
	return;
}
void qt_QPainter_drawRect1( qt_QPainter* instPointer,qt_QRect* arg1){
	((QPainterBridge*)instPointer)->drawRect((QRect&)* (QRect*)arg1);
	return;
}
void qt_QPainter_drawWinFocusRect( qt_QPainter* instPointer,int x, int y, int w, int h){
	((QPainterBridge*)instPointer)->drawWinFocusRect((int)x, (int)y, (int)w, (int)h);
	return;
}
void qt_QPainter_drawWinFocusRect1( qt_QPainter* instPointer,int x, int y, int w, int h, qt_QColor * bgColor){
	((QPainterBridge*)instPointer)->drawWinFocusRect((int)x, (int)y, (int)w, (int)h, (QColor&)* (QColor*)bgColor);
	return;
}
void qt_QPainter_drawWinFocusRect2( qt_QPainter* instPointer,qt_QRect* arg1){
	((QPainterBridge*)instPointer)->drawWinFocusRect((QRect&)* (QRect*)arg1);
	return;
}
void qt_QPainter_drawWinFocusRect3( qt_QPainter* instPointer,qt_QRect* arg1, qt_QColor * bgColor){
	((QPainterBridge*)instPointer)->drawWinFocusRect((QRect&)* (QRect*)arg1, (QColor&)* (QColor*)bgColor);
	return;
}
void qt_QPainter_drawRoundRect( qt_QPainter* instPointer,int x, int y, int w, int h, int arg1, int arg2){
	((QPainterBridge*)instPointer)->drawRoundRect((int)x, (int)y, (int)w, (int)h, (int)arg1, (int)arg2);
	return;
}
void qt_QPainter_drawRoundRect1( qt_QPainter* instPointer,qt_QRect* arg1, int arg2, int arg3){
	((QPainterBridge*)instPointer)->drawRoundRect((QRect&)* (QRect*)arg1, (int)arg2, (int)arg3);
	return;
}
void qt_QPainter_drawEllipse( qt_QPainter* instPointer,int x, int y, int w, int h){
	((QPainterBridge*)instPointer)->drawEllipse((int)x, (int)y, (int)w, (int)h);
	return;
}
void qt_QPainter_drawEllipse1( qt_QPainter* instPointer,qt_QRect* arg1){
	((QPainterBridge*)instPointer)->drawEllipse((QRect&)* (QRect*)arg1);
	return;
}
void qt_QPainter_drawArc( qt_QPainter* instPointer,int x, int y, int w, int h, int a, int alen){
	((QPainterBridge*)instPointer)->drawArc((int)x, (int)y, (int)w, (int)h, (int)a, (int)alen);
	return;
}
void qt_QPainter_drawArc1( qt_QPainter* instPointer,qt_QRect* arg1, int a, int alen){
	((QPainterBridge*)instPointer)->drawArc((QRect&)* (QRect*)arg1, (int)a, (int)alen);
	return;
}
void qt_QPainter_drawPie( qt_QPainter* instPointer,int x, int y, int w, int h, int a, int alen){
	((QPainterBridge*)instPointer)->drawPie((int)x, (int)y, (int)w, (int)h, (int)a, (int)alen);
	return;
}
void qt_QPainter_drawPie1( qt_QPainter* instPointer,qt_QRect* arg1, int a, int alen){
	((QPainterBridge*)instPointer)->drawPie((QRect&)* (QRect*)arg1, (int)a, (int)alen);
	return;
}
void qt_QPainter_drawChord( qt_QPainter* instPointer,int x, int y, int w, int h, int a, int alen){
	((QPainterBridge*)instPointer)->drawChord((int)x, (int)y, (int)w, (int)h, (int)a, (int)alen);
	return;
}
void qt_QPainter_drawChord1( qt_QPainter* instPointer,qt_QRect* arg1, int a, int alen){
	((QPainterBridge*)instPointer)->drawChord((QRect&)* (QRect*)arg1, (int)a, (int)alen);
	return;
}
void qt_QPainter_drawLineSegments( qt_QPainter* instPointer,qt_QPointArray* arg1, int index, int nlines){
	((QPainterBridge*)instPointer)->drawLineSegments((QPointArray&)* (QPointArray*)arg1, (int)index, (int)nlines);
	return;
}
void qt_QPainter_drawPolyline( qt_QPainter* instPointer,qt_QPointArray* arg1, int index, int npoints){
	((QPainterBridge*)instPointer)->drawPolyline((QPointArray&)* (QPointArray*)arg1, (int)index, (int)npoints);
	return;
}
void qt_QPainter_drawPolygon( qt_QPainter* instPointer,qt_QPointArray* arg1, int winding, int index, int npoints){
	((QPainterBridge*)instPointer)->drawPolygon((QPointArray&)* (QPointArray*)arg1, (bool)winding, (int)index, (int)npoints);
	return;
}
void qt_QPainter_drawConvexPolygon( qt_QPainter* instPointer,qt_QPointArray* arg1, int index, int npoints){
	((QPainterBridge*)instPointer)->drawConvexPolygon((QPointArray&)* (QPointArray*)arg1, (int)index, (int)npoints);
	return;
}
void qt_QPainter_drawCubicBezier( qt_QPainter* instPointer,qt_QPointArray* arg1, int index){
	((QPainterBridge*)instPointer)->drawCubicBezier((QPointArray&)* (QPointArray*)arg1, (int)index);
	return;
}
void qt_QPainter_drawPixmap( qt_QPainter* instPointer,int x, int y, qt_QPixmap * arg1, int sx, int sy, int sw, int sh){
	((QPainterBridge*)instPointer)->drawPixmap((int)x, (int)y, (QPixmap&)* (QPixmap*)arg1, (int)sx, (int)sy, (int)sw, (int)sh);
	return;
}
void qt_QPainter_drawPixmap1( qt_QPainter* instPointer,qt_QPoint* arg1, qt_QPixmap * arg2, qt_QRect* sr){
	((QPainterBridge*)instPointer)->drawPixmap((QPoint&)* (QPoint*)arg1, (QPixmap&)* (QPixmap*)arg2, (QRect&)* (QRect*)sr);
	return;
}
void qt_QPainter_drawPixmap2( qt_QPainter* instPointer,qt_QPoint* arg1, qt_QPixmap * arg2){
	((QPainterBridge*)instPointer)->drawPixmap((QPoint&)* (QPoint*)arg1, (QPixmap&)* (QPixmap*)arg2);
	return;
}
void qt_QPainter_drawPixmap3( qt_QPainter* instPointer,qt_QRect* arg1, qt_QPixmap * arg2){
	((QPainterBridge*)instPointer)->drawPixmap((QRect&)* (QRect*)arg1, (QPixmap&)* (QPixmap*)arg2);
	return;
}
void qt_QPainter_drawImage( qt_QPainter* instPointer,int x, int y, qt_QImage * arg1, int sx, int sy, int sw, int sh, int conversionFlags){
	((QPainterBridge*)instPointer)->drawImage((int)x, (int)y, (QImage&)* (QImage*)arg1, (int)sx, (int)sy, (int)sw, (int)sh, (int)conversionFlags);
	return;
}
void qt_QPainter_drawImage1( qt_QPainter* instPointer,qt_QPoint* arg1, qt_QImage * arg2, qt_QRect* sr, int conversionFlags){
	((QPainterBridge*)instPointer)->drawImage((QPoint&)* (QPoint*)arg1, (QImage&)* (QImage*)arg2, (QRect&)* (QRect*)sr, (int)conversionFlags);
	return;
}
void qt_QPainter_drawImage2( qt_QPainter* instPointer,qt_QPoint* arg1, qt_QImage * arg2, int conversion_flags){
	((QPainterBridge*)instPointer)->drawImage((QPoint&)* (QPoint*)arg1, (QImage&)* (QImage*)arg2, (int)conversion_flags);
	return;
}
void qt_QPainter_drawImage3( qt_QPainter* instPointer,qt_QRect* arg1, qt_QImage * arg2){
	((QPainterBridge*)instPointer)->drawImage((QRect&)* (QRect*)arg1, (QImage&)* (QImage*)arg2);
	return;
}
void qt_QPainter_drawTiledPixmap( qt_QPainter* instPointer,int x, int y, int w, int h, qt_QPixmap * arg1, int sx, int sy){
	((QPainterBridge*)instPointer)->drawTiledPixmap((int)x, (int)y, (int)w, (int)h, (QPixmap&)* (QPixmap*)arg1, (int)sx, (int)sy);
	return;
}
void qt_QPainter_drawTiledPixmap1( qt_QPainter* instPointer,qt_QRect* arg1, qt_QPixmap * arg2, qt_QPoint* arg3){
	((QPainterBridge*)instPointer)->drawTiledPixmap((QRect&)* (QRect*)arg1, (QPixmap&)* (QPixmap*)arg2, (QPoint&)* (QPoint*)arg3);
	return;
}
void qt_QPainter_drawTiledPixmap2( qt_QPainter* instPointer,qt_QRect* arg1, qt_QPixmap * arg2){
	((QPainterBridge*)instPointer)->drawTiledPixmap((QRect&)* (QRect*)arg1, (QPixmap&)* (QPixmap*)arg2);
	return;
}
void qt_QPainter_drawPicture( qt_QPainter* instPointer,qt_QPicture * arg1){
	((QPainterBridge*)instPointer)->drawPicture((QPicture&)* (QPicture*)arg1);
	return;
}
void qt_QPainter_drawPicture1( qt_QPainter* instPointer,int x, int y, qt_QPicture * arg1){
	((QPainterBridge*)instPointer)->drawPicture((int)x, (int)y, (QPicture&)* (QPicture*)arg1);
	return;
}
void qt_QPainter_drawPicture2( qt_QPainter* instPointer,qt_QPoint* arg1, qt_QPicture * arg2){
	((QPainterBridge*)instPointer)->drawPicture((QPoint&)* (QPoint*)arg1, (QPicture&)* (QPicture*)arg2);
	return;
}
void qt_QPainter_fillRect( qt_QPainter* instPointer,int x, int y, int w, int h, qt_QBrush * arg1){
	((QPainterBridge*)instPointer)->fillRect((int)x, (int)y, (int)w, (int)h, (QBrush&)* (QBrush*)arg1);
	return;
}
void qt_QPainter_fillRect1( qt_QPainter* instPointer,qt_QRect* arg1, qt_QBrush * arg2){
	((QPainterBridge*)instPointer)->fillRect((QRect&)* (QRect*)arg1, (QBrush&)* (QBrush*)arg2);
	return;
}
void qt_QPainter_eraseRect( qt_QPainter* instPointer,int x, int y, int w, int h){
	((QPainterBridge*)instPointer)->eraseRect((int)x, (int)y, (int)w, (int)h);
	return;
}
void qt_QPainter_eraseRect1( qt_QPainter* instPointer,qt_QRect* arg1){
	((QPainterBridge*)instPointer)->eraseRect((QRect&)* (QRect*)arg1);
	return;
}
void qt_QPainter_drawText( qt_QPainter* instPointer,int x, int y, qt_QString * arg1, int len, int dir){
	((QPainterBridge*)instPointer)->drawText((int)x, (int)y, (QString&)* (QString*)arg1, (int)len, (QPainter::TextDirection)dir);
	return;
}
void qt_QPainter_drawText1( qt_QPainter* instPointer,qt_QPoint* arg1, qt_QString * arg2, int len, int dir){
	((QPainterBridge*)instPointer)->drawText((QPoint&)* (QPoint*)arg1, (QString&)* (QString*)arg2, (int)len, (QPainter::TextDirection)dir);
	return;
}
void qt_QPainter_drawText2( qt_QPainter* instPointer,int x, int y, qt_QString * arg1, int pos, int len, int dir){
	((QPainterBridge*)instPointer)->drawText((int)x, (int)y, (QString&)* (QString*)arg1, (int)pos, (int)len, (QPainter::TextDirection)dir);
	return;
}
void qt_QPainter_drawText3( qt_QPainter* instPointer,qt_QPoint* p, qt_QString * arg1, int pos, int len, int dir){
	((QPainterBridge*)instPointer)->drawText((QPoint&)* (QPoint*)p, (QString&)* (QString*)arg1, (int)pos, (int)len, (QPainter::TextDirection)dir);
	return;
}
//void qt_QPainter_drawText4( qt_QPainter* instPointer,int x, int y, int w, int h, int flags, qt_QString * arg1, int len, qt_QRect* br, qt_QTextParag** intern){
//	((QPainterBridge*)instPointer)->drawText((int)x, (int)y, (int)w, (int)h, (int)flags, (QString&)* (QString*)arg1, (int)len, (QRect*)br, (QTextParag**)intern);
//	return;
//}
//void qt_QPainter_drawText5( qt_QPainter* instPointer,qt_QRect* arg1, int flags, qt_QString * arg2, int len, qt_QRect* br, qt_QTextParag** intern){
//	((QPainterBridge*)instPointer)->drawText((QRect&)* (QRect*)arg1, (int)flags, (QString&)* (QString*)arg2, (int)len, (QRect*)br, (QTextParag**)intern);
//	return;
//}
//qt_QRect* qt_QPainter_boundingRect( qt_QPainter* instPointer,int x, int y, int w, int h, int flags, qt_QString * arg1, int len, qt_QTextParag** intern){
//	QRect _r= ((QPainterBridge*)instPointer)->boundingRect((int)x, (int)y, (int)w, (int)h, (int)flags, (QString&)* (QString*)arg1, (int)len, (QTextParag**)intern);
//	return (qt_QRect*)new QRect(_r.left(),_r.top(),_r.width(),_r.height());
//}
//qt_QRect* qt_QPainter_boundingRect1( qt_QPainter* instPointer,qt_QRect* arg1, int flags, qt_QString * arg2, int len, qt_QTextParag** intern){
//	QRect _r= ((QPainterBridge*)instPointer)->boundingRect((QRect&)* (QRect*)arg1, (int)flags, (QString&)* (QString*)arg2, (int)len, (QTextParag**)intern);
//	return (qt_QRect*)new QRect(_r.left(),_r.top(),_r.width(),_r.height());
//}
int qt_QPainter_tabStops( qt_QPainter* instPointer){
	return (int) ((QPainterBridge*)instPointer)->tabStops();
}
void qt_QPainter_setTabStops( qt_QPainter* instPointer,int arg1){
	((QPainterBridge*)instPointer)->setTabStops((int)arg1);
	return;
}
int* qt_QPainter_tabArray( qt_QPainter* instPointer){
	return (int*) ((QPainterBridge*)instPointer)->tabArray();
}
void qt_QPainter_setTabArray( qt_QPainter* instPointer,int* arg1){
	((QPainterBridge*)instPointer)->setTabArray((int*)arg1);
	return;
}
void * qt_QPainter_handle( qt_QPainter* instPointer){
	return (void *) ((QPainterBridge*)instPointer)->handle();
}
unsigned int qt_QPainter_handle1( qt_QPainter* instPointer){
	return (unsigned int) ((QPainterBridge*)instPointer)->handle();
}
void qt_QPainter_redirect( qt_QPaintDevice * pdev, qt_QPaintDevice * replacement){
	QPainterBridge::redirect((QPaintDevice*)pdev, (QPaintDevice*)replacement);
	return;
}
void qt_QPainter_initialize( ){
	QPainterBridge::initialize();
	return;
}
void qt_QPainter_cleanup( ){
	QPainterBridge::cleanup();
	return;
}
//void qt_QPainter_initPaintDevice( qt_QPainter* instPointer,int force){
//	((QPainterBridge*)instPointer)->protected_initPaintDevice((bool)force);
//	return;
//}
//void qt_QPainter_qt_format_text( qt_QPainter* instPointer,qt_QFont * arg1, qt_QRect* r, int tf, qt_QString * str, int len, qt_QRect* brect, int tabstops, int* tabarray, int tabarraylen, qt_QTextParag** internal, qt_QPainter * painter){
//	((QPainterBridge*)instPointer)->protected_qt_format_text((QFont&)* (QFont*)arg1, (QRect&)* (QRect*)r, (int)tf, (QString&)* (QString*)str, (int)len, (QRect*)brect, (int)tabstops, (int*)tabarray, (int)tabarraylen, (QTextParag**)internal, (QPainter*)painter);
//	return;
//}
