MyGUI 3.2.0

- Main Page
- Related Pages
- Namespaces
- Data Structures
- Files
- Examples

- File List
- Globals

MyGUI_Constants.h
Go to the documentation of this file.
1
6 /*
7 This file is part of MyGUI.
8
9 MyGUI is free software: you can redistribute it and/or modify
10 it under the terms of the GNU Lesser General Public License as published by
11 the Free Software Foundation, either version 3 of the License, or
12 (at your option) any later version.
13
14 MyGUI is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU Lesser General Public License for more details.
18
19 You should have received a copy of the GNU Lesser General Public License
20 along with MyGUI. If not, see <http://www.gnu.org/licenses/>.
21 */
22 #ifndef __MYGUI_CONSTANTS_H__
23 #define __MYGUI_CONSTANTS_H__
24
25 #include "MyGUI_Prerequest.h"
26 #include "MyGUI_UString.h"
27 #include "MyGUI_Types.h"
28
29 namespace MyGUI
30 {
31
32 class MYGUI_EXPORT Constants
33 {
34 public:
35 static const UString& getEmptyUString() { return mUString; }
36 static const std::string& getEmptyString() { return mString; }
37 static const IntSize& getZeroIntSize() { return mIntSize; }
38 static const IntPoint& getZeroIntPoint() { return mIntPoint; }
39
40 private:
41 static UString mUString;
42 static std::string mString;
43 static IntSize mIntSize;
44 static IntPoint mIntPoint;
45 };
46
47 } // namespace MyGUI
48
49 #endif // __MYGUI_CONSTANTS_H__
MyGUI_UString.h
MyGUI::types::TPoint< int >
MyGUI_Prerequest.h
MyGUI::types::TSize< int >
MyGUI::Constants::getZeroIntPoint
static const IntPoint & getZeroIntPoint()
Definition: MyGUI_Constants.h:38
MyGUI_Types.h
MyGUI::Constants::getEmptyString
static const std::string & getEmptyString()
Definition: MyGUI_Constants.h:36
MYGUI_EXPORT
#define MYGUI_EXPORT
Definition: MyGUI_Platform.h:120
MyGUI::Constants::getEmptyUString
static const UString & getEmptyUString()
Definition: MyGUI_Constants.h:35
MyGUI::UString
A UTF-16 string with implicit conversion to/from std::string and std::wstring.
Definition: MyGUI_UString.h:169
MyGUI::Constants
Definition: MyGUI_Constants.h:32
MyGUI::Constants::getZeroIntSize
static const IntSize & getZeroIntSize()
Definition: MyGUI_Constants.h:37