aboutsummaryrefslogtreecommitdiff
path: root/src/ui/cursor.h
diff options
context:
space:
mode:
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;
+ }
}