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 BUTTON_STATE // Possible button states
{
stNormal, // Normal
stHovered, // Mouse pointer is over a button
stActive, // Mouse button was down and not release yet over a button
stDisabled // 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;
CURSOR_TYPE 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
RectC getBorderColor() const; // Return border colors
// Return minimize button settings
bool isBtnMinimizeVisible() const;
bool isBtnMinimizeEnabled() const;
RectF getBtnMinimizeBorderWidth(const BUTTON_STATE state) const;
RectC getBtnMinimizeBorderColor(const BUTTON_STATE state) const;
Color getBtnMinimizeBackgroundColor(const BUTTON_STATE state) const;
// Return restore/maximize button settings
bool isBtnRestoreVisible() const;
bool isBtnRestoreEnabled() const;
RectF getBtnRestoreBorderWidth(const BUTTON_STATE state) const;
RectC getBtnRestoreBorderColor(const BUTTON_STATE state) const;
Color getBtnRestoreBackgroundColor(const BUTTON_STATE state) const;
// Return close button settings
bool isBtnCloseVisible() const;
bool isBtnCloseEnabled() const;
RectF getBtnCloseBorderWidth(const BUTTON_STATE state) const;
RectC getBtnCloseBorderColor(const BUTTON_STATE state) const;
Color getBtnCloseBackgroundColor(const BUTTON_STATE 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 RectC &value); // Set border colors
// Set minimize button settings
bool setBtnMinimizeVisible(const bool value);
bool setBtnMinimizeEnabled(const bool value);
bool setBtnMinimizeBorderWidth(const BUTTON_STATE state, const RectF &value);
bool setBtnMinimizeBorderColor(const BUTTON_STATE state, const RectC &value);
bool setBtnMinimizeBackgroundColor(const BUTTON_STATE state, const Color &value);
// Set restore/maximize button settings
bool setBtnRestoreVisible(const bool value);
bool setBtnRestoreEnabled(const bool value);
bool setBtnRestoreBorderWidth(const BUTTON_STATE state, const RectF &value);
bool setBtnRestoreBorderColor(const BUTTON_STATE state, const RectC &value);
bool setBtnRestoreBackgroundColor(const BUTTON_STATE state, const Color &value);
// Set close button settings
bool setBtnCloseVisible(const bool value);
bool setBtnCloseEnabled(const bool value);
bool setBtnCloseBorderWidth(const BUTTON_STATE state, const RectF &value);
bool setBtnCloseBorderColor(const BUTTON_STATE state, const RectC &value);
bool setBtnCloseBackgroundColor(const BUTTON_STATE state, const Color &value);
};
Namespace: | nitisa::standard |
Include: | Standard/Controls/FormStyleSolid/FormStyleSolid.h |