|
Blender V5.0
|
#include "BLI_string_ref.hh"#include "BLT_translation.hh"#include "WM_keymap.hh"#include "UI_interface_layout.hh"#include "interface_intern.hh"Go to the source code of this file.
Functions | |
| static const wmKeyMapItem * | keymap_item_from_enum_item (const wmKeyMap *keymap, const EnumPropertyItem *item) |
| static bool | keymap_item_can_collapse (const wmKeyMapItem *kmi_a, const wmKeyMapItem *kmi_b) |
| int | uiTemplateStatusBarModalItem (uiLayout *layout, const wmKeyMap *keymap, const EnumPropertyItem *item) |
| bool | uiTemplateEventFromKeymapItem (uiLayout *layout, const StringRefNull text, const wmKeyMapItem *kmi, bool text_fallback) |
|
static |
Definition at line 37 of file interface_template_event.cc.
References wmKeyMapItem::alt, wmKeyMapItem::ctrl, wmKeyMapItem::hyper, wmKeyMapItem::oskey, and wmKeyMapItem::shift.
Referenced by uiTemplateStatusBarModalItem().
|
static |
Definition at line 20 of file interface_template_event.cc.
References ListBase::first, wmKeyMap::items, wmKeyMapItem::next, and EnumPropertyItem::value.
Referenced by uiTemplateStatusBarModalItem().
| bool uiTemplateEventFromKeymapItem | ( | uiLayout * | layout, |
| const StringRefNull | text, | ||
| const wmKeyMapItem * | kmi, | ||
| bool | text_fallback ) |
Definition at line 164 of file interface_template_event.cc.
References ARRAY_SIZE, BLT_I18NCONTEXT_ID_WINDOWMANAGER, blender::StringRefNull::c_str(), CTX_IFACE_, KM_MOD_NUM, uiLayout::label(), uiLayout::separator(), wmKeyMapItem::type, ui_event_icon_offset(), UI_icon_from_keymap_item(), and WM_key_event_string().
Referenced by uiTemplateStatusBarModalItem().
| int uiTemplateStatusBarModalItem | ( | uiLayout * | layout, |
| const wmKeyMap * | keymap, | ||
| const EnumPropertyItem * | item ) |
Definition at line 43 of file interface_template_event.cc.
References ARRAY_SIZE, EnumPropertyItem::identifier, IFACE_, ISKEYBOARD, keymap_item_can_collapse(), keymap_item_from_enum_item(), KM_MOD_NUM, KM_RELEASE, uiLayout::label(), EnumPropertyItem::name, uiLayout::separator(), STREQ, wmKeyMapItem::type, ui_event_icon_offset(), UI_icon_from_keymap_item(), uiTemplateEventFromKeymapItem(), and wmKeyMapItem::val.
Referenced by WM_window_modal_keymap_status_draw().