aboutsummaryrefslogtreecommitdiff
path: root/src/ui/window.h
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2018-11-05 23:25:57 +0800
committercrupest <crupest@outlook.com>2018-11-05 23:25:57 +0800
commitfb1b16cd0ab189d61efe6237b2c2b1f7f72f90de (patch)
treee537823b914b407dc9ce5b5a69f91dc93d834426 /src/ui/window.h
parenta908cff41ce987f4adc597f9e5ad4105e56e6ff4 (diff)
downloadcru-fb1b16cd0ab189d61efe6237b2c2b1f7f72f90de.tar.gz
cru-fb1b16cd0ab189d61efe6237b2c2b1f7f72f90de.tar.bz2
cru-fb1b16cd0ab189d61efe6237b2c2b1f7f72f90de.zip
Develop cursor.
Diffstat (limited to 'src/ui/window.h')
-rw-r--r--src/ui/window.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/ui/window.h b/src/ui/window.h
index d6560c0f..1d188a05 100644
--- a/src/ui/window.h
+++ b/src/ui/window.h
@@ -143,8 +143,15 @@ namespace cru {
//Return false if the message is not handled.
bool HandleWindowMessage(HWND hwnd, int msg, WPARAM w_param, LPARAM l_param, LRESULT& result);
+ //*************** region: mouse ***************
+
Point GetMousePosition();
+ Control* GetMouseHoverControl() const
+ {
+ return mouse_hover_control_;
+ }
+
//*************** region: position and size ***************
//Always return (0, 0) for a window.
@@ -187,6 +194,10 @@ namespace cru {
Control* CaptureMouseFor(Control* control);
Control* ReleaseCurrentMouseCapture();
+
+ //*************** region: cursor ***************
+ void UpdateCursor();
+
//*************** region: debug ***************
#ifdef CRU_DEBUG_LAYOUT
bool IsDebugLayout() const
@@ -212,6 +223,8 @@ namespace cru {
bool IsMessageInQueue(UINT message);
+ void SetCursorInternal(HCURSOR cursor);
+
//*************** region: layout ***************