diff options
author | 杨宇千 <crupest@outlook.com> | 2019-09-15 17:06:34 +0800 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-09-15 17:06:34 +0800 |
commit | 574e69fb379cd54fc3034fe45a155e770435b97d (patch) | |
tree | 96fab3a1db66fa974a135e777778e56a861745bc /include/cru/ui/controls/container.hpp | |
parent | 55d98d3259e9f3e184ad6323d1d49d298bd1723b (diff) | |
download | cru-574e69fb379cd54fc3034fe45a155e770435b97d.tar.gz cru-574e69fb379cd54fc3034fe45a155e770435b97d.tar.bz2 cru-574e69fb379cd54fc3034fe45a155e770435b97d.zip |
...
Diffstat (limited to 'include/cru/ui/controls/container.hpp')
-rw-r--r-- | include/cru/ui/controls/container.hpp | 31 |
1 files changed, 31 insertions, 0 deletions
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::BorderRenderObject> render_object_; +}; +} // namespace cru::ui::controls |