.. index:: pair: class; EE::Graphics::NinePatch .. _doxid-class_e_e_1_1_graphics_1_1_nine_patch: class EE::Graphics::NinePatch ============================= .. toctree:: :hidden: enum_EE_Graphics_NinePatch_NinePatchSides.rst .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class NinePatch: public :ref:`EE::Graphics::DrawableResource` { public: // enums enum :ref:`NinePatchSides`; // construction :target:`NinePatch`( :ref:`Texture`* tex, int left, int top, int right, int bottom, const :ref:`Float`& pixelDensity = 1, const std::string& name = "" ); :target:`NinePatch`(:ref:`TextureRegion`* textureRegion, int left, int top, int right, int bottom, const std::string& name = ""); :target:`~NinePatch`(); // methods static NinePatch* :target:`New`( const :ref:`Uint32`& TexId, int left, int top, int right, int bottom, const :ref:`Float`& pixelDensity = 1, const std::string& name = "" ); static NinePatch* :target:`New`( :ref:`Texture`* tex, int left, int top, int right, int bottom, const :ref:`Float`& pixelDensity = 1, const std::string& name = "" ); static NinePatch* :target:`New`(:ref:`TextureRegion`* textureRegion, int left, int top, int right, int bottom, const std::string& name = ""); virtual :ref:`Sizef` :target:`getSize`(); virtual :ref:`Sizef` :target:`getPixelsSize`(); 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 bool :target:`isStateful`(); :ref:`TextureRegion`* :target:`getTextureRegion`(const int& side); }; 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);