aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/status_manager.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-06-07 19:45:17 +0200
committerHampusM <hampus@hampusmat.com>2022-06-13 17:57:01 +0200
commit8805b1fe27344e8086cebabf869b7a02d2376f05 (patch)
treea90a2e2dda1bcb98fb4de5cd983138e5441c2222 /src/interfaces/status_manager.hpp
parentf778317bae709f397345a2d5e04e23864c6391b3 (diff)
refactor: decouple statusline from scene & cursor controller
Might be slightly slower than previously though...
Diffstat (limited to 'src/interfaces/status_manager.hpp')
-rw-r--r--src/interfaces/status_manager.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/interfaces/status_manager.hpp b/src/interfaces/status_manager.hpp
index 18d6928..9c7234e 100644
--- a/src/interfaces/status_manager.hpp
+++ b/src/interfaces/status_manager.hpp
@@ -22,6 +22,9 @@ public:
virtual void set_section_body(
const StatusLineSection &section,
const std::string_view &body) noexcept = 0;
+
+ [[nodiscard]] virtual auto get_statusline() const noexcept
+ -> std::shared_ptr<IStatusLine> = 0;
};
using IStatusManagerFactory = yacppdic::Factory<std::unique_ptr<IStatusManager>(