KColorGroup Class Reference

[kdecore Index] [kdecore Hierarchy] [Headers]


A KColorGroup provides seven colors for widgets: foreground, background, light, mid, dark, text and base - exactly as the QColorGroup More...

#include <kcolorgroup.h>

Public Members

Private Members


Detailed Description

A KColorGroup provides seven colors for widgets: foreground, background, light, mid, dark, text and base - exactly as the

QColorGroup. KColorGroup adds the possibility to store the

KColorGroup via the KConfig mechanism. It would be nicer if

KColorGroup was derived from QColorGroup, but QColorGroup provides

no write access to its data members except via the constructor.


KColorGroup() [public]

Construct a KColorGroup with all colors black

KColorGroup( const QColor& rForeground, const QColor& rBackground, const QColor& rLight, const QColor& rMid, const QColor& rDark, const QColor& rText, const QColor& rBase ) [public]

Construct a KColorGroup with given colors.

KColorGroup( const KColorGroup& ) [public]

Copy-constructor

KColorGroup& operator=( const KColorGroup& ) [public]

assignment operator

~KColorGroup() [public]

KColorGroup destructor

const QColor& foreground() const [public]

Retrieve the foreground value.

const QColor& background() const [public]

Retrieve the background value.

const QColor& light() const [public]

Retrieve the light value.

const QColor& mid() const [public]

Retrieve the mid value.

const QColor& dark() const [public]

Retrieve the dark value.

const QColor& text() const [public]

Retrieve the text value.

const QColor& base() const [public]

Retrieve the base value.

bool operator==( const KColorGroup& rColorGroup ) const [public]

Compare two KColorGroups.

bool operator!=( const KColorGroup& rColorGroup ) const [public]

Compare two KColorGroups.

void load( KConfig& rConfig, QString* pString = 0L ) [public]

Load color values from a KConfig object. The group "ColorGroup"is used. If pString is not 0, the value of pString is prepended to the group name.

void save( KConfig& rConfig, QString* pString = 0L ) [public]

Save color values to a KConfig object. The group "ColorGroup" isused. If pString is not 0, the value of pString is prepended to the group name.

const QColorGroup* colorGroup() const [public]

Return the QColorGroup object (for drawing shades e.g.).


Documentation generated by root@darkstar.lst.de on Wed Sep 8 17:38:18 CEST 1999
Kdoc