diff options
author | crupest <crupest@outlook.com> | 2018-11-10 22:28:40 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2018-11-10 22:28:40 +0800 |
commit | b2eced8d9719eb00796c2674fc2c23ab0c9bbdbf (patch) | |
tree | 2d00b4f6a7af93a13d271d78e6ef682c335c91c7 /src/ui/window.hpp | |
parent | 9cf812f77a879d5394a9158ce290f9d7e858de7d (diff) | |
download | cru-b2eced8d9719eb00796c2674fc2c23ab0c9bbdbf.tar.gz cru-b2eced8d9719eb00796c2674fc2c23ab0c9bbdbf.tar.bz2 cru-b2eced8d9719eb00796c2674fc2c23ab0c9bbdbf.zip |
...
Diffstat (limited to 'src/ui/window.hpp')
-rw-r--r-- | src/ui/window.hpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/ui/window.hpp b/src/ui/window.hpp index 05b1a259..b2b8cde0 100644 --- a/src/ui/window.hpp +++ b/src/ui/window.hpp @@ -162,6 +162,13 @@ namespace cru::ui //The lefttop of the rect is relative to screen lefttop. void SetWindowRect(const Rect& rect); + //Set the lefttop of the window relative to screen. + void SetWindowPosition(const Point& position); + + Point PointToScreen(const Point& point); + + Point PointFromScreen(const Point& point); + //Handle the raw window message. //Return true if the message is handled and get the result through "result" argument. //Return false if the message is not handled. @@ -254,11 +261,6 @@ namespace cru::ui void SetCursorInternal(HCURSOR cursor); - //*************** region: layout *************** - - Size OnMeasureContent(const Size& available_size) override; - - //*************** region: native messages *************** void OnDestroyInternal(); |