Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

DocDimensions.h

Go to the documentation of this file.
00001 #ifndef OglGui_DocDimensions_h
00002 #define OglGui_DocDimensions_h
00003 
00004 namespace OglGui
00005 {
00006 
00007 class DocDimensions
00008 {
00009 public:
00010     virtual void SetDocDimensions(int x, int y, int w, int h)
00011     {
00012         mDocX = x;
00013         mDocY = y;
00014         mDocW = w;
00015         mDocH = h;
00016     }
00017     virtual void SetDocDimensions(int w, int h)
00018     {
00019         mDocW = w;
00020         mDocH = h;
00021     }
00022 
00023     void GetDocDimensions(int& x, int& y, int& w, int& h)
00024     {
00025         x = mDocX;
00026         y = mDocY;
00027         w = mDocW;
00028         h = mDocH;
00029     }
00030 
00031     void GetDocDimensions(int& w, int& h)
00032     {
00033         w = mDocW;
00034         h = mDocH;
00035     }
00036 
00037     virtual void DocX(int x) { mDocX = x; }
00038     virtual void DocY(int y) { mDocY = y; }
00039     virtual void DocW(int w) { mDocW = w; }
00040     virtual void DocH(int h) { mDocH = h; }
00041 
00042     int DocX()       { return mDocX; }
00043     int DocY()       { return mDocY; }
00044     int DocW()       { return mDocW; }
00045     int DocH()       { return mDocH; }
00046     
00047 protected:
00048     int mDocX;
00049     int mDocY;
00050     int mDocW;
00051     int mDocH;
00052 };
00053 
00054 } // namespace OglGui
00055 
00056 #endif

Generated on Fri Mar 19 09:31:35 2010 for ImpalaSrc by  doxygen 1.5.1