DPF

DISTRHO Plugin Framework
Log | Files | Refs | Submodules | README | LICENSE

commit b4f40f60bd79fd53bd12ca2a8b8bf36ed8d3ab55
parent 943d9cdc1f8fba284b8063bb17e28440929590e2
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:
Mdgl/Window.hpp | 2++
Mdgl/src/Window.cpp | 5+++++
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 @@ -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;