CHotKey



Implements HotKey control.

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

class CHotKey :public virtual IHotKey, public CControl
{
public:
    enum STATE // Possible states 
    {
        stNormal,
        stHovered,
        stFocused,
        stFocusedHovered,
        stDisabled
    };
public:
    // IControl methods 
    void Refresh(const bool refresh_children) override;

    RectF getClientRect() override;
    RectF getRenderRect() override;
    bool isWantTabs() override;

    bool setWantTabs(const bool value) override;
    bool setDPI(const Point &value) override;

    HOTKEY getHotKey() override;

    bool setHotKey(const HOTKEY &value) override;

    CHotKey();
    CHotKey(IControl *parent);
    CHotKey(IForm *parent);

    STATE getState(); // Return current state 
    // Return layout properties 
    RectF getBorderWidth() const;
    RectF getBorderRadius() const;
    RectF getPadding() const;
    RectC getBorderColor(const STATE state) const;
    Color getBackgroundColor(const STATE state) const;
    Gradient *getBackgroundGradient(const STATE state);
    int getShadowRadius(const STATE state) const;
    PointF getShadowShift(const STATE state) const;
    Color getShadowColor(const STATE state) const;
    Color getTextColor(const STATE state) const;
    Color getTextShadowColor(const STATE state) const;
    PointF getTextShadowShift(const STATE state) const;
    int getTextShadowRadius(const STATE state) const;

    // Set layout properties 
    bool setBorderWidth(const RectF &value);
    bool setBorderRadius(const RectF &value);
    bool setPadding(const RectF &value);
    bool setBorderColor(const STATE state, const RectC &value);
    bool setLeftBorderColor(const STATE state, const Color &value);
    bool setTopBorderColor(const STATE state, const Color &value);
    bool setRightBorderColor(const STATE state, const Color &value);
    bool setBottomBorderColor(const STATE state, const Color &value);
    bool setBackgroundColor(const STATE state, const Color &value);
    bool setShadowRadius(const STATE state, const int value);
    bool setShadowShift(const STATE state, const PointF &value);
    bool setShadowColor(const STATE state, const Color &value);
    bool setTextColor(const STATE state, const Color &value);
    bool setTextShadowColor(const STATE state, const Color &value);
    bool setTextShadowShift(const STATE state, const PointF &value);
    bool setTextShadowRadius(const STATE state, const int value);
};
Namespace: nitisa::standard
Include: Standard/Controls/HotKey/HotKey.h