diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-03-01 21:11:53 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-03-02 14:39:09 +0100 |
commit | c7e48aaf7eb0f2df76327b963879416a0cc8d5e7 (patch) | |
tree | b8bec0950af7dcd9a913d6aa92a7944216e6ae48 /src/gui/widgets/window.cpp | |
parent | 5efaa5125fe92a5438b3cc2949f4d720bced5a7a (diff) | |
download | mana-c7e48aaf7eb0f2df76327b963879416a0cc8d5e7.tar.gz mana-c7e48aaf7eb0f2df76327b963879416a0cc8d5e7.tar.bz2 mana-c7e48aaf7eb0f2df76327b963879416a0cc8d5e7.tar.xz mana-c7e48aaf7eb0f2df76327b963879416a0cc8d5e7.zip |
Updated mouse cursors to latest version
The new cursor types are not used yet for now.
Diffstat (limited to 'src/gui/widgets/window.cpp')
-rw-r--r-- | src/gui/widgets/window.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/gui/widgets/window.cpp b/src/gui/widgets/window.cpp index 6d970b0b..6290ef62 100644 --- a/src/gui/widgets/window.cpp +++ b/src/gui/widgets/window.cpp @@ -67,7 +67,7 @@ Window::Window(const std::string &caption, bool modal, Window *parent, if (mModal) { - gui->setCursorType(Gui::CURSOR_POINTER); + gui->setCursorType(Cursor::POINTER); requestModalFocus(); } @@ -274,7 +274,7 @@ void Window::widgetHidden(const gcn::Event &event) { if (gui) { - gui->setCursorType(Gui::CURSOR_POINTER); + gui->setCursorType(Cursor::POINTER); } WidgetListIterator it; @@ -384,7 +384,7 @@ void Window::mouseReleased(gcn::MouseEvent &event) if (mGrip && mouseResize) { mouseResize = 0; - gui->setCursorType(Gui::CURSOR_POINTER); + gui->setCursorType(Cursor::POINTER); } // This should be the responsibility of Guichan (and is from 0.8.0 on) @@ -394,7 +394,7 @@ void Window::mouseReleased(gcn::MouseEvent &event) void Window::mouseExited(gcn::MouseEvent &event) { if (mGrip && !mouseResize) - gui->setCursorType(Gui::CURSOR_POINTER); + gui->setCursorType(Cursor::POINTER); } void Window::mouseMoved(gcn::MouseEvent &event) @@ -405,20 +405,20 @@ void Window::mouseMoved(gcn::MouseEvent &event) switch (resizeHandles) { case BOTTOM | RIGHT: - gui->setCursorType(Gui::CURSOR_RESIZE_DOWN_RIGHT); + gui->setCursorType(Cursor::RESIZE_DOWN_RIGHT); break; case BOTTOM | LEFT: - gui->setCursorType(Gui::CURSOR_RESIZE_DOWN_LEFT); + gui->setCursorType(Cursor::RESIZE_DOWN_LEFT); break; case BOTTOM: - gui->setCursorType(Gui::CURSOR_RESIZE_DOWN); + gui->setCursorType(Cursor::RESIZE_DOWN); break; case RIGHT: case LEFT: - gui->setCursorType(Gui::CURSOR_RESIZE_ACROSS); + gui->setCursorType(Cursor::RESIZE_ACROSS); break; default: - gui->setCursorType(Gui::CURSOR_POINTER); + gui->setCursorType(Cursor::POINTER); } if (viewport) |