diff options
Diffstat (limited to 'src/ui/window.h')
-rw-r--r-- | src/ui/window.h | 13 |
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 *************** |