// This is the SIP interface definition for QWindowsXPStyle.
//
// Copyright (c) 2003
//         Riverbank Computing Limited <info@riverbankcomputing.co.uk>
// 
// This file is part of PyQt.
// 
// This copy of PyQt is licensed for use under the terms of the PyQt
// Commercial License Agreement version 1.0.  See the file LICENSE for more
// details.
// 
// PyQt is supplied WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
 
%ExportedDoc
<Sect2><Title>QWindowsXPStyle (Qt v3+)</Title>
<Para>
<Literal>QWindowsXPStyle</Literal> is fully implemented.
</Para>
</Sect2>
%End
 
 
%If (WS_WIN)
%If (Qt_3_0_1 -)
%If (Qt_STYLE_WINDOWSXP)

class QWindowsXPStyle : QWindowsStyle
{
%HeaderCode
#include <qwindowsxpstyle.h>
%End

public:
        QWindowsXPStyle();

        void unPolish(QApplication *);
        void polish(QApplication *);
        void unPolish(QWidget *);
        void polish(QWidget *);

        void drawPrimitive(PrimitiveElement,
                           QPainter *,
                           const QRect &,
                           const QColorGroup &,
                           SFlags = Style_Default,
                           const QStyleOption & = QStyleOption()) const;
    
        void drawControl(ControlElement,
                         QPainter *,
                         const QWidget *,
                         const QRect &,
                         const QColorGroup &,
                         SFlags = Style_Default,
                         const QStyleOption & = QStyleOption()) const;
    
        void drawControlMask(ControlElement,
                             QPainter *,
                             const QWidget *,
                             const QRect &,
                             const QStyleOption & = QStyleOption()) const;
    
        void drawComplexControl(ComplexControl,
                                QPainter *,
                                const QWidget *,
                                const QRect &,
                                const QColorGroup &,
                                SFlags = Style_Default,
                                SCFlags = SC_All,
                                SCFlags = SC_None,
                                const QStyleOption & = QStyleOption()) const;
    
        int pixelMetric(PixelMetric,
                        const QWidget * = 0) const;
    
        QRect querySubControlMetrics(ComplexControl, const QWidget *,
                                     SubControl,
                                     const QStyleOption & = QStyleOption()) const;
    
        int styleHint(StyleHint,
                      const QWidget * = 0,
                      const QStyleOption & = QStyleOption(),
                      QStyleHintReturn * = 0) const;
        
protected:
        bool eventFilter(QObject *, QEvent *);
        void updateRegion(QWidget *);

protected slots:
        void activeTabChanged();

private:
        static bool resolveSymbols();
        QWindowsXPStyle(const QWindowsXPStyle &);
};

%End
%End
%End