#include <colorsel.h>
Public Methods | |
TColorGroup (const char *nm, TColorItem *itm=0, TColorGroup *nxt=0) | |
virtual | ~TColorGroup () |
Public Attributes | |
const char* | name |
uchar | index |
TColorItem* | items |
TColorGroup* | next |
Friends | |
TColorGroup& | operator+ (TColorGroup &g, TColorItem &i) |
TColorGroup& | operator+ (TColorGroup &g1, TColorGroup &g2) |
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. 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. |
|
Destructor. |
|
Inserts another color group after this one by changing the TColorGroup::next pointer.
|
|
Inserts color item `i' in color group `g'.
|
|
The start index of the color group. Definition at line 142 of file colorsel.h. |
|
Pointer to the associated list of color items associated with this color group. Definition at line 147 of file colorsel.h. |
|
The name of the color group. Definition at line 138 of file colorsel.h. |
|
Pointer to next color group, or 0 if no next. Definition at line 151 of file colorsel.h. |