summaryrefslogtreecommitdiff
path: root/plugingui/widget.cc
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/widget.cc')
-rw-r--r--plugingui/widget.cc21
1 files changed, 21 insertions, 0 deletions
diff --git a/plugingui/widget.cc b/plugingui/widget.cc
index 5cd013d..3d9d47c 100644
--- a/plugingui/widget.cc
+++ b/plugingui/widget.cc
@@ -133,6 +133,27 @@ size_t Widget::height()
return _height;
}
+PixelBufferAlpha& Widget::GetPixelBuffer()
+{
+ return pixbuf;
+}
+
+void Widget::beginPaint()
+{
+ if(_window)
+ {
+ _window->beginPaint();
+ }
+}
+
+void Widget::endPaint()
+{
+ if(_window)
+ {
+ _window->endPaint();
+ }
+}
+
size_t Widget::windowX()
{
size_t window_x = x();