summaryrefslogtreecommitdiff
path: root/plugingui/widget.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2019-05-09 20:52:43 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2019-05-09 20:52:47 +0200
commit15faa626f7df7a3024dda5d11001347ed4573568 (patch)
treeaad5c44d8906caef72e76f767b6895c0a4682a46 /plugingui/widget.h
parent751f01eea8c40f70d412e691e6677d3daae54c7a (diff)
Add tooltip buttons to frames.
Diffstat (limited to 'plugingui/widget.h')
-rw-r--r--plugingui/widget.h5
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;