Class Reference

DK_ColourPalette

DK_ColourPalette is a GUI class that handles colour palettes on the tool shelf. A palette is an indexed set of DK_Colour objects. The DK_Colour class is defined in DK_Types.h.

Constructor

DK_ColourPalette(const char *name, 
                 Widget parent, 
                 Arg *args = NULL,
                 Cardinal nargs = 0)
Creates a DK_ColourPalette object called *name and attached as a child of the specified parent widget.

numColours

int numColours ();
Returns the number of colours in the palette.

getColour

const DK_Colour& getColour ( int index );
Returns the colour with the specified index number.

setColour

void setColour ( int index, const DK_Colour& );
Sets the palette position with the specified index number to the specified colour.

addColour

void addColour ( int index, const DK_Colour& );
Adds the specified colour to the palette at the position with the specified index number. The indices of colours after pos are automatically incremented.

deleteColour

void deleteColour( int index );
Removes the colour at the at the position with the specified index number from the palette. The indices of colours after pos are automatically decremented.

clearColours

void clearColours();
Removes all colours from the palette.

setStandard

void setStandard ()
Sets the palette to the standard Eddie default palette.

Constructor
numColours
getColour
setColour
addColour
deleteColour
clearColours
setStandard

SOFTIMAGE Eddie 3.5 - 10 JAN 1997