/***************************************************************************
                            kde_KPixmap.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_KPixmap.h"
}

#include <kpixmap.h>

class KPixmapBridge : public KPixmap
{
public:
	KPixmapBridge() : KPixmap() {}
	~KPixmapBridge() {}
	KPixmapBridge(const QPixmap& pix) : KPixmap(pix) {}
};

kde_KPixmap * kde_new_KPixmap(){
	return (kde_KPixmap *) new KPixmapBridge();
}
void kde_del_KPixmap( kde_KPixmap* p ){
	delete (KPixmapBridge*) p;
}
kde_KPixmap * kde_new_KPixmap1(qt_QPixmap * pix){
	return (kde_KPixmap *) new KPixmapBridge((QPixmap&)* (QPixmap*)pix);
}
int kde_KPixmap_convertFromImage( kde_KPixmap* instPointer,qt_QImage * img, int conversion_flags){
	return (int) ((KPixmapBridge*)instPointer)->convertFromImage((QImage&)* (QImage*)img, (int)conversion_flags);
}
int kde_KPixmap_convertFromImage1( kde_KPixmap* instPointer,qt_QImage * img, int mode){
	return (int) ((KPixmapBridge*)instPointer)->convertFromImage((QImage&)* (QImage*)img, (KPixmap::ColorMode)mode);
}
int kde_KPixmap_load( kde_KPixmap* instPointer,qt_QString * fileName, char* format, int conversion_flags){
	return (int) ((KPixmapBridge*)instPointer)->load((QString&)* (QString*)fileName, (char*)format, (int)conversion_flags);
}
int kde_KPixmap_load1( kde_KPixmap* instPointer,qt_QString * fileName, char* format, int mode){
	return (int) ((KPixmapBridge*)instPointer)->load((QString&)* (QString*)fileName, (char*)format, (KPixmap::ColorMode)mode);
}
int kde_KPixmap_checkColorTable( kde_KPixmap* instPointer,qt_QImage * image){
	return (int) ((KPixmapBridge*)instPointer)->checkColorTable((QImage&)* (QImage*)image);
}
