Blender V2.61 - r43446
Functions

WM_keymap.h File Reference

#include "DNA_windowmanager_types.h"

Go to the source code of this file.

Functions

wmKeyConfigWM_keyconfig_new (struct wmWindowManager *wm, const char *idname)
wmKeyConfigWM_keyconfig_new_user (struct wmWindowManager *wm, const char *idname)
void WM_keyconfig_remove (struct wmWindowManager *wm, struct wmKeyConfig *keyconf)
void WM_keyconfig_free (struct wmKeyConfig *keyconf)
void WM_keyconfig_set_active (struct wmWindowManager *wm, const char *idname)
void WM_keyconfig_update (struct wmWindowManager *wm)
void WM_keyconfig_update_tag (struct wmKeyMap *keymap, struct wmKeyMapItem *kmi)
void WM_keymap_init (struct bContext *C)
void WM_keymap_free (struct wmKeyMap *keymap)
wmKeyMapItemWM_keymap_verify_item (struct wmKeyMap *keymap, const char *idname, int type, int val, int modifier, int keymodifier)
wmKeyMapItemWM_keymap_add_item (struct wmKeyMap *keymap, const char *idname, int type, int val, int modifier, int keymodifier)
wmKeyMapItemWM_keymap_add_menu (struct wmKeyMap *keymap, const char *idname, int type, int val, int modifier, int keymodifier)
void WM_keymap_remove_item (struct wmKeyMap *keymap, struct wmKeyMapItem *kmi)
char * WM_keymap_item_to_string (wmKeyMapItem *kmi, char *str, int len)
wmKeyMapWM_keymap_list_find (ListBase *lb, const char *idname, int spaceid, int regionid)
wmKeyMapWM_keymap_find (struct wmKeyConfig *keyconf, const char *idname, int spaceid, int regionid)
wmKeyMapWM_keymap_find_all (const struct bContext *C, const char *idname, int spaceid, int regionid)
wmKeyMapWM_keymap_active (struct wmWindowManager *wm, struct wmKeyMap *keymap)
wmKeyMapWM_keymap_guess_opname (const struct bContext *C, const char *opname)
wmKeyMapItemWM_keymap_item_find_id (struct wmKeyMap *keymap, int id)
int WM_keymap_item_compare (struct wmKeyMapItem *k1, struct wmKeyMapItem *k2)
wmKeyMapWM_modalkeymap_add (struct wmKeyConfig *keyconf, const char *idname, struct EnumPropertyItem *items)
wmKeyMapWM_modalkeymap_get (struct wmKeyConfig *keyconf, const char *idname)
wmKeyMapItemWM_modalkeymap_add_item (struct wmKeyMap *km, int type, int val, int modifier, int keymodifier, int value)
void WM_modalkeymap_assign (struct wmKeyMap *km, const char *opname)
void WM_keymap_restore_to_default (struct wmKeyMap *keymap, struct bContext *C)
void WM_keymap_properties_reset (struct wmKeyMapItem *kmi, struct IDProperty *properties)
void WM_keymap_restore_item_to_default (struct bContext *C, struct wmKeyMap *keymap, struct wmKeyMapItem *kmi)
const char * WM_key_event_string (short type)
int WM_key_event_operator_id (const struct bContext *C, const char *opname, int opcontext, struct IDProperty *properties, int hotkey, struct wmKeyMap **keymap_r)
char * WM_key_event_operator_string (const struct bContext *C, const char *opname, int opcontext, struct IDProperty *properties, const short sloppy, char *str, int len)

Detailed Description

Definition in file WM_keymap.h.


Function Documentation

int WM_key_event_operator_id ( const struct bContext C,
const char *  opname,
int  opcontext,
struct IDProperty properties,
int  hotkey,
struct wmKeyMap **  keymap_r 
)
char* WM_key_event_operator_string ( const struct bContext C,
const char *  opname,
int  opcontext,
struct IDProperty properties,
const short  sloppy,
char *  str,
int  len 
)
const char* WM_key_event_string ( short  type)
void WM_keyconfig_free ( struct wmKeyConfig keyconf)
wmKeyConfig* WM_keyconfig_new ( struct wmWindowManager wm,
const char *  idname 
)
wmKeyConfig* WM_keyconfig_new_user ( struct wmWindowManager wm,
const char *  idname 
)

Definition at line 182 of file wm_keymap.c.

References wmKeyConfig::flag, KEYCONF_USER, and WM_keyconfig_new().

