.. index:: pair: class; EE::UI::UIProperty .. _doxid-class_e_e_1_1_u_i_1_1_u_i_property: template class EE::UI::UIProperty ================================= .. toctree:: :hidden: .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include template class UIProperty { public: // construction :target:`UIProperty`(); :target:`UIProperty`(T defaultValue, :ref:`UIWidget`* widget, const typename :ref:`EE::UI::UIDataBind`::Converter& converter = :ref:`EE::UI::UIDataBind`::converterDefault(), const std::string& valueKey = "value", const :ref:`Event::EventType`& eventType = Event::OnValueChange); :target:`UIProperty`(T defaultValue, const std::unordered_set<:ref:`UIWidget`*>& widgets = {}, const typename :ref:`EE::UI::UIDataBind`::Converter& converter = :ref:`EE::UI::UIDataBind`::converterDefault(), const std::string& valueKey = "value", const :ref:`Event::EventType`& eventType = Event::OnValueChange); :target:`UIProperty`(const std::unordered_set<:ref:`UIWidget`*>& widgets = {}, const typename :ref:`EE::UI::UIDataBind`::Converter& converter = :ref:`EE::UI::UIDataBind`::converterDefault(), const std::string& valueKey = "value", const :ref:`Event::EventType`& eventType = Event::OnValueChange); :target:`UIProperty`(:ref:`UIWidget`* widget, const typename :ref:`EE::UI::UIDataBind`::Converter& converter = :ref:`EE::UI::UIDataBind`::converterDefault(), const std::string& valueKey = "value", const :ref:`Event::EventType`& eventType = Event::OnValueChange); // methods void :target:`operator=`(const T& newVal); void :target:`operator=`(T&& newVal); const T& :target:`value`() const; const :ref:`UIDataBind`& :target:`databind`() const; UIProperty& :target:`connect`(:ref:`UIWidget`* widget); UIProperty& :target:`disconnect`(:ref:`UIWidget`* widget); const T& :target:`operator*`() const; const T* :target:`operator->`() const; :target:`operator const T &`() const; UIProperty& :target:`changed`(const std::function& fn); UIProperty& :target:`changed`(std::function&& fn); };