TColorItem Class Reference

[tvision Index] [tvision Hierarchy] [Headers]


Informations about a color item More...

#include <colorsel.h>

Public Members


Detailed Description

Stores informations about a color item.

See Also: TColorGroup, TColorDialog


TColorItem( const char *nm, uchar idx, TColorItem *nxt = 0 ) [public]

Constructor.

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

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

~TColorItem() [public virtual]

Destructor.

const char *name[public]

The name of the color item.

uchar index[public]

The index of the color item.

TColorItem *next[public]

A pointer to the next color item.

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

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

See Also:
TColorGroup

friend TColorItem& operator +( TColorItem& i1, TColorItem& i2 ) [public]

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


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