diff --git a/CMakeLists.txt b/CMakeLists.txt index b09a999..99ec041 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -86,6 +86,7 @@ PRIVATE ui/layers/layer_manager.h ui/layers/layer_widget.cpp ui/layers/layer_widget.h + ui/layers/show.h ui/paint/arcs.cpp ui/paint/arcs.h ui/paint/blob.cpp diff --git a/ui/layers/show.h b/ui/layers/show.h new file mode 100644 index 0000000..c4f7a49 --- /dev/null +++ b/ui/layers/show.h @@ -0,0 +1,32 @@ +// This file is part of Desktop App Toolkit, +// a set of libraries for developing nice desktop applications. +// +// For license and copyright information please follow this link: +// https://github.com/desktop-app/legal/blob/master/LEGAL +// +#pragma once + +#include "ui/layers/layer_widget.h" + +namespace Ui { + +class BoxContent; + +class Show { +public: + virtual ~Show() = 0; + virtual void showBox( + object_ptr content, + LayerOptions options = LayerOption::KeepOther) const = 0; + virtual void hideLayer() const = 0; + [[nodiscard]] virtual not_null toastParent() const = 0; + [[nodiscard]] virtual bool valid() const = 0; + virtual operator bool() const = 0; +}; + +inline Show::~Show() = default; + +using ShowPtr = std::shared_ptr; + + +} // namespace Ui