CSplitter



Implements Splitter control.

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

class CSplitter :public virtual ISplitter, public CControl
{
public:
    enum class State // Possible states 
    {
        Normal,
        Hovered,
        Active,
        Disabled
    };
public:
    bool setAlign(const Align value) override;
    bool setDPI(const Point &value) override;

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

    CSplitter();
    CSplitter(IControl *parent);
    CSplitter(IForm *parent);

    State getState(); // Return current state 
    // Return layout properties 
    float getDotWidth() const;
    int getDotCount() const;
    Color getBackgroundColor(const State state) const;
    Gradient *getBackgroundGradient(const State state);
    Color getDotColor(const State state) const;

    // Set layout properties 
    bool setDotWidth(const float value);
    bool setDotCount(const int value);
    bool setBackgroundColor(const State state, const Color &value);
    bool setDotColor(const State state, const Color &value);
};
Namespace: nitisa::standard
Include: Standard/Controls/Splitter/Splitter.h