aboutsummaryrefslogtreecommitdiff
path: root/src/ui/render/RenderObject.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-10-21 17:44:56 +0800
committercrupest <crupest@outlook.com>2021-10-21 17:44:56 +0800
commit72fc892792565ef39fcae6b7d2a19006dc3a3238 (patch)
treeea1609b424215e6fe86d6280ce86beea0c73b61b /src/ui/render/RenderObject.cpp
parentfc9cd10a84ea92dd702ac84d302ca46198d17d23 (diff)
downloadcru-72fc892792565ef39fcae6b7d2a19006dc3a3238.tar.gz
cru-72fc892792565ef39fcae6b7d2a19006dc3a3238.tar.bz2
cru-72fc892792565ef39fcae6b7d2a19006dc3a3238.zip
...
Diffstat (limited to 'src/ui/render/RenderObject.cpp')
-rw-r--r--src/ui/render/RenderObject.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/render/RenderObject.cpp b/src/ui/render/RenderObject.cpp
index e49ed3c2..75bf1380 100644
--- a/src/ui/render/RenderObject.cpp
+++ b/src/ui/render/RenderObject.cpp
@@ -1,7 +1,7 @@
#include "cru/ui/render/RenderObject.hpp"
#include "cru/common/Logger.hpp"
-#include "cru/platform/GraphBase.hpp"
+#include "cru/platform/GraphicsBase.hpp"
#include "cru/platform/graphics/util/Painter.hpp"
#include "cru/ui/Base.hpp"
#include "cru/ui/DebugFlags.hpp"
@@ -102,7 +102,7 @@ void RenderObject::Measure(const MeasureRequirement& requirement,
if constexpr (cru::ui::debug_flags::layout) {
log::Debug(u"{} Measure ends :\nresult size: {}",
- this->GetDebugPathInTree(), size_.ToDebugString());
+ this->GetDebugPathInTree(), size_);
}
Ensures(size_.width >= 0);
@@ -112,7 +112,7 @@ void RenderObject::Measure(const MeasureRequirement& requirement,
void RenderObject::Layout(const Point& offset) {
if constexpr (cru::ui::debug_flags::layout) {
log::Debug(u"{} Layout :\noffset: {} size: {}", this->GetDebugPathInTree(),
- offset.ToDebugString(), GetSize().ToDebugString());
+ offset, GetSize());
}
offset_ = offset;
OnLayoutCore();