.. index:: pair: class; EE::UI::UIDataBind .. _doxid-class_e_e_1_1_u_i_1_1_u_i_data_bind: template class EE::UI::UIDataBind ================================= .. toctree:: :hidden: struct_EE_UI_UIDataBind_Converter.rst .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include template class UIDataBind { public: // structs struct :ref:`Converter`; // fields std::function :target:`onValueChangeCb`; // construction :target:`UIDataBind`(); :target:`UIDataBind`(T* t, const std::set<:ref:`UIWidget`*>& widgets, const :ref:`Converter`& converter = UIDataBind:::ref:`converterDefault`(), const std::string& valueKey = "value", const :ref:`Event::EventType`& eventType = Event::OnValueChange); :target:`UIDataBind`(T* t, :ref:`UIWidget`* widget, const :ref:`Converter`& converter = UIDataBind:::ref:`converterDefault`(), const std::string& valueKey = "value", const :ref:`Event::EventType`& eventType = Event::OnValueChange); :target:`~UIDataBind`(); // methods static :ref:`Converter` :target:`converterDefault`(); static :ref:`Converter` :target:`converterString`(); static :ref:`Converter` :target:`converterBool`(); static std::unique_ptr> :target:`New`(T* t, const std::set<:ref:`UIWidget`*>& widgets, const :ref:`Converter`& converter = UIDataBind:::ref:`converterDefault`(), const std::string& valueKey = "value", const :ref:`Event::EventType`& eventType = Event::OnValueChange); static std::unique_ptr> :target:`New`(T* t, :ref:`UIWidget`* widget, const :ref:`Converter`& converter = UIDataBind:::ref:`converterDefault`(), const std::string& valueKey = "value", const :ref:`Event::EventType`& eventType = Event::OnValueChange); void :target:`init`(T* t, const std::set<:ref:`UIWidget`*>& widgets, const :ref:`Converter`& converter = UIDataBind:::ref:`converterDefault`(), const std::string& valueKey = "value", const :ref:`Event::EventType`& eventType = Event::OnValueChange); void :target:`set`(const T& t); const T& :target:`get`() const; void :target:`reset`(); void :target:`bind`(:ref:`UIWidget`* widget); void :target:`unbind`(:ref:`UIWidget`* widget); const :ref:`PropertyDefinition`* :target:`getPropertyDefinition`() const; };