summaryrefslogtreecommitdiff
path: root/lib/nes/app/ui/screen-title.hh
blob: 2ebc78abac71a1cff197daf4ef080cef73f410b2 (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
#pragma once

#include "nes/app/ui/screen.hh"

namespace nes::app
{
	class input_manager;

	/// The main title screen for the emulator, used as an entrypoint for the UI.
	///
	/// Presents options to load games, adjust settings, and more.
	class screen_title final : public screen
	{
		enum class item
		{
			load_game,
			settings,
			help,
		};

		input_manager& input_manager_;
		item selected_item_{ item::load_game };

	public:
		explicit screen_title(input_manager&);

		auto render(renderer&) -> void override;
		auto process_events() -> action override;
	};
} // namespace nes::app