/***************************************************************************
                            qt_QPixmap.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_QPixmap.h"
}

#include <qpixmap.h>
#include <qbitmap.h>
#include <qimage.h>
#include <qwmatrix.h>

class QPixmapBridge : public QPixmap
{
public:
	QPixmapBridge() : QPixmap() {}
	QPixmapBridge(const QImage& image) : QPixmap(image) {}
	QPixmapBridge(int w, int h, int depth, Optimization arg1) : QPixmap(w, h, depth, arg1) {}
	QPixmapBridge(const QSize& arg1, int depth, Optimization arg2) : QPixmap(arg1, depth, arg2) {}
	QPixmapBridge(const QString& fileName, const char* format, ColorMode mode) : QPixmap(fileName, format, mode) {}
	QPixmapBridge(const QString& fileName, const char* format, int conversion_flags) : QPixmap(fileName, format, conversion_flags) {}
	QPixmapBridge(const char* xpm[]) : QPixmap(xpm) {}
	QPixmapBridge(const QByteArray& data) : QPixmap(data) {}
	QPixmapBridge(const QPixmap& arg1) : QPixmap(arg1) {}
	~QPixmapBridge() {}
	QPixmapBridge(int w, int h, const uchar* data, bool isXbitmap) : QPixmap(w, h, data, isXbitmap) {}
	int  protected_metric(int arg1) {
		return (int ) QPixmap::metric(arg1);
	}
};

qt_QPixmap * qt_new_QPixmap(){
	return (qt_QPixmap *) new QPixmapBridge();
}
qt_QPixmap * qt_new_QPixmap1(qt_QImage * image){
	return (qt_QPixmap *) new QPixmapBridge((QImage&)* (QImage*)image);
}
qt_QPixmap * qt_new_QPixmap2(int w, int h, int depth, int arg1){
	return (qt_QPixmap *) new QPixmapBridge((int)w, (int)h, (int)depth, (QPixmap::Optimization)arg1);
}
qt_QPixmap * qt_new_QPixmap3(qt_QSize * arg1, int depth, int arg2){
	return (qt_QPixmap *) new QPixmapBridge((QSize&)* (QSize*)arg1, (int)depth, (QPixmap::Optimization)arg2);
}
qt_QPixmap * qt_new_QPixmap4(qt_QString * fileName, char* format, int mode){
	return (qt_QPixmap *) new QPixmapBridge((QString&)* (QString*)fileName, (char*)format, (QPixmap::ColorMode)mode);
}
qt_QPixmap * qt_new_QPixmap5(qt_QString * fileName, char* format, int conversion_flags){
	return (qt_QPixmap *) new QPixmapBridge((QString&)* (QString*)fileName, (char*)format, (int)conversion_flags);
}
qt_QPixmap * qt_new_QPixmap6(char** xpm){
	return (qt_QPixmap *) new QPixmapBridge((char**)xpm);
}
qt_QPixmap * qt_new_QPixmap7(qt_QByteArray* data){
	return (qt_QPixmap *) new QPixmapBridge((QByteArray&)* (QByteArray*)data);
}
qt_QPixmap * qt_new_QPixmap8(qt_QPixmap * arg1){
	return (qt_QPixmap *) new QPixmapBridge((QPixmap&)* (QPixmap*)arg1);
}
void qt_del_QPixmap( qt_QPixmap* p ){
	delete (QPixmapBridge*) p;
}
int qt_QPixmap_isNull( qt_QPixmap* instPointer){
	return (int) ((QPixmapBridge*)instPointer)->isNull();
}
int qt_QPixmap_width( qt_QPixmap* instPointer){
	return (int) ((QPixmapBridge*)instPointer)->width();
}
int qt_QPixmap_height( qt_QPixmap* instPointer){
	return (int) ((QPixmapBridge*)instPointer)->height();
}
qt_QSize * qt_QPixmap_size( qt_QPixmap* instPointer){
	QSize _s= ((QPixmapBridge*)instPointer)->size();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
qt_QRect* qt_QPixmap_rect( qt_QPixmap* instPointer){
	QRect _r= ((QPixmapBridge*)instPointer)->rect();
	return (qt_QRect*)new QRect(_r.left(),_r.top(),_r.width(),_r.height());
}
int qt_QPixmap_depth( qt_QPixmap* instPointer){
	return (int) ((QPixmapBridge*)instPointer)->depth();
}
void qt_QPixmap_fill( qt_QPixmap* instPointer,qt_QColor * fillColor){
	((QPixmapBridge*)instPointer)->fill((QColor&)* (QColor*)fillColor);
	return;
}
void qt_QPixmap_fill1( qt_QPixmap* instPointer,qt_QWidget * arg1, int xofs, int yofs){
	((QPixmapBridge*)instPointer)->fill((QWidget*)arg1, (int)xofs, (int)yofs);
	return;
}
void qt_QPixmap_fill2( qt_QPixmap* instPointer,qt_QWidget * arg1, qt_QPoint* ofs){
	((QPixmapBridge*)instPointer)->fill((QWidget*)arg1, (QPoint&)* (QPoint*)ofs);
	return;
}
void qt_QPixmap_resize( qt_QPixmap* instPointer,int width, int height){
	((QPixmapBridge*)instPointer)->resize((int)width, (int)height);
	return;
}
void qt_QPixmap_resize1( qt_QPixmap* instPointer,qt_QSize * arg1){
	((QPixmapBridge*)instPointer)->resize((QSize&)* (QSize*)arg1);
	return;
}
qt_QBitmap * qt_QPixmap_mask( qt_QPixmap* instPointer){
	return (qt_QBitmap *) ((QPixmapBridge*)instPointer)->mask();
}
void qt_QPixmap_setMask( qt_QPixmap* instPointer,qt_QBitmap * arg1){
	((QPixmapBridge*)instPointer)->setMask((QBitmap&)* (QBitmap*)arg1);
	return;
}
int qt_QPixmap_selfMask( qt_QPixmap* instPointer){
	return (int) ((QPixmapBridge*)instPointer)->selfMask();
}
qt_QBitmap * qt_QPixmap_createHeuristicMask( qt_QPixmap* instPointer,int clipTight){
	return (qt_QBitmap *)new QBitmap(((QPixmapBridge*)instPointer)->createHeuristicMask((bool)clipTight));
}
qt_QPixmap * qt_QPixmap_xForm( qt_QPixmap* instPointer,qt_QWMatrix * arg1){
	return (qt_QPixmap *)new QPixmap(((QPixmapBridge*)instPointer)->xForm((QWMatrix&)* (QWMatrix*)arg1));
}
qt_QImage * qt_QPixmap_convertToImage( qt_QPixmap* instPointer){
	return (qt_QImage *)new QImage(((QPixmapBridge*)instPointer)->convertToImage());
}
int qt_QPixmap_convertFromImage( qt_QPixmap* instPointer,qt_QImage * arg1, int mode){
	return (int) ((QPixmapBridge*)instPointer)->convertFromImage((QImage&)* (QImage*)arg1, (QPixmap::ColorMode)mode);
}
int qt_QPixmap_convertFromImage1( qt_QPixmap* instPointer,qt_QImage * arg1, int conversion_flags){
	return (int) ((QPixmapBridge*)instPointer)->convertFromImage((QImage&)* (QImage*)arg1, (int)conversion_flags);
}
int qt_QPixmap_load( qt_QPixmap* instPointer,qt_QString * fileName, char* format, int mode){
	return (int) ((QPixmapBridge*)instPointer)->load((QString&)* (QString*)fileName, (char*)format, (QPixmap::ColorMode)mode);
}
int qt_QPixmap_load1( qt_QPixmap* instPointer,qt_QString * fileName, char* format, int conversion_flags){
	return (int) ((QPixmapBridge*)instPointer)->load((QString&)* (QString*)fileName, (char*)format, (int)conversion_flags);
}
int qt_QPixmap_loadFromData( qt_QPixmap* instPointer,unsigned char* buf, unsigned int len, char* format, int mode){
	return (int) ((QPixmapBridge*)instPointer)->loadFromData((uchar*)buf, (uint)len, (char*)format, (QPixmap::ColorMode)mode);
}
int qt_QPixmap_loadFromData1( qt_QPixmap* instPointer,unsigned char* buf, unsigned int len, char* format, int conversion_flags){
	return (int) ((QPixmapBridge*)instPointer)->loadFromData((uchar*)buf, (uint)len, (char*)format, (int)conversion_flags);
}
int qt_QPixmap_loadFromData2( qt_QPixmap* instPointer,qt_QByteArray* data, char* format, int conversion_flags){
	return (int) ((QPixmapBridge*)instPointer)->loadFromData((QByteArray&)* (QByteArray*)data, (char*)format, (int)conversion_flags);
}
int qt_QPixmap_save( qt_QPixmap* instPointer,qt_QString * fileName, char* format, int quality){
	return (int) ((QPixmapBridge*)instPointer)->save((QString&)* (QString*)fileName, (char*)format, (int)quality);
}
//void * qt_QPixmap_hbm( qt_QPixmap* instPointer){
//	return (void *) ((QPixmapBridge*)instPointer)->hbm();
//}
int qt_QPixmap_serialNumber( qt_QPixmap* instPointer){
	return (int) ((QPixmapBridge*)instPointer)->serialNumber();
}
int qt_QPixmap_optimization( qt_QPixmap* instPointer){
	return (int) ((QPixmapBridge*)instPointer)->optimization();
}
void qt_QPixmap_setOptimization( qt_QPixmap* instPointer,int arg1){
	((QPixmapBridge*)instPointer)->setOptimization((QPixmap::Optimization)arg1);
	return;
}
void qt_QPixmap_detach( qt_QPixmap* instPointer){
	((QPixmapBridge*)instPointer)->detach();
	return;
}
int qt_QPixmap_isQBitmap( qt_QPixmap* instPointer){
	return (int) ((QPixmapBridge*)instPointer)->isQBitmap();
}
//int qt_QPixmap_isMultiCellPixmap( qt_QPixmap* instPointer){
//	return (int) ((QPixmapBridge*)instPointer)->isMultiCellPixmap();
//}
//void * qt_QPixmap_multiCellHandle( qt_QPixmap* instPointer){
//	return (void *) ((QPixmapBridge*)instPointer)->multiCellHandle();
//}
//void * qt_QPixmap_multiCellBitmap( qt_QPixmap* instPointer){
//	return (void *) ((QPixmapBridge*)instPointer)->multiCellBitmap();
//}
//int qt_QPixmap_multiCellOffset( qt_QPixmap* instPointer){
//	return (int) ((QPixmapBridge*)instPointer)->multiCellOffset();
//}
//int qt_QPixmap_allocCell( qt_QPixmap* instPointer){
//	return (int) ((QPixmapBridge*)instPointer)->allocCell();
//}
//void qt_QPixmap_freeCell( qt_QPixmap* instPointer,int arg1){
//	((QPixmapBridge*)instPointer)->freeCell((bool)arg1);
//	return;
//}
//qt_QGfx* qt_QPixmap_graphicsContext( qt_QPixmap* instPointer,int clip_children){
//	return (qt_QGfx*) ((QPixmapBridge*)instPointer)->graphicsContext((bool)clip_children);
//}
//unsigned char* qt_QPixmap_scanLine( qt_QPixmap* instPointer,int arg1){
//	return (unsigned char*) ((QPixmapBridge*)instPointer)->scanLine((int)arg1);
//}
//int qt_QPixmap_bytesPerLine( qt_QPixmap* instPointer){
//	return (int) ((QPixmapBridge*)instPointer)->bytesPerLine();
//}
//int * qt_QPixmap_clut( qt_QPixmap* instPointer){
//	return (int *) ((QPixmapBridge*)instPointer)->clut();
//}
//int qt_QPixmap_numCols( qt_QPixmap* instPointer){
//	return (int) ((QPixmapBridge*)instPointer)->numCols();
//}
void qt_QPixmap_x11SetScreen( qt_QPixmap* instPointer,int screen){
	((QPixmapBridge*)instPointer)->x11SetScreen((int)screen);
	return;
}
int qt_QPixmap_defaultDepth( ){
	return (int) QPixmapBridge::defaultDepth();
}
qt_QPixmap * qt_QPixmap_grabWindow( unsigned int arg1, int x, int y, int w, int h){
	return (qt_QPixmap *)new QPixmap(QPixmapBridge::grabWindow((WId)arg1, (int)x, (int)y, (int)w, (int)h));
}
qt_QPixmap * qt_QPixmap_grabWidget( qt_QWidget * widget, int x, int y, int w, int h){
	return (qt_QPixmap *)new QPixmap(QPixmapBridge::grabWidget((QWidget*)widget, (int)x, (int)y, (int)w, (int)h));
}
qt_QWMatrix * qt_QPixmap_trueMatrix( qt_QWMatrix * arg1, int w, int h){
	QWMatrix _m= QPixmapBridge::trueMatrix((QWMatrix&)* (QWMatrix*)arg1, (int)w, (int)h);
	return (qt_QWMatrix *)new QWMatrix(_m.m11(),_m.m12(),_m.m21(),_m.m22(),_m.dx(),_m.dy());
}
char* qt_QPixmap_imageFormat( qt_QString * fileName){
	return (char*) QPixmapBridge::imageFormat((QString&)* (QString*)fileName);
}
int qt_QPixmap_defaultOptimization( ){
	return (int) QPixmapBridge::defaultOptimization();
}
void qt_QPixmap_setDefaultOptimization( int arg1){
	QPixmapBridge::setDefaultOptimization((QPixmap::Optimization)arg1);
	return;
}
int qt_QPixmap_x11SetDefaultScreen( int screen){
	return (int) QPixmapBridge::x11SetDefaultScreen((int)screen);
}
qt_QPixmap * qt_new_QPixmap9(int w, int h, unsigned char* data, int isXbitmap){
	return (qt_QPixmap *) new QPixmapBridge((int)w, (int)h, (uchar*)data, (bool)isXbitmap);
}
int qt_QPixmap_metric( qt_QPixmap* instPointer,int arg1){
	return (int) ((QPixmapBridge*)instPointer)->protected_metric((int)arg1);
}
qt_QPaintDevice * qt_QPixmap_QPaintDevice(qt_QPixmap* instPointer){
	return (qt_QPaintDevice *) (QPaintDevice *) (QPixmap *) instPointer;
}
qt_Qt* qt_QPixmap_Qt(qt_QPixmap* instPointer){
	return (qt_Qt*) (Qt *) (QPixmap *) instPointer;
}
