// C++ interface header file.
//
// Generated by SIP 3.7 (build 102) on Fri Jul 25 00:26:05 2003
//
// Copyright (c) 2003
// 	Riverbank Computing Limited <info@riverbankcomputing.co.uk>
// 
// This file is part of PyQt.
// 
// This copy of PyQt is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by the Free
// Software Foundation; either version 2, or (at your option) any later
// version.
// 
// PyQt is supplied in the hope that it will be useful, but WITHOUT ANY
// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
// FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
// details.
// 
// You should have received a copy of the GNU General Public License along with
// PyQt; see the file LICENSE.  If not, write to the Free Software Foundation,
// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

#ifndef _qtQStyle_h
#define	_qtQStyle_h

#line 145 "sip/qstyle.sip"
#include <qstyle.h>
#line 30 "sipqtQStyle.h"

#include "sipqtQObject.h"
#include "sipqtQWidget.h"
#include "sipqtQApplication.h"
#include "sipqtQPalette.h"
#include "sipqtQPopupMenu.h"
#include "sipqtQRect.h"
#include "sipqtQPainter.h"
#include "sipqtQPixmap.h"
#include "sipqtQString.h"
#include "sipqtQColorGroup.h"
#include "sipqtQColor.h"
#include "sipqtQStyleOption.h"
#include "sipqtQPoint.h"
#include "sipqtQSize.h"
#include "sipqtQStyleHintReturn.h"


extern SIP_IMPORT sipLazyAttrDef sipClassAttrTab_QStyle;

extern SIP_IMPORT const void *sipCast_QStyle Py_PROTO((const void *,PyObject *));
extern SIP_IMPORT PyObject *sipNew_QStyle Py_PROTO((PyObject *,PyObject *));


