Blender
V3.3
|
Go to the source code of this file.
Classes | |
struct | wmKeyConfigFilterItemParams |
Typedefs | |
typedef struct wmKeyConfigPrefType_Runtime | wmKeyConfigPrefType_Runtime |
Functions | |
struct wmKeyConfigPref * | BKE_keyconfig_pref_ensure (struct UserDef *userdef, const char *kc_idname) |
struct wmKeyConfigPrefType_Runtime * | BKE_keyconfig_pref_type_find (const char *idname, bool quiet) |
void | BKE_keyconfig_pref_type_add (struct wmKeyConfigPrefType_Runtime *kpt_rt) |
void | BKE_keyconfig_pref_type_remove (const struct wmKeyConfigPrefType_Runtime *kpt_rt) |
void | BKE_keyconfig_pref_type_init (void) |
void | BKE_keyconfig_pref_type_free (void) |
void | BKE_keyconfig_pref_set_select_mouse (struct UserDef *userdef, int value, bool override) |
void | BKE_keyconfig_keymap_filter_item (struct wmKeyMap *keymap, const struct wmKeyConfigFilterItemParams *params, bool(*filter_fn)(struct wmKeyMapItem *kmi, void *user_data), void *user_data) |
void | BKE_keyconfig_pref_filter_items (struct UserDef *userdef, const struct wmKeyConfigFilterItemParams *params, bool(*filter_fn)(struct wmKeyMapItem *kmi, void *user_data), void *user_data) |
typedef struct wmKeyConfigPrefType_Runtime wmKeyConfigPrefType_Runtime |
Actual data is stored in wmKeyConfigPref.
Definition at line 1 of file BKE_keyconfig.h.
void BKE_keyconfig_keymap_filter_item | ( | struct wmKeyMap * | keymap, |
const struct wmKeyConfigFilterItemParams * | params, | ||
bool(*)(struct wmKeyMapItem *kmi, void *user_data) | filter_fn, | ||
void * | user_data | ||
) |
struct wmKeyConfigPref* BKE_keyconfig_pref_ensure | ( | struct UserDef * | userdef, |
const char * | kc_idname | ||
) |
Definition at line 33 of file keyconfig.c.
References BLI_addtail(), BLI_findstring(), wmKeyConfigPref::idname, IDP_GROUP, IDP_New(), MEM_callocN, NULL, wmKeyConfigPref::prop, STRNCPY, and UserDef::user_keyconfig_prefs.
Referenced by BKE_keyconfig_pref_set_select_mouse().
void BKE_keyconfig_pref_filter_items | ( | struct UserDef * | userdef, |
const struct wmKeyConfigFilterItemParams * | params, | ||
bool(*)(struct wmKeyMapItem *kmi, void *user_data) | filter_fn, | ||
void * | user_data | ||
) |
Filter & optionally remove key-map items, intended for versioning, but may be used in other situations too.
Referenced by blo_do_versions_userdef().
Set select mouse, for versioning code.
Definition at line 110 of file keyconfig.c.
References BKE_keyconfig_pref_ensure(), IDPropertyTemplate::i, IDP_AddToGroup(), IDP_GetPropertyFromGroup(), IDP_Int, IDP_INT, IDP_New(), wmKeyConfigPref::prop, and WM_KEYCONFIG_STR_DEFAULT.
Referenced by blo_do_versions_userdef().
void BKE_keyconfig_pref_type_add | ( | struct wmKeyConfigPrefType_Runtime * | kpt_rt | ) |
Definition at line 82 of file keyconfig.c.
References BLI_ghash_insert(), and global_keyconfigpreftype_hash.
struct wmKeyConfigPrefType_Runtime* BKE_keyconfig_pref_type_find | ( | const char * | idname, |
bool | quiet | ||
) |
Definition at line 59 of file keyconfig.c.
References BLI_ghash_lookup(), global_keyconfigpreftype_hash, and NULL.
Definition at line 98 of file keyconfig.c.
References BLI_ghash_free(), global_keyconfigpreftype_hash, MEM_freeN, and NULL.
Referenced by WM_exit_ex().
Definition at line 92 of file keyconfig.c.
References BLI_assert, BLI_ghash_str_new(), global_keyconfigpreftype_hash, and NULL.
Referenced by WM_init().
void BKE_keyconfig_pref_type_remove | ( | const struct wmKeyConfigPrefType_Runtime * | kpt_rt | ) |