diff options
Diffstat (limited to 'include/cru/ui/render/ScrollRenderObject.hpp')
-rw-r--r-- | include/cru/ui/render/ScrollRenderObject.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/cru/ui/render/ScrollRenderObject.hpp b/include/cru/ui/render/ScrollRenderObject.hpp index 0c1fb16b..20b7278c 100644 --- a/include/cru/ui/render/ScrollRenderObject.hpp +++ b/include/cru/ui/render/ScrollRenderObject.hpp @@ -28,6 +28,9 @@ class ScrollRenderObject : public RenderObject { void SetScrollOffset(const Point& offset); Point GetRawScrollOffset() const { return scroll_offset_; } + // Rect lefttop relative to content rect. + void ScrollToContain(const Rect& rect); + protected: void OnDrawCore(platform::graph::IPainter* painter) override; |