class EE::UI::UINodeDrawable

#include <uinodedrawable.hpp>

class UINodeDrawable: public EE::Graphics::Drawable {
public:
    // enums

    enum Repeat;

    // classes

    class LayerDrawable;

    // construction

    UINodeDrawable(UINode* owner);
    virtual ~UINodeDrawable();

    // methods

    static Repeat repeatFromText(const std::string& text);
    static UINodeDrawable* New(UINode* owner);
    virtual Sizef getSize();
    virtual Sizef getPixelsSize();
    virtual void setSize(const Sizef& size);
    virtual void draw();
    virtual void draw(const Vector2f& position);
    virtual void draw(const Vector2f& position, const Sizef& size);
    void draw(const Vector2f& position, const Sizef& size, const Uint32& alpha);
    virtual bool isStateful();
    void clearDrawables();
    void setBorderRadius(const Uint32& radius);
    Uint32 getBorderRadius() const;
    bool layerExists(int index);
    LayerDrawable* getLayer(int index);
    void setDrawable(int index, Drawable* drawable, bool ownIt);
    void setDrawable(int index, const std::string& drawable);
    void setDrawablePositionX(int index, const std::string& positionX);
    void setDrawablePositionY(int index, const std::string& positionY);
    void setDrawableRepeat(int index, const std::string& repeatRule);
    void setDrawableSize(int index, const std::string& sizeEq);
    void setDrawableColor(int index, const Color& color);
    void setBackgroundColor(const Color& color);
    Color getBackgroundColor() const;
    bool getClipEnabled() const;
    void setClipEnabled(bool clipEnabled);
    void invalidate();
    UINode* getOwner() const;
    UIBackgroundDrawable& getBackgroundDrawable();
    bool isSmooth() const;
    void setSmooth(bool smooth);
};

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;