From 1686fa05a156b0b6878281045eac8e8510556e4d Mon Sep 17 00:00:00 2001 From: JP Cimalando Date: Wed, 26 Dec 2018 18:15:16 +0100 Subject: [PATCH] rename `getGraphics` to `getContext` --- dgl/Widget.hpp | 2 +- dgl/Window.hpp | 2 +- dgl/src/Widget.cpp | 4 ++-- dgl/src/Window.cpp | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dgl/Widget.hpp b/dgl/Widget.hpp index bebe5ed7..dfc887d1 100644 --- a/dgl/Widget.hpp +++ b/dgl/Widget.hpp @@ -313,7 +313,7 @@ public: Window& getParentWindow() const noexcept; #if defined(HAVE_DCAIRO) - cairo_t* getGraphics() const noexcept; + cairo_t* getContext() const noexcept; #endif /** diff --git a/dgl/Window.hpp b/dgl/Window.hpp index 2a9d9517..0a6d3120 100644 --- a/dgl/Window.hpp +++ b/dgl/Window.hpp @@ -120,7 +120,7 @@ public: intptr_t getWindowId() const noexcept; #if defined(HAVE_DCAIRO) - cairo_t* getGraphics() const noexcept; + cairo_t* getContext() const noexcept; #endif void addIdleCallback(IdleCallback* const callback); 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); }