summaryrefslogblamecommitdiffstatshomepage
path: root/src/frontend/mame/ui/menuitem.h
blob: 58a8b50d07b3090296ff13bbc3efdf3d119957d0 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                            

                                   


                

              



                                            
                         





                 
               

       




                                                                                                                                  

  


                                     
// 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 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 menu_item_type
{
	UNKNOWN,
	SLIDER,
	SEPARATOR
};

class menu_item
{
public:
	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*)
};

} // namespace ui

#endif // MAME_FRONTEND_UI_MENUITEM_H