Compare commits

...

2 Commits

Author SHA1 Message Date
Dmitry Nefedov
c3b940f99b
Merge ee584c5fdd into dfa461b46b 2024-11-28 11:05:59 +03:00
dangooddd
ee584c5fdd Add option to change cursor shape on exit of ScreenInteractive loop 2024-11-13 09:49:48 +03:00
2 changed files with 7 additions and 0 deletions

View File

@ -39,6 +39,8 @@ class ScreenInteractive : public Screen {
// Options. Must be called before Loop(). // Options. Must be called before Loop().
void TrackMouse(bool enable = true); void TrackMouse(bool enable = true);
void SetCursorReset(Screen::Cursor::Shape shape);
// Return the currently active screen, nullptr if none. // Return the currently active screen, nullptr if none.
static ScreenInteractive* Active(); static ScreenInteractive* Active();

View File

@ -441,6 +441,11 @@ void ScreenInteractive::TrackMouse(bool enable) {
track_mouse_ = enable; track_mouse_ = enable;
} }
/// @brief Set cursor shape on exit of main loop
void ScreenInteractive::SetCursorReset(Screen::Cursor::Shape shape) {
cursor_reset_shape_ = shape;
}
/// @brief Add a task to the main loop. /// @brief Add a task to the main loop.
/// It will be executed later, after every other scheduled tasks. /// It will be executed later, after every other scheduled tasks.
/// @ingroup component /// @ingroup component