aboutsummaryrefslogtreecommitdiff
path: root/include/cru/ui/render/LayoutRenderObject.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/ui/render/LayoutRenderObject.hpp')
-rw-r--r--include/cru/ui/render/LayoutRenderObject.hpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/include/cru/ui/render/LayoutRenderObject.hpp b/include/cru/ui/render/LayoutRenderObject.hpp
index 1eb9a816..b46ba0d0 100644
--- a/include/cru/ui/render/LayoutRenderObject.hpp
+++ b/include/cru/ui/render/LayoutRenderObject.hpp
@@ -35,8 +35,6 @@ class LayoutRenderObject : public RenderObject {
return this->child_layout_data_[position];
}
- void Draw(platform::graph::IPainter* painter) override;
-
RenderObject* HitTest(const Point& point) override;
protected:
@@ -48,17 +46,6 @@ class LayoutRenderObject : public RenderObject {
};
template <typename TChildLayoutData>
-void LayoutRenderObject<TChildLayoutData>::Draw(
- platform::graph::IPainter* painter) {
- for (const auto child : GetChildren()) {
- auto offset = child->GetOffset();
- platform::graph::util::WithTransform(
- painter, platform::Matrix::Translation(offset.x, offset.y),
- [child](auto p) { child->Draw(p); });
- }
-}
-
-template <typename TChildLayoutData>
RenderObject* LayoutRenderObject<TChildLayoutData>::HitTest(
const Point& point) {
const auto& children = GetChildren();