summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend/mame/ui/optsmenu.h
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2016-07-10 22:10:44 +1000
committer Vas Crabb <vas@vastheman.com>2016-07-10 22:10:59 +1000
commit3258d3feef7ecba3067bde2ed527849811297020 (patch)
tree82295081a7c83835fe8d42a3ddd3d71a854059b1 /src/frontend/mame/ui/optsmenu.h
parent9bbf1208e309370371d54b620077c5e2c993bbe3 (diff)
UI refactoring: [Vas Crabb]
* std::bind - accept no substitutes * pointer -> reference conversion * make more menu members private or protected * don't play so fast and loose with integer types * reduce some vector copying * make more static constants const
Diffstat (limited to 'src/frontend/mame/ui/optsmenu.h')
-rw-r--r--src/frontend/mame/ui/optsmenu.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/frontend/mame/ui/optsmenu.h b/src/frontend/mame/ui/optsmenu.h
index 6c388163d51..c131aa76639 100644
--- a/src/frontend/mame/ui/optsmenu.h
+++ b/src/frontend/mame/ui/optsmenu.h
@@ -19,15 +19,13 @@ namespace ui {
class menu_game_options : public menu
{
public:
- menu_game_options(mame_ui_manager &mui, render_container *container);
+ menu_game_options(mame_ui_manager &mui, render_container &container);
virtual ~menu_game_options() override;
- virtual void populate() override;
- virtual void handle() override;
+
+protected:
virtual void custom_render(void *selectedref, float top, float bottom, float x, float y, float x2, float y2) override;
private:
- UINT16 m_main;
-
enum
{
FILTER_MENU = 1,
@@ -47,6 +45,11 @@ private:
CUSTOM_FILTER,
SAVE_CONFIG
};
+
+ virtual void populate() override;
+ virtual void handle() override;
+
+ UINT16 m_main;
};
} // namespace ui