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

  1. #ifndef _IEVENT_INL_
  2. #define _IEVENT_INL_ 0
  3. /*******************************************************************************
  4. * FILE NAME: ievent.inl                                                        *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   This file contains the definition of the inline functions for the          *
  8. *   class(es) declared in ievent.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 _IEVENT_
  20.   #undef  _IEVENT_INL_
  21.   #define _IEVENT_INL_ 1
  22.   #include <ievent.hpp>
  23. #endif
  24.  
  25. #if _IEVENT_INL_
  26.   #define inline
  27. #endif
  28.  
  29.  
  30. inline  IWindowHandle IEvent::handle() const
  31. /**************************************************************/
  32. /* Return the handle of the window or queue receiving the     */
  33. /* event.                                                     */
  34. /**************************************************************/
  35. { return (IWindowHandle)hCl; }
  36.  
  37. inline unsigned long IEvent::eventId() const
  38. /**************************************************************/
  39. /* Return the event ID.                                       */
  40. /**************************************************************/
  41. { return ulClEvtId; }
  42.  
  43. inline  IEventParameter1 IEvent::parameter1() const
  44. /**************************************************************/
  45. /* Return the first event parameter.                          */
  46. /**************************************************************/
  47. { return epCl1; }
  48.  
  49. inline IEventParameter2 IEvent::parameter2() const
  50. /**************************************************************/
  51. /* Return the second event parameter.                         */
  52. /**************************************************************/
  53. { return epCl2; }
  54.  
  55. inline IEvent& IEvent::setResult(const IEventResult& er)
  56. /**************************************************************/
  57. /* Set the event result.                                      */
  58. /**************************************************************/
  59. { erCl = er;  return *this;}
  60.  
  61. inline IEventResult IEvent::result() const
  62. /**************************************************************/
  63. /* Return the event result.                                   */
  64. /**************************************************************/
  65. { return erCl; }
  66.  
  67. #endif // _IEVENT_INL_
  68.