/***************************************************************************
                            qt_QStyle.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_QStyle.h"
}

#include <qstyle.h>
#include <qpixmap.h>

void qt_del_QStyle( qt_QStyle* p ){
	delete (QStyle*) p;
}
void qt_QStyle_polish( qt_QStyle* instPointer,qt_QWidget * arg1){
	((QStyle*)instPointer)->polish((QWidget*)arg1);
	return;
}
void qt_QStyle_unPolish( qt_QStyle* instPointer,qt_QWidget * arg1){
	((QStyle*)instPointer)->unPolish((QWidget*)arg1);
	return;
}
void qt_QStyle_polish1( qt_QStyle* instPointer,qt_QApplication* arg1){
	((QStyle*)instPointer)->polish((QApplication*)arg1);
	return;
}
void qt_QStyle_unPolish1( qt_QStyle* instPointer,qt_QApplication* arg1){
	((QStyle*)instPointer)->unPolish((QApplication*)arg1);
	return;
}
void qt_QStyle_polish2( qt_QStyle* instPointer,qt_QPalette * arg1){
	((QStyle*)instPointer)->polish((QPalette&)* (QPalette*)arg1);
	return;
}
void qt_QStyle_polishPopupMenu( qt_QStyle* instPointer,qt_QPopupMenu* arg1){
	((QStyle*)instPointer)->polishPopupMenu((QPopupMenu*)arg1);
	return;
}
qt_QRect* qt_QStyle_itemRect( qt_QStyle* instPointer,qt_QPainter * p, qt_QRect* r, int flags, int enabled, qt_QPixmap * pixmap, qt_QString * text, int len){
	QRect _r= ((QStyle*)instPointer)->itemRect((QPainter*)p, (QRect&)* (QRect*)r, (int)flags, (bool)enabled, (QPixmap*)pixmap, (QString&)* (QString*)text, (int)len);
	return (qt_QRect*)new QRect(_r.left(),_r.top(),_r.width(),_r.height());
}
void qt_QStyle_drawItem( qt_QStyle* instPointer,qt_QPainter * p, qt_QRect* r, int flags, qt_QColorGroup * g, int enabled, qt_QPixmap * pixmap, qt_QString * text, int len, qt_QColor* penColor){
	((QStyle*)instPointer)->drawItem((QPainter*)p, (QRect&)* (QRect*)r, (int)flags, (QColorGroup&)* (QColorGroup*)g, (bool)enabled, (QPixmap*)pixmap, (QString&)* (QString*)text, (int)len, (QColor*)penColor);
	return;
}
void qt_QStyle_drawPrimitive( qt_QStyle* instPointer,int pe, qt_QPainter * p, qt_QRect* r, qt_QColorGroup * cg, int flags, int arg1){
	((QStyle*)instPointer)->drawPrimitive((QStyle::PrimitiveElement)pe, (QPainter*)p, (QRect&)* (QRect*)r, (QColorGroup&)* (QColorGroup*)cg, (QStyle::SFlags)flags, (QStyleOption&)arg1);
	return;
}
void qt_QStyle_drawControl( qt_QStyle* instPointer,int element, qt_QPainter * p, qt_QWidget * widget, qt_QRect* r, qt_QColorGroup * cg, int how, int arg1){
	((QStyle*)instPointer)->drawControl((QStyle::ControlElement)element, (QPainter*)p, (QWidget*)widget, (QRect&)* (QRect*)r, (QColorGroup&)* (QColorGroup*)cg, (QStyle::SFlags)how, (QStyleOption&)arg1);
	return;
}
void qt_QStyle_drawControlMask( qt_QStyle* instPointer,int element, qt_QPainter * p, qt_QWidget * widget, qt_QRect* r, int arg1){
	((QStyle*)instPointer)->drawControlMask((QStyle::ControlElement)element, (QPainter*)p, (QWidget*)widget, (QRect&)* (QRect*)r, (QStyleOption&)arg1);
	return;
}
qt_QRect* qt_QStyle_subRect( qt_QStyle* instPointer,int r, qt_QWidget * widget){
	QRect _r= ((QStyle*)instPointer)->subRect((QStyle::SubRect)r, (QWidget*)widget);
	return (qt_QRect*)new QRect(_r.left(),_r.top(),_r.width(),_r.height());
}
void qt_QStyle_drawComplexControl( qt_QStyle* instPointer,int control, qt_QPainter * p, qt_QWidget * widget, qt_QRect* r, qt_QColorGroup * cg, int how, int sub, int subActive, int arg1){
	((QStyle*)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_QStyle_drawComplexControlMask( qt_QStyle* instPointer,int control, qt_QPainter * p, qt_QWidget * widget, qt_QRect* r, int arg1){
	((QStyle*)instPointer)->drawComplexControlMask((QStyle::ComplexControl)control, (QPainter*)p, (QWidget*)widget, (QRect&)* (QRect*)r, (QStyleOption&)arg1);
	return;
}
qt_QRect* qt_QStyle_querySubControlMetrics( qt_QStyle* instPointer,int control, qt_QWidget * widget, int sc, int arg1){
	QRect _r= ((QStyle*)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_QStyle_querySubControl( qt_QStyle* instPointer,int control, qt_QWidget * widget, qt_QPoint* pos, int arg1){
	return (int) ((QStyle*)instPointer)->querySubControl((QStyle::ComplexControl)control, (QWidget*)widget, (QPoint&)* (QPoint*)pos, (QStyleOption&)arg1);
}
int qt_QStyle_pixelMetric( qt_QStyle* instPointer,int metric, qt_QWidget * widget){
	return (int) ((QStyle*)instPointer)->pixelMetric((QStyle::PixelMetric)metric, (QWidget*)widget);
}
qt_QSize * qt_QStyle_sizeFromContents( qt_QStyle* instPointer,int contents, qt_QWidget * widget, qt_QSize * contentsSize, int arg1){
	QSize _s= ((QStyle*)instPointer)->sizeFromContents((QStyle::ContentsType)contents, (QWidget*)widget, (QSize&)* (QSize*)contentsSize, (QStyleOption&)arg1);
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
//int qt_QStyle_styleHint( qt_QStyle* instPointer,int stylehint, qt_QWidget * widget, int arg1, qt_QStyleHintReturn* returnData){
//	return (int) ((QStyle*)instPointer)->styleHint((QStyle::StyleHint)stylehint, (QWidget*)widget, (QStyleOption&)arg1, (QStyleHintReturn*)returnData);
//}
qt_QPixmap * qt_QStyle_stylePixmap( qt_QStyle* instPointer,int stylepixmap, qt_QWidget * widget, int arg1){
	return (qt_QPixmap *)new QPixmap(((QStyle*)instPointer)->stylePixmap((QStyle::StylePixmap)stylepixmap, (QWidget*)widget, (QStyleOption&)arg1));
}
int qt_QStyle_defaultFrameWidth( qt_QStyle* instPointer){
	return (int) ((QStyle*)instPointer)->defaultFrameWidth();
}
void qt_QStyle_tabbarMetrics( qt_QStyle* instPointer,qt_QWidget * t, int hf, int vf, int ov){
	((QStyle*)instPointer)->tabbarMetrics((QWidget*)t, (int&)hf, (int&)vf, (int&)ov);
	return;
}
qt_QSize * qt_QStyle_scrollBarExtent( qt_QStyle* instPointer){
	QSize _s= ((QStyle*)instPointer)->scrollBarExtent();
	return (qt_QSize *)new QSize(_s.width(),_s.height());
}
qt_QRect* qt_QStyle_visualRect( qt_QRect* logical, qt_QWidget * w){
	QRect _r= QStyle::visualRect((QRect&)* (QRect*)logical, (QWidget*)w);
	return (qt_QRect*)new QRect(_r.left(),_r.top(),_r.width(),_r.height());
}
qt_QRect* qt_QStyle_visualRect1( qt_QRect* logical, qt_QRect* bounding){
	QRect _r= QStyle::visualRect((QRect&)* (QRect*)logical, (QRect&)* (QRect*)bounding);
	return (qt_QRect*)new QRect(_r.left(),_r.top(),_r.width(),_r.height());
}
