summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-03-01 21:11:53 +0100
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-03-02 14:39:09 +0100
commitc7e48aaf7eb0f2df76327b963879416a0cc8d5e7 (patch)
treeb8bec0950af7dcd9a913d6aa92a7944216e6ae48 /src/gui/widgets
parent5efaa5125fe92a5438b3cc2949f4d720bced5a7a (diff)
downloadmana-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')
-rw-r--r--src/gui/widgets/progressindicator.cpp2
-rw-r--r--src/gui/widgets/window.cpp18
2 files changed, 10 insertions, 10 deletions
diff --git a/src/gui/widgets/progressindicator.cpp b/src/gui/widgets/progressindicator.cpp
index 2495a62d..40523e9a 100644
--- a/src/gui/widgets/progressindicator.cpp
+++ b/src/gui/widgets/progressindicator.cpp
@@ -36,7 +36,7 @@ ProgressIndicator::ProgressIndicator()
32, 32);
auto *anim = new Animation;
- for (ImageSet::size_type i = 0; i < images->size(); ++i)
+ for (size_t i = 0; i < images->size(); ++i)
anim->addFrame(images->get(i), 100, 0, 0);
mIndicator = new SimpleAnimation(anim);
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)