aboutsummaryrefslogtreecommitdiff
path: root/src/ui/render/WindowRenderObject.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-06-28 22:17:14 +0800
committercrupest <crupest@outlook.com>2020-06-28 22:17:14 +0800
commit427bd31059fcdca5806a149238e91173667953c1 (patch)
treedec0794e8445040f8b177aaa29e0600380e5420f /src/ui/render/WindowRenderObject.cpp
parent26da84f59396075118ee769654471159e1f49980 (diff)
downloadcru-427bd31059fcdca5806a149238e91173667953c1.tar.gz
cru-427bd31059fcdca5806a149238e91173667953c1.tar.bz2
cru-427bd31059fcdca5806a149238e91173667953c1.zip
...
Diffstat (limited to 'src/ui/render/WindowRenderObject.cpp')
-rw-r--r--src/ui/render/WindowRenderObject.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/ui/render/WindowRenderObject.cpp b/src/ui/render/WindowRenderObject.cpp
index a2c7ae4d..4adf559e 100644
--- a/src/ui/render/WindowRenderObject.cpp
+++ b/src/ui/render/WindowRenderObject.cpp
@@ -12,16 +12,6 @@ WindowRenderObject::WindowRenderObject(UiHost* host) {
[this](auto) { NotifyAfterLayoutRecursive(this); }));
}
-void WindowRenderObject::Draw(platform::graph::IPainter* painter) {
- painter->Clear(colors::white);
- if (const auto child = GetChild()) {
- auto offset = child->GetOffset();
- platform::graph::util::WithTransform(
- painter, platform::Matrix::Translation(offset.x, offset.y),
- [child](platform::graph::IPainter* p) { child->Draw(p); });
- }
-}
-
RenderObject* WindowRenderObject::HitTest(const Point& point) {
if (const auto child = GetChild()) {
auto offset = child->GetOffset();