diff options
author | crupest <crupest@outlook.com> | 2018-11-05 21:32:55 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2018-11-05 21:32:55 +0800 |
commit | 17baaa03e0ff49ec1921607e6a439c1c6487883c (patch) | |
tree | 9e0ad2f20b95efa851d97ad94e704eb6aad2b636 /src/ui/controls/linear_layout.h | |
parent | cefb75a4c09e72a1f67e11765f2a8b6fd9581ed6 (diff) | |
download | cru-17baaa03e0ff49ec1921607e6a439c1c6487883c.tar.gz cru-17baaa03e0ff49ec1921607e6a439c1c6487883c.tar.bz2 cru-17baaa03e0ff49ec1921607e6a439c1c6487883c.zip |
Add control type.
Diffstat (limited to 'src/ui/controls/linear_layout.h')
-rw-r--r-- | src/ui/controls/linear_layout.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui/controls/linear_layout.h b/src/ui/controls/linear_layout.h index 997f28ea..1c2232bb 100644 --- a/src/ui/controls/linear_layout.h +++ b/src/ui/controls/linear_layout.h @@ -7,6 +7,8 @@ namespace cru::ui::controls class LinearLayout : public Control { public: + static constexpr auto control_type = L"LinearLayout"; + enum class Orientation { Horizontal, @@ -31,6 +33,8 @@ namespace cru::ui::controls LinearLayout& operator=(LinearLayout&& other) = delete; ~LinearLayout() override = default; + StringView GetControlType() const override final; + protected: Size OnMeasureContent(const Size& available_size) override; void OnLayoutContent(const Rect& rect) override; |