diff options
author | crupest <crupest@outlook.com> | 2021-09-14 22:10:02 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-09-14 22:10:02 +0800 |
commit | 46d4838ac8ff1bd8658b57cf4ebb4438e396fce8 (patch) | |
tree | f1e04c19630c7f42ad57618e9a2d7cf5ea4d31c1 /include/cru/ui/render/MeasureRequirement.hpp | |
parent | 9bc202a2e1664df3e3c148abfe90a90501bc1650 (diff) | |
download | cru-46d4838ac8ff1bd8658b57cf4ebb4438e396fce8.tar.gz cru-46d4838ac8ff1bd8658b57cf4ebb4438e396fce8.tar.bz2 cru-46d4838ac8ff1bd8658b57cf4ebb4438e396fce8.zip |
...
Diffstat (limited to 'include/cru/ui/render/MeasureRequirement.hpp')
-rw-r--r-- | include/cru/ui/render/MeasureRequirement.hpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/include/cru/ui/render/MeasureRequirement.hpp b/include/cru/ui/render/MeasureRequirement.hpp index 6a0c6952..ff9dd6e3 100644 --- a/include/cru/ui/render/MeasureRequirement.hpp +++ b/include/cru/ui/render/MeasureRequirement.hpp @@ -1,9 +1,8 @@ #pragma once #include "Base.hpp" -#include "cru/common/Format.hpp" +#include "cru/common/String.hpp" -#include <fmt/core.h> #include <algorithm> #include <limits> #include <string> @@ -169,9 +168,8 @@ struct MeasureSize { }; } - std::u16string ToDebugString() const { - return fmt::format(u"({}, {})", width.ToDebugString(), - height.ToDebugString()); + String ToDebugString() const { + return Format(u"({}, {})", width.ToDebugString(), height.ToDebugString()); } constexpr static MeasureSize NotSpecified() { @@ -240,9 +238,9 @@ struct MeasureRequirement { return result; } - std::u16string ToDebugString() const { - return fmt::format(u"{{min: {}, max: {}}}", min.ToDebugString(), - max.ToDebugString()); + String ToDebugString() const { + return Format(u"{{min: {}, max: {}}}", min.ToDebugString(), + max.ToDebugString()); } constexpr static MeasureRequirement Merge(const MeasureRequirement& left, |