void WM_keyconfig_remove ( struct wmWindowManager wm,
struct wmKeyConfig keyconf 
)
void WM_keyconfig_set_active ( struct wmWindowManager wm,
const char *  idname 
)
void WM_keyconfig_update ( struct wmWindowManager wm)
void WM_keyconfig_update_tag ( struct wmKeyMap keymap,
struct wmKeyMapItem kmi 
)
wmKeyMap* WM_keymap_active ( struct wmWindowManager wm,
struct wmKeyMap keymap 
)
wmKeyMapItem* WM_keymap_add_item ( struct wmKeyMap keymap,
const char *  idname,
int  type,
int  val,
int  modifier,
int  keymodifier 
)
wmKeyMapItem* WM_keymap_add_menu ( struct wmKeyMap keymap,
const char *  idname,
int  type,
int  val,
int  modifier,
int  keymodifier 
)
wmKeyMap* WM_keymap_find ( struct wmKeyConfig keyconf,
const char *  idname,
int  spaceid,
int  regionid 
)

Definition at line 638 of file wm_keymap.c.

References BLI_addtail(), wmKeyConfig::keymaps, NULL, WM_keyconfig_update_tag(), WM_keymap_list_find(), and wm_keymap_new().

Referenced by action_channel_area_init(), action_keymap(), action_main_area_init(), buttons_keymap(), buttons_main_area_init(), clip_keymap(), clip_main_area_init(), clip_preview_area_init(), clip_properties_area_init(), console_keymap(), console_main_area_init(), ed_default_handlers(), ED_keymap_anim(), ED_keymap_animchannels(), ED_keymap_armature(), ED_keymap_curve(), ED_keymap_gpencil(), ED_keymap_mesh(), ED_keymap_metaball(), ED_keymap_object(), ED_keymap_paint(), ED_keymap_screen(), ED_keymap_uvedit(), ED_marker_keymap(), ED_region_panels_init(), file_channel_area_init(), file_header_area_init(), file_keymap(), file_main_area_init(), file_ui_area_init(), graph_buttons_area_init(), graph_channel_area_init(), graph_main_area_init(), graphedit_keymap(), image_buttons_area_init(), image_keymap(), image_main_area_init(), image_scope_area_init(), info_keymap(), info_main_area_init(), keymap_particle(), logic_buttons_area_init(), logic_keymap(), logic_main_area_init(), nla_buttons_area_init(), nla_channel_area_init(), nla_keymap(), nla_main_area_init(), node_buttons_area_init(), node_keymap(), node_main_area_init(), outliner_keymap(), outliner_main_area_init(), script_keymap(), script_main_area_init(), sequencer_keymap(), sequencer_main_area_init(), sequencer_preview_area_init(), text_keymap(), text_main_area_init(), time_keymap(), time_main_area_init(), UI_view2d_keymap(), view3d_buttons_area_init(), view3d_header_area_init(), view3d_keymap(), view3d_main_area_init(), view3d_tools_area_init(), WM_modalkeymap_add(), wm_window_add_ghostwindows(), and wm_window_keymap().

wmKeyMap* WM_keymap_find_all ( const struct bContext C,
const char *  idname,
int  spaceid,
int  regionid 
)
void WM_keymap_free ( struct wmKeyMap keymap)
wmKeyMap* WM_keymap_guess_opname ( const struct bContext C,
const char *  opname 
)
void WM_keymap_init ( struct bContext C)
int WM_keymap_item_compare ( struct wmKeyMapItem k1,
struct wmKeyMapItem k2 
)
wmKeyMapItem* WM_keymap_item_find_id ( struct wmKeyMap keymap,
int  id 
)
char* WM_keymap_item_to_string ( wmKeyMapItem kmi,
char *  str,
int  len 
)
wmKeyMap* WM_keymap_list_find ( ListBase lb,
const char *  idname,
int  spaceid,
int  regionid 
)
void WM_keymap_properties_reset ( struct wmKeyMapItem kmi,
struct IDProperty properties 
)
void WM_keymap_remove_item ( struct wmKeyMap keymap,
struct wmKeyMapItem kmi 
)
void WM_keymap_restore_item_to_default ( struct bContext C,
struct wmKeyMap keymap,
struct wmKeyMapItem kmi 
)
void WM_keymap_restore_to_default ( struct wmKeyMap keymap,
struct bContext C 
)
wmKeyMapItem* WM_keymap_verify_item ( struct wmKeyMap keymap,
const char *  idname,
int  type,
int  val,
int  modifier,
int  keymodifier 
)
wmKeyMap* WM_modalkeymap_add ( struct wmKeyConfig keyconf,
const char *  idname,
struct EnumPropertyItem items 
)
wmKeyMapItem* WM_modalkeymap_add_item ( struct wmKeyMap km,
int  type,
int  val,
int  modifier,
int  keymodifier,
int  value 
)
void WM_modalkeymap_assign ( struct wmKeyMap km,
const char *  opname 
)
wmKeyMap* WM_modalkeymap_get ( struct wmKeyConfig keyconf,
const char *  idname 
)