home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / uicldd.zip / IDMIMAGE.INL < prev    next >
Text File  |  1993-09-03  |  10KB  |  187 lines

  1. #ifndef _IDMIMAGE_INL_
  2.   #define _IDMIMAGE_INL_ 0
  3. /*******************************************************************************
  4. * FILE NAME: idmimage.inl                                                      *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   This file contains the definition of the inline functions for the          *
  8. *   class(es) declared in idmimage.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. * $Log:   S:/ibmclass/idrag/vcs/idmimage.inv  $                                *
  19. //
  20. //   Rev 1.0   03 Sep 1993 11:18:00   HAGGAR
  21. //Initial revision.
  22. //
  23. //   Rev 1.0   24 Aug 1993 10:42:02   HAGGAR
  24. //Initial revision.
  25. //
  26. *******************************************************************************/
  27. #ifndef _IDMIMAGE_
  28.   #undef  _IDMIMAGE_INL_
  29.   #define _IDMIMAGE_INL_ 1
  30.   #include <idmimage.hpp>
  31. #endif
  32.  
  33. #if _IDMIMAGE_INL_
  34.   #define inline
  35. #endif
  36.  
  37. /**************************************************************************/
  38. /* IDMImage :: pointerImage                                               */
  39. /*   Returns the pointer image handle.                                    */
  40. /*                                                                        */
  41. /* History:                                                               */
  42. /* 08/24/93  Peter Haggar  Created it.                                    */
  43. /**************************************************************************/
  44. inline IPointerHandle* IDMImage::pointerImage ()
  45. {
  46.   return (pPointerImage);
  47. }
  48.  
  49. /**************************************************************************/
  50. /* IDMImage :: bitmapImage                                                */
  51. /*   Returns the bitmap image handle.                                     */
  52. /*                                                                        */
  53. /* History:                                                               */
  54. /* 08/24/93  Peter Haggar  Created it.                                    */
  55. /**************************************************************************/
  56. inline IBitmapHandle* IDMImage::bitmapImage ()
  57. {
  58.   return (pBitmapImage);
  59. }
  60.  
  61. /**************************************************************************/
  62. /* IDMImage :: pointerOffset                                              */
  63. /*   Returns the offset of the image from the pointing device.            */
  64. /*                                                                        */
  65. /* History:                                                               */
  66. /* 08/24/93  Peter Haggar  Created it.                                    */
  67. /**************************************************************************/
  68. inline ISize IDMImage::pointerOffset ()
  69. {
  70.   return (ptrOffset);
  71. }
  72.  
  73. /**************************************************************************/
  74. /* IDMImage :: pointerOffset                                              */
  75. /*   Returns the size of the image when stretched.                        */
  76. /*                                                                        */
  77. /* History:                                                               */
  78. /* 08/24/93  Peter Haggar  Created it.                                    */
  79. /**************************************************************************/
  80. inline ISize IDMImage::stretchSize ()
  81. {
  82.   return (imageStretchSize);
  83. }
  84.  
  85. /**************************************************************************/
  86. /* IDMImage :: imageFlags                                                 */
  87. /*   Returns the flags used to describe the image.                        */
  88. /*                                                                        */
  89. /* History:                                                               */
  90. /* 08/24/93  Peter Haggar  Created it.                                    */
  91. /**************************************************************************/
  92. inline unsigned long IDMImage::imageFlags ()
  93. {
  94.   return (imgFlags);
  95. }
  96.  
  97. /**************************************************************************/
  98. /* IDMImage :: arrayPoints                                                */
  99. /*   Returns the number of array points.                                  */
  100. /*                                                                        */
  101. /* History:                                                               */
  102. /* 08/24/93  Peter Haggar  Created it.                                    */
  103. /**************************************************************************/
  104. inline unsigned short IDMImage::arrayPoints ()
  105. {
  106.   return (arrPoints);
  107. }
  108.  
  109. /**************************************************************************/
  110. /* IDMImage :: setPointerImage                                            */
  111. /*   Sets the pointer image handle.                                       */
  112. /*                                                                        */
  113. /* History:                                                               */
  114. /* 08/24/93  Peter Haggar  Created it.                                    */
  115. /**************************************************************************/
  116. inline IDMImage& IDMImage::setPointerImage (IPointerHandle *pPtrImage)
  117. {
  118.   pPointerImage = pPtrImage;
  119.   return (*this);
  120. }
  121.  
  122. /**************************************************************************/
  123. /* IDMImage :: setBitmapImage                                             */
  124. /*   Sets the bitmap image handle.                                        */
  125. /*                                                                        */
  126. /* History:                                                               */
  127. /* 08/24/93  Peter Haggar  Created it.                                    */
  128. /**************************************************************************/
  129. inline IDMImage& IDMImage::setBitmapImage (IBitmapHandle *pBMImage)
  130. {
  131.   pBitmapImage = pBMImage;
  132.   return (*this);
  133. }
  134.  
  135. /**************************************************************************/
  136. /* IDMImage :: setPointerOffset                                           */
  137. /*   Sets the offset of the image from the pointing device.               */
  138. /*                                                                        */
  139. /* History:                                                               */
  140. /* 08/24/93  Peter Haggar  Created it.                                    */
  141. /**************************************************************************/
  142. inline IDMImage& IDMImage::setPointerOffset (ISize& pointerOffset)
  143. {
  144.   ptrOffset = pointerOffset;
  145.   return (*this);
  146. }
  147.  
  148. /**************************************************************************/
  149. /* IDMImage :: setStretchSize                                             */
  150. /*   Sets the size of the image when stretched.                           */
  151. /*                                                                        */
  152. /* History:                                                               */
  153. /* 08/24/93  Peter Haggar  Created it.                                    */
  154. /**************************************************************************/
  155. inline IDMImage& IDMImage::setStretchSize (ISize& stretchSize)
  156. {
  157.   imageStretchSize = stretchSize;
  158.   return (*this);
  159. }
  160.  
  161. /**************************************************************************/
  162. /* IDMImage :: setImageFlags                                              */
  163. /*   Sets the flags used to describe the image.                           */
  164. /*                                                                        */
  165. /* History:                                                               */
  166. /* 08/24/93  Peter Haggar  Created it.                                    */
  167. /**************************************************************************/
  168. inline IDMImage& IDMImage::setImageFlags (unsigned long flags)
  169. {
  170.   imgFlags = flags;
  171.   return (*this);
  172. }
  173.  
  174. /**************************************************************************/
  175. /* IDMImage :: setArrayPoints                                             */
  176. /*   Sets the array points used when specific image flags are set         */
  177. /*                                                                        */
  178. /* History:                                                               */
  179. /* 08/24/93  Peter Haggar  Created it.                                    */
  180. /**************************************************************************/
  181. inline IDMImage& IDMImage::setArrayPoints (unsigned short arrayPoints)
  182. {
  183.   arrPoints = arrayPoints;
  184.   return (*this);
  185. }
  186. #endif //IDMIMAGE
  187.