diff options
Diffstat (limited to 'plugingui/widget.h')
-rw-r--r-- | plugingui/widget.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugingui/widget.h b/plugingui/widget.h index 3b17f1f..8595ef7 100644 --- a/plugingui/widget.h +++ b/plugingui/widget.h @@ -97,15 +97,14 @@ public: Notifier<std::size_t, std::size_t> sizeChangeNotifier; // (width, height) Notifier<int, int> positionChangeNotifier; // (x, y) -protected: - friend class EventHandler; - //! Translate x-coordinate from parent-space to window-space. virtual std::size_t translateToWindowX(); //! Translate y-coordinate from parent-space to window-space. virtual std::size_t translateToWindowY(); +protected: + friend class EventHandler; PixelBufferAlpha pixbuf{0,0}; std::vector<Widget*> children; |