class EE::UI::UIGlyphIcon¶
Overview¶
#include <uiicon.hpp> class UIGlyphIcon: public EE::UI::UIIcon { public: // construction virtual ~UIGlyphIcon(); // methods static UIIconPtr New(const std::string& name, FontTrueType* font, const Uint32& codePoint); virtual const DrawablePtr& getSource(const int& size) const; };
Inherited Members¶
public: // methods static UIIconPtr New(const std::string& name); const std::string& getName() const; virtual const DrawablePtr& getSource(const int& size) const; DrawablePtr createDrawable(const int& size) const; virtual void setSource(const int& size, DrawablePtr drawable);
Detailed Documentation¶
Methods¶
virtual const 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 createDrawable() when a consumer needs its own mutable drawable instance.