diff options
author | crupest <crupest@outlook.com> | 2018-10-07 17:15:32 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2018-10-07 17:15:32 +0800 |
commit | 00abb6f0c8678086860c07eedb17aa348b13fd76 (patch) | |
tree | 45976fd277758fbc6be8c2e38e1f560118ff8efc /src/ui/cursor.cpp | |
parent | 508c69d6706ddfdba5bac7970ea95b8158992323 (diff) | |
download | cru-00abb6f0c8678086860c07eedb17aa348b13fd76.tar.gz cru-00abb6f0c8678086860c07eedb17aa348b13fd76.tar.bz2 cru-00abb6f0c8678086860c07eedb17aa348b13fd76.zip |
Add cursor.
Diffstat (limited to 'src/ui/cursor.cpp')
-rw-r--r-- | src/ui/cursor.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
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<String, Cursor::Ptr> cursors; +} |