.. index:: pair: class; EE::UI::UICommandBindingSet .. _doxid-class_e_e_1_1_u_i_1_1_u_i_command_binding_set: template class EE::UI::UICommandBindingSet ========================================== .. toctree:: :hidden: Overview ~~~~~~~~ Owns a command together with its primary widget and shortcut bindings. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include template class UICommandBindingSet { public: // construction :ref:`UICommandBindingSet`(std::function execute, :ref:`UIWidget`& widget, ShortcutTarget& shortcutTarget, const :ref:`KeyBindings::Shortcut`& shortcut); template :ref:`UICommandBindingSet`(std::function execute, Source& enabled, :ref:`UIWidget`& widget, ShortcutTarget& shortcutTarget, const :ref:`KeyBindings::Shortcut`& shortcut); :target:`UICommandBindingSet`(const UICommandBindingSet&); :target:`UICommandBindingSet`(UICommandBindingSet&&); // methods UICommandBindingSet& :target:`operator=`(const UICommandBindingSet&); UICommandBindingSet& :target:`operator=`(UICommandBindingSet&&); :ref:`UICommand`& :ref:`command`(); const :ref:`UICommand`& :ref:`command`() const; }; .. _details-class_e_e_1_1_u_i_1_1_u_i_command_binding_set: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Owns a command together with its primary widget and shortcut bindings. This is the concise form for the common case where an action is exposed by one clickable widget and one default shortcut. Keep the returned object alive for as long as both bindings are needed. Construction ------------ .. index:: pair: function; UICommandBindingSet .. _doxid-class_e_e_1_1_u_i_1_1_u_i_command_binding_set_1ad83bf69baf81c236eae00155d1561783: .. ref-code-block:: cpp :class: doxyrest-title-code-block UICommandBindingSet(std::function execute, :ref:`UIWidget`& widget, ShortcutTarget& shortcutTarget, const :ref:`KeyBindings::Shortcut`& shortcut) Creates an always-enabled command with widget and shortcut endpoints. .. index:: pair: function; UICommandBindingSet .. _doxid-class_e_e_1_1_u_i_1_1_u_i_command_binding_set_1a830cb88e8dc033449c16623376d8a05a: .. ref-code-block:: cpp :class: doxyrest-title-code-block template UICommandBindingSet(std::function execute, Source& enabled, :ref:`UIWidget`& widget, ShortcutTarget& shortcutTarget, const :ref:`KeyBindings::Shortcut`& shortcut) Creates a command following ``enabled`` with widget and shortcut endpoints. Methods ------- .. index:: pair: function; command .. _doxid-class_e_e_1_1_u_i_1_1_u_i_command_binding_set_1a7c7588973dee22d8ca82175a71199e3c: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`UICommand`& command() .. rubric:: Returns: The owned command for explicit execution or additional endpoint bindings. .. index:: pair: function; command .. _doxid-class_e_e_1_1_u_i_1_1_u_i_command_binding_set_1a0cf898288b1d1759a1114c033fc5f688: .. ref-code-block:: cpp :class: doxyrest-title-code-block const :ref:`UICommand`& command() const .. rubric:: Returns: The owned command.