home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cset21v1.zip / IBMCPP / IBMCLASS / ISIZEEVT.HPP < prev    next >
C/C++ Source or Header  |  1993-10-22  |  3KB  |  65 lines

  1. #ifndef _ISIZEEVT_
  2.   #define _ISIZEEVT_
  3. /*******************************************************************************
  4. * FILE NAME: isizeevt.hpp                                                      *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   Declaration of the class(es):                                              *
  8. *     IResizeEvent - Represents a window resizing event                        *
  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. *******************************************************************************/
  18. #ifndef _IEVENT_
  19.   #include <ievent.hpp>
  20. #endif
  21.  
  22. /*----------------------------------------------------------------------------*/
  23. /* Align classes on four byte boundary.                                       */
  24. /*----------------------------------------------------------------------------*/
  25. #pragma pack(4)
  26.  
  27. // Forward declarations for other classes:
  28. class ISize;
  29.  
  30.  
  31. class IResizeEvent : public IEvent {
  32. typedef IEvent
  33.   Inherited;
  34. /*******************************************************************************
  35. * The IResizeEvent class represents an event routed to windows to notify them  *
  36. * of sizing changes (the window has already been sized).  Functions are        *
  37. * provided to return the previous and new window sizes.                        *
  38. *******************************************************************************/
  39. public:
  40. /*-------------------------- Constructor/Destructor ----------------------------
  41. | The only way to construct instances of this class is from an instance of     |
  42. | the IEvent class.                                                            |
  43. ------------------------------------------------------------------------------*/
  44.   IResizeEvent ( IEvent& event );
  45. virtual
  46.  ~IResizeEvent ( );
  47.  
  48. /*----------------------------- Size Information -------------------------------
  49. | The following functions provide a means of getting information about the     |
  50. | sizing change.                                                               |
  51. |   oldSize - Returns the size of the window before it is resized.             |
  52. |   newSize - Returns the size of the window after it is resized.              |
  53. ------------------------------------------------------------------------------*/
  54. ISize
  55.   oldSize      ( ) const,
  56.   newSize      ( ) const;
  57. }; // IResizeEvent
  58.  
  59. /*----------------------------------------------------------------------------*/
  60. /* Resume compiler default packing.                                           */
  61. /*----------------------------------------------------------------------------*/
  62. #pragma pack()
  63.  
  64. #endif /* _ISIZEEVT_ */
  65.