QWindowsStyle Class Reference
Windows Look and Feel
More...
#include <qwindowsstyle.h>
Inherits QCommonStyle.
Inherited by QPlatinumStyle.
List of all member functions.
Public Members
- 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 drawBevelButton ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool sunken = FALSE, const QBrush * fill = 0 )
- virtual void drawFocusRect ( QPainter *, const QRect &, const QColorGroup &, const QColor * =0, bool = FALSE )
- virtual void drawPushButton ( QPushButton * btn, QPainter * p )
- virtual void getButtonShift ( int & x, int & y )
- virtual void drawPanel ( QPainter * p, int x, int y, int w, int h, const QColorGroup &, bool sunken=FALSE, int lineWidth = 1, const QBrush * fill = 0 )
- virtual void drawPopupPanel ( QPainter * p, int x, int y, int w, int h, const QColorGroup &, int lineWidth = 2, const QBrush * fill = 0 )
- void drawArrow ( QPainter * p, ArrowType type, bool down, int x, int y, int w, int h, const QColorGroup & g, bool enabled, const QBrush * fill = 0 )
- virtual QSize indicatorSize () const
- virtual void drawIndicator ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, int s, bool down = FALSE, bool enabled = TRUE )
- virtual QSize exclusiveIndicatorSize () const
- virtual void drawExclusiveIndicator ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool on, bool down = FALSE, bool enabled = TRUE )
- virtual void drawExclusiveIndicatorMask ( QPainter * p, int x, int y, int w, int h, bool on )
- virtual void drawComboButton ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool sunken = FALSE, bool editable = FALSE, bool enabled = TRUE, const QBrush * fill = 0 )
- virtual QRect comboButtonRect ( int x, int y, int w, int h )
- virtual QRect comboButtonFocusRect ( int x, int y, int w, int h )
- virtual void tabbarMetrics ( const QTabBar *, int &, int &, int & )
- virtual void drawTab ( QPainter *, const QTabBar *, QTab *, bool selected )
- virtual void drawTabMask ( QPainter *, const QTabBar *, QTab *, bool selected )
- virtual void scrollBarMetrics ( const QScrollBar *, int &, int &, int &, int & )
- virtual void drawScrollBarControls ( QPainter *, const QScrollBar *, int sliderStart, uint controls, uint activeControl )
- virtual int sliderLength () const
- virtual void drawSlider ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, Orientation, bool tickAbove, bool tickBelow )
- virtual void drawSliderMask ( QPainter * p, int x, int y, int w, int h, Orientation, bool tickAbove, bool tickBelow )
- virtual void drawSliderGroove ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, QCOORD c, Orientation )
- virtual int maximumSliderDragDistance () const
- virtual int splitterWidth () const
- virtual void drawSplitter ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, Orientation )
- void drawCheckMark ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool act, bool dis )
- void polishPopupMenu ( QPopupMenu * )
- virtual int extraPopupMenuItemWidth ( bool checkable, int maxpmw, QMenuItem * mi, const QFontMetrics & fm )
- int popupMenuItemHeight ( bool checkable, QMenuItem * mi, const QFontMetrics & fm )
- void 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 )
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 )
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 Tech | Trademarks
| Qt version 2.0.2
|