aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/PlatWin.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-03-17 16:02:45 +1100
committerNeil <nyamatongwe@gmail.com>2021-03-17 16:02:45 +1100
commitd5b1240eece116b2a13b635d25b041bf0de19305 (patch)
tree477c8b5c2bf07db996f5520957a447ee256eacf8 /win32/PlatWin.cxx
parentf0861077dfa88fd1e2846b164701eca5de63c292 (diff)
downloadscintilla-mirror-d5b1240eece116b2a13b635d25b041bf0de19305.tar.gz
Change Window::Cursor to an enum class.
Diffstat (limited to 'win32/PlatWin.cxx')
-rw-r--r--win32/PlatWin.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx
index cade8d005..00b5c59c5 100644
--- a/win32/PlatWin.cxx
+++ b/win32/PlatWin.cxx
@@ -2396,27 +2396,27 @@ HCURSOR LoadReverseArrowCursor(UINT dpi) noexcept {
void Window::SetCursor(Cursor curs) {
switch (curs) {
- case cursorText:
+ case Cursor::text:
::SetCursor(::LoadCursor(NULL,IDC_IBEAM));
break;
- case cursorUp:
+ case Cursor::up:
::SetCursor(::LoadCursor(NULL,IDC_UPARROW));
break;
- case cursorWait:
+ case Cursor::wait:
::SetCursor(::LoadCursor(NULL,IDC_WAIT));
break;
- case cursorHoriz:
+ case Cursor::horizontal:
::SetCursor(::LoadCursor(NULL,IDC_SIZEWE));
break;
- case cursorVert:
+ case Cursor::vertical:
::SetCursor(::LoadCursor(NULL,IDC_SIZENS));
break;
- case cursorHand:
+ case Cursor::hand:
::SetCursor(::LoadCursor(NULL,IDC_HAND));
break;
- case cursorReverseArrow:
- case cursorArrow:
- case cursorInvalid: // Should not occur, but just in case.
+ case Cursor::reverseArrow:
+ case Cursor::arrow:
+ case Cursor::invalid: // Should not occur, but just in case.
::SetCursor(::LoadCursor(NULL,IDC_ARROW));
break;
}