CHSVPlane


Implements HSVPlane control.

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

class CHSVPlane :public virtual IHSVPlane, public CControl
{
public:
    void(*OnChange)(IControl *sender); // Event called when color changed by user 

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

    int getHue() override;
    float getSaturation() override;
    float getValue() override;

    bool setDPI(const Point &value) override;
    bool setHue(const int value) override;
    bool setSaturation(const float value) override;
    bool setValue(const float value) override;

    CHSVPlane();
    CHSVPlane(IControl *parent);
    CHSVPlane(IForm *parent);

    // Return layout properties 
    float getPickerRadius() const;
    float getPickerBorderWidth() const;
    float getPickerBorderRadius() const;
    Color getPickerBorderColor() const;
    Color getPickerBorderColorInv() const;
    Color getPickerBackgroundColor() const;
    Color getPickerBackgroundColorInv() const;

    // Set layout properties 
    bool setPickerRadius(const float value);
    bool setPickerBorderWidth(const float value);
    bool setPickerBorderRadius(const float value);
    bool setPickerBorderColor(const Color &value);
    bool setPickerBorderColorInv(const Color &value);
    bool setPickerBackgroundColor(const Color &value);
    bool setPickerBackgroundColorInv(const Color &value);
};
Namespace: nitisa::standard
Include: Standard/Controls/HSVPlane/HSVPlane.h