Browse Source

rename `getGraphics` to `getContext`

pull/99/head
JP Cimalando Filipe Coelho <falktx@falktx.com> 6 years ago
parent
commit
e697fa716e
4 changed files with 5 additions and 5 deletions
  1. +1
    -1
      dgl/Widget.hpp
  2. +1
    -1
      dgl/Window.hpp
  3. +2
    -2
      dgl/src/Widget.cpp
  4. +1
    -1
      dgl/src/Window.cpp

+ 1
- 1
dgl/Widget.hpp View File

@@ -313,7 +313,7 @@ public:
Window& getParentWindow() const noexcept; Window& getParentWindow() const noexcept;


#if defined(HAVE_DCAIRO) #if defined(HAVE_DCAIRO)
cairo_t* getGraphics() const noexcept;
cairo_t* getContext() const noexcept;
#endif #endif


/** /**


+ 1
- 1
dgl/Window.hpp View File

@@ -120,7 +120,7 @@ public:
intptr_t getWindowId() const noexcept; intptr_t getWindowId() const noexcept;


#if defined(HAVE_DCAIRO) #if defined(HAVE_DCAIRO)
cairo_t* getGraphics() const noexcept;
cairo_t* getContext() const noexcept;
#endif #endif


void addIdleCallback(IdleCallback* const callback); void addIdleCallback(IdleCallback* const callback);


+ 2
- 2
dgl/src/Widget.cpp View File

@@ -190,9 +190,9 @@ Window& Widget::getParentWindow() const noexcept
} }


#if defined(HAVE_DCAIRO) #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 #endif




+ 1
- 1
dgl/src/Window.cpp View File

@@ -1385,7 +1385,7 @@ intptr_t Window::getWindowId() const noexcept
} }


#if defined(HAVE_DCAIRO) #if defined(HAVE_DCAIRO)
cairo_t* Window::getGraphics() const noexcept
cairo_t* Window::getContext() const noexcept
{ {
return (cairo_t*)puglGetContext(pData->fView); return (cairo_t*)puglGetContext(pData->fView);
} }


Loading…
Cancel
Save