aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/controls/container.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/ui/controls/container.hpp')
-rw-r--r--include/cru/ui/controls/container.hpp31
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