CFormStyleSolid



Implements FormStyleSolid widget(control).

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

class CFormStyleSolid :public virtual IFormStyleSolid, public CControl
{
public:
    enum class ButtonState // Possible button states 
    {
        Normal, // Normal 
        Hovered, // Mouse pointer is over a button 
        Active, // Mouse button was down and not release yet over a button 
        Disabled // Button is disabled 
    };
public:
    IControl *getControl(const int index) override;
    IControl *getControl(const String &name) override;
    IControl *getControl(const PointF &position) override;
    RectF getRect() override;
    RectF getClientRect() override;
    RectF getRenderRect() override;
    CursorType getCursor() override;

    bool setAlign(const Align value) override; // Not supported 
    bool setConstraints(const RectF &value) override; // Not supported 
    bool setSize(const PointF &value) override; // Not supported 
    bool setHintText(const String &value) override; // Not supported 
    bool setVisible(const bool value) override; // Not supported 
    bool setEnabled(const bool value) override; // Not supported 
    bool setDPI(const Point &value) override;

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

    CFormStyleSolid(); // Constructor 
    CFormStyleSolid(IForm *parent); // Construct and place onto a form 

    bool isShowCaption() const; // Return whether caption should be shown or not 
    RectF getBorderWidth() const; // Return border widths 
    float getCaptionHeight() const; // Return caption height 
    BorderColor getBorderColor() const; // Return border colors 
    // Return minimize button settings 
    bool isBtnMinimizeVisible() const;
    bool isBtnMinimizeEnabled() const;
    RectF getBtnMinimizeBorderWidth(const ButtonState state) const;
    BorderColor getBtnMinimizeBorderColor(const ButtonState state) const;
    Color getBtnMinimizeBackgroundColor(const ButtonState state) const;
    // Return restore/maximize button settings 
    bool isBtnRestoreVisible() const;
    bool isBtnRestoreEnabled() const;
    RectF getBtnRestoreBorderWidth(const ButtonState state) const;
    BorderColor getBtnRestoreBorderColor(const ButtonState state) const;
    Color getBtnRestoreBackgroundColor(const ButtonState state) const;
    // Return close button settings 
    bool isBtnCloseVisible() const;
    bool isBtnCloseEnabled() const;
    RectF getBtnCloseBorderWidth(const ButtonState state) const;
    BorderColor getBtnCloseBorderColor(const ButtonState state) const;
    Color getBtnCloseBackgroundColor(const ButtonState state) const;

    bool setShowCaption(const bool value); // Set whether caption should be shown or not 
    bool setBorderWidth(const RectF &value); // Set border widths 
    bool setCaptionHeight(const float value); // Set caption height 
    bool setBorderColor(const BorderColor &value); // Set border colors 
    // Set minimize button settings 
    bool setBtnMinimizeVisible(const bool value);
    bool setBtnMinimizeEnabled(const bool value);
    bool setBtnMinimizeBorderWidth(const ButtonState state, const RectF &value);
    bool setBtnMinimizeBorderColor(const ButtonState state, const BorderColor &value);
    bool setBtnMinimizeBackgroundColor(const ButtonState state, const Color &value);
    // Set restore/maximize button settings 
    bool setBtnRestoreVisible(const bool value);
    bool setBtnRestoreEnabled(const bool value);
    bool setBtnRestoreBorderWidth(const ButtonState state, const RectF &value);
    bool setBtnRestoreBorderColor(const ButtonState state, const BorderColor &value);
    bool setBtnRestoreBackgroundColor(const ButtonState state, const Color &value);
    // Set close button settings 
    bool setBtnCloseVisible(const bool value);
    bool setBtnCloseEnabled(const bool value);
    bool setBtnCloseBorderWidth(const ButtonState state, const RectF &value);
    bool setBtnCloseBorderColor(const ButtonState state, const BorderColor &value);
    bool setBtnCloseBackgroundColor(const ButtonState state, const Color &value);
};
Namespace: nitisa::standard
Include: Standard/Controls/FormStyleSolid/FormStyleSolid.h