/***************************************************************************
                            qt_QCanvasPixmap.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_QCanvasPixmap.h"
}

#include <qcanvas.h>

class QCanvasPixmapBridge : public QCanvasPixmap
{
public:
	QCanvasPixmapBridge(const QString& datafilename) : QCanvasPixmap(datafilename) {}
	QCanvasPixmapBridge(const QImage& image) : QCanvasPixmap(image) {}
	QCanvasPixmapBridge(const QPixmap& arg1, const QPoint& hotspot) : QCanvasPixmap(arg1, hotspot) {}
	~QCanvasPixmapBridge() {}
};

qt_QCanvasPixmap * qt_new_QCanvasPixmap(qt_QString * datafilename){
	return (qt_QCanvasPixmap *) new QCanvasPixmapBridge((QString&)* (QString*)datafilename);
}
qt_QCanvasPixmap * qt_new_QCanvasPixmap1(qt_QImage * image){
	return (qt_QCanvasPixmap *) new QCanvasPixmapBridge((QImage&)* (QImage*)image);
}
qt_QCanvasPixmap * qt_new_QCanvasPixmap2(qt_QPixmap * arg1, qt_QPoint* hotspot){
	return (qt_QCanvasPixmap *) new QCanvasPixmapBridge((QPixmap&)* (QPixmap*)arg1, (QPoint&)* (QPoint*)hotspot);
}
void qt_del_QCanvasPixmap( qt_QCanvasPixmap* p ){
	delete (QCanvasPixmapBridge*) p;
}
int qt_QCanvasPixmap_offsetX( qt_QCanvasPixmap* instPointer){
	return (int) ((QCanvasPixmapBridge*)instPointer)->offsetX();
}
int qt_QCanvasPixmap_offsetY( qt_QCanvasPixmap* instPointer){
	return (int) ((QCanvasPixmapBridge*)instPointer)->offsetY();
}
void qt_QCanvasPixmap_setOffset( qt_QCanvasPixmap* instPointer,int x, int y){
	((QCanvasPixmapBridge*)instPointer)->setOffset((int)x, (int)y);
	return;
}
