class EE::UI::UIBackgroundDrawable

#include <uibackgrounddrawable.hpp>

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

    UIBackgroundDrawable(const UINode* owner);
    virtual ~UIBackgroundDrawable();

    // methods

    static UIBackgroundDrawable* New(const UINode* owner);
    void setSize(const Sizef& size);
    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();
    const BorderRadiuses& getRadiuses() const;
    bool hasRadius() const;
    void setRadiuses(const BorderRadiuses& radiuses);
    void setRadius(const Uint32& radius);
    Int32 getRadius() const;
    void invalidate();
    void setTopWidth(const std::string& topWidth);
    void setBottomWidth(const std::string& bottomWidth);
    void setTopLeftRadius(const std::string& radius);
    void setTopRightRadius(const std::string& radius);
    void setBottomLeftRadius(const std::string& radius);
    void setBottomRightRadius(const std::string& radius);
    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;