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;
CURSOR_TYPE getCursor(const PointF &position, const CURSOR_TYPE def) override;
// Since 4.0.0
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;
// Since 4.0.0
bool setDPI(const Point &value) override;
void Update() override;
void Release() override;
// Since 8.0.0
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 |