Split mac cursor visibility
This commit is contained in:
@@ -160,4 +160,13 @@ void AppleDocumentPlatformServices::share_file(std::string_view path) const
|
||||
#endif
|
||||
}
|
||||
|
||||
void AppleDocumentPlatformServices::set_cursor_visible(bool visible) const
|
||||
{
|
||||
#if defined(__OSX__)
|
||||
[App::I->osx_view show_cursor:visible];
|
||||
#else
|
||||
(void)visible;
|
||||
#endif
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -37,6 +37,7 @@ public:
|
||||
[[nodiscard]] std::string format_working_directory_path(std::string_view path) const;
|
||||
void display_file(std::string_view path) const;
|
||||
void share_file(std::string_view path) const;
|
||||
void set_cursor_visible(bool visible) const;
|
||||
|
||||
private:
|
||||
PlatformFamily family_;
|
||||
|
||||
@@ -276,11 +276,7 @@ public:
|
||||
|
||||
void set_cursor_visible(bool visible) override
|
||||
{
|
||||
#ifdef __OSX__
|
||||
[App::I->osx_view show_cursor:visible];
|
||||
#else
|
||||
(void)visible;
|
||||
#endif
|
||||
active_apple_document_platform_services().set_cursor_visible(visible);
|
||||
}
|
||||
|
||||
void set_virtual_keyboard_visible(bool visible) override
|
||||
|
||||
Reference in New Issue
Block a user