
Class Reference
enum Component {
CT_RED = 8,
CT_GREEN = 4,
CT_BLUE = 2,
CT_ALPHA = 1,
CT_RGB = CT_RED | CT_GREEN | CT_BLUE,
CT_RGBA = CT_RED | CT_GREEN | CT_BLUE
| CT_ALPHA
};
Component is a data type used as a mask for keeping track of the state of the component toggles.
DK_ColourChannelToggles(const char *name,
Widget parent,
Arg *args = NULL,
int nargs = 0,
short state = CT_RGBA);
Creates a set of component toggles with the specified parent widget. The toggles are labelled *name. short getValue ( void );Returns the state of the toggles.
void setValue ( short val );Sets the state of the toggles to the specified value.
void setMask ( short mask );Turns on the channels specified by mask. For example, if mask is 5 (0101), then G and A are set on while R and B keep their previous values.
void clearMask ( short mask );Turns off the channels specified by mask. For example, if mask is 5 (0101), then G and A are turned off while R and B keep their previous values.
void enableMask ( short mask );Sensitizes or desensitizes individual toggles according to the mask.
