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

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

    ui/menuitem.h

    Internal data representation for a UI menu item.

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

#ifndef MAME_FRONTEND_UI_MENUITEM_H
#define MAME_FRONTEND_UI_MENUITEM_H

#pragma once


namespace ui {

// special menu item for separators
#define MENU_SEPARATOR_ITEM         "---"

// types of menu items (TODO: please expand)
enum class menu_item_type
{
	UNKNOWN,
	SLIDER,
	SEPARATOR
};

class menu_item
{
public:
	menu_item() = default;
	menu_item(menu_item const &) = default;
	menu_item(menu_item &&) = default;
	menu_item &operator=(menu_item const &) = default;
	menu_item &operator=(menu_item &&) = default;

	std::string     text;
	std::string     subtext;
	uint32_t        flags;
	void            *ref;
	menu_item_type  type;   // item type (eventually will go away when itemref is proper ui_menu_item class rather than void*)
};

} // namespace ui

#endif // MAME_FRONTEND_UI_MENUITEM_H