Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

TColorGroup Class Reference

Stores a set of color items. More...

#include <colorsel.h>

List of all members.

Public Methods

 TColorGroup (const char *nm, TColorItem *itm=0, TColorGroup *nxt=0)
virtual ~TColorGroup ()

Public Attributes

const char* name
uchar index
TColorItemitems
TColorGroup* next

Friends

TColorGroup& operator+ (TColorGroup &g, TColorItem &i)
TColorGroup& operator+ (TColorGroup &g1, TColorGroup &g2)


Detailed Description

The interrelated classes TColorItem, TColorGroup, TColorSelector, TMonoSelector, TColorDisplay, TColorGroupList, TColorItemList and TColorDialog provide viewers and dialog boxes from which the user can select and change the color assignments from available palettes with immediate effect on the screen.

The TColorGroup class defines a group of linked lists of TColorItem objects. Each member of a color group consists of a set of color names and their associated color codes.

Definition at line 115 of file colorsel.h.


Constructor & Destructor Documentation

TColorGroup::TColorGroup ( const char * nm,
TColorItem * itm = 0,
TColorGroup * nxt = 0 )
 

Constructor.

Creates a color group with the given argument values.

`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::~TColorGroup ( ) [virtual]
 

Destructor.


Friends And Related Function Documentation

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

Inserts another color group after this one by changing the TColorGroup::next pointer.

See also:
TColorItem

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

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

See also:
TColorGroup


Member Data Documentation

uchar TColorGroup::index
 

The start index of the color group.

Definition at line 142 of file colorsel.h.

TColorItem * TColorGroup::items
 

Pointer to the associated list of color items associated with this color group.

Definition at line 147 of file colorsel.h.

const char * TColorGroup::name
 

The name of the color group.

Definition at line 138 of file colorsel.h.

TColorGroup * TColorGroup::next
 

Pointer to next color group, or 0 if no next.

Definition at line 151 of file colorsel.h.


The documentation for this class was generated from the following file:
Generated at Sat Sep 22 20:19:22 2001 for TVision by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001