diff options
author | crupest <crupest@outlook.com> | 2020-07-05 19:48:49 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-07-05 19:48:49 +0800 |
commit | bbec59718bf8a824583869126762013112f8e568 (patch) | |
tree | 1c0917e7c12a7af9ff3482f452a9da684a74ed81 /include/cru/ui/render | |
parent | ce56ab59a6d68c220fcc47c6977c618eaa43de7a (diff) | |
download | cru-bbec59718bf8a824583869126762013112f8e568.tar.gz cru-bbec59718bf8a824583869126762013112f8e568.tar.bz2 cru-bbec59718bf8a824583869126762013112f8e568.zip |
...
Diffstat (limited to 'include/cru/ui/render')
-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; |