class EE::UI::LinearGradientDrawable

#include <lineargradientdrawable.hpp>

class LinearGradientDrawable: public EE::Graphics::Drawable {
public:
    // typedefs

    typedef CSS::StyleSheetLength Length;
    typedef CSS::StyleSheetLength::Unit GradientUnit;

    // structs

    struct ColorStop;

    // construction

    LinearGradientDrawable(Graphics::Drawable::Type drawableType = Graphics::Drawable::LINEARGRADIENT);

    // methods

    static LinearGradientDrawable* New();
    static LinearGradientDrawable* NewRepeating();
    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 std::vector<ColorStop>& getColorStops() const;
    void setColorStops(std::vector<ColorStop> stops);
    Float getAngle() const;
    void setAngle(Float angleDegrees);
    void setSize(const Sizef& size);
    bool isRepeating() const;
};

Inherited Members

public:
    // enums

    enum Type;

    // methods

    virtual Sizef getSize() = 0;
    virtual Sizef getPixelsSize() = 0;
    virtual Float getMinIntrinsicWidth();
    virtual Float getMaxIntrinsicWidth();
    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;