From 00abb6f0c8678086860c07eedb17aa348b13fd76 Mon Sep 17 00:00:00 2001 From: crupest Date: Sun, 7 Oct 2018 17:15:32 +0800 Subject: Add cursor. --- src/ui/cursor.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/ui/cursor.cpp (limited to 'src/ui/cursor.cpp') diff --git a/src/ui/cursor.cpp b/src/ui/cursor.cpp new file mode 100644 index 00000000..e0bd1814 --- /dev/null +++ b/src/ui/cursor.cpp @@ -0,0 +1,20 @@ +#include "cursor.h" + +#include "exception.h" + +namespace cru::ui +{ + Cursor::Cursor(HCURSOR handle, const bool auto_release) + : handle_(handle), auto_release_(auto_release) + { + + } + + Cursor::~Cursor() + { + if (auto_release_) + ::DestroyCursor(handle_); + } + + std::unordered_map cursors; +} -- cgit v1.2.3