diff options
author | crupest <crupest@outlook.com> | 2018-11-25 22:57:07 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2018-11-25 22:57:07 +0800 |
commit | 22322daf6f51da53740ff95ef2eaceed9a6efcae (patch) | |
tree | 06b17b482e2e15cb0692d05b279c61cbd6923b4d /src/ui/ui_base.hpp | |
parent | 5391e781e4682731721c841462904809bc618870 (diff) | |
download | cru-22322daf6f51da53740ff95ef2eaceed9a6efcae.tar.gz cru-22322daf6f51da53740ff95ef2eaceed9a6efcae.tar.bz2 cru-22322daf6f51da53740ff95ef2eaceed9a6efcae.zip |
Develop basic functions of ScrollControl.
Diffstat (limited to 'src/ui/ui_base.hpp')
-rw-r--r-- | src/ui/ui_base.hpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ui/ui_base.hpp b/src/ui/ui_base.hpp index d9c9d0b2..aaba343e 100644 --- a/src/ui/ui_base.hpp +++ b/src/ui/ui_base.hpp @@ -150,6 +150,16 @@ namespace cru::ui return Point(left + width, top + height); } + constexpr Point GetLeftBottom() const + { + return Point(left, top + height); + } + + constexpr Point GetRightTop() const + { + return Point(left + width, top); + } + constexpr Size GetSize() const { return Size(width, height); |