/***************************************************************************
                            qt_QPicture.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_QPicture.h"
}

#include <qpicture.h>

class QPictureBridge : public QPicture
{
public:
	QPictureBridge(int formatVersion) : QPicture(formatVersion) {}
	QPictureBridge(const QPicture& arg1) : QPicture(arg1) {}
	~QPictureBridge() {}
	bool  protected_cmd(int arg1, QPainter* arg2, QPDevCmdParam* arg3) {
		return (bool ) QPicture::cmd(arg1, arg2, arg3);
	}
	int  protected_metric(int arg1) {
		return (int ) QPicture::metric(arg1);
	}
	void protected_detach() {
		QPicture::detach();
		return;
	}
	QPicture  protected_copy() {
		return (QPicture ) QPicture::copy();
	}
};

qt_QPicture * qt_new_QPicture(int formatVersion){
	return (qt_QPicture *) new QPictureBridge((int)formatVersion);
}
qt_QPicture * qt_new_QPicture1(qt_QPicture * arg1){
	return (qt_QPicture *) new QPictureBridge((QPicture&)* (QPicture*)arg1);
}
void qt_del_QPicture( qt_QPicture* p ){
	delete (QPictureBridge*) p;
}
int qt_QPicture_isNull( qt_QPicture* instPointer){
	return (int) ((QPictureBridge*)instPointer)->isNull();
}
unsigned int qt_QPicture_size( qt_QPicture* instPointer){
	return (unsigned int) ((QPictureBridge*)instPointer)->size();
}
char* qt_QPicture_data( qt_QPicture* instPointer){
	return (char*) ((QPictureBridge*)instPointer)->data();
}
void qt_QPicture_setData( qt_QPicture* instPointer,char* data, unsigned int size){
	((QPictureBridge*)instPointer)->setData((char*)data, (uint)size);
	return;
}
int qt_QPicture_play( qt_QPicture* instPointer,qt_QPainter * arg1){
	return (int) ((QPictureBridge*)instPointer)->play((QPainter*)arg1);
}
int qt_QPicture_load( qt_QPicture* instPointer,qt_QIODevice * dev, char* format){
	return (int) ((QPictureBridge*)instPointer)->load((QIODevice*)dev, (char*)format);
}
int qt_QPicture_load1( qt_QPicture* instPointer,qt_QString * fileName, char* format){
	return (int) ((QPictureBridge*)instPointer)->load((QString&)* (QString*)fileName, (char*)format);
}
int qt_QPicture_save( qt_QPicture* instPointer,qt_QIODevice * dev, char* format){
	return (int) ((QPictureBridge*)instPointer)->save((QIODevice*)dev, (char*)format);
}
int qt_QPicture_save1( qt_QPicture* instPointer,qt_QString * fileName, char* format){
	return (int) ((QPictureBridge*)instPointer)->save((QString&)* (QString*)fileName, (char*)format);
}
qt_QRect* qt_QPicture_boundingRect( qt_QPicture* instPointer){
	QRect _r= ((QPictureBridge*)instPointer)->boundingRect();
	return (qt_QRect*)new QRect(_r.left(),_r.top(),_r.width(),_r.height());
}
int qt_QPicture_cmd( qt_QPicture* instPointer,int arg1, qt_QPainter * arg2, qt_QPDevCmdParam* arg3){
	return (int) ((QPictureBridge*)instPointer)->protected_cmd((int)arg1, (QPainter*)arg2, (QPDevCmdParam*)arg3);
}
int qt_QPicture_metric( qt_QPicture* instPointer,int arg1){
	return (int) ((QPictureBridge*)instPointer)->protected_metric((int)arg1);
}
void qt_QPicture_detach( qt_QPicture* instPointer){
	((QPictureBridge*)instPointer)->protected_detach();
	return;
}
//qt_QPicture * qt_QPicture_copy( qt_QPicture* instPointer){
//	return (qt_QPicture *) ((QPictureBridge*)instPointer)->protected_copy();
//}
