class EE::UI::UINodeDrawable::LayerDrawable

#include <uinodedrawable.hpp>

class LayerDrawable: public EE::Graphics::Drawable {
public:
    // construction

    LayerDrawable(UINodeDrawable* container);
    virtual ~LayerDrawable();

    // methods

    static LayerDrawable* New(UINodeDrawable* container);
    virtual bool isStateful();
    virtual void draw();
    virtual void draw(const Vector2f& position);
    virtual void draw(const Vector2f& position, const Sizef& size);
    virtual Sizef getSize();
    virtual Sizef getPixelsSize();
    virtual void setSize(const Sizef& size);
    Drawable* getDrawable() const;
    const std::string& getDrawableRef() const;
    void setDrawable(Drawable* drawable, const bool& ownIt);
    void setDrawable(const std::string& drawableRef);
    void setOffset(const Vector2f& offset);
    const Vector2f& getOffset() const;
    std::string getOffsetEq();
    void setPositionEq(const std::string& offset);
    void setSizeEq(const std::string& size);
    const std::string& getSizeEq() const;
    const Repeat& getRepeat() const;
    void setRepeat(const Repeat& repeat);
    void invalidate();
    const Sizef& getDrawableSize() const;
    void setDrawableSize(const Sizef& drawableSize);
    Sizef calcDrawableSize(const std::string& drawableSizeEq);
    Vector2f calcPosition(std::string positionXEq, std::string positionYEq);
    const std::string& getPositionX() const;
    void setPositionX(const std::string& positionX);
    const std::string& getPositionY() const;
    void setPositionY(const std::string& positionY);
};

Inherited Members

public:
    // enums

    enum Type;

    // 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;