.. index:: pair: class; EE::UI::KeyBindings .. _doxid-class_e_e_1_1_u_i_1_1_key_bindings: class EE::UI::KeyBindings ========================= .. toctree:: :hidden: struct_EE_UI_KeyBindings_Shortcut.rst Overview ~~~~~~~~ .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class KeyBindings { public: // structs struct :ref:`Shortcut`; // construction :target:`KeyBindings`(const :ref:`Window::Input`* input); // methods static :ref:`KeyBindings::Shortcut` :target:`sanitizeShortcut`(const :ref:`KeyBindings::Shortcut`& shortcut); static std::string :target:`keybindFormat`(std::string str); void :target:`addKeybindsString`(const std::map& binds); void :target:`addKeybinds`(const std::map<:ref:`Shortcut`, std::string>& binds); void :target:`addKeybindsStringUnordered`(const std::unordered_map& binds); void :target:`addKeybindsUnordered`(const std::unordered_map<:ref:`Shortcut`, std::string>& binds); void :target:`addKeybindString`(const std::string& key, const std::string& command); void :target:`addKeybind`(const :ref:`Shortcut`& key, const std::string& command); void :ref:`replaceKeybindString`(const std::string& keys, const std::string& command); void :ref:`replaceKeybind`(const :ref:`Shortcut`& keys, const std::string& command); :ref:`Shortcut` :target:`getShortcutFromString`(const std::string& keys); void :target:`removeKeybind`(const :ref:`Shortcut`& keys); bool :target:`existsKeybind`(const :ref:`Shortcut`& keys); void :target:`removeCommandKeybind`(const std::string& command); void :target:`removeCommandsKeybind`(const std::vector& command); std::string :target:`getCommandFromKeyBind`(const :ref:`Shortcut`& keys); std::string :target:`getCommandKeybindString`(const std::string& command) const; void :target:`reset`(); const :ref:`ShortcutMap`& :target:`getShortcutMap`() const; const std::map`> :target:`getKeybindings`() const; std::string :target:`getShortcutString`(:ref:`Shortcut` shortcut, bool format = false) const; }; .. _details-class_e_e_1_1_u_i_1_1_key_bindings: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Methods ------- .. index:: pair: function; replaceKeybindString .. _doxid-class_e_e_1_1_u_i_1_1_key_bindings_1a68865eed17ec20e6dcbb71310031946e: .. ref-code-block:: cpp :class: doxyrest-title-code-block void replaceKeybindString(const std::string& keys, const std::string& command) If the command is already on the list, it will remove the previous keybind. .. index:: pair: function; replaceKeybind .. _doxid-class_e_e_1_1_u_i_1_1_key_bindings_1a92577c620937c0c7998a997af4cc935b: .. ref-code-block:: cpp :class: doxyrest-title-code-block void replaceKeybind(const :ref:`Shortcut`& keys, const std::string& command) If the command is already on the list, it will remove the previous keybind.