blob: ae25fd9b3b26e3547f4944ffc7981e40e191166d (
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
|
#pragma once
#include "interfaces/component.hpp"
#include "engine/data/bounds.hpp"
#include <yacppdic/factory.hpp>
#include <string_view>
enum StatusLineSection
{
A = 0,
B = 1,
C = 2,
D = 3,
E = 4,
F = 5,
G = 6,
H = 7
};
// NOLINTNEXTLINE(cppcoreguidelines-special-member-functions)
class IStatusLine : public IComponent
{
public:
// NOLINTNEXTLINE(google-default-arguments)
virtual void set_status(
StatusLineSection section,
const std::string_view &status,
int32_t start = 1) noexcept = 0;
virtual void
set_section_length(StatusLineSection section, int32_t length) noexcept = 0;
};
using IStatusLineFactory =
yacppdic::Factory<std::unique_ptr<IStatusLine>(const Bounds &size)>;
|