annotate engine/core/view/renderers/coordinaterenderer.i @ 697:ecaa4d98f05f tip

Abstracted the GUI code and refactored the GUIChan-specific code into its own module. * Most of the GUIChan code has been refactored into its own gui/guichan module. However, references to the GuiFont class still persist in the Engine and GuiManager code and these will need further refactoring. * GuiManager is now an abstract base class which specific implementations (e.g. GUIChan) should subclass. * The GUIChan GUI code is now a concrete implementation of GuiManager, most of which is in the new GuiChanGuiManager class. * The GUI code in the Console class has been refactored out of the Console and into the GUIChan module as its own GuiChanConsoleWidget class. The rest of the Console class related to executing commands was left largely unchanged. * Existing client code may need to downcast the GuiManager pointer received from FIFE::Engine::getGuiManager() to GuiChanGuiManager, since not all functionality is represented in the GuiManager abstract base class. Python client code can use the new GuiChanGuiManager.castTo static method for this purpose.
author M. George Hansen <technopolitica@gmail.com>
date Sat, 18 Jun 2011 00:28:40 -1000
parents aa813b967806
children
rev   line source
580
aa813b967806 * I forgot the new swig files :/
helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
1 /***************************************************************************
aa813b967806 * I forgot the new swig files :/
helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
2 * Copyright (C) 2005-2008 by the FIFE team *
aa813b967806 * I forgot the new swig files :/
helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
3 * http://www.fifengine.de *
aa813b967806 * I forgot the new swig files :/
helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
4 * This file is part of FIFE. *
aa813b967806 * I forgot the new swig files :/
helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
5 * *
aa813b967806 * I forgot the new swig files :/
helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
6 * FIFE is free software; you can redistribute it and/or *
aa813b967806 * I forgot the new swig files :/
helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
7 * modify it under the terms of the GNU Lesser General Public *
aa813b967806 * I forgot the new swig files :/
helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
8 * License as published by the Free Software Foundation; either *
aa813b967806 * I forgot the new swig files :/
helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
9 * version 2.1 of the License, or (at your option) any later version. *
aa813b967806 * I forgot the new swig files :/
helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
10 * *
aa813b967806 * I forgot the new swig files :/
helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
11 * This library is distributed in the hope that it will be useful, *
aa813b967806 * I forgot the new swig files :/
helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
aa813b967806 * I forgot the new swig files :/
helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
aa813b967806 * I forgot the new swig files :/
helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
14 * Lesser General Public License for more details. *
aa813b967806 * I forgot the new swig files :/
helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
15 * *
aa813b967806 * I forgot the new swig files :/
helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
16 * You should have received a copy of the GNU Lesser General Public *
aa813b967806 * I forgot the new swig files :/
helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
17 * License along with this library; if not, write to the *
aa813b967806 * I forgot the new swig files :/
helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
18 * Free Software Foundation, Inc., *
aa813b967806 * I forgot the new swig files :/
helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
aa813b967806 * I forgot the new swig files :/
helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
20 ***************************************************************************/
aa813b967806 * I forgot the new swig files :/
helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
21
aa813b967806 * I forgot the new swig files :/
helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
22 %module fife
aa813b967806 * I forgot the new swig files :/
helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
23 %{
aa813b967806 * I forgot the new swig files :/
helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
24 #include "view/renderers/coordinaterenderer.h"
aa813b967806 * I forgot the new swig files :/
helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
25 %}
aa813b967806 * I forgot the new swig files :/
helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
26
aa813b967806 * I forgot the new swig files :/
helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
27 namespace FIFE {
aa813b967806 * I forgot the new swig files :/
helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
28 class RenderBackend;
aa813b967806 * I forgot the new swig files :/
helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
29
aa813b967806 * I forgot the new swig files :/
helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
30 class CoordinateRenderer: public RendererBase {
aa813b967806 * I forgot the new swig files :/
helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
31 public:
aa813b967806 * I forgot the new swig files :/
helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
32 virtual ~CoordinateRenderer();
aa813b967806 * I forgot the new swig files :/
helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
33 std::string getName();
aa813b967806 * I forgot the new swig files :/
helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
34 void setColor(Uint8 r, Uint8 g, Uint8 b);
aa813b967806 * I forgot the new swig files :/
helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
35
aa813b967806 * I forgot the new swig files :/
helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
36 static CoordinateRenderer* getInstance(IRendererContainer* cnt);
aa813b967806 * I forgot the new swig files :/
helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
37
aa813b967806 * I forgot the new swig files :/
helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
38 private:
aa813b967806 * I forgot the new swig files :/
helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
39 CoordinateRenderer(RenderBackend* renderbackend, int position, AbstractFont* font);
aa813b967806 * I forgot the new swig files :/
helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
40 };
aa813b967806 * I forgot the new swig files :/
helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
41 }
aa813b967806 * I forgot the new swig files :/
helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
42