aboutsummaryrefslogtreecommitdiff
path: root/include/cru/platform/GraphBase.hpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-09-14 22:10:02 +0800
committercrupest <crupest@outlook.com>2021-09-14 22:10:02 +0800
commit46d4838ac8ff1bd8658b57cf4ebb4438e396fce8 (patch)
treef1e04c19630c7f42ad57618e9a2d7cf5ea4d31c1 /include/cru/platform/GraphBase.hpp
parent9bc202a2e1664df3e3c148abfe90a90501bc1650 (diff)
downloadcru-46d4838ac8ff1bd8658b57cf4ebb4438e396fce8.tar.gz
cru-46d4838ac8ff1bd8658b57cf4ebb4438e396fce8.tar.bz2
cru-46d4838ac8ff1bd8658b57cf4ebb4438e396fce8.zip
...
Diffstat (limited to 'include/cru/platform/GraphBase.hpp')
-rw-r--r--include/cru/platform/GraphBase.hpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/include/cru/platform/GraphBase.hpp b/include/cru/platform/GraphBase.hpp
index cc0ffcc7..2cfc9cc4 100644
--- a/include/cru/platform/GraphBase.hpp
+++ b/include/cru/platform/GraphBase.hpp
@@ -4,8 +4,8 @@
#include "Color.hpp"
#include "cru/common/Format.hpp"
#include "cru/common/Range.hpp"
+#include "cru/common/String.hpp"
-#include <fmt/core.h>
#include <cstdint>
#include <limits>
#include <optional>
@@ -20,8 +20,8 @@ struct Point final {
constexpr Point(const float x, const float y) : x(x), y(y) {}
explicit constexpr Point(const Size& size);
- std::u16string ToDebugString() const {
- return fmt::format(u"({}, {})", ToUtf16String(x), ToUtf16String(y));
+ String ToDebugString() const {
+ return Format(u"({}, {})", ToUtf16String(x), ToUtf16String(y));
}
constexpr Point& operator+=(const Point& other) {
@@ -62,9 +62,8 @@ struct Size final {
std::numeric_limits<float>::max()};
}
- std::u16string ToDebugString() const {
- return fmt::format(u"({}, {})", ToUtf16String(width),
- ToUtf16String(height));
+ String ToDebugString() const {
+ return Format(u"({}, {})", ToUtf16String(width), ToUtf16String(height));
}
float width = 0;