.. index:: pair: class; EE::UI::MouseBindings .. _doxid-class_e_e_1_1_u_i_1_1_mouse_bindings: class EE::UI::MouseBindings =========================== .. toctree:: :hidden: struct_EE_UI_MouseBindings_Shortcut.rst struct_EE_UI_MouseBindings_ShortcutHash.rst Overview ~~~~~~~~ .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class MouseBindings { public: // typedefs typedef std::unordered_map<:ref:`Shortcut`, std::string, :ref:`ShortcutHash`> :target:`ShortcutMap`; // structs struct :ref:`Shortcut`; struct :ref:`ShortcutHash`; // methods static std::string :target:`mouseActionToString`(:ref:`MouseAction` action); static :ref:`MouseAction` :target:`mouseActionFromString`(std::string_view action); static :ref:`MouseButtonsMask` :target:`getMouseButtonsMask`(const std::string& str); static std::string :target:`getMouseButtonsName`(:ref:`MouseButtonsMask` mask); static :ref:`MouseBindings::Shortcut` :target:`sanitizeShortcut`(const :ref:`MouseBindings::Shortcut`& shortcut); static std::string :target:`mousebindFormat`(std::string str); static :ref:`Shortcut` :target:`toShortcut`(const std::string& keys); static std::string :target:`fromShortcut`(:ref:`MouseBindings::Shortcut` shortcut, bool format = false); void :target:`addMousebindsString`(const std::unordered_map& binds); void :target:`addMousebinds`(const :ref:`ShortcutMap`& binds); void :target:`addMousebindString`(const std::string& key, const std::string& command); void :target:`addMousebind`(const :ref:`Shortcut`& key, const std::string& command); void :ref:`replaceMousebindString`(const std::string& keys, const std::string& command); void :ref:`replaceMousebind`(const :ref:`Shortcut`& keys, const std::string& command); :ref:`Shortcut` :target:`getShortcutFromString`(const std::string& keys); void :target:`removeMousebind`(const :ref:`Shortcut`& keys); void :target:`removeMousebind`(const std::string& kb); bool :target:`existsMousebind`(const :ref:`Shortcut`& keys); bool :target:`hasCommand`(const std::string& command); void :target:`removeCommandMousebind`(const std::string& command); void :target:`removeCommandsMousebind`(const std::vector& command); std::string :target:`getCommandFromMousebind`(const :ref:`Shortcut`& keys); std::string :target:`getCommandMousebindString`(const std::string& command) const; void :target:`reset`(); const :ref:`ShortcutMap`& :target:`getShortcutMap`() const; const std::unordered_map`>& :target:`getMousebindings`() const; :ref:`Shortcut` :target:`getShortcutFromCommand`(const std::string& cmd) const; std::string :target:`getShortcutString`(:ref:`Shortcut` shortcut, bool format = false) const; }; .. _details-class_e_e_1_1_u_i_1_1_mouse_bindings: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Methods ------- .. index:: pair: function; replaceMousebindString .. _doxid-class_e_e_1_1_u_i_1_1_mouse_bindings_1a9f055e549a3fbeeff958db5a81ed9028: .. ref-code-block:: cpp :class: doxyrest-title-code-block void replaceMousebindString(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; replaceMousebind .. _doxid-class_e_e_1_1_u_i_1_1_mouse_bindings_1a77809de13f6e9289f2c14fe69695d4e4: .. ref-code-block:: cpp :class: doxyrest-title-code-block void replaceMousebind(const :ref:`Shortcut`& keys, const std::string& command) If the command is already on the list, it will remove the previous keybind.