blob: 63b4d1e3e13f4413e20d334ce928b98ac4d37396 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#pragma once
#include "cru/platform/gui/Base.hpp"
#include "cru/ui/controls/RootControl.hpp"
#include "cru/common/Base.hpp"
namespace cru::ui::controls {
class Window final : public RootControl {
public:
static constexpr StringView control_type = u"Window";
public:
static Window* Create(Control* attached_control = nullptr);
private:
explicit Window(Control* attached_control);
public:
CRU_DELETE_COPY(Window)
CRU_DELETE_MOVE(Window)
~Window() override;
public:
String GetControlType() const final { return control_type.ToString(); }
protected:
gsl::not_null<platform::gui::INativeWindow*> CreateNativeWindow(
gsl::not_null<host::WindowHost*> host,
platform::gui::INativeWindow* parent) override;
};
} // namespace cru::ui::controls
|