Browse Source

Add Window::isEmbed() method, for convenience

Signed-off-by: falkTX <falktx@gmail.com>
pull/132/head
falkTX 5 years ago
parent
commit
4661d1461e
Signed by: falkTX <falktx@gmail.com> GPG Key ID: 2D3445A829213837
2 changed files with 7 additions and 0 deletions
  1. +2
    -0
      dgl/Window.hpp
  2. +5
    -0
      dgl/src/Window.cpp

+ 2
- 0
dgl/Window.hpp View File

@@ -92,6 +92,8 @@ public:
bool openFileBrowser(const FileBrowserOptions& options);
#endif

bool isEmbed() const noexcept;

bool isVisible() const noexcept;
void setVisible(bool yesNo);



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

@@ -1270,6 +1270,11 @@ bool Window::openFileBrowser(const FileBrowserOptions& options)
}
#endif

bool Window::isEmbed() const noexcept
{
return pData->fUsingEmbed;
}

bool Window::isVisible() const noexcept
{
return pData->fVisible;


Loading…
Cancel
Save