#include <colorsel.h>
Public Methods | |
TColorItem (const char *nm, uchar idx, TColorItem *nxt=0) | |
virtual | ~TColorItem () |
Public Attributes | |
const char* | name |
uchar | index |
TColorItem* | next |
Friends | |
TColorGroup& | operator+ (TColorGroup &g, TColorItem &i) |
TColorItem& | operator+ (TColorItem &i1, TColorItem &i2) |
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.
Definition at line 52 of file colorsel.h.
|
Constructor. Creates a color item object with name set to `nm', index set to `idx' and, by default, next set to 0. `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. |
|
Destructor. |
|
Inserts another color item after this one by changing the TColorItem::next pointer. |
|
Inserts color item `i' in color group `g'.
|
|
The color index of the item. Definition at line 79 of file colorsel.h. |
|
The name of the color item. Definition at line 75 of file colorsel.h. |
|
Link to the next color item, or 0 if there is no next item. Definition at line 83 of file colorsel.h. |