diff options
Diffstat (limited to 'src/ui/controls/Popup.cpp')
| -rw-r--r-- | src/ui/controls/Popup.cpp | 22 | 
1 files changed, 22 insertions, 0 deletions
| diff --git a/src/ui/controls/Popup.cpp b/src/ui/controls/Popup.cpp new file mode 100644 index 00000000..bc217bf5 --- /dev/null +++ b/src/ui/controls/Popup.cpp @@ -0,0 +1,22 @@ +#include "cru/ui/controls/Popup.hpp" + +#include "cru/platform/gui/UiApplication.hpp" +#include "cru/ui/controls/RootControl.hpp" +#include "cru/ui/host/WindowHost.hpp" +#include "cru/ui/render/StackLayoutRenderObject.hpp" + +#include <memory> + +namespace cru::ui::controls { +Popup::Popup(Control* attached_control) : RootControl(attached_control) {} + +Popup::~Popup() = default; + +gsl::not_null<platform::gui::INativeWindow*> Popup::CreateNativeWindow( +    gsl::not_null<host::WindowHost*> host, +    platform::gui::INativeWindow* parent) { +  return host->CreateNativeWindow( +      {parent, platform::gui::CreateWindowFlags::NoCaptionAndBorder}); +} + +}  // namespace cru::ui::controls | 
