home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ool_main.zip / ool / include / xpoint.h < prev    next >
Text File  |  1997-10-21  |  2KB  |  41 lines

  1. #ifndef __OOL_XPOINT_H__
  2. #define __OOL_XPOINT_H__
  3.  
  4. /*===========================================================================*/
  5. /* OOL ------------------- the Open Object Library ------------------- r 1.0 */
  6. /*===========================================================================*/
  7. /*                              class: XPoint                                */
  8. /*                       derived from: XObject                               */
  9. /*                        last update: 3/97                                  */
  10. /*                      programmed by: Stefan von Brauk (sbrauk@gwdg.de)     */
  11. /*===========================================================================*/
  12.  
  13.  
  14. #include "xobject.h"
  15.  
  16.  
  17. class _export_ XPoint: public XObject
  18. {
  19.       friend class XBox;
  20.       friend class XText;
  21.       friend class XCircle;
  22.       friend class XArc;
  23.       friend class XLine;
  24.       friend class XMarker;
  25.    protected:
  26.       LONG x, y;
  27.    public:
  28.       XPoint( const LONG xPoint = 0, const LONG yPoint = 0)
  29.             { x = xPoint; y = yPoint;}
  30.       XPoint( const XPoint * pp) { x=pp->x; y=pp->y; }
  31.       virtual ~XPoint() {;}
  32.       LONG GetX( void ) const { return x; }
  33.       LONG GetY( void ) const { return y; }
  34.       void Set( const LONG x_1, const LONG y_1) { x=x_1; y=y_1; }
  35.       void SetX( const LONG newX ) {x = newX; }
  36.       void SetY( const LONG newY ) {y = newY; }
  37.       XPoint operator =(const XPoint& p) { x=p.x; y=p.y; return *this; }
  38. };
  39.  
  40. #endif
  41.