class EE::Graphics::NinePatch
#include <ninepatch.hpp>
class NinePatch: public EE::Graphics::DrawableResource {
public:
// enums
enum NinePatchSides;
// construction
NinePatch(
Texture* tex,
int left,
int top,
int right,
int bottom,
const Float& pixelDensity = 1,
const std::string& name = ""
);
NinePatch(TextureRegion* textureRegion, int left, int top, int right, int bottom, const std::string& name = "");
~NinePatch();
// methods
static NinePatch* New(
const Uint32& TexId,
int left,
int top,
int right,
int bottom,
const Float& pixelDensity = 1,
const std::string& name = ""
);
static NinePatch* New(
Texture* tex,
int left,
int top,
int right,
int bottom,
const Float& pixelDensity = 1,
const std::string& name = ""
);
static NinePatch* New(TextureRegion* textureRegion, int left, int top, int right, int bottom, const std::string& name = "");
virtual Sizef getSize();
virtual Sizef getPixelsSize();
virtual void draw();
virtual void draw(const Vector2f& position);
virtual void draw(const Vector2f& position, const Sizef& size);
virtual bool isStateful();
TextureRegion* getTextureRegion(const int& side);
};