home *** CD-ROM | disk | FTP | other *** search
/ The Pier Shareware 6 / The_Pier_Shareware_Number_6_(The_Pier_Exchange)_(1995).iso / 035 / kwclass.zip / KCOLOR.HPP < prev    next >
C/C++ Source or Header  |  1994-04-18  |  959b  |  26 lines

  1. #ifndef _KCOLOR_
  2.   #define _KCOLOR_
  3. /**************************************************************************
  4. * FILE NAME: kcolor.hpp                                                   *
  5. *                                                                         *
  6. * DESCRIPTION:                                                            *
  7. *   Declaration of the class(es):                                         *
  8. *     KwColor - A specialization of IColor that can be constructed from   *
  9. *               a single unsigned long value.                             *
  10. *                                                                         *
  11. **************************************************************************/
  12.  
  13. class _Export KwColor : public IColor {
  14.  
  15. public:
  16.   KwColor(unsigned long value);
  17.  
  18. }; // KwColor
  19.  
  20. inline KwColor::KwColor(unsigned long value)
  21.   : IColor(value & 0xFF0000, value & 0xFF00, value & 0xFF)
  22. {
  23. }
  24.  
  25. #endif
  26.