From b4f40f60bd79fd53bd12ca2a8b8bf36ed8d3ab55 Mon Sep 17 00:00:00 2001 From: falkTX Date: Tue, 29 Jan 2019 14:19:11 +0100 Subject: [PATCH] Add Window::isEmbed() method, for convenience Signed-off-by: falkTX --- dgl/Window.hpp | 2 ++ dgl/src/Window.cpp | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/dgl/Window.hpp b/dgl/Window.hpp index 45b88b9f..3f980939 100644 --- 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 index 1b3955c9..8fcb954c 100644 --- a/dgl/src/Window.cpp +++ b/dgl/src/Window.cpp @@ -1281,6 +1281,11 @@ bool Window::openFileBrowser(const FileBrowserOptions& options) } #endif +bool Window::isEmbed() const noexcept +{ + return pData->fUsingEmbed; +} + bool Window::isVisible() const noexcept { return pData->fVisible;