/***************************************************************************
                            kde_KPixmapIO.cpp -  description
                             -------------------
    begin                : Wed Feb  6 15:12:26 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Feb  6 15:12:26 2002, 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 "kde_KPixmapIO.h"
}

#include <qimage.h>
#include <kpixmapio.h>

class KPixmapIOBridge : public KPixmapIO
{
public:
	KPixmapIOBridge() : KPixmapIO() {}
	~KPixmapIOBridge() {}
};

kde_KPixmapIO * kde_new_KPixmapIO(){
	return (kde_KPixmapIO *) new KPixmapIOBridge();
}
void kde_del_KPixmapIO( kde_KPixmapIO* p ){
	delete (KPixmapIOBridge*) p;
}
qt_QPixmap * kde_KPixmapIO_convertToPixmap( kde_KPixmapIO* instPointer,qt_QImage * image){
	return (qt_QPixmap *)new QPixmap(((KPixmapIOBridge*)instPointer)->convertToPixmap((QImage&)* (QImage*)image));
}
qt_QImage * kde_KPixmapIO_convertToImage( kde_KPixmapIO* instPointer,qt_QPixmap * pixmap){
	return (qt_QImage *)new QImage(((KPixmapIOBridge*)instPointer)->convertToImage((QPixmap&)* (QPixmap*)pixmap));
}
void kde_KPixmapIO_putImage( kde_KPixmapIO* instPointer,qt_QPixmap * dst, int dx, int dy, qt_QImage* src){
	((KPixmapIOBridge*)instPointer)->putImage((QPixmap*)dst, (int)dx, (int)dy, (QImage*)src);
	return;
}
void kde_KPixmapIO_putImage1( kde_KPixmapIO* instPointer,qt_QPixmap * dst, qt_QPoint* offset, qt_QImage* src){
	((KPixmapIOBridge*)instPointer)->putImage((QPixmap*)dst, (QPoint&)* (QPoint*)offset, (QImage*)src);
	return;
}
qt_QImage * kde_KPixmapIO_getImage( kde_KPixmapIO* instPointer,qt_QPixmap * src, int sx, int sy, int sw, int sh){
	return (qt_QImage *)new QImage(((KPixmapIOBridge*)instPointer)->getImage((QPixmap*)src, (int)sx, (int)sy, (int)sw, (int)sh));
}
qt_QImage * kde_KPixmapIO_getImage1( kde_KPixmapIO* instPointer,qt_QPixmap * src, qt_QRect* rect){
	return (qt_QImage *)new QImage(((KPixmapIOBridge*)instPointer)->getImage((QPixmap*)src, (QRect&)* (QRect*)rect));
}
void kde_KPixmapIO_setShmPolicy( kde_KPixmapIO* instPointer,int policy){
	((KPixmapIOBridge*)instPointer)->setShmPolicy((int)policy);
	return;
}
void kde_KPixmapIO_preAllocShm( kde_KPixmapIO* instPointer,int size){
	((KPixmapIOBridge*)instPointer)->preAllocShm((int)size);
	return;
}
