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

  1. #ifndef _IDMCNRHD_INL_
  2. #define _IDMCNRHD_INL_ 0
  3. /*******************************************************************************
  4. * FILE NAME: idmcnrhd.inl                                                      *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   This file contains the definition of the inline functions for the          *
  8. *   class(es) declared in idmcnrhd.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:   M:/ibmclass/idrag/vcs/idmcnrhd.inv  $                                                                        *
  19. //
  20. //   Rev 1.1   03 Sep 1993 10:44:08   banzai
  21. //Add renderer/provider support to constructor
  22. //
  23. //   Rev 1.0   02 Sep 1993 20:29:48   banzai
  24. //Initial Drop
  25. //
  26. *******************************************************************************/
  27. #ifndef _IDMCNRHD_
  28.   #undef  _IDMCNRHD_INL_
  29.   #define _IDMCNRHD_INL_ 1
  30.   #include <idmcnrhd.hpp>
  31. #endif
  32.  
  33. #if _IDMCNRHD_INL_
  34.   #define inline
  35. #endif
  36.  
  37. /*=========================================================================
  38. | Inlines for IDMCnrTargetHandler                               MAB 08/02 |
  39. =========================================================================*/
  40. inline Boolean IDMCnrTargetHandler :: wasDragAfter() const
  41. {
  42.   return(this->bWasDragAfter);
  43. }
  44.  
  45. inline IDMCnrTargetHandler& IDMCnrTargetHandler ::
  46.                             setCurrentDropOffset(const ISize &offset)
  47. {
  48.   this->sizeDropCurrent = offset;
  49.   return(*this);
  50. }
  51.  
  52. inline ISize IDMCnrTargetHandler :: currentDropOffset() const
  53. {
  54.   return(this->sizeDropCurrent);
  55. }
  56.  
  57. inline IDMCnrTargetHandler& IDMCnrTargetHandler ::
  58.                    setStyle(const DropStyle &drpStyle)
  59. {
  60.   this->dropStyle = drpStyle;
  61.   return(*this);
  62. }
  63.  
  64. inline IDMCnrTargetHandler::DropStyle IDMCnrTargetHandler :: style() const
  65. {
  66.   return(this->dropStyle);
  67. }
  68.  
  69. inline Boolean IDMCnrTargetHandler :: isStyle(const DropStyle &drpStyle)
  70. {
  71.   return((style() & drpStyle) == drpStyle.asUnsignedLong());
  72. }
  73.  
  74. #endif // _IDMCNRHD_INL_
  75.