CGradientEditor



Implements GradientEditor control.

You can find more information in comments below. Overrided methods can be found in corresponding base classes and interfaces.

class CGradientEditor :public virtual IGradientEditor, public CControl
{
public:
    enum ARROW_STATE // States of arrows 
    {
        asNormal,
        asHovered,
        asActive,
        asActiveHovered
    };
public:
    void(*OnChange)(IControl *sender); // Event called when Gradiend has been changed 

    // IControl methods 
    void Refresh(const bool refresh_children) override;

    Gradient *getGradient() override;
    int getActivePoint() override;

    bool setDPI(const Point &value) override;
    bool setActivePoint(const int value) override;

    CGradientEditor();
    CGradientEditor(IControl *parent);
    CGradientEditor(IForm *parent);

    // Return layout properties 
    Color getBackgroundColor() const;
    float getArrowSize() const;
    Color getArrowColor(const ARROW_STATE state) const;
    Color getArrowBorderColor(const ARROW_STATE state) const;

    // Set background properties 
    bool setBackgroundColor(const Color &value);
    bool setArrowSize(const float value);
    bool setArrowColor(const ARROW_STATE state, const Color &value);
    bool setArrowBorderColor(const ARROW_STATE state, const Color &value);
};
Namespace: nitisa::standard
Include: Standard/Controls/GradientEditor/GradientEditor.h