aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/menu/drawable.hpp11
-rw-r--r--src/menu/reflection.hpp5
2 files changed, 10 insertions, 6 deletions
diff --git a/src/menu/drawable.hpp b/src/menu/drawable.hpp
index 9cd0913e..84f9daa0 100644
--- a/src/menu/drawable.hpp
+++ b/src/menu/drawable.hpp
@@ -37,6 +37,12 @@ namespace usdx
private:
bool visible;
+ protected:
+ /**
+ * Pure virtual method, that descendant classes have to implement.
+ */
+ virtual void on_draw(void) const = 0;
+
public:
Drawable(void);
virtual ~Drawable(void) {};
@@ -47,11 +53,6 @@ namespace usdx
void draw(void) const;
/**
- * Pure virtual method, that descendant classes have to implement.
- */
- virtual void on_draw(void) const = 0;
-
- /**
* Setter for visible.
*/
virtual void set_visible(bool value);
diff --git a/src/menu/reflection.hpp b/src/menu/reflection.hpp
index 5ff75279..4681de5f 100644
--- a/src/menu/reflection.hpp
+++ b/src/menu/reflection.hpp
@@ -35,11 +35,14 @@ namespace usdx
{
private:
float spacing;
+
+ protected:
+ virtual void on_draw(void) const;
+
public:
Reflection(float spacing);
virtual ~Reflection(void);
- virtual void on_draw(void) const;
void set_spacing(float value);
const float get_spacing(void) const;