CrossFramework Library
|
00001 00006 #if defined(XBASE_INCLUDED_DISPLAYCONTEXT_HPP) 00007 #else 00008 #define XBASE_INCLUDED_DISPLAYCONTEXT_HPP 00009 00010 //------------------------------------------------------------ 00011 #include <XBase/Bool.hpp> 00012 #include <XBase/BuiltInTypes.hpp> 00013 #include <XBase/OSType.hpp> 00014 00015 //------------------------------------------------------------ 00016 namespace XBase { 00018 00019 00020 class DisplayContext 00021 { 00022 public: 00024 DisplayContext(); 00025 00026 #if defined(XBASE_OSTYPE_WINDOWSYSTEM) 00027 00028 00029 void setLocationToCenter(); 00030 uint locationX()const; 00031 uint locationY()const; 00032 uint width()const; 00033 uint height()const; 00034 bool isScreenDoubleBuffer()const; 00036 #endif 00037 00038 private: 00039 #if defined(XBASE_OSTYPE_WINDOWSYSTEM) 00040 uint mLocationX; 00041 uint mLocationY; 00042 uint mWidth; 00043 uint mHeight; 00044 Bool32 mIsScreenDoubleBuffer; 00045 #endif 00046 }; 00048 } 00049 //------------------------------------------------------------ 00050 #endif 00051 // EOF