home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional Developers Kit 1992 November / Disc01 / Disc01.mdf / cppbeta / ibmcli / isizeevt.hp_ / ISIZEEVT.HPP
Encoding:
C/C++ Source or Header  |  1992-10-26  |  3.6 KB  |  74 lines

  1. #ifndef _ISIZEEVT_
  2. #define _ISIZEEVT_
  3. /*******************************************************************************
  4. * FILE NAME: isizeevt.hpp                                                      *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   Declaration of the class(es):                                              *
  8. *     IResizeEvent - resizing event class                                      *
  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 disclosure    *
  15. *   restricted by GSA ADP Schedule Contract with IBM Corp.                     *
  16. *                                                                              *
  17. *$Log:   R:/IBMCLASS/IBASEAPP/VCS/ISIZEEVT.HPV  $                                                                         *
  18. // 
  19. //    Rev 1.3   25 Oct 1992 18:00:44   nunn
  20. // Brad Broyles changes for external beta
  21.  
  22.       Rev 1.1   01 Jan 1989 12:00:00   LM & KKL
  23.    Initiate code
  24.       Rev 1.2   01 May 1991 12:00:00   KKL
  25.    Combine all events into 1 file/modified for better performance
  26.       Rev 1.3   01 Oct 1991 12:00:00   KKL
  27.    Update per R2.0 spec.
  28.       Rev 1.4   17 Sep 1992 12:00:00   KKL
  29.    Make individual file
  30.       Rev 1.5   22 Oct 1992 12:00:00   WBB
  31.    Amend to match skeleton.hpp
  32. *******************************************************************************/
  33.  
  34. // Forward declarations for other classes:
  35. class IResizeEvent;
  36. class ISize;
  37. #if !defined( _IEVENT_ ) && !defined( I_NO_RELATED_HPP )
  38.   #include <ievent.hpp>
  39. #endif
  40. #if !defined( _IPOINT_ ) && !defined( I_NO_RELATED_HPP )
  41.   #include <ipoint.hpp>
  42. #endif
  43.  
  44. class IResizeEvent  : public IEvent {
  45. /*******************************************************************************
  46. * The IResizeEvent class encapsulates the WM_SIZE message and provides         *
  47. * functions to return the old and new sizes.                                   *
  48. *******************************************************************************/
  49. typedef IEvent Inherited;
  50. public:
  51. /*------------------------ CONSTRUCTORS/DESTRUCTORS ----------------------------
  52. | There is one way to construct instances of this class:                       |
  53. |   1. from an instance of the IEvent class                                    |
  54. ------------------------------------------------------------------------------*/
  55.    IResizeEvent(IEvent& evt);
  56.  
  57. /*-------------------------------- ACCESSORS -----------------------------------
  58. | These function provide means of getting and setting the accessible           |
  59. | attributes of instances of this class:                                       |
  60. |   oldSize - return the size before the window resize                         |
  61. |   newSize - return the new window size                                       |
  62. ------------------------------------------------------------------------------*/
  63. ISize
  64.   oldSize() const,
  65.   newSize() const;
  66. }; // IResizeEvent
  67.  
  68. /*--------------------------------- INLINES ----------------------------------*/
  69. #ifndef I_NO_INLINES
  70.   #include <isizeevt.inl>
  71. #endif
  72.  
  73. #endif /* _ISIZEEVT_ */
  74.