CViewH2


Implements ViewH2 widget.

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

class CViewH2 :public virtual IViewH2, public CControl
{
public:
    enum class State
    {
        Normal,
        Active
    };

    enum class View
    {
        None,
        Left,
        Right
    };
public:
    // IControl getters 
    CursorType getCursor() override;

    // IViewControl methods 
    bool ActivateView(const int index) override;

    // IViewH2 getters 
    bool isResizable() override;
    float getSeparator() override;

    // IViewH2 setters 
    bool setResizable(const bool value) override;
    bool setSeparator(const float value) override;

    CViewH2();
    CViewH2(IForm *parent);
    CViewH2(IControl *parent);

    // Getters 
    View getActiveView();
    float getBorderWidth();
    float getSeparatorWidth();
    Color getBorderColor(const State state);
    Color getSeparatorColor(const State state);

    // Setters 
    bool setActiveView(const View value);
    bool setBorderWidth(const float value);
    bool setSeparatorWidth(const float value);
    bool setBorderColor(const State state, const Color &value);
    bool setSeparatorColor(const State state, const Color &value);
};
Namespace: nitisa::ide
Include: Ide/Controls/ViewH2/ViewH2.h