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 class ArrowState // States of arrows 
    {
        Normal,
        Hovered,
        Active,
        ActiveHovered
    };
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 ArrowState state) const;
    Color getArrowBorderColor(const ArrowState state) const;

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