diff options
author | crupest <crupest@outlook.com> | 2020-10-18 21:28:35 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-10-18 21:28:35 +0800 |
commit | c072432e68d7a3d7659add0994b2f8caf387ddf2 (patch) | |
tree | 6031f93ee2997485d13669a55c080a2a624bd3da /include/cru/platform/GraphBase.hpp | |
parent | 5729a5aa1b443e3e25f3e14dee29636d3b31a6f8 (diff) | |
download | cru-c072432e68d7a3d7659add0994b2f8caf387ddf2.tar.gz cru-c072432e68d7a3d7659add0994b2f8caf387ddf2.tar.bz2 cru-c072432e68d7a3d7659add0994b2f8caf387ddf2.zip |
...
Diffstat (limited to 'include/cru/platform/GraphBase.hpp')
-rw-r--r-- | include/cru/platform/GraphBase.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/cru/platform/GraphBase.hpp b/include/cru/platform/GraphBase.hpp index 571b36f7..6700765e 100644 --- a/include/cru/platform/GraphBase.hpp +++ b/include/cru/platform/GraphBase.hpp @@ -18,6 +18,10 @@ 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)); + } + float x = 0; float y = 0; }; |