- //
- ~wxColour();
-
- //
- // Set functions
- //
- void Set( unsigned char cRed
- ,unsigned char cGreen
- ,unsigned char cBlue
- );
- void Set(unsigned long lColRGB)
- {
- //
- // We don't need to know sizeof(long) here because we assume that the three
- // least significant bytes contain the R, G and B values
- //
- Set( (unsigned char)lColRGB
- ,(unsigned char)(lColRGB >> 8)
- ,(unsigned char)(lColRGB >> 16)
- );
- }
- void Set(const wxString& rsColour)
- {
- InitFromName(rsColour);
- }