diff options
author | crupest <crupest@outlook.com> | 2020-06-28 22:17:14 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-06-28 22:17:14 +0800 |
commit | 427bd31059fcdca5806a149238e91173667953c1 (patch) | |
tree | dec0794e8445040f8b177aaa29e0600380e5420f /include/cru/ui/render/LayoutRenderObject.hpp | |
parent | 26da84f59396075118ee769654471159e1f49980 (diff) | |
download | cru-427bd31059fcdca5806a149238e91173667953c1.tar.gz cru-427bd31059fcdca5806a149238e91173667953c1.tar.bz2 cru-427bd31059fcdca5806a149238e91173667953c1.zip |
...
Diffstat (limited to 'include/cru/ui/render/LayoutRenderObject.hpp')
-rw-r--r-- | include/cru/ui/render/LayoutRenderObject.hpp | 13 |
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(); |