From d5b1240eece116b2a13b635d25b041bf0de19305 Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 17 Mar 2021 16:02:45 +1100 Subject: Change Window::Cursor to an enum class. --- src/Platform.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Platform.h') 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: -- cgit v1.2.3