Browse Source

Add templated function

gh-pages
falkTX 9 years ago
parent
commit
75727ca792
2 changed files with 6 additions and 0 deletions
  1. +1
    -0
      dgl/Window.hpp
  2. +5
    -0
      dgl/src/Window.cpp

+ 1
- 0
dgl/Window.hpp View File

@@ -52,6 +52,7 @@ public:
int getHeight() const noexcept;
Size<uint> getSize() const noexcept;
void setSize(uint width, uint height);
void setSize(Size<uint> size);

void setTitle(const char* title);



+ 5
- 0
dgl/src/Window.cpp View File

@@ -876,6 +876,11 @@ void Window::setSize(uint width, uint height)
pData->setSize(width, height);
}

void Window::setSize(Size<uint> size)
{
pData->setSize(size.getWidth(), size.getHeight());
}

void Window::setTitle(const char* title)
{
pData->setTitle(title);


Loading…
Cancel
Save