RetroArch/menu/menu_entries.h

72 lines
1.8 KiB
C
Raw Normal View History

2015-06-16 00:15:32 +00:00
/* RetroArch - A frontend for libretro.
* Copyright (C) 2011-2015 - 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_ENTRIES_H__
#define __MENU_ENTRIES_H__
#include <stdint.h>
#include <stddef.h>
2015-08-21 19:19:29 +00:00
#include <boolean.h>
2015-06-16 00:15:32 +00:00
#include "menu_navigation.h"
#include "menu_list.h"
#include "menu_setting.h"
2015-07-13 22:38:16 +00:00
#include "menu_entry.h"
2015-06-16 00:15:32 +00:00
#ifdef __cplusplus
extern "C" {
#endif
2015-09-06 03:04:16 +00:00
typedef struct menu_entries menu_entries_t;
2015-06-16 00:15:32 +00:00
void menu_entries_set_start(size_t i);
size_t menu_entries_get_start(void);
size_t menu_entries_get_end(void);
2015-07-13 22:38:16 +00:00
void menu_entries_get(size_t i, menu_entry_t *entry);
2015-06-16 00:15:32 +00:00
int menu_entries_get_title(char *title, size_t title_len);
bool menu_entries_show_back(void);
2015-08-17 16:14:51 +00:00
int menu_entries_get_core_title(char *title_msg, size_t title_msg_len);
2015-06-16 00:15:32 +00:00
2015-08-21 19:19:29 +00:00
rarch_setting_t *menu_setting_get_ptr(void);
menu_navigation_t *menu_navigation_get_ptr(void);
2015-06-16 00:15:32 +00:00
bool menu_entries_needs_refresh(void);
void menu_entries_set_refresh(bool nonblocking);
void menu_entries_unset_refresh(bool nonblocking);
2015-08-21 19:19:29 +00:00
bool menu_entries_init(void *data);
void menu_entries_free(void);
2015-09-06 03:04:16 +00:00
void menu_entries_free_list(menu_entries_t *entries);
2015-09-06 00:56:57 +00:00
2015-09-06 03:04:16 +00:00
void menu_entries_new_list(menu_entries_t *entries, unsigned flags);
2015-09-06 00:56:57 +00:00
2015-06-16 00:15:32 +00:00
#ifdef __cplusplus
}
#endif
#endif