From 574e69fb379cd54fc3034fe45a155e770435b97d Mon Sep 17 00:00:00 2001 From: 杨宇千 Date: Sun, 15 Sep 2019 17:06:34 +0800 Subject: ... --- include/cru/ui/controls/container.hpp | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 include/cru/ui/controls/container.hpp (limited to 'include/cru/ui/controls/container.hpp') diff --git a/include/cru/ui/controls/container.hpp b/include/cru/ui/controls/container.hpp new file mode 100644 index 00000000..3c877067 --- /dev/null +++ b/include/cru/ui/controls/container.hpp @@ -0,0 +1,31 @@ +#pragma once +#include "../content_control.hpp" + +namespace cru::ui::render { +class BorderRenderObject; +} + +namespace cru::ui::controls { +class Container : public ContentControl { + static constexpr auto control_type = L"Container"; + + protected: + Container(); + + public: + CRU_DELETE_COPY(Container) + CRU_DELETE_MOVE(Container) + + ~Container() override; + + public: + std::wstring_view GetControlType() const override final { + return control_type; + } + + render::RenderObject* GetRenderObject() const override; + + private: + std::unique_ptr render_object_; +}; +} // namespace cru::ui::controls -- cgit v1.2.3