.. index:: pair: class; EE::Graphics::GlyphDrawable .. _doxid-class_e_e_1_1_graphics_1_1_glyph_drawable: class EE::Graphics::GlyphDrawable ================================= .. toctree:: :hidden: enum_EE_Graphics_GlyphDrawable_DrawMode.rst Overview ~~~~~~~~ .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class GlyphDrawable: public :ref:`EE::Graphics::DrawableResource` { public: // enums enum :ref:`DrawMode`; // construction :target:`GlyphDrawable`(:ref:`Texture`* texture, const :ref:`Rect`& srcRect, const :ref:`Sizef`& destSize = {}, const std::string& resourceName = ""); // methods static GlyphDrawable* :target:`New`(:ref:`Texture`* texture, const :ref:`Rect`& srcRect, const :ref:`Sizef`& destSize = {}, const std::string& resourceName = ""); virtual void :target:`draw`(); virtual void :target:`draw`(const :ref:`Vector2f`& position); virtual void :target:`draw`(const :ref:`Vector2f`& position, const :ref:`Sizef`& size); virtual void :target:`drawIntoVertexBuffer`(:ref:`VertexBuffer`* vbo, const :ref:`Vector2u`& gridPos, const :ref:`Vector2f`& pos, const :ref:`Uint32`& textureLevel = 0); virtual bool :target:`isStateful`(); :ref:`Texture`* :ref:`getTexture`(); const :ref:`Rectf`& :ref:`getSrcRect`() const; const :ref:`Sizef`& :target:`getDestSize`() const; virtual :ref:`Sizef` :ref:`getSize`(); virtual :ref:`Sizef` :target:`getPixelsSize`(); const :ref:`Float`& :target:`getPixelDensity`() const; void :target:`setPixelDensity`(const :ref:`Float`& pixelDensity); const :ref:`Vector2f`& :target:`getGlyphOffset`() const; void :target:`setGlyphOffset`(const :ref:`Vector2f`& glyphOffset); const :ref:`DrawMode`& :target:`getDrawMode`() const; void :target:`setDrawMode`(const :ref:`DrawMode`& drawMode); bool :target:`isItalic`() const; void :target:`setIsItalic`(bool isItalic); const :ref:`Float`& :target:`getAdvance`() const; void :target:`setAdvance`(:ref:`Float` advance); }; Inherited Members ----------------- .. ref-code-block:: cpp :class: doxyrest-overview-inherited-code-block public: // typedefs typedef std::function`, :ref:`Event`, :ref:`DrawableResource`*)> :ref:`OnResourceChangeCallback`; // enums enum :ref:`Type`; enum :ref:`Event`; // methods virtual :ref:`Sizef` :ref:`getSize`() = 0; virtual :ref:`Sizef` :ref:`getPixelsSize`() = 0; virtual void :ref:`draw`() = 0; virtual void :ref:`draw`(const :ref:`Vector2f`& position) = 0; virtual void :ref:`draw`(const :ref:`Vector2f`& position, const :ref:`Sizef`& size) = 0; virtual bool :ref:`isStateful`() = 0; void :ref:`setAlpha`(:ref:`Uint8` alpha); const :ref:`Uint8`& :ref:`getAlpha`(); void :ref:`setColor`(const :ref:`Color`& color); const :ref:`Color`& :ref:`getColor`() const; void :ref:`setColorFilter`(const :ref:`Color`& color); :ref:`RGB` :ref:`getColorFilter`(); void :ref:`clearColor`(); void :ref:`clearColorFilter`(); void :ref:`resetAlpha`(); :ref:`Type` :ref:`getDrawableType`() const; const :ref:`Vector2f`& :ref:`getPosition`() const; void :ref:`setPosition`(const :ref:`Vector2f`& position); virtual bool :ref:`isDrawableResource`() const; const :ref:`String::HashType`& :ref:`getId`() const; const std::string :ref:`getName`() const; void :ref:`setName`(const std::string& name); virtual bool :ref:`isDrawableResource`() const; :ref:`Uint32` :ref:`pushResourceChangeCallback`(const :ref:`OnResourceChangeCallback`& cb); bool :ref:`popResourceChangeCallback`(const :ref:`Uint32`& callbackId); .. _details-class_e_e_1_1_graphics_1_1_glyph_drawable: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Methods ------- .. index:: pair: function; getTexture .. _doxid-class_e_e_1_1_graphics_1_1_glyph_drawable_1a0c15fba68781c8239831984ffb868bd3: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`Texture`* getTexture() .. rubric:: Returns: The texture instance used by the :ref:`GlyphDrawable `. .. index:: pair: function; getSrcRect .. _doxid-class_e_e_1_1_graphics_1_1_glyph_drawable_1a2a34c479b9394c0e776bb267b712cbc4: .. ref-code-block:: cpp :class: doxyrest-title-code-block const :ref:`Rectf`& getSrcRect() const .. rubric:: Returns: The :ref:`Texture ` sector that represents the :ref:`GlyphDrawable ` .. index:: pair: function; getSize .. _doxid-class_e_e_1_1_graphics_1_1_glyph_drawable_1af14d512fef794ec6b185042fa14afb5d: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual :ref:`Sizef` getSize() .. rubric:: Returns: This is the same as Destination Size but with the values rounded as integers.