QWindowsStyle(3qt)

NAME
QWindowsStyle - Windows Look and Feel

#include <qwindowsstyle.h>

Inherits QCommonStyle.

Inherited by QPlatinumStyle.

  Public Members
QWindowsStyle ()
virtual ~QWindowsStyle ()
virtual void drawButton ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool sunken = FALSE, const QBrush * fill = 0 )
virtual void drawExclusiveIndicatorMask ( QPainter * p, int x, int y, int w, int h, bool on )
virtual void drawSliderMask ( QPainter * p, int x, int y, int w, int h, Orientation, bool tickAbove, bool tickBelow )

  Protected Members
void drawWinShades ( QPainter * p, int x, int y, int w, int h, const QColor & c1, const QColor & c2, const QColor & c3, const QColor & c4, const QBrush * fill )

DESCRIPTION
Windows Look and Feel

This class implements the look and feel known from the Windows platform. Naturally it is also Qt's default GUI style on Windows.

MEMBER FUNCTION DOCUMENTATION

QWindowsStyle::QWindowsStyle ()
Constructs a QWindowsStyle.

QWindowsStyle::~QWindowsStyle () [virtual]
Destructs the style.

QRect QWindowsStyle::comboButtonFocusRect ( int x, int y, int w, int h ) [virtual]
Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

QRect QWindowsStyle::comboButtonRect ( int x, int y, int w, int h ) [virtual]
Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

void QWindowsStyle::drawArrow ( QPainter * p, ArrowType type, bool down, int x, int y, int w, int h, const QColorGroup & g, bool enabled, const QBrush * fill = 0 )
Reimplemented for internal reasons; the API is not affected.

void QWindowsStyle::drawBevelButton ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool sunken = FALSE, const QBrush * fill = 0 ) [virtual]
Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

void QWindowsStyle::drawButton ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool sunken = FALSE, const QBrush * fill = 0 ) [virtual]
Draws a press-sensitive shape.

Reimplemented from QStyle.

void QWindowsStyle::drawCheckMark ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool act, bool dis ) [virtual]
Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

void QWindowsStyle::drawComboButton ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool sunken = FALSE, bool = FALSE, bool enabled = TRUE, const QBrush * fill = 0 ) [virtual]
Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

void QWindowsStyle::drawExclusiveIndicator ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool on, bool down = FALSE, bool enabled = TRUE ) [virtual]
Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

void QWindowsStyle::drawExclusiveIndicatorMask ( QPainter * p, int x, int y, int w, int h, bool ) [virtual]
Draws the mask of a mark indicating the state of an exclusive choice.

Reimplemented from QStyle.

void QWindowsStyle::drawFocusRect ( QPainter * p, const QRect & r, const QColorGroup &, const QColor * bg =0, bool = FALSE ) [virtual]
Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

void QWindowsStyle::drawIndicator ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, int s, bool down = FALSE, bool enabled = TRUE ) [virtual]
Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

void QWindowsStyle::drawPanel ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool sunken=FALSE, int lineWidth = 1, const QBrush * fill = 0 ) [virtual]
Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

void QWindowsStyle::drawPopupMenuItem ( QPainter * p, bool checkable, int maxpmw, int tab, QMenuItem * mi, const QPalette & pal, bool act, bool enabled, int x, int y, int w, int h ) [virtual]
Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

void QWindowsStyle::drawPopupPanel ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, int = 2, const QBrush * fill = 0 ) [virtual]
Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

void QWindowsStyle::drawPushButton ( QPushButton * btn, QPainter * p ) [virtual]
Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

void QWindowsStyle::drawScrollBarControls ( QPainter * p, const QScrollBar * sb, int sliderStart, uint controls, uint activeControl ) [virtual]
Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

void QWindowsStyle::drawSlider ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, Orientation orient, bool tickAbove, bool tickBelow ) [virtual]
Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

void QWindowsStyle::drawSliderGroove ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, QCOORD c, Orientation orient ) [virtual]
Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

void QWindowsStyle::drawSliderMask ( QPainter * p, int x, int y, int w, int h, Orientation orient, bool tickAbove, bool tickBelow ) [virtual]
Draws the mask of a slider.

Reimplemented from QStyle.

void QWindowsStyle::drawSplitter ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, Orientation ) [virtual]
Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

void QWindowsStyle::drawTab ( QPainter * p, const QTabBar * tb, QTab * t, bool selected )
Reimplemented for internal reasons; the API is not affected.

void QWindowsStyle::drawTabMask ( QPainter * p, const QTabBar * tb, QTab * t, bool selected )
Reimplemented for internal reasons; the API is not affected.

void QWindowsStyle::drawWinShades ( QPainter * p, int x, int y, int w, int h, const QColor & c1, const QColor & c2, const QColor & c3, const QColor & c4, const QBrush * fill ) [protected]
This function draws a rectangle with two pixel line width. It is called from qDrawWinButton() and qDrawWinPanel().

c1..c4 and fill are used:

1 1 1 1 1 2 1 3 3 3 4 2 1 3 F F 4 2 1 3 F F 4 2 1 4 4 4 4 2 2 2 2 2 2 2.

QSize QWindowsStyle::exclusiveIndicatorSize () const [virtual]
Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

int QWindowsStyle::extraPopupMenuItemWidth ( bool checkable, int maxpmw, QMenuItem * mi, const QFontMetrics & ) [virtual]
Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

void QWindowsStyle::getButtonShift ( int & x, int & y ) [virtual]
Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

QSize QWindowsStyle::indicatorSize () const [virtual]
Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

int QWindowsStyle::maximumSliderDragDistance () const [virtual]
Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

void QWindowsStyle::polishPopupMenu ( QPopupMenu * p ) [virtual]
Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

int QWindowsStyle::popupMenuItemHeight ( bool, QMenuItem * mi, const QFontMetrics & fm ) [virtual]
Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

void QWindowsStyle::scrollBarMetrics ( const QScrollBar * sb, int & sliderMin, int & sliderMax, int & sliderLength, int & buttonDim ) [virtual]
Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

int QWindowsStyle::sliderLength () const [virtual]
Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

int QWindowsStyle::splitterWidth () const [virtual]
Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

void QWindowsStyle::tabbarMetrics ( const QTabBar * t, int & hframe, int & vframe, int & overlap )
Reimplemented for internal reasons; the API is not affected.

SEE ALSO
http://doc.trolltech.com/qwindowsstyle.html http://www.trolltech.com/faq/tech.html

COPYRIGHT
Copyright 1992-2001 Trolltech AS, http://www.trolltech.com. See the license file included in the distribution for a complete license statement.

AUTHOR
Generated automatically from the source code.

BUGS
If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports make our job much simpler. Thank you.

In case of content or formattting problems with this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (qwindowsstyle.3qt) and the Qt version (2.3.1).