RetroArch
Macros | Enumerations | Functions
menu_setting.h File Reference
#include <stdint.h>
#include <stdlib.h>
#include <boolean.h>
#include <retro_common_api.h>
#include <lists/file_list.h>
#include "../setting_list.h"
Include dependency graph for menu_setting.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SL_FLAG_SETTINGS_GROUP_ALL   (SL_FLAG_SETTINGS_ALL - SL_FLAG_MAIN_MENU)
 

Enumerations

enum  menu_setting_ctl_state { MENU_SETTING_CTL_NONE = 0, MENU_SETTING_CTL_NEW, MENU_SETTING_CTL_IS_OF_PATH_TYPE, MENU_SETTING_CTL_ACTION_RIGHT }
 
enum  setting_list_flags {
  SL_FLAG_MAIN_MENU = (1 << 0), SL_FLAG_SETTINGS = (1 << 1), SL_FLAG_SETTINGS_DRIVER_OPTIONS = (1 << 2), SL_FLAG_SETTINGS_CORE_OPTIONS = (1 << 3),
  SL_FLAG_SETTINGS_CONFIGURATION_OPTIONS = (1 << 4), SL_FLAG_SETTINGS_REWIND_OPTIONS = (1 << 5), SL_FLAG_SETTINGS_VIDEO_OPTIONS = (1 << 6), SL_FLAG_SETTINGS_SHADER_OPTIONS = (1 << 7),
  SL_FLAG_SETTINGS_FONT_OPTIONS = (1 << 8), SL_FLAG_SETTINGS_AUDIO_OPTIONS = (1 << 9), SL_FLAG_SETTINGS_INPUT_OPTIONS = (1 << 10), SL_FLAG_SETTINGS_INPUT_HOTKEY_OPTIONS = (1 << 11),
  SL_FLAG_SETTINGS_OVERLAY_OPTIONS = (1 << 12), SL_FLAG_SETTINGS_MENU_OPTIONS = (1 << 13), SL_FLAG_SETTINGS_MULTIMEDIA_OPTIONS = (1 << 14), SL_FLAG_SETTINGS_UI_OPTIONS = (1 << 15),
  SL_FLAG_SETTINGS_CHEEVOS_OPTIONS = (1 << 16), SL_FLAG_SETTINGS_CORE_UPDATER_OPTIONS = (1 << 17), SL_FLAG_SETTINGS_NETPLAY_OPTIONS = (1 << 18), SL_FLAG_SETTINGS_USER_OPTIONS = (1 << 19),
  SL_FLAG_SETTINGS_DIRECTORY_OPTIONS = (1 << 20), SL_FLAG_SETTINGS_PRIVACY_OPTIONS = (1 << 21), SL_FLAG_SETTINGS_PLAYLIST_OPTIONS = (1 << 22), SL_FLAG_SETTINGS_MENU_BROWSER_OPTIONS = (1 << 23),
  SL_FLAG_SETTINGS_PATCH_OPTIONS = (1 << 24), SL_FLAG_SETTINGS_RECORDING_OPTIONS = (1 << 25), SL_FLAG_SETTINGS_FRAME_THROTTLE_OPTIONS = (1 << 26), SL_FLAG_SETTINGS_LOGGING_OPTIONS = (1 << 27),
  SL_FLAG_SETTINGS_SAVING_OPTIONS = (1 << 28), SL_FLAG_SETTINGS_SUB_ACCOUNTS_OPTIONS = (1 << 29), SL_FLAG_SETTINGS_ALL = (1 << 30)
}
 

Functions

int menu_setting_generic (rarch_setting_t *setting, bool wraparound)
 
int menu_setting_set_flags (rarch_setting_t *setting)
 
int menu_setting_set (unsigned type, unsigned action, bool wraparound)
 
).

Returns: pointer to setting if found, NULL otherwise.

rarch_setting_tmenu_setting_find (const char *label)
 
rarch_setting_tmenu_setting_find_enum (enum msg_hash_enums enum_idx)
 
void menu_setting_get_string_representation (rarch_setting_t *setting, char *s, size_t len)
 
void menu_setting_get_label (file_list_t *list, char *s, size_t len, unsigned *w, unsigned type, const char *menu_label, const char *label, unsigned idx)
 
