home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / igelipse.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  2.6 KB  |  74 lines

  1. #ifndef _IGELIPSE_
  2. #define _IGELIPSE_
  3. /*******************************************************************************
  4. * FILE NAME: igelipse.hpp                                                      *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   Declaration of the classes:                                                *
  8. *     IGEllipse                                                                *
  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.  
  19. #include <igraphic.hpp>
  20. #include <irect.hpp>
  21.  
  22.  
  23. #pragma pack(4)
  24.  
  25. class IGraphicContext;
  26.  
  27. class IGEllipse : public IGraphic {
  28. typedef IGraphic
  29.   Inherited;
  30. public:
  31. /*------------------------------- Constructors -------------------------------*/
  32.   IGEllipse  ( const IRectangle& rectangle );
  33.  
  34.   IGEllipse  ( const IPoint&     point,
  35.                unsigned long     radius    );
  36.  
  37.   IGEllipse  ( const IPoint&     point,
  38.                unsigned long     xRadius,
  39.                unsigned long     yRadius   );
  40.  
  41.   IGEllipse  ( const IGEllipse&  ellipse   );
  42.  
  43. IGEllipse
  44.   &operator= ( const IGEllipse&  ellipse   );
  45.  
  46. virtual
  47.   ~IGEllipse ( );
  48.  
  49. /*-------------------------------- Drawing -----------------------------------*/
  50. virtual IGEllipse
  51.   &drawOn            ( IGraphicContext& graphicContext );
  52.  
  53. /*-------------------------- Enclosing Rectangle -----------------------------*/
  54. virtual IGEllipse
  55.   &setEnclosingRect  ( const IRectangle& rectangle );
  56.  
  57. virtual IRectangle
  58.   enclosingRect      ( ) const;
  59.  
  60. /*-------------------------------- Comparison --------------------------------*/
  61. IBase::Boolean
  62.   operator== ( const IGEllipse& ellipse ) const,
  63.   operator!= ( const IGEllipse& ellipse ) const;
  64.  
  65. private:
  66. /*-------------------------------- Private -----------------------------------*/
  67. IRectangle
  68.   fRect;
  69. }; // IGEllipse
  70.  
  71. #pragma pack()
  72.  
  73. #endif // _IGELIPSE_
  74.