aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/statusline.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-05-02 22:36:21 +0200
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:58 +0200
commitfb080f6fb911b1831c176a06259e384772541dd5 (patch)
treee18140e700cd974f84a5630f41fcb0b496b7e772 /src/interfaces/statusline.hpp
parent40d02748924aa7c48b04cf948204d8dacdfbbc74 (diff)
refactor: seperate statusline related concerns
Diffstat (limited to 'src/interfaces/statusline.hpp')
-rw-r--r--src/interfaces/statusline.hpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/interfaces/statusline.hpp b/src/interfaces/statusline.hpp
index 0da295e..2b61d24 100644
--- a/src/interfaces/statusline.hpp
+++ b/src/interfaces/statusline.hpp
@@ -9,8 +9,12 @@
enum StatusLineSection
{
- A,
- B
+ A = 0,
+ B = 1,
+ C = 2,
+ D = 3,
+ E = 4,
+ F = 5
};
// NOLINTNEXTLINE(cppcoreguidelines-special-member-functions)
@@ -22,9 +26,13 @@ public:
virtual void initialize_background() noexcept = 0;
virtual void set_status(
- StatusLineSection section,
- const std::string_view &status_str
+ const StatusLineSection &section,
+ const std::string_view &status,
+ std::size_t start = 1UL
) noexcept = 0;
+
+ virtual void
+ set_section_length(const StatusLineSection &section, uint32_t length) noexcept = 0;
};
using IStatusLineFactory = yacppdic::Factory<std::unique_ptr<IStatusLine>(