int menu_action_handle_setting (rarch_setting_t *setting, unsigned type, unsigned action, bool wraparound)
 
enum setting_type menu_setting_get_browser_selection_type (rarch_setting_t *setting)
 
voidsetting_get_ptr (rarch_setting_t *setting)
 
void general_write_handler (rarch_setting_t *setting)
 
void general_read_handler (rarch_setting_t *setting)
 
void menu_settings_list_current_add_cmd (rarch_setting_t **list, rarch_setting_info_t *list_info, enum event_command values)
 
void menu_settings_list_current_add_range (rarch_setting_t **list, rarch_setting_info_t *list_info, float min, float max, float step, bool enforce_minrange_enable, bool enforce_maxrange_enable)
 
void settings_data_list_current_add_flags (rarch_setting_t **list, rarch_setting_info_t *list_info, unsigned values)
 
void settings_data_list_current_add_free_flags (rarch_setting_t **list, rarch_setting_info_t *list_info, unsigned values)
 
void menu_settings_list_current_add_enum_idx (rarch_setting_t **list, rarch_setting_info_t *list_info, enum msg_hash_enums enum_idx)
 
void menu_settings_list_current_add_enum_value_idx (rarch_setting_t **list, rarch_setting_info_t *list_info, enum msg_hash_enums enum_idx)
 
void menu_setting_free (rarch_setting_t *setting)
 
bool settings_list_append (rarch_setting_t **list, rarch_setting_info_t *list_info)
 
bool menu_setting_ctl (enum menu_setting_ctl_state state, void *data)
 

Macro Definition Documentation

◆ SL_FLAG_SETTINGS_GROUP_ALL

#define SL_FLAG_SETTINGS_GROUP_ALL   (SL_FLAG_SETTINGS_ALL - SL_FLAG_MAIN_MENU)

Enumeration Type Documentation

◆ menu_setting_ctl_state

Enumerator
MENU_SETTING_CTL_NONE 
MENU_SETTING_CTL_NEW 
MENU_SETTING_CTL_IS_OF_PATH_TYPE 
MENU_SETTING_CTL_ACTION_RIGHT 

◆ setting_list_flags

Enumerator
SL_FLAG_MAIN_MENU 
SL_FLAG_SETTINGS 
SL_FLAG_SETTINGS_DRIVER_OPTIONS 
SL_FLAG_SETTINGS_CORE_OPTIONS 
SL_FLAG_SETTINGS_CONFIGURATION_OPTIONS 
SL_FLAG_SETTINGS_REWIND_OPTIONS 
SL_FLAG_SETTINGS_VIDEO_OPTIONS 
SL_FLAG_SETTINGS_SHADER_OPTIONS 
SL_FLAG_SETTINGS_FONT_OPTIONS 
SL_FLAG_SETTINGS_AUDIO_OPTIONS 
SL_FLAG_SETTINGS_INPUT_OPTIONS 
SL_FLAG_SETTINGS_INPUT_HOTKEY_OPTIONS 
SL_FLAG_SETTINGS_OVERLAY_OPTIONS 
SL_FLAG_SETTINGS_MENU_OPTIONS 
SL_FLAG_SETTINGS_MULTIMEDIA_OPTIONS 
SL_FLAG_SETTINGS_UI_OPTIONS 
SL_FLAG_SETTINGS_CHEEVOS_OPTIONS 
SL_FLAG_SETTINGS_CORE_UPDATER_OPTIONS 
SL_FLAG_SETTINGS_NETPLAY_OPTIONS 
SL_FLAG_SETTINGS_USER_OPTIONS 
SL_FLAG_SETTINGS_DIRECTORY_OPTIONS 
SL_FLAG_SETTINGS_PRIVACY_OPTIONS 
SL_FLAG_SETTINGS_PLAYLIST_OPTIONS 
SL_FLAG_SETTINGS_MENU_BROWSER_OPTIONS 
SL_FLAG_SETTINGS_PATCH_OPTIONS 
SL_FLAG_SETTINGS_RECORDING_OPTIONS 
SL_FLAG_SETTINGS_FRAME_THROTTLE_OPTIONS 
SL_FLAG_SETTINGS_LOGGING_OPTIONS 
SL_FLAG_SETTINGS_SAVING_OPTIONS 
SL_FLAG_SETTINGS_SUB_ACCOUNTS_OPTIONS 
SL_FLAG_SETTINGS_ALL 

