commit 4661d1461ea092da06c7fada279cd3405de473c2
parent 1503c4eccb8dbcf46b703f64531764495f372517
Author: falkTX <falktx@gmail.com>
Date: Tue, 29 Jan 2019 14:18:44 +0100
Add Window::isEmbed() method, for convenience
Signed-off-by: falkTX <falktx@gmail.com>
Diffstat:
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/dgl/Window.hpp b/dgl/Window.hpp
@@ -92,6 +92,8 @@ public:
bool openFileBrowser(const FileBrowserOptions& options);
#endif
+ bool isEmbed() const noexcept;
+
bool isVisible() const noexcept;
void setVisible(bool yesNo);
diff --git a/dgl/src/Window.cpp b/dgl/src/Window.cpp
@@ -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;