![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 1998 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: displaySize.h,v $ $Revision: 1.4 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00011 00012 #ifndef DISPLAYSIZE_H 00013 #define DISPLAYSIZE_H 00014 00015 #include "drawerNative/drawerNativeDefines.h" 00016 #include <iosfwd> 00017 00018 class DtDisplayPoint; 00019 00023 00024 class DT_DLL_drawerNative DtDisplaySize 00025 { 00026 00027 friend std::ostream& operator<<(std::ostream& os, 00028 const DtDisplayPoint& point); 00029 friend std::istream& operator>>(std::istream& is, DtDisplayPoint& point); 00030 00031 public: 00032 00034 DtDisplaySize(); 00035 00037 DtDisplaySize(const int& w, const int& h); 00038 00039 DtDisplaySize(const DtDisplayPoint& upperLeft, 00040 const DtDisplayPoint& lowerRight); 00041 00043 virtual ~DtDisplaySize(); 00044 00046 DtDisplaySize(const DtDisplaySize& orig); 00047 00049 DtDisplaySize& operator=(const DtDisplaySize& rhs); 00050 00052 virtual bool operator==(const DtDisplaySize& rhs) const; 00053 virtual bool operator!=(const DtDisplaySize& rhs) const; 00054 00056 virtual const int& w() const; 00057 virtual void setW(const int& w); 00058 00060 virtual const int& h() const; 00061 virtual void setH(const int& h); 00062 00064 virtual bool isDefault() const; 00065 00066 protected: 00067 00068 int myW; 00069 int myH; 00070 00071 static const int theDefaultW; 00072 static const int theDefaultH; 00073 00074 }; 00075 00076 #endif 00077