summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend/mame/ui/sliders.h
blob: eea36538384523ad7c84fff5ac4e204e501abcd7 (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
// license:BSD-3-Clause
// copyright-holders:Nicola Salmoria, Aaron Giles, Nathan Woods
/***************************************************************************

    ui/miscmenu.h

    Internal MAME menus for the user interface.

***************************************************************************/

#pragma once

#ifndef __UI_SLIDERS_H__
#define __UI_SLIDERS_H__

#include <map>

class ui_menu_sliders : public ui_menu {
public:
	ui_menu_sliders(mame_ui_manager &mui, render_container *container, bool menuless_mode = false);
	virtual ~ui_menu_sliders();
	virtual void populate() override;
	virtual void handle() override;

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

	static UINT32 ui_handler(mame_ui_manager &mui, render_container *container, UINT32 state);

private:
	enum {
		INPUT_GROUPS,
		INPUT_SPECIFIC,
	};
	bool m_menuless_mode;
	bool m_hidden;
};


#endif  /* __UI_SLIDERS_H__ */