aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2011-12-25 16:35:07 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2013-01-05 17:17:50 +0100
commit88cc0c80d70ecb4165651e1ea1456044e7639264 (patch)
tree7b3e7fe2bc3c705d8a75113847fa2c52a640071b
parent2d1c84a16c36869ca292b74348f2ef852f2f8a62 (diff)
downloadusdx-88cc0c80d70ecb4165651e1ea1456044e7639264.tar.gz
usdx-88cc0c80d70ecb4165651e1ea1456044e7639264.tar.xz
usdx-88cc0c80d70ecb4165651e1ea1456044e7639264.zip
menu: Container subclasses need a Container as parent/owner
-rw-r--r--src/menu/application.cpp2
-rw-r--r--src/menu/application.hpp3
-rw-r--r--src/menu/frame.cpp4
-rw-r--r--src/menu/frame.hpp4
-rw-r--r--src/menu/software_mouse_pointer.cpp2
-rw-r--r--src/menu/software_mouse_pointer.hpp4
6 files changed, 10 insertions, 9 deletions
diff --git a/src/menu/application.cpp b/src/menu/application.cpp
index d5f9c34f..9e790b15 100644
--- a/src/menu/application.cpp
+++ b/src/menu/application.cpp
@@ -39,7 +39,7 @@ namespace usdx
Application* Application::instance = NULL;
- Application::Application(Control* parent)
+ Application::Application(Container* parent)
: DrawableControl(parent), display(NULL), frame(NULL),
fps_manager(NULL), running(false), display_width(800),
display_height(600), frames_per_second(50)
diff --git a/src/menu/application.hpp b/src/menu/application.hpp
index 5564c1ad..76b451f0 100644
--- a/src/menu/application.hpp
+++ b/src/menu/application.hpp
@@ -33,6 +33,7 @@
#include <list>
#include "drawable_control.hpp"
+#include "container.hpp"
#include "frame.hpp"
namespace usdx
@@ -64,7 +65,7 @@ namespace usdx
void init_fps_manager(void);
protected:
- Application(Control* parent);
+ Application(Container* parent);
void draw(void);
diff --git a/src/menu/frame.cpp b/src/menu/frame.cpp
index 7c05a146..899e420b 100644
--- a/src/menu/frame.cpp
+++ b/src/menu/frame.cpp
@@ -28,12 +28,12 @@
namespace usdx
{
- Frame::Frame(Control* parent)
+ Frame::Frame(Container* parent)
: Container(parent), background(NULL)
{
}
- Frame::Frame(Control* parent, FrameBackground* background)
+ Frame::Frame(Container* parent, FrameBackground* background)
: Container(parent), background(background)
{
}
diff --git a/src/menu/frame.hpp b/src/menu/frame.hpp
index 55e0a4db..a2893757 100644
--- a/src/menu/frame.hpp
+++ b/src/menu/frame.hpp
@@ -43,8 +43,8 @@ namespace usdx
virtual void draw(void);
public:
- Frame(Control* parent);
- Frame(Control* parent, FrameBackground* background);
+ Frame(Container* parent);
+ Frame(Container* parent, FrameBackground* background);
virtual ~Frame();
diff --git a/src/menu/software_mouse_pointer.cpp b/src/menu/software_mouse_pointer.cpp
index c0787e05..90171fa9 100644
--- a/src/menu/software_mouse_pointer.cpp
+++ b/src/menu/software_mouse_pointer.cpp
@@ -30,7 +30,7 @@
namespace usdx
{
- SoftwareMousePointer::SoftwareMousePointer(Control* parent, EventManager* event_manager)
+ SoftwareMousePointer::SoftwareMousePointer(Container* parent, EventManager* event_manager)
: DrawableControl(parent), x(-1), y(-1)
{
this->vertices[0] = 0.0f;
diff --git a/src/menu/software_mouse_pointer.hpp b/src/menu/software_mouse_pointer.hpp
index 3b29e50e..b63904a1 100644
--- a/src/menu/software_mouse_pointer.hpp
+++ b/src/menu/software_mouse_pointer.hpp
@@ -28,7 +28,7 @@
#define SOFTWARE_MOUSE_POINTER_HPP
#include "drawable_control.hpp"
-#include "control.hpp"
+#include "container.hpp"
#include "event_manager.hpp"
#include "texture.hpp"
@@ -59,7 +59,7 @@ namespace usdx
void draw(void);
public:
- SoftwareMousePointer(Control* parent, EventManager* event_manager);
+ SoftwareMousePointer(Container* parent, EventManager* event_manager);
virtual ~SoftwareMousePointer();
void on_mouse_move(int x, int y);