Content


NTL
Core
CBuiltInControl

CBuiltInControl



Provide basic implementation of the IBuiltInControl interface.

You can find more information in comments below. Overrided methods can be found in corresponding base class or interface.

class CBuiltInControl :public virtual IBuiltInControl, public CClass
{
public:
    bool isEnabled() override;
    bool isHovered() override;
    bool isFocused() override;
    bool isInside(const PointF &position) override;
    PointF getSize() override;
    float getWidth() override;
    float getHeight() override;
    RectF getRect() override;
    PointF getPosition() override;
    float getLeft() override;
    float getTop() override;
    RectF getClientRect() override;
    RectF getRenderRect() override;
    CursorType getCursor(const PointF &position, const CursorType def) override;
    Point getDPI() override;

    bool setName(const String &value) override;
    bool setEnabled(const bool value) override;
    bool setFocused(const bool value) override;
    bool setSize(const PointF &value) override;
    bool setPosition(const PointF &value) override;
    bool setDPI(const Point &value) override;

    void Update() override;
    void Release() override;
    void Refresh() override; // Do nothing

    CBuiltInControl(const String &class_name); // Constructor
    CBuiltInControl(const String &class_name, const PointF &size); // Constructor with default size
    virtual ~CBuiltInControl() = default;
};
Namespace: nitisa
Include: Nitisa/Core/BuiltInControl.h