QPlatinumStyle Class Reference
Platinum Look and Feel
More...
#include <qplatinumstyle.h>
Inherits QWindowsStyle.
List of all member functions.
Public Members
- QPlatinumStyle ()
- virtual void drawPopupPanel ( QPainter * p, int x, int y, int w, int h, const QColorGroup &, int lineWidth = 2, const QBrush * fill = 0 )
- virtual void drawButton ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool sunken = FALSE, const QBrush * fill = 0 )
- virtual QRect buttonRect ( int x, int y, int w, int h )
- 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 drawPushButton ( QPushButton * btn, QPainter * p )
- virtual void drawPushButtonLabel ( QPushButton * btn, QPainter * p )
- virtual void scrollBarMetrics ( const QScrollBar *, int &, int &, int &, int & )
- virtual void drawScrollBarControls ( QPainter *, const QScrollBar *, int sliderStart, uint controls, uint activeControl )
- ScrollControl scrollBarPointOver ( const QScrollBar *, int sliderStart, const QPoint & )
- virtual QSize indicatorSize () const
- virtual void drawIndicator ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, int state, bool down = FALSE, bool enabled = TRUE )
- virtual void drawIndicatorMask ( QPainter * p, int x, int y, int w, int h, int state )
- 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 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 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
- 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 drawScrollBarBackground ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool horizontal, const QBrush * fill = 0 )
- QColor mixedColor ( const QColor &, const QColor & )
- void drawRiffles ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool horizontal )
Detailed Description
Platinum Look and Feel
This class implements the Platinum look and feel. It's an
experimental class that tries to resemble a Macinosh-like GUI style
with the QStyle system. The emulation is, however, far from being
perfect yet.
Member Function Documentation
QPlatinumStyle::QPlatinumStyle ()
Constructs a QPlatinumStyle.
QRect QPlatinumStyle::buttonRect ( int x, int y, int w, int h ) [virtual]
Reimplemented for internal reasons; the API is not affected.
Reimplemented from QStyle.
QRect QPlatinumStyle::comboButtonFocusRect ( int x, int y, int w, int h ) [virtual]
Reimplemented for internal reasons; the API is not affected.
Reimplemented from QStyle.
QRect QPlatinumStyle::comboButtonRect ( int x, int y, int w, int h ) [virtual]
Reimplemented for internal reasons; the API is not affected.
Reimplemented from QStyle.
void QPlatinumStyle::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 QPlatinumStyle::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 QPlatinumStyle::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 QPlatinumStyle::drawComboButton ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool = FALSE, bool editable = FALSE, bool = TRUE, const QBrush * fill = 0 ) [virtual]
Reimplemented for internal reasons; the API is not affected.
Reimplemented from QStyle.
void QPlatinumStyle::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 QPlatinumStyle::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 QPlatinumStyle::drawIndicatorMask ( QPainter * p, int x, int y, int w, int h, int s ) [virtual]
Reimplemented for internal reasons; the API is not affected.
Reimplemented from QStyle.
void QPlatinumStyle::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 QPlatinumStyle::drawPopupPanel ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, int lineWidth = 2, const QBrush * fill = 0 ) [virtual]
Reimplemented for internal reasons; the API is not affected.
Reimplemented from QStyle.
void QPlatinumStyle::drawPushButton ( QPushButton * btn, QPainter * p ) [virtual]
Reimplemented for internal reasons; the API is not affected.
Reimplemented from QStyle.
void QPlatinumStyle::drawPushButtonLabel ( QPushButton * btn, QPainter * p ) [virtual]
Reimplemented for internal reasons; the API is not affected.
Reimplemented from QStyle.
void QPlatinumStyle::drawRiffles ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool horizontal ) [protected]
draw the nifty Macintosh decoration used on sliders.
void QPlatinumStyle::drawScrollBarBackground ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, bool horizontal, const QBrush * fill = 0 ) [protected]
Reimplemented for internal reasons; the API is not affected.
void QPlatinumStyle::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 QPlatinumStyle::drawSlider ( QPainter * p, int x, int y, int w, int h, const QColorGroup & g, Orientation orient, bool, bool ) [virtual]
Reimplemented for internal reasons; the API is not affected.
Reimplemented from QStyle.
void QPlatinumStyle::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.
QSize QPlatinumStyle::exclusiveIndicatorSize () const [virtual]
Reimplemented for internal reasons; the API is not affected.
Reimplemented from QStyle.
int QPlatinumStyle::extraPopupMenuItemWidth ( bool checkable, int maxpmw, QMenuItem * mi, const QFontMetrics & fm ) [virtual]
Reimplemented for internal reasons; the API is not affected.
Reimplemented from QStyle.
QSize QPlatinumStyle::indicatorSize () const [virtual]
Reimplemented for internal reasons; the API is not affected.
Reimplemented from QStyle.
int QPlatinumStyle::maximumSliderDragDistance () const [virtual]
Reimplementation from QWindowsStyle to disable the Windows typical jump
back when dragging controls.
See also: QStyle.
Reimplemented from QStyle.
QColor QPlatinumStyle::mixedColor ( const QColor & c1, const QColor & c2 ) [protected]
mixes two colors to a new colors.
void QPlatinumStyle::polishPopupMenu ( QPopupMenu * p )
Reimplemented for internal reasons; the API is not affected.
int QPlatinumStyle::popupMenuItemHeight ( bool checkable, QMenuItem * mi, const QFontMetrics & fm )
Reimplemented for internal reasons; the API is not affected.
void QPlatinumStyle::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 QPlatinumStyle::sliderLength () const [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
|