summaryrefslogtreecommitdiff
path: root/dgl/Widget.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'dgl/Widget.hpp')
-rw-r--r--dgl/Widget.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/dgl/Widget.hpp b/dgl/Widget.hpp
index 73d2d6e9..bebe5ed7 100644
--- a/dgl/Widget.hpp
+++ b/dgl/Widget.hpp
@@ -312,6 +312,10 @@ public:
*/
Window& getParentWindow() const noexcept;
+#if defined(HAVE_DCAIRO)
+ cairo_t* getGraphics() const noexcept;
+#endif
+
/**
Check if this widget contains the point defined by @a x and @a y.
*/