summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend/mame/ui/optsmenu.h
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2016-05-27 02:59:42 +1000
committer Vas Crabb <vas@vastheman.com>2016-05-27 03:00:20 +1000
commit87429e74d90481317db41dfc45c7751039cd8b48 (patch)
tree662d3fd49661f4dc98611ebedcf8ffee62ed8b42 /src/frontend/mame/ui/optsmenu.h
parent4efb2fe8257a7ce35696f8942122358822079056 (diff)
ui refactoring [Vas Crabb]
* move menu classes into ::ui namesapce * reduce scope of many symbols (first step in making UI code less rage-inducing so I can fix text input)
Diffstat (limited to 'src/frontend/mame/ui/optsmenu.h')
-rw-r--r--src/frontend/mame/ui/optsmenu.h18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/frontend/mame/ui/optsmenu.h b/src/frontend/mame/ui/optsmenu.h
index 9a87918f8f6..b8ee8ebc628 100644
--- a/src/frontend/mame/ui/optsmenu.h
+++ b/src/frontend/mame/ui/optsmenu.h
@@ -10,14 +10,18 @@
#pragma once
-#ifndef __UI_OPTSMENU_H__
-#define __UI_OPTSMENU_H__
+#ifndef MAME_FRONTEND_UI_OPTSMENU_H
+#define MAME_FRONTEND_UI_OPTSMENU_H
-class ui_menu_game_options : public ui_menu
+#include "ui/menu.h"
+
+namespace ui {
+
+class menu_game_options : public menu
{
public:
- ui_menu_game_options(mame_ui_manager &mui, render_container *container);
- virtual ~ui_menu_game_options();
+ menu_game_options(mame_ui_manager &mui, render_container *container);
+ virtual ~menu_game_options() override;
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;
@@ -46,4 +50,6 @@ private:
};
};
-#endif /* __UI_OPTSMENU_H__ */
+} // namespace ui
+
+#endif /* MAME_FRONTEND_UI_OPTSMENU_H */