yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
shortcut_manager.h File Reference
#include <functional>
#include <optional>
#include <string>
#include <unordered_map>
#include <utility>
#include <vector>
#include "absl/strings/string_view.h"
#include "imgui/imgui.h"

Go to the source code of this file.

Classes

struct  yaze::editor::Shortcut
 
class  yaze::editor::ShortcutManager
 

Namespaces

namespace  yaze
 
namespace  yaze::editor
 Editors are the view controllers for the application.
 

Macros

#define IMGUI_DEFINE_MATH_OPERATORS
 

Functions

std::vector< ImGuiKey > yaze::editor::ParseShortcut (const std::string &shortcut)
 
std::string yaze::editor::PrintShortcut (const std::vector< ImGuiKey > &keys)
 
std::string yaze::editor::InferShortcutGroup (absl::string_view name)
 Menu-IA group for a shortcut/command name (File, View, Drawers, …).
 
bool yaze::editor::SameChord (const std::vector< ImGuiKey > &a, const std::vector< ImGuiKey > &b)
 True when two key lists describe the same chord (order-insensitive).
 
void yaze::editor::ExecuteShortcuts (const ShortcutManager &shortcut_manager)
 Fire at most one shortcut for this frame's key press.
 

Macro Definition Documentation

◆ IMGUI_DEFINE_MATH_OPERATORS

#define IMGUI_DEFINE_MATH_OPERATORS

Definition at line 15 of file shortcut_manager.h.