aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pugl/pugl.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/pugl/pugl.hpp b/pugl/pugl.hpp
index f1aef2f..90036e4 100644
--- a/pugl/pugl.hpp
+++ b/pugl/pugl.hpp
@@ -371,7 +371,7 @@ enum class Cursor {
static_assert(Cursor(PUGL_CURSOR_UP_DOWN) == Cursor::upDown, "");
/// @copydoc PuglView
-class View : public detail::Wrapper<PuglView, puglFreeView>
+class View : protected detail::Wrapper<PuglView, puglFreeView>
{
public:
/**
@@ -573,6 +573,9 @@ public:
@}
*/
+ PuglView* cobj() { return Wrapper::cobj(); }
+ const PuglView* cobj() const { return Wrapper::cobj(); }
+
private:
template<class Typed, class Base>
static const Typed& typedEventRef(const Base& base)