QColorGroup Class Reference
The QColorGroup class contains a group of widget colors.
(details)
(complete member list)
#include <qpalette.h>
Public Members
- QColorGroup ()
- QColorGroup (const QColor& foreground, const QColor& background, const QColor& light, const QColor& dark, const QColor& medium, const QColor& text, const QColor& base)
- ~QColorGroup ()
- const QColor& foreground () const
- const QColor& background () const
- const QColor& light () const
- const QColor& dark () const
- const QColor& mid () const
- const QColor& text () const
- const QColor& base () const
- bool operator== (const QColorGroup& g) const
- bool operator!= (const QColorGroup& g) const
Related Functions
(Note that these are not member functions.)
- QDataStream & operator<< (QDataStream &s, const QColorGroup &g)
- QDataStream & operator>> (QDataStream &s, QColorGroup &g)
The QColorGroup class contains a group of widget colors.
A color group contains a group of colors used by widgets for
drawing themselves.
The seven colors in a color group are:
- Foreground (graphics foreground color)
- Light (lighter than background color, for shadow effects)
- Dark (darker then the background color, for shadow effects)
- Medium (between background and dark, used for shadow and contrast
effect e.g in the motif scrollbar and
motif push buttons)
- Text (usually the same as the foreground color)
- Base (used for extra contrast with foreground, e.g. in the edit
area of a editor).
A QPalette contains 3 color groups.
The current widget color group is returned by QWidget::colorGroup().
See also: QColor, QPalette.
Related Functions
Writes a color group to the stream.
Reads a color group from the stream.
This file is part of the Qt toolkit,
copyright 1995
Troll Tech, all rights reserved.
It was generated from the following files:
- qpalette.h: 1995/03/27
- qpalette.cpp: 1995/05/31
Generated at 16:17, 1995/06/30 by the webmaster at Troll Tech