aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Platform.h
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 /src/Platform.h
parentf0861077dfa88fd1e2846b164701eca5de63c292 (diff)
downloadscintilla-mirror-d5b1240eece116b2a13b635d25b041bf0de19305.tar.gz
Change Window::Cursor to an enum class.
Diffstat (limited to 'src/Platform.h')
-rw-r--r--src/Platform.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Platform.h b/src/Platform.h
index 5b2116fcd..c0a13d911 100644
--- a/src/Platform.h
+++ b/src/Platform.h
@@ -223,13 +223,13 @@ class Window {
protected:
WindowID wid;
public:
- Window() noexcept : wid(nullptr), cursorLast(cursorInvalid) {
+ Window() noexcept : wid(nullptr), cursorLast(Cursor::invalid) {
}
Window(const Window &source) = delete;
Window(Window &&) = delete;
Window &operator=(WindowID wid_) noexcept {
wid = wid_;
- cursorLast = cursorInvalid;
+ cursorLast = Cursor::invalid;
return *this;
}
Window &operator=(const Window &) = delete;
@@ -245,7 +245,7 @@ public:
void Show(bool show=true);
void InvalidateAll();
void InvalidateRectangle(PRectangle rc);
- enum Cursor { cursorInvalid, cursorText, cursorArrow, cursorUp, cursorWait, cursorHoriz, cursorVert, cursorReverseArrow, cursorHand };
+ enum class Cursor { invalid, text, arrow, up, wait, horizontal, vertical, reverseArrow, hand };
void SetCursor(Cursor curs);
PRectangle GetMonitorRect(Point pt);
private: