diff options
| author | Neil <nyamatongwe@gmail.com> | 2021-03-17 16:02:45 +1100 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2021-03-17 16:02:45 +1100 |
| commit | d5b1240eece116b2a13b635d25b041bf0de19305 (patch) | |
| tree | 477c8b5c2bf07db996f5520957a447ee256eacf8 /win32/ScintillaWin.cxx | |
| parent | f0861077dfa88fd1e2846b164701eca5de63c292 (diff) | |
| download | scintilla-mirror-d5b1240eece116b2a13b635d25b041bf0de19305.tar.gz | |
Change Window::Cursor to an enum class.
Diffstat (limited to 'win32/ScintillaWin.cxx')
| -rw-r--r-- | win32/ScintillaWin.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index ddfa76b78..f6082b099 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -692,7 +692,7 @@ void ScintillaWin::DisplayCursor(Window::Cursor c) { if (cursorMode != SC_CURSORNORMAL) { c = static_cast<Window::Cursor>(cursorMode); } - if (c == Window::cursorReverseArrow) { + if (c == Window::Cursor::reverseArrow) { ::SetCursor(reverseArrowCursor.Load(dpi)); } else { wMain.SetCursor(c); @@ -1366,23 +1366,23 @@ sptr_t ScintillaWin::GetText(uptr_t wParam, sptr_t lParam) { Window::Cursor ScintillaWin::ContextCursor(Point pt) { if (inDragDrop == ddDragging) { - return Window::cursorUp; + return Window::Cursor::up; } else { // Display regular (drag) cursor over selection if (PointInSelMargin(pt)) { return GetMarginCursor(pt); } else if (!SelectionEmpty() && PointInSelection(pt)) { - return Window::cursorArrow; + return Window::Cursor::arrow; } else if (PointIsHotspot(pt)) { - return Window::cursorHand; + return Window::Cursor::hand; } else if (hoverIndicatorPos != Sci::invalidPosition) { const Sci::Position pos = PositionFromLocation(pt, true, true); if (pos != Sci::invalidPosition) { - return Window::cursorHand; + return Window::Cursor::hand; } } } - return Window::cursorText; + return Window::Cursor::text; } sptr_t ScintillaWin::ShowContextMenu(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { |
