summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend/mame/ui/menuitem.h
diff options
context:
space:
mode:
author therealmogminer@gmail.com <therealmogminer@gmail.com>2016-05-16 19:58:59 +0200
committer therealmogminer@gmail.com <therealmogminer@gmail.com>2016-05-16 19:59:15 +0200
commitb06be31dfe70c4d13f88b304e7e8dab515bd0919 (patch)
tree2bbce2c5b5902b647e33853aa087c59f0d5be2fb /src/frontend/mame/ui/menuitem.h
parent0069d44ff7f06dca7d3b233305c8e13185867615 (diff)
Move slider_state and ui_menu_item into src/frontend/mame, nw
Diffstat (limited to 'src/frontend/mame/ui/menuitem.h')
-rw-r--r--src/frontend/mame/ui/menuitem.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/frontend/mame/ui/menuitem.h b/src/frontend/mame/ui/menuitem.h
new file mode 100644
index 00000000000..92ceab86628
--- /dev/null
+++ b/src/frontend/mame/ui/menuitem.h
@@ -0,0 +1,42 @@
+// license:BSD-3-Clause
+// copyright-holders:Nicola Salmoria, Aaron Giles, Nathan Woods
+
+/***************************************************************************
+
+ ui/menuitem.h
+
+ Internal data representation for a UI menu item.
+
+***************************************************************************/
+
+#pragma once
+
+#ifndef __UI_MENUITEM__
+#define __UI_MENUITEM__
+
+#include "emu.h"
+
+// special menu item for separators
+#define MENU_SEPARATOR_ITEM "---"
+
+// types of menu items (TODO: please expand)
+enum class ui_menu_item_type
+{
+ UNKNOWN,
+ SLIDER,
+ SEPARATOR
+};
+
+class ui_menu_item
+{
+public:
+ const char *text;
+ const char *subtext;
+ UINT32 flags;
+ void *ref;
+ ui_menu_item_type type; // item type (eventually will go away when itemref is proper ui_menu_item class rather than void*)
+
+ inline bool is_selectable() const;
+};
+
+#endif // __UI_MENUITEM__ \ No newline at end of file