CrossFramework Library
|
00001 00006 #if defined(XBASE_INCLUDED_SCREEN_HPP) 00007 #else 00008 #define XBASE_INCLUDED_SCREEN_HPP 00009 00010 //------------------------------------------------------------ 00011 #include <XBase/BuiltInTypes.hpp> 00012 #include <XBase/NonCopyable.hpp> 00013 #include <XBase/OS.hpp> 00014 00015 #if defined(XBASE_OS_MACOSX) 00016 #include <XBase/Screen_MacOSX.hpp> 00017 #elif defined(XBASE_OS_IOS) 00018 #include <XBase/Screen_iOS.hpp> 00019 #else 00020 #include <XBase/Screen_Default.hpp> 00021 #endif 00022 00023 //------------------------------------------------------------ 00024 namespace XBase { 00025 class Display_EXT; 00026 } 00027 00028 //------------------------------------------------------------ 00029 namespace XBase { 00031 00032 00038 class Screen : public ::XBase::NonCopyable 00039 { 00040 public: 00041 // コンストラクタ。システムが呼ぶ。 00042 Screen( Display_EXT& aOwner , uint aWidth , uint aHeight ); 00043 00045 00046 uint width()const; 00047 uint height()const; 00048 00049 00050 //============================================================ 00051 // 内部実装用関数群。 00052 Display_EXT& display_(); 00053 Screen_EXT& ext_(); 00054 00055 private: 00056 Display_EXT& mOwner; 00057 Screen_EXT mEXT; 00058 uint mWidth; 00059 uint mHeight; 00060 }; 00062 } 00063 //------------------------------------------------------------ 00064 #endif 00065 // EOF