TColorGroup Class Reference

[tvision Index] [tvision Hierarchy] [Headers]


Stores a set of color items More...

#include <colorsel.h>

Public Members


Detailed Description

Stores a set of color items.

See Also: TColorItem, TColorDialog


TColorGroup( const char *nm, TColorItem *itm = 0, TColorGroup *nxt = 0 ) [public]

Constructor.

`nm' is a pointer to the name of the color group. A local copy of the string is created. `itm' is a pointer to the first color item of the color group (its default value is 0). `nxt' is a pointer to the next color group (its default value is 0).

See file `demo/tvdemo2.cc' for an example.

~TColorGroup() [public virtual]

Destructor.

const char *name[public]

The name of the color group.

uchar index[public]

The start index of the color group.

TColorItem *items[public]

A pointer to the first color item in this color group.

TColorGroup *next[public]

A pointer to the next color group.

friend TColorGroup& operator +( TColorGroup& g, TColorItem& i) [public]

Inserts color item `i' in color group `g'.

See Also:
TColorItem

friend TColorGroup& operator +( TColorGroup& g1, TColorGroup& g2 ) [public]

Inserts another color group after this one by changing the `next' pointer.

See Also:
TColorItem

Documentation generated by sergio@athena.milk.it on Wed Feb 10 22:11:47 CET 1999
Kdoc