.. index:: pair: class; EE::UI::UICommandBinding .. _doxid-class_e_e_1_1_u_i_1_1_u_i_command_binding: class EE::UI::UICommandBinding ============================== .. toctree:: :hidden: struct_EE_UI_UICommandBinding_BindingState.rst Overview ~~~~~~~~ Scoped synchronization of a command with one widget endpoint. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class UICommandBinding { public: // structs struct :ref:`BindingState`; // construction :target:`UICommandBinding`(); :ref:`UICommandBinding`(:ref:`UICommand`& command, :ref:`UIWidget`& widget); :target:`UICommandBinding`(const UICommandBinding&); :target:`UICommandBinding`(UICommandBinding&&); // methods UICommandBinding& :target:`operator=`(const UICommandBinding&); UICommandBinding& :target:`operator=`(UICommandBinding&&); }; .. _details-class_e_e_1_1_u_i_1_1_u_i_command_binding: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Scoped synchronization of a command with one widget endpoint. Construction ------------ .. index:: pair: function; UICommandBinding .. _doxid-class_e_e_1_1_u_i_1_1_u_i_command_binding_1a6b39fb85094220cff9abd3ec73062157: .. ref-code-block:: cpp :class: doxyrest-title-code-block UICommandBinding(:ref:`UICommand`& command, :ref:`UIWidget`& widget) Binds ``widget`` clicks and enabled state to ``command``. Keep this object alive while the endpoint should remain active. The widget is not retained.