home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ool.zip / OOL / include / xsize.h < prev    next >
C/C++ Source or Header  |  1997-03-05  |  1KB  |  37 lines

  1. #ifndef __OOL_XSIZE_H__
  2. #define __OOL_XSIZE_H__
  3.  
  4. /*===========================================================================*/
  5. /* OOL ------------------- the Open Object Library ------------- OS/2 Beta 1 */
  6. /*===========================================================================*/
  7. /*                              class: XSize                                 */
  8. /*                       derived from: XObject                               */
  9. /*                        last update: 3/97                                  */
  10. /*                      programmed by: Stefan von Brauk (sbrauk@gwdg.de)     */
  11. /*===========================================================================*/
  12.  
  13.  
  14.  
  15. #include "xobject.h"
  16. #include "string.h"
  17.  
  18. class _export_ XSize: public XObject
  19. {
  20.     private:
  21.         LONG width, height;
  22.     public:
  23.         XSize(LONG x=0, LONG y=0) {width = x; height = y; }
  24.         LONG GetWidth() const { return width; } 
  25.         LONG GetHeight() const { return height; }
  26.         void SetWidth( LONG x) { width = x; }
  27.         void SetHeight( LONG y ) { height = y; }
  28.         XSize operator =(const XSize& s)
  29.          {
  30.             width=s.width;
  31.             width=s.height;
  32.             return *this;
  33.          }
  34. };
  35.  
  36. #endif
  37.