summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend/mame/ui/menuitem.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/mame/ui/menuitem.h')
-rw-r--r--src/frontend/mame/ui/menuitem.h26
1 files changed, 14 insertions, 12 deletions
diff --git a/src/frontend/mame/ui/menuitem.h b/src/frontend/mame/ui/menuitem.h
index 3fac820b5e7..58a8b50d07b 100644
--- a/src/frontend/mame/ui/menuitem.h
+++ b/src/frontend/mame/ui/menuitem.h
@@ -11,32 +11,34 @@
#pragma once
-#ifndef __UI_MENUITEM__
-#define __UI_MENUITEM__
+#ifndef MAME_FRONTEND_UI_MENUITEM_H
+#define MAME_FRONTEND_UI_MENUITEM_H
#include "emu.h"
+namespace ui {
+
// special menu item for separators
#define MENU_SEPARATOR_ITEM "---"
// types of menu items (TODO: please expand)
-enum class ui_menu_item_type
+enum class menu_item_type
{
UNKNOWN,
SLIDER,
SEPARATOR
};
-class ui_menu_item
+class 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;
+ const char *text;
+ const char *subtext;
+ UINT32 flags;
+ void *ref;
+ menu_item_type type; // item type (eventually will go away when itemref is proper ui_menu_item class rather than void*)
};
-#endif // __UI_MENUITEM__
+} // namespace ui
+
+#endif // MAME_FRONTEND_UI_MENUITEM_H