MyGUI_Constants.h
Go to the documentation of this file.
/*
* This source file is part of MyGUI. For the latest info, see http://mygui.info/
* Distributed under the MIT License
* (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
*/
#ifndef MYGUI_CONSTANTS_H_
#define MYGUI_CONSTANTS_H_
#include "MyGUI_Prerequest.h"
#include "MyGUI_UString.h"
#include "MyGUI_Types.h"
namespace MyGUI
{
class MYGUI_EXPORT Constants
{
public:
static const UString& getEmptyUString()
{
return mUString;
}
static const std::string& getEmptyString()
{
return mString;
}
static const IntSize& getZeroIntSize()
{
return mIntSize;
}
static const IntPoint& getZeroIntPoint()
{
return mIntPoint;
}
private:
static UString mUString;
static std::string mString;
static IntSize mIntSize;
static IntPoint mIntPoint;
};
} // namespace MyGUI
#endif // MYGUI_CONSTANTS_H_
MYGUI_EXPORT
#define MYGUI_EXPORT
Definition MyGUI_Platform.h:77
MyGUI_Prerequest.h
MyGUI_Types.h
MyGUI_UString.h
MyGUI::Constants
Definition MyGUI_Constants.h:18
MyGUI::Constants::getEmptyString
static const std::string & getEmptyString()
Definition MyGUI_Constants.h:24
MyGUI::Constants::getZeroIntSize
static const IntSize & getZeroIntSize()
Definition MyGUI_Constants.h:28
MyGUI::Constants::getEmptyUString
static const UString & getEmptyUString()
Definition MyGUI_Constants.h:20
MyGUI::Constants::getZeroIntPoint
static const IntPoint & getZeroIntPoint()
Definition MyGUI_Constants.h:32
MyGUI::UString
A UTF-16 string with implicit conversion to/from std::string and std::wstring.
Definition MyGUI_UString.h:144
MyGUI
Definition MyGUI_ActionController.h:15
MyGUI::IntPoint
types::TPoint< int > IntPoint
Definition MyGUI_Types.h:27
MyGUI::IntSize
types::TSize< int > IntSize
Definition MyGUI_Types.h:30