/***************************************************************************
                            qt_QCommonStyle.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_QCommonStyle.h"
}

#include <qcommonstyle.h>
#include <qpixmap.h>

//qt_QCommonStyle * qt_new_QCommonStyle(){
//	return (qt_QCommonStyle *) new QCommonStyle();
//}
//void qt_del_QCommonStyle( qt_QCommonStyle* p ){
//	delete (QCommonStyle*) p;
//}
void qt_QCommonStyle_drawPrimitive( qt_QCommonStyle* instPointer,int pe, qt_QPainter * p, qt_QRect* r, qt_QColorGroup * cg, int flags, int arg1){
	((QCommonStyle*)instPointer)->drawPrimitive((QStyle::PrimitiveElement)pe, (QPainter*)p, (QRect&)* (QRect*)r, (QColorGroup&)* (QColorGroup*)cg, (QStyle::SFlags)flags, (QStyleOption&)arg1);
	return;
}
void qt_QCommonStyle_drawControl( qt_QCommonStyle* instPointer,int element, qt_QPainter * p, qt_QWidget * widget, qt_QRect* r, qt_QColorGroup * cg, int how, int arg1){
	((QCommonStyle*)instPointer)->drawControl((QStyle::ControlElement)element, (QPainter*)p, (QWidget*)widget, (QRect&)* (QRect*)r, (QColorGroup&)* (QColorGroup*)cg, (QStyle::SFlags)how, (QStyleOption&)arg1);
	return;
}
void qt_QCommonStyle_drawControlMask( qt_QCommonStyle* instPointer,int element, qt_QPainter * p, qt_QWidget * widget, qt_QRect* r, int arg1){
	((QCommonStyle*)instPointer)->drawControlMask((QStyle::ControlElement)element, (QPainter*)p, (QWidget*)widget, (QRect&)* (QRect*)r, (QStyleOption&)arg1);
	return;
}
qt_QRect* qt_QCommonStyle_subRect( qt_QCommonStyle* instPointer,int r, qt_QWidget * widget){
	QRect _r= ((QCommonStyle*)instPointer)->subRect((QStyle::SubRect)r, (QWidget*)widget);
	return (qt_QRect*)new QRect(_r.left(),_r.top(),_r.width(),_r.height());
}
void qt_QCommonStyle_drawComplexControl( qt_QCommonStyle* instPointer,int control, qt_QPainter * p, qt_QWidget * widget, qt_QRect* r, qt_QColorGroup * cg, int how, int sub, int subActive, int arg1){
	((QCommonStyle*)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;
}
void qt_QCommonStyle_drawComplexControlMask( qt_QCommonStyle* instPointer,int control, qt_QPainter * p, qt_QWidget * widget, qt_QRect* r, int arg1){
	((QCommonStyle*)instPointer)->drawComplexControlMask((QStyle::ComplexControl)control, (QPainter*)p, (QWidget*)widget, (QRect&)* (QRect*)r, (QStyleOption&)arg1);
	return;
}
qt_QRect* qt_QCommonStyle_querySubControlMetrics( qt_QCommonStyle* instPointer,int control, qt_QWidget * widget, int sc, int arg1){
	QRect _r= ((QCommonStyle*)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_QCommonStyle_querySubControl( qt_QCommonStyle* instPointer,int control, qt_QWidget * widget, qt_QPoint* pos, int arg1){
	return (int) ((QCommonStyle*)instPointer)->querySubControl((QStyle::ComplexControl)control, (QWidget*)widget, (QPoint&)* (QPoint*)pos, (QStyleOption&)arg1);
}
int qt_QCommonStyle_pixelMetric( qt_QCommonStyle* instPointer,int m, qt_QWidget * widget){
	return (int) ((QCommonStyle*)instPointer)->pixelMetric((QStyle::PixelMetric)m, (QWidget*)widget);
}
qt_QSize * qt_QCommonStyle_sizeFromContents( qt_QCommonStyle* instPointer,int s, qt_QWidget * widget, qt_QSize * contentsSize, int arg1){
	QSize _s= ((QCommonStyle*)instPointer)->sizeFromContents((QStyle::ContentsType)s, (QWidget*)widget, (QSize&)* (QSize*)contentsSize, (QStyleOption&)arg1);
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
//int qt_QCommonStyle_styleHint( qt_QCommonStyle* instPointer,int sh, qt_QWidget * arg1, int arg2, qt_QStyleHintReturn* arg3){
//	return (int) ((QCommonStyle*)instPointer)->styleHint((QStyle::StyleHint)sh, (QWidget*)arg1, (QStyleOption&)arg2, (QStyleHintReturn*)arg3);
//}
qt_QPixmap * qt_QCommonStyle_stylePixmap( qt_QCommonStyle* instPointer,int sp, qt_QWidget * widget, int arg1){
	return (qt_QPixmap *)new QPixmap(((QCommonStyle*)instPointer)->stylePixmap((QStyle::StylePixmap)sp, (QWidget*)widget, (QStyleOption&)arg1));
}
