yaze
0.3.2
Link to the Past ROM Editor
Loading...
Searching...
No Matches
menu_shortcut_labels.cc
Go to the documentation of this file.
1
#include "
app/editor/menu/menu_shortcut_labels.h
"
2
3
#include <string>
4
5
#include "
app/editor/system/commands/shortcut_manager.h
"
6
7
namespace
yaze
{
8
namespace
editor {
9
10
std::string
ShortcutLabelForAction
(
const
ShortcutManager
* shortcut_manager,
11
absl::string_view action) {
12
if
(shortcut_manager ==
nullptr
|| action.empty()) {
13
return
""
;
14
}
15
return
shortcut_manager->
GetDisplayString
(std::string(action));
16
}
17
18
}
// namespace editor
19
}
// namespace yaze
yaze::editor::ShortcutManager
Definition
shortcut_manager.h:52
yaze::editor::ShortcutManager::GetDisplayString
std::string GetDisplayString(const std::string &name) const
Live, platform-formatted binding for a shortcut name.
Definition
shortcut_manager.cc:505
shortcut_manager.h
menu_shortcut_labels.h
yaze::editor::ShortcutLabelForAction
std::string ShortcutLabelForAction(const ShortcutManager *shortcut_manager, absl::string_view action)
Definition
menu_shortcut_labels.cc:10
yaze
Definition
patch_export_usage.cc:8
src
app
editor
menu
menu_shortcut_labels.cc
Generated by
1.10.0