aboutsummaryrefslogtreecommitdiff
path: root/src/ui/cursor.h
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2018-11-05 23:25:57 +0800
committercrupest <crupest@outlook.com>2018-11-05 23:25:57 +0800
commitfb1b16cd0ab189d61efe6237b2c2b1f7f72f90de (patch)
treee537823b914b407dc9ce5b5a69f91dc93d834426 /src/ui/cursor.h
parenta908cff41ce987f4adc597f9e5ad4105e56e6ff4 (diff)
downloadcru-fb1b16cd0ab189d61efe6237b2c2b1f7f72f90de.tar.gz
cru-fb1b16cd0ab189d61efe6237b2c2b1f7f72f90de.tar.bz2
cru-fb1b16cd0ab189d61efe6237b2c2b1f7f72f90de.zip
Develop cursor.
Diffstat (limited to 'src/ui/cursor.h')
-rw-r--r--src/ui/cursor.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/ui/cursor.h b/src/ui/cursor.h
index b57db9b7..3c09b35e 100644
--- a/src/ui/cursor.h
+++ b/src/ui/cursor.h
@@ -20,14 +20,20 @@ namespace cru::ui
Cursor& operator=(Cursor&& other) = delete;
~Cursor() override;
+ HCURSOR GetHandle() const
+ {
+ return handle_;
+ }
+
private:
HCURSOR handle_;
bool auto_release_;
};
-
- extern std::unordered_map<String, Cursor::Ptr> cursors;
- constexpr auto cursor_arrow_key = L"System_Arrow";
- constexpr auto cursor_hand_key = L"System_Hand";
- constexpr auto cursor_i_beam_key = L"System_IBeam";
+ namespace cursors
+ {
+ extern Cursor::Ptr arrow;
+ extern Cursor::Ptr hand;
+ extern Cursor::Ptr i_beam;
+ }
}