|
Blender V5.0
|
#include "BLI_sys_types.h"Go to the source code of this file.
Classes | |
| struct | wmKeyConfigFilterItemParams |
Macros | |
| #define | WM_KEY_CONFIG_FILTER_ITEM_ALL {true, true, true} |
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) |
Use when all items should be manipulated.
Definition at line 58 of file BKE_keyconfig.h.
Referenced by blo_do_versions_userdef().
Actual data is stored in wmKeyConfigPref.
Definition at line 29 of file BKE_keyconfig.h.
| 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 ) |
References params.
| struct wmKeyConfigPref * BKE_keyconfig_pref_ensure | ( | struct UserDef * | userdef, |
| const char * | kc_idname ) |
Definition at line 34 of file keyconfig.cc.
References BLI_addtail(), BLI_findstring(), blender::bke::idprop::create_group(), wmKeyConfigPref::idname, MEM_callocN(), offsetof, 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(* | filter_fn )(struct wmKeyMapItem *kmi, void *user_data), | ||
| void * | user_data ) |
Filter & optionally remove key-map items, intended for versioning, but may be used in other situations too.
References params.
Referenced by blo_do_versions_userdef().
| void BKE_keyconfig_pref_set_select_mouse | ( | struct UserDef * | userdef, |
| int | value, | ||
| bool | override ) |
Set select mouse, for versioning code.
Definition at line 112 of file keyconfig.cc.
References BKE_keyconfig_pref_ensure(), blender::bke::idprop::create(), IDP_AddToGroup(), IDP_GetPropertyFromGroup(), IDP_int_set, 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 84 of file keyconfig.cc.
References BLI_ghash_insert(), and global_keyconfigpreftype_hash.
| struct wmKeyConfigPrefType_Runtime * BKE_keyconfig_pref_type_find | ( | const char * | idname, |
| bool | quiet ) |
Definition at line 60 of file keyconfig.cc.
References BLI_ghash_lookup(), global_keyconfigpreftype_hash, and printf.
| void BKE_keyconfig_pref_type_free | ( | void | ) |
Definition at line 100 of file keyconfig.cc.
References BLI_ghash_free(), global_keyconfigpreftype_hash, and MEM_freeN().
Referenced by WM_exit_ex().
| void BKE_keyconfig_pref_type_init | ( | void | ) |
Definition at line 94 of file keyconfig.cc.
References BLI_assert, BLI_ghash_str_new(), and global_keyconfigpreftype_hash.
Referenced by WM_init().
| void BKE_keyconfig_pref_type_remove | ( | const struct wmKeyConfigPrefType_Runtime * | kpt_rt | ) |