blob: 2fefa6d89f86e9d145f423645afcf252cdfeef11 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#pragma once
#include "interfaces/cursor.hpp"
#include "interfaces/scene.hpp"
#include <yacppdic/factory.hpp>
#include <string_view>
enum StatusLineSection
{
A = 0,
B = 1,
C = 2,
D = 3,
E = 4,
F = 5,
};
// NOLINTNEXTLINE(cppcoreguidelines-special-member-functions)
class IStatusLine
{
public:
virtual ~IStatusLine() noexcept = default;
virtual void initialize_background() noexcept = 0;
virtual void set_status(
const StatusLineSection §ion,
const std::string_view &status,
std::size_t start = 1UL) noexcept = 0;
virtual void
set_section_length(const StatusLineSection §ion, uint32_t length) noexcept = 0;
};
using IStatusLineFactory = yacppdic::Factory<std::unique_ptr<IStatusLine>(
const std::shared_ptr<ICursorController> &cursor_controller,
const std::shared_ptr<IScene> &scene)>;
|