Qt logo

QWindowsStyle Class Reference


Windows Look and Feel More...

#include <qwindowsstyle.h>

Inherits QCommonStyle.

Inherited by QPlatinumStyle.

List of all member functions.

Public Members

Protected Members


Detailed Description

Windows Look and Feel

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


Member Function Documentation

QWindowsStyle::QWindowsStyle ()

Constructs a QWindowsStyle.

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 )

Reimplemented for internal reasons; the API is not affected.

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 = 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 = 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 )

Reimplemented for internal reasons; the API is not affected.

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 ) [virtual]

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

void QWindowsStyle::drawTabMask ( QPainter * p, const QTabBar * tb, QTab * t, bool selected ) [virtual]

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.

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 )

Reimplemented for internal reasons; the API is not affected.

int QWindowsStyle::popupMenuItemHeight ( bool, QMenuItem * mi, const QFontMetrics & fm )

Reimplemented for internal reasons; the API is not affected.

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 ) [virtual]

Reimplemented for internal reasons; the API is not affected.

Reimplemented from QStyle.


Search the documentation, FAQ, qt-interest archive and more (uses www.troll.no):


This file is part of the Qt toolkit, copyright © 1995-99 Troll Tech, all rights reserved.


Copyright İ 1999 Troll TechTrademarks
Qt version 2.0.2