Function Documentation

◆ general_read_handler()

void general_read_handler ( rarch_setting_t setting)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ general_write_handler()

void general_write_handler ( rarch_setting_t setting)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ menu_action_handle_setting()

int menu_action_handle_setting ( rarch_setting_t setting,
unsigned  type,
unsigned  action,
bool  wraparound 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ menu_setting_ctl()

bool menu_setting_ctl ( enum menu_setting_ctl_state  state,
void data 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ menu_setting_find()

rarch_setting_t* menu_setting_find ( const char *  label)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ menu_setting_find_enum()

rarch_setting_t* menu_setting_find_enum ( enum msg_hash_enums  enum_idx)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ menu_setting_free()

void menu_setting_free ( rarch_setting_t setting)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ menu_setting_generic()

int menu_setting_generic ( rarch_setting_t setting,
bool  wraparound 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ menu_setting_get_browser_selection_type()

enum setting_type menu_setting_get_browser_selection_type ( rarch_setting_t setting)
Here is the caller graph for this function:

◆ menu_setting_get_label()

void menu_setting_get_label ( file_list_t list,
char *  s,
size_t  len,
unsigned *  w,
unsigned  type,
const char *  menu_label,
const char *  label,
unsigned  idx 
)

menu_setting_get_label: : File list on which to perform the search : String for the type to be represented on-screen as a label. : Size of . : Width of the string (for text label representation purposes in the menu display driver). : Identifier of setting. : Menu Label identifier of setting. : Label identifier of setting. : Index identifier of setting.

Get associated label of a setting.

menu_setting_get_label: : File list on which to perform the search : String for the type to be represented on-screen as a label. : Size of : Width of the string (for text label representation purposes in the menu display driver). : Identifier of setting. : Menu Label identifier of setting. : Label identifier of setting. : Index identifier of setting.

Get associated label of a setting.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ menu_setting_get_string_representation()

void menu_setting_get_string_representation ( rarch_setting_t setting,
char *  s,
size_t  len 
)

setting_get_string_representation: : pointer to setting : buffer to write contents of string representation to. : size of the buffer ()

Get a setting value's string representation.

◆ menu_setting_set()

int menu_setting_set ( unsigned  type,
unsigned  action,
bool  wraparound 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ menu_setting_set_flags()

int menu_setting_set_flags ( rarch_setting_t setting)
Here is the caller graph for this function:

◆ menu_settings_list_current_add_cmd()

void menu_settings_list_current_add_cmd ( rarch_setting_t **  list,
rarch_setting_info_t list_info,
enum event_command  values 
)
Here is the caller graph for this function:

◆ menu_settings_list_current_add_enum_idx()

void menu_settings_list_current_add_enum_idx ( rarch_setting_t **  list,
rarch_setting_info_t list_info,
enum msg_hash_enums  enum_idx 
)
Here is the caller graph for this function:

◆ menu_settings_list_current_add_enum_value_idx()

void menu_settings_list_current_add_enum_value_idx ( rarch_setting_t **  list,
rarch_setting_info_t list_info,
enum msg_hash_enums  enum_idx 
)
Here is the caller graph for this function:

◆ menu_settings_list_current_add_range()

void menu_settings_list_current_add_range ( rarch_setting_t **  list,
rarch_setting_info_t list_info,
float  min,
float  max,
float  step,
bool  enforce_minrange_enable,
bool  enforce_maxrange_enable 
)
Here is the caller graph for this function:

◆ setting_get_ptr()

void* setting_get_ptr ( rarch_setting_t setting)
Here is the caller graph for this function:

◆ settings_data_list_current_add_flags()

void settings_data_list_current_add_flags ( rarch_setting_t **  list,
rarch_setting_info_t list_info,
unsigned  values 
)
Here is the caller graph for this function:

◆ settings_data_list_current_add_free_flags()

void settings_data_list_current_add_free_flags ( rarch_setting_t **  list,
rarch_setting_info_t list_info,
unsigned  values 
)
Here is the caller graph for this function:

◆ settings_list_append()

bool settings_list_append ( rarch_setting_t **  list,
rarch_setting_info_t list_info 
)
Here is the caller graph for this function: