summaryrefslogtreecommitdiffhomepage
path: root/main/main-impl.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-11-22 18:46:52 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-11-22 18:46:52 +0100
commit51ebc370743b07926ce0a50232a1a65c6b6b27b5 (patch)
tree9c38ee65e32c6a760065ef33fe078847d7ea2d48 /main/main-impl.cpp
parenta917bb7c28b383c3c684bf75732188bfff0060bb (diff)
finally it works
Diffstat (limited to 'main/main-impl.cpp')
-rw-r--r--main/main-impl.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/main/main-impl.cpp b/main/main-impl.cpp
index dec3948f..0790a0d2 100644
--- a/main/main-impl.cpp
+++ b/main/main-impl.cpp
@@ -1,5 +1,6 @@
#include "main-impl.hpp"
#include "compat/assert.hpp"
+#include <Magnum/Platform/Sdl2Application.h>
namespace floormat {
@@ -33,4 +34,15 @@ floormat_main* floormat_main::create(floormat_app& app, fm_settings&& options)
return ret;
}
+void main_impl::set_cursor(std::uint32_t cursor) noexcept
+{
+ setCursor(Cursor(cursor));
+}
+
+std::uint32_t main_impl::cursor() const noexcept
+{
+ using App = Platform::Sdl2Application;
+ return (std::uint32_t)static_cast<App*>(const_cast<main_impl*>(this))->cursor();
+}
+
} // namespace floormat