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 STATE // Control states
{
stNormal, // Normal
stActive // 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;
CURSOR_TYPE 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
RectC 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 RectC &value); // Set border color depending on state
};
Namespace: | nitisa::ide |
Include: | Ide/Controls/FormView/FormView.h |