CrossFramework Library

XBase/Screen.hpp

説明を見る。
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     struct ScreenPosPOD;
00027 }
00028 
00029 //------------------------------------------------------------
00030 namespace XBase {
00032 
00033 
00039     class Screen : public ::XBase::NonCopyable
00040     {
00041     public:
00042         // コンストラクタ。システムが呼ぶ。
00043         Screen( Display_EXT& aOwner , uint aWidth , uint aHeight );
00044         
00046 
00047 
00048         uint width()const; 
00049 
00051         uint height()const;
00052 
00057         bool isContains( const ScreenPosPOD& aPos )const;
00059 
00060         //============================================================
00061         // 内部実装用関数群。
00062         Display_EXT& display_();
00063         Screen_EXT& ext_();
00064         
00065     private:
00066         Display_EXT& mOwner;
00067         Screen_EXT mEXT;
00068         uint mWidth;
00069         uint mHeight;
00070     };
00072 }
00073 //------------------------------------------------------------
00074 #endif
00075 // EOF
 全て クラス ネームスペース ファイル 関数 変数 型定義 列挙型 列挙型の値 マクロ定義