aboutsummaryrefslogtreecommitdiff
path: root/src/engine/graphics/scene.hpp
blob: c4c217ff67d44608d1de8304bdc81eee8f34856a (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
#pragma once

#include "DI/auto_wirable.hpp"
#include "interfaces/matrix.hpp"
#include "interfaces/scene.hpp"

#include <fmt/core.h>
#include <string_view>

constexpr fmt::string_view ENABLE_ALT_BUFFER = "{esc}[?1049h";
constexpr fmt::string_view DISABLE_ALT_BUFFER = "{esc}[?1049l";

class Scene : public IScene,
			  public AutoWirable<IScene, Scene, IMatrixFactory<std::string_view>>
{
public:
	explicit Scene(IMatrixFactory<std::string_view> matrix_factory);

	void enter() override;

	void leave() override;

	// void do_in_statusbar(const std::function<void()> &routine);

private:
	bool _is_shown;

	IMatrixFactory<std::string_view> _matrix_factory;
};