aboutsummaryrefslogtreecommitdiff
path: root/src/ui/cursor.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2018-11-20 21:02:49 +0800
committercrupest <crupest@outlook.com>2018-11-20 21:03:07 +0800
commite8589550140d20b675fa7736441d7cdd1daee4d7 (patch)
tree50b61f34dd63e235a6c89b84511f3910b566af00 /src/ui/cursor.cpp
parent30333294fcd5917a9f3572f0c4c6dfc2ec429a3c (diff)
downloadcru-e8589550140d20b675fa7736441d7cdd1daee4d7.tar.gz
cru-e8589550140d20b675fa7736441d7cdd1daee4d7.tar.bz2
cru-e8589550140d20b675fa7736441d7cdd1daee4d7.zip
Add clip to padding.
Diffstat (limited to 'src/ui/cursor.cpp')
-rw-r--r--src/ui/cursor.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ui/cursor.cpp b/src/ui/cursor.cpp
index cf88cd25..91b94b16 100644
--- a/src/ui/cursor.cpp
+++ b/src/ui/cursor.cpp
@@ -21,5 +21,12 @@ namespace cru::ui
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);
+ }
}
}