class SIP_IMPORT sipQStyle : public QStyle
{
public:
	sipQStyle();
	~sipQStyle();
	void customEvent(QCustomEvent *);
	void childEvent(QChildEvent *);
	void timerEvent(QTimerEvent *);
	QVariant property(const char *) const;
	bool setProperty(const char *,const QVariant&);
	void removeChild(QObject *);
	void insertChild(QObject *);
	void setName(const char *);
	bool eventFilter(QObject *,QEvent *);
	bool event(QEvent *);
	QPixmap stylePixmap(QStyle::StylePixmap,const QWidget *,const QStyleOption&) const;
	static QPixmap sipVH_stylePixmap(const sipMethodCache *,sipThisType *,QStyle::StylePixmap,const QWidget *,const QStyleOption&);
	int styleHint(QStyle::StyleHint,const QWidget *,const QStyleOption&,QStyleHintReturn *) const;
	static int sipVH_styleHint(const sipMethodCache *,sipThisType *,QStyle::StyleHint,const QWidget *,const QStyleOption&,QStyleHintReturn *);
	QSize sizeFromContents(QStyle::ContentsType,const QWidget *,const QSize&,const QStyleOption&) const;
	static QSize sipVH_sizeFromContents(const sipMethodCache *,sipThisType *,QStyle::ContentsType,const QWidget *,const QSize&,const QStyleOption&);
	int pixelMetric(QStyle::PixelMetric,const QWidget *) const;
	static int sipVH_pixelMetric(const sipMethodCache *,sipThisType *,QStyle::PixelMetric,const QWidget *);
	QStyle::SubControl querySubControl(QStyle::ComplexControl,const QWidget *,const QPoint&,const QStyleOption&) const;
	static QStyle::SubControl sipVH_querySubControl(const sipMethodCache *,sipThisType *,QStyle::ComplexControl,const QWidget *,const QPoint&,const QStyleOption&);
	QRect querySubControlMetrics(QStyle::ComplexControl,const QWidget *,QStyle::SubControl,const QStyleOption&) const;
	static QRect sipVH_querySubControlMetrics(const sipMethodCache *,sipThisType *,QStyle::ComplexControl,const QWidget *,QStyle::SubControl,const QStyleOption&);
	void drawComplexControlMask(QStyle::ComplexControl,QPainter *,const QWidget *,const QRect&,const QStyleOption&) const;
	static void sipVH_drawComplexControlMask(const sipMethodCache *,sipThisType *,QStyle::ComplexControl,QPainter *,const QWidget *,const QRect&,const QStyleOption&);
	void drawComplexControl(QStyle::ComplexControl,QPainter *,const QWidget *,const QRect&,const QColorGroup&,unsigned,unsigned,unsigned,const QStyleOption&) const;
	static void sipVH_drawComplexControl(const sipMethodCache *,sipThisType *,QStyle::ComplexControl,QPainter *,const QWidget *,const QRect&,const QColorGroup&,unsigned,unsigned,unsigned,const QStyleOption&);
	QRect subRect(QStyle::SubRect,const QWidget *) const;
	static QRect sipVH_subRect(const sipMethodCache *,sipThisType *,QStyle::SubRect,const QWidget *);
	void drawControlMask(QStyle::ControlElement,QPainter *,const QWidget *,const QRect&,const QStyleOption&) const;
	static void sipVH_drawControlMask(const sipMethodCache *,sipThisType *,QStyle::ControlElement,QPainter *,const QWidget *,const QRect&,const QStyleOption&);
	void drawControl(QStyle::ControlElement,QPainter *,const QWidget *,const QRect&,const QColorGroup&,unsigned,const QStyleOption&) const;
	static void sipVH_drawControl(const sipMethodCache *,sipThisType *,QStyle::ControlElement,QPainter *,const QWidget *,const QRect&,const QColorGroup&,unsigned,const QStyleOption&);
	void drawPrimitive(QStyle::PrimitiveElement,QPainter *,const QRect&,const QColorGroup&,unsigned,const QStyleOption&) const;
	static void sipVH_drawPrimitive(const sipMethodCache *,sipThisType *,QStyle::PrimitiveElement,QPainter *,const QRect&,const QColorGroup&,unsigned,const QStyleOption&);
	void drawItem(QPainter *,const QRect&,int,const QColorGroup&,bool,const QPixmap *,const QString&,int,const QColor *) const;
	static void sipVH_drawItem(const sipMethodCache *,sipThisType *,QPainter *,const QRect&,int,const QColorGroup&,bool,const QPixmap *,const QString&,int,const QColor *);
	QRect itemRect(QPainter *,const QRect&,int,bool,const QPixmap *,const QString&,int) const;
	static QRect sipVH_itemRect(const sipMethodCache *,sipThisType *,QPainter *,const QRect&,int,bool,const QPixmap *,const QString&,int);
	void polishPopupMenu(QPopupMenu *);
	static void sipVH_polishPopupMenu(const sipMethodCache *,sipThisType *,QPopupMenu *);
	void polish(QPalette&);
	static void sipVH_polish(const sipMethodCache *,sipThisType *,QPalette&);
	void unPolish(QApplication *);
	static void sipVH_unPolish(const sipMethodCache *,sipThisType *,QApplication *);
	void polish(QApplication *);
	static void sipVH_polish(const sipMethodCache *,sipThisType *,QApplication *);
	void unPolish(QWidget *);
	static void sipVH_unPolish(const sipMethodCache *,sipThisType *,QWidget *);
	void polish(QWidget *);
	static void sipVH_polish(const sipMethodCache *,sipThisType *,QWidget *);

	// There is a public member function for every protected member
	// function visible from this class.

	const QObject * sipProtect_sender();
	void sipProtect_timerEvent(QTimerEvent *);
	void sipProtect_childEvent(QChildEvent *);
	void sipProtect_customEvent(QCustomEvent *);

	// There is a public member function for every Qt signal that can be
	// emitted by this object.  This function is called by Python to emit
	// the signal.

	int sipEmit_destroyed(PyObject *sipArgs);

	sipThisType *sipPyThis;

private:
	sipQStyle(const sipQStyle &);
	sipQStyle &operator = (const sipQStyle &);

	sipMethodCache sipPyMethods[30];
};

extern SIP_IMPORT QStyle *sipForceConvertTo_QStyle Py_PROTO((PyObject *,int *));

#endif
