home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / ievent.inl < prev    next >
Encoding:
Text File  |  1996-02-22  |  2.4 KB  |  78 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. *   classes declared in ievent.hpp.                                            *
  9. *                                                                              *
  10. * COPYRIGHT:                                                                   *
  11. *   IBM Open Class Library                                                     *
  12. *   (C) Copyright International Business Machines Corporation 1992, 1996       *
  13. *   Licensed Material - Program-Property of IBM - All Rights Reserved.         *
  14. *   US Government Users Restricted Rights - Use, duplication, or disclosure    *
  15. *   restricted by GSA ADP Schedule Contract with IBM Corp.                     *
  16. *                                                                              *
  17. *******************************************************************************/
  18. #ifndef _IEVENT_
  19.   #undef  _IEVENT_INL_
  20.   #define _IEVENT_INL_ 1
  21.   #include <ievent.hpp>
  22. #endif
  23.  
  24. #if _IEVENT_INL_
  25.   #define inline
  26. #endif
  27.  
  28.  
  29. inline  IWindowHandle IEvent::handle() const
  30. { return hCl; }
  31.  
  32. inline  IWindowHandle IEvent::controlHandle() const
  33. { return p_controlHandle; }
  34.  
  35. inline  IEvent& IEvent::setHandle  ( const IWindowHandle& handle )
  36. {
  37.   hCl = handle;
  38.   return *this;
  39. }
  40.  
  41. inline  IEvent& IEvent::setDispatchingHandle  ( const IWindowHandle& handle )
  42. {
  43.   p_dispatchingHandle = handle;
  44.   return *this;
  45. }
  46.  
  47. inline  IEvent& IEvent::setControlHandle  ( const IWindowHandle& handle )
  48. {
  49.   p_controlHandle = handle;
  50.   return *this;
  51. }
  52.  
  53. inline unsigned long IEvent::eventId() const
  54. { return ulClEvtId; }
  55.  
  56. inline  IEventParameter1 IEvent::parameter1() const
  57. { return epCl1; }
  58.  
  59. inline IEventParameter2 IEvent::parameter2() const
  60. { return epCl2; }
  61.  
  62. inline IEvent& IEvent::setResult(const IEventResult& er)
  63. {
  64.   erCl = er;
  65.   return *this;
  66. }
  67.  
  68. inline IEvent& IEvent::setResult(Boolean er)
  69. {
  70.   erCl = (IEventResult)er;
  71.   return *this;
  72. }
  73.  
  74. inline IEventResult IEvent::result() const
  75. { return erCl; }
  76.  
  77. #endif // _IEVENT_INL_
  78.