.. index:: pair: class; EE::UI::UISVGIcon .. _doxid-class_e_e_1_1_u_i_1_1_u_i_s_v_g_icon: class EE::UI::UISVGIcon ======================= .. toctree:: :hidden: Overview ~~~~~~~~ .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class UISVGIcon: public :ref:`EE::UI::UIIcon` { public: // construction virtual :target:`~UISVGIcon`(); // methods static :ref:`UIIconPtr` :target:`New`(const std::string& name, const std::string& svgXML); virtual const :ref:`DrawablePtr`& :ref:`getSource`(const int& size) const; }; Inherited Members ----------------- .. ref-code-block:: cpp :class: doxyrest-overview-inherited-code-block public: // methods static :ref:`UIIconPtr` :ref:`New`(const std::string& name); const std::string& :ref:`getName`() const; virtual const :ref:`DrawablePtr`& :ref:`getSource`(const int& size) const; :ref:`DrawablePtr` :ref:`createDrawable`(const int& size) const; virtual void :ref:`setSource`(const int& size, :ref:`DrawablePtr` drawable); .. _details-class_e_e_1_1_u_i_1_1_u_i_s_v_g_icon: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Methods ------- .. index:: pair: function; getSource .. _doxid-class_e_e_1_1_u_i_1_1_u_i_s_v_g_icon_1a131bf870174a454109fbe1186038a0b5: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual const :ref:`DrawablePtr`& getSource(const int& size) const Returns the icon source closest to the requested size. The returned drawable is shared icon data and must not be mutated by consumers. Use :ref:`createDrawable() ` when a consumer needs its own mutable drawable instance.