41 kpt = MEM_new<wmKeyConfigPref>(__func__);
45 if (kpt->
prop ==
nullptr) {
65 wmKeyConfigPrefType_Runtime *kpt_rt;
67 kpt_rt =
static_cast<wmKeyConfigPrefType_Runtime *
>(
74 printf(
"search for unknown keyconfig-pref '%s'\n", idname);
79 printf(
"search for empty keyconfig-pref\n");
130 MEM_delete(kmi->
ptr);
153 kmdi_next = kmdi->next;
157 if (kmdi->add_item) {
158 if (filter_fn(kmdi->add_item, user_data)) {
165 if (kmdi->remove_item) {
166 if (filter_fn(kmdi->remove_item, user_data)) {
180 for (
wmKeyMapItem *kmi = keymap->
items.first(), *kmi_next; kmi; kmi = kmi_next) {
181 kmi_next = kmi->
next;
182 if (filter_fn(kmi, user_data)) {
#define IDP_int_set(prop, value)
These structs are the foundation for all linked lists in the library system.
#define WM_KEYCONFIG_STR_DEFAULT
Read Blender memory allocation and freeing.
std::unique_ptr< IDProperty, IDPropertyDeleter > create(StringRef prop_name, int32_t value, eIDPropertyFlag flags={})
Allocate a new IDProperty of type IDP_INT, set its name and value.
std::unique_ptr< IDProperty, IDPropertyDeleter > create_group(StringRef prop_name, eIDPropertyFlag flags={})
Allocate a new IDProperty of type IDP_GROUP.
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
static void keymap_diff_item_free(wmKeyMapDiffItem *kmdi)
char * STRNCPY(char(&dst)[N], const char *src)
GHash * BLI_ghash_str_new(const char *info) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT
void * BLI_ghash_lookup(const GHash *gh, const void *key) ATTR_WARN_UNUSED_RESULT
bool IDP_AddToGroup(IDProperty *group, IDProperty *prop) ATTR_NONNULL()
IDProperty * IDP_GetPropertyFromGroup(const IDProperty *prop, StringRef name) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
void * BLI_findstring(const ListBase *listbase, const char *id, int offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
void MEM_delete_void(void *vmemh)
void BLI_ghash_insert(GHash *gh, void *key, void *val)
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)
static void keymap_item_free(wmKeyMapItem *kmi)
void BLI_ghash_free(GHash *gh, GHashKeyFreeFP keyfreefp, GHashValFreeFP valfreefp)
void BKE_keyconfig_pref_set_select_mouse(struct UserDef *userdef, int value, bool override)
void BLI_remlink(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void BKE_keyconfig_pref_type_init()
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)
void BKE_keyconfig_pref_type_remove(const struct wmKeyConfigPrefType_Runtime *kpt_rt)
static GHash * global_keyconfigpreftype_hash
void BLI_addtail(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void IDP_FreeProperty(IDProperty *prop)
bool BLI_ghash_remove(GHash *gh, const void *key, GHashKeyFreeFP keyfreefp, GHashValFreeFP valfreefp)
struct wmKeyConfigPref * BKE_keyconfig_pref_ensure(struct UserDef *userdef, const char *kc_idname)
void BKE_keyconfig_pref_type_free()
void BKE_keyconfig_pref_type_add(struct wmKeyConfigPrefType_Runtime *kpt_rt)
struct wmKeyConfigPrefType_Runtime * BKE_keyconfig_pref_type_find(const char *idname, bool quiet)
ListBaseT< struct wmKeyMap > user_keymaps
ListBaseT< struct wmKeyConfigPref > user_keyconfig_prefs
uint check_diff_item_remove
wmKeyMapItem * remove_item
struct wmKeyMapItem * next
ListBaseT< wmKeyMapDiffItem > diff_items
ListBaseT< wmKeyMapItem > items