aboutsummaryrefslogtreecommitdiff
path: root/CruUI/ui/controls/text_block.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2018-09-22 23:01:16 +0800
committercrupest <crupest@outlook.com>2018-09-22 23:01:16 +0800
commit51c1550662d0abbc941183593b43c129917b5099 (patch)
treed994896616de27e9ef47dfbefb70e652ccb23e81 /CruUI/ui/controls/text_block.cpp
parent5d91d1e5594e37ca5c282e602407eaeb34c6d986 (diff)
downloadcru-51c1550662d0abbc941183593b43c129917b5099.tar.gz
cru-51c1550662d0abbc941183593b43c129917b5099.tar.bz2
cru-51c1550662d0abbc941183593b43c129917b5099.zip
Rename LayoutLength to LayoutSideParams.
Diffstat (limited to 'CruUI/ui/controls/text_block.cpp')
-rw-r--r--CruUI/ui/controls/text_block.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/CruUI/ui/controls/text_block.cpp b/CruUI/ui/controls/text_block.cpp
index 314870c5..8800fd91 100644
--- a/CruUI/ui/controls/text_block.cpp
+++ b/CruUI/ui/controls/text_block.cpp
@@ -205,7 +205,7 @@ namespace cru
if (layout_params->width.mode == MeasureMode::Stretch && layout_params->height.mode == MeasureMode::Stretch)
return available_size;
- auto&& get_measure_length = [](const LayoutLength& layout_length, const float available_length) -> float
+ auto&& get_measure_length = [](const LayoutSideParams& layout_length, const float available_length) -> float
{
switch (layout_length.mode)
{
@@ -235,7 +235,7 @@ namespace cru
const Size measure_result(metrics.width, metrics.height);
- auto&& calculate_final_length = [](const LayoutLength& layout_length, const float measure_length, const float measure_result_length) -> float
+ auto&& calculate_final_length = [](const LayoutSideParams& layout_length, const float measure_length, const float measure_result_length) -> float
{
if ((layout_length.mode == MeasureMode::Stretch ||
layout_length.mode == MeasureMode::Exactly)