aboutsummaryrefslogtreecommitdiff
path: root/src/ui/controls/linear_layout.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2018-11-05 21:32:55 +0800
committercrupest <crupest@outlook.com>2018-11-05 21:32:55 +0800
commit17baaa03e0ff49ec1921607e6a439c1c6487883c (patch)
tree9e0ad2f20b95efa851d97ad94e704eb6aad2b636 /src/ui/controls/linear_layout.cpp
parentcefb75a4c09e72a1f67e11765f2a8b6fd9581ed6 (diff)
downloadcru-17baaa03e0ff49ec1921607e6a439c1c6487883c.tar.gz
cru-17baaa03e0ff49ec1921607e6a439c1c6487883c.tar.bz2
cru-17baaa03e0ff49ec1921607e6a439c1c6487883c.zip
Add control type.
Diffstat (limited to 'src/ui/controls/linear_layout.cpp')
-rw-r--r--src/ui/controls/linear_layout.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/controls/linear_layout.cpp b/src/ui/controls/linear_layout.cpp
index fb5d3db7..c23957ed 100644
--- a/src/ui/controls/linear_layout.cpp
+++ b/src/ui/controls/linear_layout.cpp
@@ -20,6 +20,11 @@ namespace cru::ui::controls
return Size(AtLeast0(size.width), AtLeast0(size.height));
}
+ StringView LinearLayout::GetControlType() const
+ {
+ return control_type;
+ }
+
Size LinearLayout::OnMeasureContent(const Size& available_size)
{
auto rest_available_size_for_children = available_size;