CFormView



Implements FormView widget.

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

class CFormView :public virtual IFormView, public CControl
{
public:
    enum class State // Control states 
    {
        Normal, // Normal 
        Active // Child control is focused 
    };
public:
    // IControl getters 
    IControl *getControl(const int index) override;
    IControl *getControl(const String &name) override;
    IControl *getControl(const PointF &position) override;
    RectF getClientRect() override;
    CursorType getCursor() override;
    bool isAcceptChild(IControl *control) override; // Only IFormEditor child and only one is accepted 

    void Refresh(const bool refresh_children) override;

    // IFormView getters 
    String getCaption() override;

    // IFormView setters 
    bool setCaption(const String &value) override;

    // IFormView methods 
    bool LoadLayout(const String &filename) override;

    CFormView();
    CFormView(IControl *parent);
    CFormView(IForm *parent);

    const LAYOUT &getLayout() const; // Return layout 
    RectF getBorderWidth() const; // Return border width 
    BorderColor getBorderColor(const State state) const; // Return border color depending on state 

    bool setClientSize(const PointF &value); // Set client size 
    bool setBorderWidth(const RectF &value); // Set border width 
    bool setBorderColor(const State state, const BorderColor &value); // Set border color depending on state 
};
Namespace: nitisa::ide
Include: Ide/Controls/FormView/FormView.h