aboutsummaryrefslogtreecommitdiffstats
path: root/src/menu/reflection.hpp
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2010-01-27 18:58:15 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2013-01-05 17:17:46 +0100
commitde8e5cee81cae0231e31c63928c0be580a2758a8 (patch)
tree61af6bc04a17af3532e6a41b58742c2349e71050 /src/menu/reflection.hpp
parentd7d83a499453cc2c9ce13826030002a3a35811e4 (diff)
downloadusdx-de8e5cee81cae0231e31c63928c0be580a2758a8.tar.gz
usdx-de8e5cee81cae0231e31c63928c0be580a2758a8.tar.xz
usdx-de8e5cee81cae0231e31c63928c0be580a2758a8.zip
make on_draw protected
external classes have to call draw instead of on_draw (so that visible gets evaluated)
Diffstat (limited to '')
-rw-r--r--src/menu/reflection.hpp5
1 files changed, 4 insertions, 1 deletions
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;