2016-09-04 20:58:54 +00:00
|
|
|
/* RetroArch - A frontend for libretro.
|
|
|
|
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
|
|
|
|
* Copyright (C) 2011-2016 - Daniel De Matteis
|
|
|
|
*
|
|
|
|
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
|
|
|
* of the GNU General Public License as published by the Free Software Found-
|
|
|
|
* ation, either version 3 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
|
|
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
|
|
* PURPOSE. See the GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along with RetroArch.
|
|
|
|
* If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _MENU_POPUP_H
|
|
|
|
#define _MENU_POPUP_H
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
2016-09-04 21:23:54 +00:00
|
|
|
#include <boolean.h>
|
|
|
|
|
2016-09-05 00:50:29 +00:00
|
|
|
#include <retro_common_api.h>
|
|
|
|
|
2016-09-05 05:04:15 +00:00
|
|
|
enum menu_popup_type
|
2016-09-04 21:34:24 +00:00
|
|
|
{
|
2016-09-05 05:04:15 +00:00
|
|
|
MENU_POPUP_NONE = 0,
|
|
|
|
MENU_POPUP_WELCOME,
|
|
|
|
MENU_POPUP_HELP_EXTRACT,
|
|
|
|
MENU_POPUP_HELP_CONTROLS,
|
|
|
|
MENU_POPUP_HELP_CHEEVOS_DESCRIPTION,
|
|
|
|
MENU_POPUP_HELP_LOADING_CONTENT,
|
|
|
|
MENU_POPUP_HELP_WHAT_IS_A_CORE,
|
|
|
|
MENU_POPUP_HELP_CHANGE_VIRTUAL_GAMEPAD,
|
|
|
|
MENU_POPUP_HELP_AUDIO_VIDEO_TROUBLESHOOTING,
|
|
|
|
MENU_POPUP_HELP_SCANNING_CONTENT,
|
|
|
|
MENU_POPUP_QUIT_CONFIRM,
|
|
|
|
MENU_POPUP_INFORMATION,
|
|
|
|
MENU_POPUP_QUESTION,
|
|
|
|
MENU_POPUP_WARNING,
|
|
|
|
MENU_POPUP_ERROR,
|
|
|
|
MENU_POPUP_LAST,
|
2016-09-04 21:34:24 +00:00
|
|
|
};
|
|
|
|
|
2016-09-04 20:58:54 +00:00
|
|
|
RETRO_BEGIN_DECLS
|
|
|
|
|
2016-09-04 21:34:24 +00:00
|
|
|
void menu_popup_push_pending(
|
2016-09-05 05:04:15 +00:00
|
|
|
bool push, enum menu_popup_type type);
|
2016-09-04 21:23:54 +00:00
|
|
|
|
2016-09-05 05:04:15 +00:00
|
|
|
int menu_popup_iterate(
|
2016-09-04 21:15:01 +00:00
|
|
|
char *s, size_t len, const char *label);
|
2016-09-04 20:58:54 +00:00
|
|
|
|
2016-09-04 21:34:24 +00:00
|
|
|
void menu_popup_unset_pending_push(void);
|
|
|
|
|
|
|
|
bool menu_popup_is_push_pending(void);
|
2016-09-04 21:27:08 +00:00
|
|
|
|
2016-09-04 21:34:24 +00:00
|
|
|
void menu_popup_push(void);
|
2016-09-04 21:27:08 +00:00
|
|
|
|
2016-09-04 21:34:24 +00:00
|
|
|
void menu_popup_reset(void);
|
2016-09-04 20:58:54 +00:00
|
|
|
|
2016-09-05 05:04:15 +00:00
|
|
|
void menu_popup_show_message(
|
|
|
|
enum menu_popup_type type, enum msg_hash_enums msg);
|
|
|
|
|
|
|
|
bool menu_popup_is_active(void);
|
|
|
|
|
|
|
|
void menu_popup_set_active(bool on);
|
|
|
|
|
|
|
|
enum menu_popup_type menu_popup_get_current_type(void);
|
|
|
|
|
2016-09-04 20:58:54 +00:00
|
|
|
RETRO_END_DECLS
|
|
|
|
|
|
|
|
#endif
|