/***************************************************************************
                            qt_QWindowsStyle.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_QWindowsStyle.h"
}

#include <qwindowsstyle.h>
#include <qpixmap.h>

class QWindowsStyleBridge : public QWindowsStyle
{
public:
	QWindowsStyleBridge() : QWindowsStyle() {}
	~QWindowsStyleBridge() {}
	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_QWindowsStyle * qt_new_QWindowsStyle(){
	return (qt_QWindowsStyle *) new QWindowsStyleBridge();
}
void qt_del_QWindowsStyle( qt_QWindowsStyle* p ){
	delete (QWindowsStyleBridge*) p;
}
void qt_QWindowsStyle_polishPopupMenu( qt_QWindowsStyle* instPointer,qt_QPopupMenu* arg1){
	((QWindowsStyleBridge*)instPointer)->polishPopupMenu((QPopupMenu*)arg1);
	return;
}
void qt_QWindowsStyle_drawPrimitive( qt_QWindowsStyle* instPointer,int pe, qt_QPainter * p, qt_QRect* r, qt_QColorGroup * cg, int flags, int arg1){
	((QWindowsStyleBridge*)instPointer)->drawPrimitive((QStyle::PrimitiveElement)pe, (QPainter*)p, (QRect&)* (QRect*)r, (QColorGroup&)* (QColorGroup*)cg, (QStyle::SFlags)flags, (QStyleOption&)arg1);
	return;
}
void qt_QWindowsStyle_drawControl( qt_QWindowsStyle* instPointer,int element, qt_QPainter * p, qt_QWidget * widget, qt_QRect* r, qt_QColorGroup * cg, int flags, int arg1){
	((QWindowsStyleBridge*)instPointer)->drawControl((QStyle::ControlElement)element, (QPainter*)p, (QWidget*)widget, (QRect&)* (QRect*)r, (QColorGroup&)* (QColorGroup*)cg, (QStyle::SFlags)flags, (QStyleOption&)arg1);
	return;
}
void qt_QWindowsStyle_drawComplexControl( qt_QWindowsStyle* instPointer,int control, qt_QPainter * p, qt_QWidget * widget, qt_QRect* r, qt_QColorGroup * cg, int flags, int sub, int subActive, int arg1){
	((QWindowsStyleBridge*)instPointer)->drawComplexControl((QStyle::ComplexControl)control, (QPainter*)p, (QWidget*)widget, (QRect&)* (QRect*)r, (QColorGroup&)* (QColorGroup*)cg, (QStyle::SFlags)flags, (QStyle::SCFlags)sub, (QStyle::SCFlags)subActive, (QStyleOption&)arg1);
	return;
}
int qt_QWindowsStyle_pixelMetric( qt_QWindowsStyle* instPointer,int metric, qt_QWidget * widget){
	return (int) ((QWindowsStyleBridge*)instPointer)->pixelMetric((QStyle::PixelMetric)metric, (QWidget*)widget);
}
qt_QSize * qt_QWindowsStyle_sizeFromContents( qt_QWindowsStyle* instPointer,int contents, qt_QWidget * widget, qt_QSize * contentsSize, int arg1){
	QSize _s= ((QWindowsStyleBridge*)instPointer)->sizeFromContents((QStyle::ContentsType)contents, (QWidget*)widget, (QSize&)* (QSize*)contentsSize, (QStyleOption&)arg1);
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
//int qt_QWindowsStyle_styleHint( qt_QWindowsStyle* instPointer,int sh, qt_QWidget * arg1, int arg2, qt_QStyleHintReturn* arg3){
//	return (int) ((QWindowsStyleBridge*)instPointer)->styleHint((QStyle::StyleHint)sh, (QWidget*)arg1, (QStyleOption&)arg2, (QStyleHintReturn*)arg3);
//}
qt_QPixmap * qt_QWindowsStyle_stylePixmap( qt_QWindowsStyle* instPointer,int stylepixmap, qt_QWidget * widget, int arg1){
	return (qt_QPixmap *)new QPixmap(((QWindowsStyleBridge*)instPointer)->stylePixmap((QStyle::StylePixmap)stylepixmap, (QWidget*)widget, (QStyleOption&)arg1));
}
