DOSBox-X
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
include/menudef.h
00001 /*
00002  *  Copyright (C) 2002-2020  The DOSBox Team
00003  *
00004  *  This program is free software; you can redistribute it and/or modify
00005  *  it under the terms of the GNU General Public License as published by
00006  *  the Free Software Foundation; either version 2 of the License, or
00007  *  (at your option) any later version.
00008  *
00009  *  This program is distributed in the hope that it will be useful,
00010  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  *  GNU General Public License for more details.
00013  *
00014  *  You should have received a copy of the GNU General Public License along
00015  *  with this program; if not, write to the Free Software Foundation, Inc.,
00016  *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00017  */
00018 
00019 #ifdef __WIN32__
00020 #include <windows.h>
00021 #include <windowsx.h>
00022 #include "resource.h"
00023 #endif
00024 
00025 #define menu_compatible menu.compatible
00026 #define menu_startup menu.startup
00027 #define menu_gui menu.gui
00028 
00029 #ifndef MENUDEF_H
00030 #define MENUDEF_H
00031 
00032 struct MENU_Block {
00033         bool toggle;      // toggle menu bar
00034         bool startup;     // verify if DOSBox is started with menu patch
00035         bool hidecycles;  // toggle cycles, fps, cpu usage information on title bar
00036     bool showrt;      // show realtime percentage
00037         bool boot;        // verify if boot is being used (if enabled, it is unable to mount drives)
00038         bool gui;         // enable or disable gui system (if disabled, it is unable to use/toggle menu bar)
00039         bool resizeusing; // check if resizable window can be used
00040         bool compatible;  // compatible mode for win9x/2000 (if enabled, GUI system will be disabled)
00041         bool maxwindow; // check window state
00042         MENU_Block():toggle(false),startup(false),hidecycles(false),showrt(false),boot(false),gui(true),resizeusing(false),compatible(false),maxwindow(false){ }
00043 };
00044 extern MENU_Block menu;
00045 
00046 #endif /* MENUDEF_H */
00047