i6engine  1.0
GUICanvas.h
Go to the documentation of this file.
1 /*
2  * i6engine
3  * Copyright (2016) Daniel Bonrath, Michael Baer, All rights reserved.
4  *
5  * This file is part of i6engine; i6engine is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18  */
19 
25 #ifndef __I6ENGINE_MODULES_GUICANVAS_H__
26 #define __I6ENGINE_MODULES_GUICANVAS_H__
27 
28 #include <map>
29 #include <string>
30 
31 namespace tinyxml2 {
32  class XMLElement;
33 } /* namespace tinyxml2 */
34 
35 namespace i6e {
36 namespace api {
37  class GUIWidget;
38 } /* namespace api */
39 namespace modules {
40 
41  class GUIFactory;
42  class GUIManager;
43 
48  class GUICanvas {
49  friend class GUIManager;
50 
51  private:
55  static void load(const std::string & name, const std::string & file, GUIManager * manager, const GUIFactory & factory, std::map<std::string, api::GUIWidget *> & widgets);
56 
60  static void load(const std::string & name, const std::string & file, GUIManager * manager, const GUIFactory & factory, std::map<std::string, api::GUIWidget *> & widgets, tinyxml2::XMLElement * node);
61  };
62 
63 } /* namespace modules */
64 } /* namespace i6e */
65 
66 #endif /* __I6ENGINE_MODULES_GUICANVAS_H__ */
67 
This class provides methods for creating different kinds of GUI elements.
Definition: GUIFactory.h:48
This class provides method to load a canvas file.
Definition: GUICanvas.h:48
This class interacts with CEGUI. It's methods are executed in the OGRE / CEGUI thread.
Definition: GUIManager.h:77