home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cset21v1.zip / IBMCPP / IBMCLASS / ICOLOR.INL < prev    next >
Text File  |  1993-10-22  |  3KB  |  66 lines

  1. #ifndef _ICOLOR_INL_
  2. #define _ICOLOR_INL_ 0
  3. /*******************************************************************************
  4. * FILE NAME: icolor.inl                                                        *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   This file contains the definition of the inline functions for the          *
  8. *   class(es) declared in icolor.hpp.                                          *
  9. *                                                                              *
  10. * COPYRIGHT:                                                                   *
  11. *   Licensed Materials - Property of IBM                                       *
  12. *   (C) Copyright IBM Corporation 1992, 1993                                   *
  13. *   All Rights Reserved                                                        *
  14. *   US Government Users Restricted Rights - Use, duplication, or               *
  15. *   disclosure                                                                 *
  16. *   restricted by GSA ADP Schedule Contract with IBM Corp.                     *
  17. *                                                                              *
  18. *******************************************************************************/
  19. #ifndef _ICOLOR_
  20.   #undef  _ICOLOR_INL_
  21.   #define _ICOLOR_INL_ 1
  22.   #include <icolor.hpp>
  23. #endif
  24.  
  25.  
  26. #if _ICOLOR_INL_
  27.   #define inline
  28. #endif
  29.  
  30. inline unsigned char IColor::redMix() const
  31. /**************************************************************/
  32. /* Return the red value.                                      */
  33. /**************************************************************/
  34. { return ucClRed; }
  35.  
  36. inline unsigned char IColor::blueMix() const
  37. /**************************************************************/
  38. /* Return the blue value.                                     */
  39. /**************************************************************/
  40. { return ucClBlue; }
  41.  
  42. inline unsigned char IColor::greenMix() const
  43. /**************************************************************/
  44. /* Return the green value.                                    */
  45. /**************************************************************/
  46. { return ucClGreen; }
  47.  
  48. inline IColor& IColor::setRed(unsigned char redMix)
  49. {
  50.    ucClRed = redMix;
  51.    return *this;
  52. }
  53.  
  54. inline IColor& IColor::setGreen(unsigned char greenMix)
  55. {
  56.    ucClGreen = greenMix;
  57.    return *this;
  58. }
  59.  
  60. inline IColor& IColor::setBlue(unsigned char blueMix)
  61. {
  62.    ucClBlue  = blueMix;
  63.    return *this;
  64. }
  65. #endif // _ICOLOR_INL_
  66.