MyGUI  3.2.0
MyGUI_Prerequest.h
Go to the documentation of this file.
1 
8 /*
9  This file is part of MyGUI.
10 
11  MyGUI is free software: you can redistribute it and/or modify
12  it under the terms of the GNU Lesser General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  MyGUI is distributed in the hope that it will be useful,
17  but WITHOUT ANY WARRANTY; without even the implied warranty of
18  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  GNU Lesser General Public License for more details.
20 
21  You should have received a copy of the GNU Lesser General Public License
22  along with MyGUI. If not, see <http://www.gnu.org/licenses/>.
23 */
24 
25 #ifndef __MYGUI_PREREQUEST_H__
26 #define __MYGUI_PREREQUEST_H__
27 
28 #include "MyGUI_Platform.h"
29 
30 #if MYGUI_COMPILER == MYGUI_COMPILER_MSVC
31 # ifdef MYGUI_CHECK_MEMORY_LEAKS
32 # define _CRTDBG_MAP_ALLOC
33 # include <crtdbg.h>
34 # endif
35 #endif
36 
37 #define MYGUI_DEFINE_VERSION(major, minor, patch) ((major << 16) | (minor << 8) | patch)
38 
39 #ifndef MYGUI_DONT_REPLACE_NULLPTR
40  #if MYGUI_COMPILER == MYGUI_COMPILER_MSVC
41  #ifndef _MANAGED
42  #ifndef _NATIVE_NULLPTR_SUPPORTED
43  #define nullptr 0
44  #endif
45  #endif
46  #else
47  #define nullptr 0
48  #endif
49 #endif
50 
51 namespace MyGUI
52 {
53  class Gui;
54  class LogManager;
55  class InputManager;
56  class SubWidgetManager;
57  class LayerManager;
58  class SkinManager;
59  class WidgetManager;
60  class FontManager;
61  class ControllerManager;
62  class PointerManager;
63  class ClipboardManager;
64  class LayoutManager;
65  class PluginManager;
66  class DynLibManager;
67  class LanguageManager;
68  class ResourceManager;
69  class RenderManager;
70  class FactoryManager;
71  class TextureManager;
72  class ToolTipManager;
73 
74  class Widget;
75  class Button;
76  class Window;
77  class ListBox;
78  class EditBox;
79  class ComboBox;
80  class TextBox;
81  class TabControl;
82  class TabItem;
83  class ProgressBar;
84  class ItemBox;
85  class MultiListBox;
86  class MultiListItem;
87  class ImageBox;
88  class MenuControl;
89  class MenuItem;
90  class PopupMenu;
91  class MenuBar;
92  class ScrollBar;
93  class ScrollView;
94  class DDContainer;
95  class Canvas;
96 
97  // Define version
98  #define MYGUI_VERSION_MAJOR 3
99  #define MYGUI_VERSION_MINOR 2
100  #define MYGUI_VERSION_PATCH 0
101 
102  #define MYGUI_VERSION MYGUI_DEFINE_VERSION(MYGUI_VERSION_MAJOR, MYGUI_VERSION_MINOR, MYGUI_VERSION_PATCH)
103 
104  // Disable warnings for MSVC compiler
105 #if MYGUI_COMPILER == MYGUI_COMPILER_MSVC
106 
107 // disable: "<type> needs to have dll-interface to be used by clients'
108 // Happens on STL member variables which are not public therefore is ok
109 # pragma warning (disable : 4251)
110 
111 // also some warnings are disabled in CMake
112 
113 #endif
114 
115 } // namespace MyGUI
116 
117 #include "MyGUI_DeprecatedTypes.h"
118 
119 #endif // __MYGUI_PREREQUEST_H__