#[repr(C)]pub struct retro_core_option_v2_definition {
pub key: *const i8,
pub desc: *const i8,
pub desc_categorized: *const i8,
pub info: *const i8,
pub info_categorized: *const i8,
pub category_key: *const i8,
pub values: [retro_core_option_value; 128],
pub default_value: *const i8,
}Fields§
§key: *const i8Variable to query in RETRO_ENVIRONMENT_GET_VARIABLE. Valid key characters are [a-z, A-Z, 0-9, _, -]
desc: *const i8Human-readable core option description
Used as menu label when frontend does not have core option category support e.g. “Video > Aspect Ratio”
desc_categorized: *const i8Human-readable core option description
Used as menu label when frontend has core option category support e.g. “Aspect Ratio”, where associated retro_core_option_v2_category::desc is “Video” If empty or NULL, the string specified by desc will be used as the menu label Will be ignored (and may be set to NULL) if category_key is empty or NULL
info: *const i8Human-readable core option information
Used as menu sublabel
info_categorized: *const i8Human-readable core option information
Used as menu sublabel when frontend has core option category support (e.g. may be required when info text references an option by name/desc, and the desc/desc_categorized text for that option differ) If empty or NULL, the string specified by info will be used as the menu sublabel Will be ignored (and may be set to NULL) if category_key is empty or NULL
category_key: *const i8Variable specifying category (e.g. “video”, “audio”) that will be assigned to the option if frontend has core option category support.
Categorized options will be displayed in a subsection/submenu of the frontend core option interface Specified string must match one of the retro_core_option_v2_category::key values in the associated retro_core_option_v2_category array; If no match is not found, specified string will be considered as NULL If specified string is empty or NULL, option will have no category and will be shown at the top level of the frontend core option interface
values: [retro_core_option_value; 128]Array of retro_core_option_value structs, terminated by NULL
default_value: *const i8Default core option value. Must match one of the values in the retro_core_option_value array, otherwise will be ignored
Trait Implementations§
Source§impl Clone for retro_core_option_v2_definition
impl Clone for retro_core_option_v2_definition
Source§fn clone(&self) -> retro_core_option_v2_definition
fn clone(&self) -> retro_core_option_v2_definition
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more