1
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2
* Mupen64plus - gui.h *
3
* Mupen64Plus homepage: http://code.google.com/p/mupen64plus/ *
4
* Copyright (C) 2008 Tillin9 *
6
* This program is free software; you can redistribute it and/or modify *
7
* it under the terms of the GNU General Public License as published by *
8
* the Free Software Foundation; either version 2 of the License, or *
9
* (at your option) any later version. *
11
* This program is distributed in the hope that it will be useful, *
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14
* GNU General Public License for more details. *
16
* You should have received a copy of the GNU General Public License *
17
* along with this program; if not, write to the *
18
* Free Software Foundation, Inc., *
19
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
20
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
25
/* The functons which all GUIs must implement. */
27
/* Build the GUI and allocate necessary dependenices, but don't display
28
* anything to the screen.
30
void gui_init(int* argc, char*** argv);
32
/* Display the newly built GUI. */
33
void gui_display(void);
35
/* Take control of the application and wait for user input. */
36
void gui_main_loop(void);
38
typedef enum gui_message
45
/* Interface for sending text messages to the GUI. messagetype can be
46
* GUI_MESSAGE_INFO - An informational message.
47
* GUI_MESSAGE_CONFIRM - A yes / no confirmation dialog.
48
* GUI_MESSAGE_ERROR - An error messagee.
49
* Returns true / false (1 / 0) when messagetype specifies confirm.
50
* On other messagetypes return may be undefined.
52
int gui_message(gui_message_t messagetype, const char *format, ...);
54
/* gui_update_rombrowser() accesses g_romcahce.length and adds upto roms to the
55
* GUI's rombrowser widget. The clear flag tells the GUI whether to clear the
58
void gui_update_rombrowser(unsigned int roms, unsigned short clear);
60
typedef enum gui_state
67
/* Allow the core to send hints to the GUI as to the state of the emulator. */
68
void gui_set_state(gui_state_t state);
70
/* TODO: Add debugger GUI APIs here. */
72
#endif /* __GUI_H__ */