class EE::Graphics::StatefulDrawable¶
#include <statefuldrawable.hpp> class StatefulDrawable: public EE::Graphics::DrawableResource { public: // construction StatefulDrawable(Type drawableType); StatefulDrawable(Type drawableType, const std::string& name); // methods virtual StatefulDrawable* setState(Uint32 state) = 0; virtual const Uint32& getState() const = 0; };
Inherited Members¶
public: // typedefs typedef std::function<void(Uint32, Event, DrawableResource*)> OnResourceChangeCallback; // enums enum Type; enum Event; // methods virtual Sizef getSize() = 0; virtual Sizef getPixelsSize() = 0; virtual void draw() = 0; virtual void draw(const Vector2f& position) = 0; virtual void draw(const Vector2f& position, const Sizef& size) = 0; virtual bool isStateful() = 0; void setAlpha(Uint8 alpha); const Uint8& getAlpha(); void setColor(const Color& color); const Color& getColor() const; void setColorFilter(const Color& color); RGB getColorFilter(); void clearColor(); void clearColorFilter(); void resetAlpha(); Type getDrawableType() const; const Vector2f& getPosition() const; void setPosition(const Vector2f& position); virtual bool isDrawableResource() const; const String::HashType& getId() const; const std::string getName() const; void setName(const std::string& name); virtual bool isDrawableResource() const; Uint32 pushResourceChangeCallback(const OnResourceChangeCallback& cb); bool popResourceChangeCallback(const Uint32& callbackId);