From 486ca3846b46dc229e5807968578809766ec1991 Mon Sep 17 00:00:00 2001 From: HampusM Date: Wed, 23 Mar 2022 19:41:31 +0100 Subject: feat: implement generations & multithreading --- src/interfaces/statusline.hpp | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/interfaces/statusline.hpp (limited to 'src/interfaces/statusline.hpp') diff --git a/src/interfaces/statusline.hpp b/src/interfaces/statusline.hpp new file mode 100644 index 0000000..00da99b --- /dev/null +++ b/src/interfaces/statusline.hpp @@ -0,0 +1,27 @@ +#pragma once + +#include "interfaces/cursor.hpp" +#include "interfaces/window.hpp" + +#include + +enum StatusLineSection +{ + A, + B +}; + +class IStatusLine +{ +public: + virtual ~IStatusLine() noexcept = default; + + virtual void initialize_background() noexcept = 0; + + virtual void set_status(StatusLineSection section, + const std::string_view &str) noexcept = 0; +}; + +using IStatusLineFactory = std::shared_ptr (*)( + const std::shared_ptr &cursor_controller, + const std::shared_ptr &window); -- cgit v1.2.3-18-g5258