/***************************************************************************
                            qt_QPlatinumStyle.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_QPlatinumStyle.h"
}

#include <qplatinumstyle.h>
#include <qcolor.h>

class QPlatinumStyleBridge : public QPlatinumStyle
{
public:
	QPlatinumStyleBridge() : QPlatinumStyle() {}
	~QPlatinumStyleBridge() {}
	QColor  protected_mixedColor(const QColor& arg1, const QColor& arg2) {
		return (QColor ) QPlatinumStyle::mixedColor(arg1, arg2);
	}
	void protected_drawRiffles(QPainter* p, int x, int y, int w, int h, const QColorGroup& g, bool horizontal) {
		QPlatinumStyle::drawRiffles(p, x, y, w, h, g, horizontal);
		return;
	}
	void childEvent(QChildEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "childEvent", arg1, "QChildEvent")) {
			QObject::childEvent(arg1);
		}
		return;
	}
	void customEvent(QCustomEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "customEvent", arg1, "QCustomEvent")) {
			QObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "timerEvent", arg1, "QTimerEvent")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
};

qt_QPlatinumStyle * qt_new_QPlatinumStyle(){
	return (qt_QPlatinumStyle *) new QPlatinumStyleBridge();
}
void qt_del_QPlatinumStyle( qt_QPlatinumStyle* p ){
	delete (QPlatinumStyleBridge*) p;
}
void qt_QPlatinumStyle_drawPrimitive( qt_QPlatinumStyle* instPointer,int pe, qt_QPainter * p, qt_QRect* r, qt_QColorGroup * cg, int flags, int arg1){
	((QPlatinumStyleBridge*)instPointer)->drawPrimitive((QStyle::PrimitiveElement)pe, (QPainter*)p, (QRect&)* (QRect*)r, (QColorGroup&)* (QColorGroup*)cg, (QStyle::SFlags)flags, (QStyleOption&)arg1);
	return;
}
void qt_QPlatinumStyle_drawControl( qt_QPlatinumStyle* instPointer,int element, qt_QPainter * p, qt_QWidget * widget, qt_QRect* r, qt_QColorGroup * cg, int how, int arg1){
	((QPlatinumStyleBridge*)instPointer)->drawControl((QStyle::ControlElement)element, (QPainter*)p, (QWidget*)widget, (QRect&)* (QRect*)r, (QColorGroup&)* (QColorGroup*)cg, (QStyle::SFlags)how, (QStyleOption&)arg1);
	return;
}
void qt_QPlatinumStyle_drawComplexControl( qt_QPlatinumStyle* instPointer,int control, qt_QPainter * p, qt_QWidget * widget, qt_QRect* r, qt_QColorGroup * cg, int how, int sub, int subActive, int arg1){
	((QPlatinumStyleBridge*)instPointer)->drawComplexControl((QStyle::ComplexControl)control, (QPainter*)p, (QWidget*)widget, (QRect&)* (QRect*)r, (QColorGroup&)* (QColorGroup*)cg, (QStyle::SFlags)how, (QStyle::SCFlags)sub, (QStyle::SCFlags)subActive, (QStyleOption&)arg1);
	return;
}
qt_QRect* qt_QPlatinumStyle_querySubControlMetrics( qt_QPlatinumStyle* instPointer,int control, qt_QWidget * widget, int sc, int arg1){
	QRect _r= ((QPlatinumStyleBridge*)instPointer)->querySubControlMetrics((QStyle::ComplexControl)control, (QWidget*)widget, (QStyle::SubControl)sc, (QStyleOption&)arg1);
	return (qt_QRect*)new QRect(_r.left(),_r.top(),_r.width(),_r.height());
}
int qt_QPlatinumStyle_pixelMetric( qt_QPlatinumStyle* instPointer,int metric, qt_QWidget * widget){
	return (int) ((QPlatinumStyleBridge*)instPointer)->pixelMetric((QStyle::PixelMetric)metric, (QWidget*)widget);
}
qt_QRect* qt_QPlatinumStyle_subRect( qt_QPlatinumStyle* instPointer,int r, qt_QWidget * widget){
	QRect _r= ((QPlatinumStyleBridge*)instPointer)->subRect((QStyle::SubRect)r, (QWidget*)widget);
	return (qt_QRect*)new QRect(_r.left(),_r.top(),_r.width(),_r.height());
}
qt_QColor * qt_QPlatinumStyle_mixedColor( qt_QPlatinumStyle* instPointer,qt_QColor * arg1, qt_QColor * arg2){
	return (qt_QColor *)new QColor(((QPlatinumStyleBridge*)instPointer)->protected_mixedColor((QColor&)* (QColor*)arg1, (QColor&)* (QColor*)arg2));
}
void qt_QPlatinumStyle_drawRiffles( qt_QPlatinumStyle* instPointer,qt_QPainter * p, int x, int y, int w, int h, qt_QColorGroup * g, int horizontal){
	((QPlatinumStyleBridge*)instPointer)->protected_drawRiffles((QPainter*)p, (int)x, (int)y, (int)w, (int)h, (QColorGroup&)* (QColorGroup*)g, (bool)horizontal);
	return;
}
