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 class State // Possible states
{
Normal,
Hovered,
Focused,
FocusedHovered,
Disabled
};
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;
BorderColor 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 BorderColor &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 |