summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend/mame/ui/videoopt.h
blob: b296cad06abf9b6299a9290cef2704bc861ea169 (plain) (blame)
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
40
41
42
43
44
45
46
47
48
49
50
// license:BSD-3-Clause
// copyright-holders:Nicola Salmoria, Aaron Giles, Nathan Woods
/***************************************************************************

    ui/videoopt.h

    Internal menus for video options

***************************************************************************/
#ifndef MAME_FRONTEND_UI_VIDEOOPT_H
#define MAME_FRONTEND_UI_VIDEOOPT_H

#pragma once

#include "ui/menu.h"

#include <string_view>


namespace ui {

class menu_video_targets : public menu
{
public:
	menu_video_targets(mame_ui_manager &mui, render_container &container);
	virtual ~menu_video_targets() override;

private:
	virtual void populate(float &customtop, float &custombottom) override;
	virtual void handle(event const *ev) override;
};


class menu_video_options : public menu
{
public:
	menu_video_options(mame_ui_manager &mui, render_container &container, std::string_view title, render_target &target, bool snapshot);
	virtual ~menu_video_options() override;

private:
	virtual void populate(float &customtop, float &custombottom) override;
	virtual void handle(event const *ev) override;

	render_target &m_target;
	bool const m_snapshot;
};

} // namespace ui

#endif  // MAME_FRONTEND_UI_VIDEOOPT_H