home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / ikeyevt.inl < prev    next >
Encoding:
Text File  |  1996-02-22  |  2.2 KB  |  55 lines

  1. #ifndef _IKEYEVT_INL_
  2. #define _IKEYEVT_INL_ 0
  3. /*******************************************************************************
  4. * FILE NAME: ikeyevt.inl                                                       *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   This file contains the definition of the inline functions for the          *
  8. *   class(es) declared in ikeyevt.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 _IKEYEVT_
  19.   #undef  _IKEYEVT_INL_
  20.   #define _IKEYEVT_INL_ 1
  21.   #include <ikeyevt.hpp>
  22. #endif
  23.  
  24. #if _IKEYEVT_INL_
  25.   #define inline
  26. #endif
  27.  
  28. /*------------------------------ IKeyboardEvent ------------------------------*/
  29. inline IBase::Boolean  IKeyboardEvent::isScanCode ( ) const
  30. {
  31.   return ((isVirtual() && parameter2().char3()) ? true : false);
  32. }
  33. inline IBase::Boolean  IKeyboardEvent::isUpTransition ( ) const
  34. {
  35.   return ((parameter2().asUnsignedLong() & ulUpTransitionFlag ) ? true : false);
  36. }
  37. inline IBase::Boolean  IKeyboardEvent::isRepeat ( ) const
  38. {
  39.   return ((parameter2().number1() > 1 ) ? true : false);
  40. }
  41. inline IBase::Boolean  IKeyboardEvent::isAltDown ( ) const
  42. {
  43.   return ((parameter2().asUnsignedLong() & ulAltFlag ) ? true : false);
  44. }
  45. inline IBase::Boolean  IKeyboardEvent::isComposite ( ) const
  46. {
  47.   return fValidComposite;
  48. }
  49. inline IBase::Boolean  IKeyboardEvent::isInvalidComposite ( ) const
  50. {
  51.   return fInvalidComposite;
  52. }
  53.  
  54. #endif // _IKEYEVT_INL_
  55.