aboutsummaryrefslogtreecommitdiff
path: root/src/ui/cursor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/cursor.cpp')
-rw-r--r--src/ui/cursor.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/ui/cursor.cpp b/src/ui/cursor.cpp
deleted file mode 100644
index d8c362ed..00000000
--- a/src/ui/cursor.cpp
+++ /dev/null
@@ -1,24 +0,0 @@
-#include "cursor.hpp"
-
-#include "exception.hpp"
-
-namespace cru::ui {
-Cursor::Cursor(HCURSOR handle, const bool auto_release)
- : handle_(handle), auto_release_(auto_release) {}
-
-Cursor::~Cursor() {
- if (auto_release_) ::DestroyCursor(handle_);
-}
-
-namespace cursors {
-Cursor::Ptr arrow{};
-Cursor::Ptr hand{};
-Cursor::Ptr i_beam{};
-
-void LoadSystemCursors() {
- arrow = std::make_shared<Cursor>(::LoadCursorW(nullptr, IDC_ARROW), false);
- hand = std::make_shared<Cursor>(::LoadCursorW(nullptr, IDC_HAND), false);
- i_beam = std::make_shared<Cursor>(::LoadCursorW(nullptr, IDC_IBEAM), false);
-}
-} // namespace cursors
-} // namespace cru::ui