summaryrefslogtreecommitdiffstats
path: root/src/frontend/mame/ui/quitmenu.h
blob: 81ca61e2892de17e5c835c3f3a1c91c4eeeceb65 (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
// license:BSD-3-Clause
// copyright-holders:Vas Crabb
/***************************************************************************

    ui/quitmenu.h

    Menus involved in quitting MAME.

***************************************************************************/
#ifndef MAME_FRONTEND_UI_QUITMENU_H
#define MAME_FRONTEND_UI_QUITMENU_H

#pragma once

#include "ui/menu.h"


namespace ui {

class menu_confirm_quit : public autopause_menu<>
{
public:
	menu_confirm_quit(mame_ui_manager &mui, render_container &container);
	virtual ~menu_confirm_quit();

protected:
	virtual void custom_render(void *selectedref, float top, float bottom, float x, float y, float x2, float y2) override;

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

} // namespace ui

#endif // MAME_FRONTEND_UI_QUITMENU_H