summaryrefslogtreecommitdiff
path: root/dgl/src
diff options
context:
space:
mode:
authorJP Cimalando <jpcima@users.noreply.github.com>2018-12-26 18:15:16 +0100
committerFilipe Coelho <falktx@falktx.com>2019-01-06 19:10:11 +0100
commite697fa716e6b734eaaa8b02c5f2e961a4ef03fb7 (patch)
tree6e099a2854bcdc15620e65bc4ed01e3f6f415d48 /dgl/src
parentd80c799b8cba2765c78ac6cee867f5c4fce869ac (diff)
rename `getGraphics` to `getContext`
Diffstat (limited to 'dgl/src')
-rw-r--r--dgl/src/Widget.cpp4
-rw-r--r--dgl/src/Window.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/dgl/src/Widget.cpp b/dgl/src/Widget.cpp
index bf6fd3f8..bb636089 100644
--- a/dgl/src/Widget.cpp
+++ b/dgl/src/Widget.cpp
@@ -190,9 +190,9 @@ Window& Widget::getParentWindow() const noexcept
}
#if defined(HAVE_DCAIRO)
-cairo_t* Widget::getGraphics() const noexcept
+cairo_t* Widget::getContext() const noexcept
{
- return pData->parent.getGraphics();
+ return pData->parent.getContext();
}
#endif
diff --git a/dgl/src/Window.cpp b/dgl/src/Window.cpp
index 18ea39f4..17d9bac2 100644
--- a/dgl/src/Window.cpp
+++ b/dgl/src/Window.cpp
@@ -1385,7 +1385,7 @@ intptr_t Window::getWindowId() const noexcept
}
#if defined(HAVE_DCAIRO)
-cairo_t* Window::getGraphics() const noexcept
+cairo_t* Window::getContext() const noexcept
{
return (cairo_t*)puglGetContext(pData->fView);
}