diff options
author | crupest <crupest@outlook.com> | 2019-03-23 23:52:07 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2019-03-23 23:52:07 +0800 |
commit | e8be3841457853daefc26d0ca00256ad8c44f593 (patch) | |
tree | 66d9204423c3887ebc7d781d13d815ae0443d620 /src/ui/cursor.cpp | |
parent | 2ecfdaa20d8436948e4a73da73d6a11b78e88371 (diff) | |
download | cru-e8be3841457853daefc26d0ca00256ad8c44f593.tar.gz cru-e8be3841457853daefc26d0ca00256ad8c44f593.tar.bz2 cru-e8be3841457853daefc26d0ca00256ad8c44f593.zip |
...
Diffstat (limited to 'src/ui/cursor.cpp')
-rw-r--r-- | src/ui/cursor.cpp | 24 |
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 |