MyGUI  3.2.1
MyGUI_Constants.h
Go to the documentation of this file.
00001 /*
00002  * This source file is part of MyGUI. For the latest info, see http://mygui.info/
00003  * Distributed under the MIT License
00004  * (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
00005  */
00006 
00007 #ifndef __MYGUI_CONSTANTS_H__
00008 #define __MYGUI_CONSTANTS_H__
00009 
00010 #include "MyGUI_Prerequest.h"
00011 #include "MyGUI_UString.h"
00012 #include "MyGUI_Types.h"
00013 
00014 namespace MyGUI
00015 {
00016 
00017     class MYGUI_EXPORT Constants
00018     {
00019     public:
00020         static const UString& getEmptyUString()
00021         {
00022             return mUString;
00023         }
00024         static const std::string& getEmptyString()
00025         {
00026             return mString;
00027         }
00028         static const IntSize& getZeroIntSize()
00029         {
00030             return mIntSize;
00031         }
00032         static const IntPoint& getZeroIntPoint()
00033         {
00034             return mIntPoint;
00035         }
00036 
00037     private:
00038         static UString mUString;
00039         static std::string mString;
00040         static IntSize mIntSize;
00041         static IntPoint mIntPoint;
00042     };
00043 
00044 } // namespace MyGUI
00045 
00046 #endif // __MYGUI_CONSTANTS_H__