Blender V5.0
BKE_keyconfig.h File Reference
#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 wmKeyConfigPrefBKE_keyconfig_pref_ensure (struct UserDef *userdef, const char *kc_idname)
struct wmKeyConfigPrefType_RuntimeBKE_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)

Macro Definition Documentation

◆ WM_KEY_CONFIG_FILTER_ITEM_ALL

#define WM_KEY_CONFIG_FILTER_ITEM_ALL   {true, true, true}

Use when all items should be manipulated.

Definition at line 58 of file BKE_keyconfig.h.

Referenced by blo_do_versions_userdef().

Typedef Documentation

◆ wmKeyConfigPrefType_Runtime

Actual data is stored in wmKeyConfigPref.

Definition at line 29 of file BKE_keyconfig.h.

Function Documentation

◆ BKE_keyconfig_keymap_filter_item()

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.

◆ BKE_keyconfig_pref_ensure()

struct wmKeyConfigPref * BKE_keyconfig_pref_ensure ( struct UserDef * userdef,
const char * kc_idname )

◆ BKE_keyconfig_pref_filter_items()

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().

◆ BKE_keyconfig_pref_set_select_mouse()

void BKE_keyconfig_pref_set_select_mouse ( struct UserDef * userdef,
int value,
bool override )

◆ BKE_keyconfig_pref_type_add()

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.

◆ BKE_keyconfig_pref_type_find()

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.

◆ BKE_keyconfig_pref_type_free()

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().

◆ BKE_keyconfig_pref_type_init()

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().

◆ BKE_keyconfig_pref_type_remove()

void BKE_keyconfig_pref_type_remove ( const struct wmKeyConfigPrefType_Runtime * kpt_rt)